Changeset 2535

Show
Ignore:
Timestamp:
07/16/08 15:06:30 (5 weeks ago)
Author:
sam
Message:
  • Make the asm checks for fsin/fcos and fldln2/fxch/fyl2x more robust by
    forcing the tested code to use register contraints.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r2518 r2535  
    113113 
    114114AC_MSG_CHECKING(for fsin/fcos) 
    115 AC_TRY_COMPILE([],[asm("fsin\n\tfcos");], 
     115AC_TRY_COMPILE([],[double x; asm("fsin\n\tfcos":"=t"(x):);], 
    116116 [AC_MSG_RESULT(yes) 
    117117  AC_DEFINE(HAVE_FSIN_FCOS, 1, [Define to 1 if you have the `fsin' and `fcos' operands.])], 
     
    119119 
    120120AC_MSG_CHECKING(for fldln2/fxch/fyl2x) 
    121 AC_TRY_COMPILE([],[asm("fldln2; fldln2; fxch; fyl2x");], 
     121AC_TRY_COMPILE([],[double x; asm("fldln2; fldln2; fxch; fyl2x":"=t"(x):);], 
    122122 [AC_MSG_RESULT(yes) 
    123123  AC_DEFINE(HAVE_FLDLN2, 1, [Define to 1 if you have the `fldln2' and other floating points operands.])],