Changeset 2535


Ignore:
Timestamp:
Jul 16, 2008, 3:06:30 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Make the asm checks for fsin/fcos and fldln2/fxch/fyl2x more robust by forcing the tested code to use register contraints.
File:
1 edited

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.])],
Note: See TracChangeset for help on using the changeset viewer.