Quellcode durchsuchen

* Make the asm checks for fsin/fcos and fldln2/fxch/fyl2x more robust by

forcing the tested code to use register contraints.
tags/v0.99.beta14
Sam Hocevar sam vor 16 Jahren
Ursprung
Commit
c71cbdb507
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. +2
    -2
      configure.ac

+ 2
- 2
configure.ac Datei anzeigen

@@ -112,13 +112,13 @@ AC_TRY_COMPILE([#include <windows.h>],[Sleep(42);],
[AC_MSG_RESULT(no)])

AC_MSG_CHECKING(for fsin/fcos)
AC_TRY_COMPILE([],[asm("fsin\n\tfcos");],
AC_TRY_COMPILE([],[double x; asm("fsin\n\tfcos":"=t"(x):);],
[AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_FSIN_FCOS, 1, [Define to 1 if you have the `fsin' and `fcos' operands.])],
[AC_MSG_RESULT(no)])

AC_MSG_CHECKING(for fldln2/fxch/fyl2x)
AC_TRY_COMPILE([],[asm("fldln2; fldln2; fxch; fyl2x");],
AC_TRY_COMPILE([],[double x; asm("fldln2; fldln2; fxch; fyl2x":"=t"(x):);],
[AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_FLDLN2, 1, [Define to 1 if you have the `fldln2' and other floating points operands.])],
[AC_MSG_RESULT(no)])


Laden…
Abbrechen
Speichern