kolibrios-gitea/programs/develop/libraries/newlib/math/s_signbit.c
Sergey Semyonov (Serge) 2336060a0c newlib: update
git-svn-id: svn://kolibrios.org@1906 a494cfbc-eb01-0410-851d-a64ba20cac60
2011-03-11 18:52:24 +00:00

31 lines
516 B
C

/* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software
* is freely granted, provided that this notice is preserved.
*/
#include "fdlibm.h"
int __signbitf (float x);
int __signbitd (double x);
int
__signbitf (float x)
{
unsigned int w;
GET_FLOAT_WORD(w,x);
return (w & 0x80000000);
}
int
__signbitd (double x)
{
unsigned int msw;
GET_HIGH_WORD(msw, x);
return (msw & 0x80000000);
}