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 8fbce5a42399ea066e8144760549520943704a01..a851e7c730405754dad434632a040ea147aa114a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
index d5c2b62f781d07239dc0d1715a8e63e915b647aa..a6226afcf8579e7a1e323e40158d76e1632f4cfb 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 */