]> birchwood-abbey.net Git - mit-scheme.git/commitdiff
microcode: Put x86isms under __x86_64__, not just __APPLE__.
authorTaylor R Campbell <campbell+mit-scheme@mumble.net>
Wed, 3 Feb 2021 06:31:25 +0000 (06:31 +0000)
committerTaylor R Campbell <campbell+mit-scheme@mumble.net>
Wed, 3 Feb 2021 07:08:24 +0000 (07:08 +0000)
(cherry picked from commit b421c2b0a77584bc1e0e095745d413913cef9f67)

src/microcode/floenv.h

index bc094209567cbafa49a45c3605d5c6b0b6f9a2ed..23c5007836a9a6be2a5035ff303c2a8d4e00be4e 100644 (file)
@@ -46,12 +46,16 @@ USA.
 #    endif
 #    define HAVE_FEENABLEEXCEPT
 #    define HAVE_FEDISABLEEXCEPT
-#    define NEED_FEEXCEPT_WORKAROUND
+#    ifdef __x86_64__
+#      define NEED_FEEXCEPT_WORKAROUND
+#    endif
      extern int fegetexcept(void);
      extern int feenableexcept(unsigned int);
      extern int fedisableexcept(unsigned int);
-#    ifndef FE_DENORMAL
-#      define FE_DENORMAL FE_DENORMALOPERAND
+#    ifdef __x86_64__
+#      ifndef FE_DENORMAL
+#        define FE_DENORMAL FE_DENORMALOPERAND
+#      endif
 #    endif
 #  endif
 #elif ((!defined (CMPINTMD_EMULATES_FENV)) && (defined (HAVE_IEEEFP_H)))