git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16371 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2006-02-12 23:19:12 +00:00
parent a8df1e6494
commit c4d9fc29b5
2 changed files with 33 additions and 0 deletions
src/system/libroot/posix/glibc/arch

@ -0,0 +1,32 @@
/* Return nonzero value if number is negative.
Copyright (C) 1997 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
#include <math.h>
#include "math_private.h"
int
__signbitl (long double x)
{
int32_t e;
GET_LDOUBLE_EXP (e, x);
return e & 0x8000;
}

@ -36,6 +36,7 @@ local genericSources =
s_isnan.c s_isnanf.c
s_ldexp.c s_ldexpf.c #s_ldexpl.c
s_modf.c s_modff.c # s_modfl.c
s_signbit.c s_signbitl.c
s_round.c s_roundf.c # s_roundl.c
s_signgam.c
s_tanh.c s_tanhf.c