comparison configure.in @ 9603:8bea4e89326f

implement FLOAT_STORE to allow safer complex comparisons on x87
author Jaroslav Hajek <highegg@gmail.com>
date Wed, 02 Sep 2009 14:18:20 +0200
parents f26229391ea1
children bb36a5730ecc
comparison
equal deleted inserted replaced
9602:dba091e1ee39 9603:8bea4e89326f
286 AC_DEFINE(HAVE_FRAMEWORK_CARBON, 1, [Define if framework CARBON is available.]) 286 AC_DEFINE(HAVE_FRAMEWORK_CARBON, 1, [Define if framework CARBON is available.])
287 CARBON_LIBS="-Wl,-framework -Wl,Carbon" 287 CARBON_LIBS="-Wl,-framework -Wl,Carbon"
288 AC_MSG_NOTICE([adding -Wl,-framework -Wl,Carbon to CARBON_LIBS]) 288 AC_MSG_NOTICE([adding -Wl,-framework -Wl,Carbon to CARBON_LIBS])
289 AC_SUBST(CARBON_LIBS) 289 AC_SUBST(CARBON_LIBS)
290 fi 290 fi
291
292 ### When compiling math for x87, problems may arise in some code comparing
293 ### floating-point intermediate results.
294 ### Generally, it helps to store the result in a local volatile variable,
295 ### but it also degrades performance.
296 ### Thus, we provide a FLOAT_TRUNCATE macro that may be defined to "volatile"
297 ### when compiling for x87 target, or left empty for modern SSE math, that
298 ### doesn't suffer from this problem at all.
299 AC_ARG_ENABLE(float-truncate,
300 [AS_HELP_STRING([--enable-float-truncate],
301 [enables truncating intermediate FP results.])],
302 [if test "$enableval" = yes; then ac_float_truncate=volatile;
303 else ac_float_truncate=; fi],
304 ac_float_truncate=)
305
306 AC_DEFINE_UNQUOTED(FLOAT_TRUNCATE, $ac_float_truncate,
307 [Define to volatile if you need truncating intermediate FP results])
291 308
292 ### On Intel systems with gcc, we may need to compile with -mieee-fp 309 ### On Intel systems with gcc, we may need to compile with -mieee-fp
293 ### and -ffloat-store to get full support for IEEE floating point. 310 ### and -ffloat-store to get full support for IEEE floating point.
294 ### 311 ###
295 ### On Alpha/OSF systems, we need -mieee. 312 ### On Alpha/OSF systems, we need -mieee.