* sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
This commit is contained in:
Ulrich Drepper 2000-04-17 18:10:46 +00:00
parent dc05182174
commit b99a3e9a07
2 changed files with 8 additions and 4 deletions

View File

@ -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.

View File

@ -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)