This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

test-fpucw


On the ARM, some `reserved' bits in the FPU control word indicate the type of 
coprocessor that's installed.  These bits obviously can't be changed and their 
value is essentially unpredictable.

Is this patch OK?

p.

2000-07-28  Philip Blundell  <philb@gnu.org>

	* math/test-fpucw.c: Ignore reserved bits in control word.

--- math/test-fpucw.c	2000/07/06 07:50:24	1.2
+++ math/test-fpucw.c	2000/07/28 11:05:37
@@ -29,6 +29,8 @@ main (void)
 
   _FPU_GETCW (cw);
 
+  cw &= ~_FPU_RESERVED;
+
   if (cw != _FPU_DEFAULT)
     printf ("control word is 0x%x but should be 0x%x.\n", cw, _FPU_DEFAULT);
 







Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]