mirror of git://sourceware.org/git/glibc.git
Update.
* sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
This commit is contained in:
parent
dc05182174
commit
b99a3e9a07
|
@ -1,5 +1,7 @@
|
|||
2000-04-17 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
|
||||
|
||||
* elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
|
||||
* elf/dl-lookup.c: Likewise.
|
||||
* elf/dl-init.c (_dl_init): Likewise.
|
||||
|
|
|
@ -24,14 +24,16 @@
|
|||
#include "math.h"
|
||||
#include <fenv_libc.h>
|
||||
|
||||
int __isnan(double x)
|
||||
int
|
||||
__isnan (x)
|
||||
double x;
|
||||
{
|
||||
fenv_t savedstate;
|
||||
int result;
|
||||
savedstate = fegetenv_register();
|
||||
reset_fpscr_bit(FPSCR_VE);
|
||||
savedstate = fegetenv_register ();
|
||||
reset_fpscr_bit (FPSCR_VE);
|
||||
result = !(x == x);
|
||||
fesetenv_register(savedstate);
|
||||
fesetenv_register (savedstate);
|
||||
return result;
|
||||
}
|
||||
weak_alias (__isnan, isnan)
|
||||
|
|
Loading…
Reference in New Issue