Enable the fpucw handling also for x86_64.
authorBruno Haible <bruno@clisp.org>
Sun, 13 Apr 2008 00:26:28 +0000 (02:26 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 13 Apr 2008 00:26:28 +0000 (02:26 +0200)
ChangeLog
lib/fpucw.h

index 8fbce5a..a851e7c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2008-04-12  Bruno Haible  <bruno@clisp.org>
 
+       * lib/fpucw.h: Enable the definitions also for x86_64.
+       Needed for NetBSD/x86_64.
+       Reported by Thomas Klausner <tk@giga.or.at>.
+
+2008-04-12  Bruno Haible  <bruno@clisp.org>
+
        * tests/test-strtod.c: Include isnand.h.
        (main): Use isnand instead of isnan.
        Reported by Jim Meyering.
index d5c2b62..a6226af 100644 (file)
@@ -1,5 +1,5 @@
 /* Manipulating the FPU control word.
-   Copyright (C) 2007 Free Software Foundation, Inc.
+   Copyright (C) 2007-2008 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2007.
 
    This program is free software: you can redistribute it and/or modify
@@ -61,7 +61,7 @@
  */
 
 /* Inline assembler like this works only with GNU C.  */
-#if defined __i386__ && defined __GNUC__
+#if (defined __i386__ || defined __x86_64__) && defined __GNUC__
 
 typedef unsigned short fpucw_t; /* glibc calls this fpu_control_t */