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>
|
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-reloc.c (_dl_relocate_object): Add more __builtin_expect.
|
||||||
* elf/dl-lookup.c: Likewise.
|
* elf/dl-lookup.c: Likewise.
|
||||||
* elf/dl-init.c (_dl_init): Likewise.
|
* elf/dl-init.c (_dl_init): Likewise.
|
||||||
|
|
|
@ -24,14 +24,16 @@
|
||||||
#include "math.h"
|
#include "math.h"
|
||||||
#include <fenv_libc.h>
|
#include <fenv_libc.h>
|
||||||
|
|
||||||
int __isnan(double x)
|
int
|
||||||
|
__isnan (x)
|
||||||
|
double x;
|
||||||
{
|
{
|
||||||
fenv_t savedstate;
|
fenv_t savedstate;
|
||||||
int result;
|
int result;
|
||||||
savedstate = fegetenv_register();
|
savedstate = fegetenv_register ();
|
||||||
reset_fpscr_bit(FPSCR_VE);
|
reset_fpscr_bit (FPSCR_VE);
|
||||||
result = !(x == x);
|
result = !(x == x);
|
||||||
fesetenv_register(savedstate);
|
fesetenv_register (savedstate);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
weak_alias (__isnan, isnan)
|
weak_alias (__isnan, isnan)
|
||||||
|
|
Loading…
Reference in New Issue