diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2022-09-23 08:14:34 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2022-09-23 08:19:46 +0200 |
commit | a0d7487a6636f06daf9b4fb2c3765935bb4daf65 (patch) | |
tree | 1a499e80002a8e263ef12c094677bb67b482f612 /test/math/test-fpucw.c | |
parent | 728e1e0ea5adf1bd9b479e4edc456b637e26c031 (diff) |
revert glibc sync for math tests
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Diffstat (limited to 'test/math/test-fpucw.c')
-rw-r--r-- | test/math/test-fpucw.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/test/math/test-fpucw.c b/test/math/test-fpucw.c index 0ea5896..93237ea 100644 --- a/test/math/test-fpucw.c +++ b/test/math/test-fpucw.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000-2016 Free Software Foundation, Inc. +/* Copyright (C) 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Andreas Jaeger <aj@suse.de>, 2000. @@ -19,12 +19,8 @@ #include <fpu_control.h> #include <stdio.h> -#ifndef FPU_CONTROL -# define FPU_CONTROL _FPU_DEFAULT -#endif - -static int -do_test (void) +int +main (void) { #ifdef _FPU_GETCW /* Some architectures don't have _FPU_GETCW (e.g. Linux/Alpha). */ @@ -34,16 +30,13 @@ do_test (void) cw &= ~_FPU_RESERVED; - if (cw != (FPU_CONTROL & ~_FPU_RESERVED)) + if (cw != (_FPU_DEFAULT & ~_FPU_RESERVED)) printf ("control word is 0x%lx but should be 0x%lx.\n", - (long int) cw, (long int) (FPU_CONTROL & ~_FPU_RESERVED)); + (long int) cw, (long int) (_FPU_DEFAULT & ~_FPU_RESERVED)); - return cw != (FPU_CONTROL & ~_FPU_RESERVED); + return cw != (_FPU_DEFAULT & ~_FPU_RESERVED); #else return 0; #endif } - -#define TEST_FUNCTION do_test () -#include "../test-skeleton.c" |