Added missing [l]lrint[f|l]() functions.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16570 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-03-02 17:55:26 +00:00
parent f94b06f992
commit 22b4c9cace
7 changed files with 203 additions and 0 deletions

View File

@ -140,8 +140,10 @@ MergeObject posix_gnu_arch_$(TARGET_ARCH)_s.o :
s_frexp.S s_frexpf.S s_frexpl.S
s_isinfl.c
s_isnanl.c
s_llrint.S s_llrintf.S s_llrintl.S
s_log1p.S s_log1pf.S s_log1pl.S
s_logb.S s_logbf.S s_logbl.c
s_lrint.S s_lrintf.S s_lrintl.S
s_rint.S s_rintf.S s_rintl.c
s_scalbn.S s_scalbnf.S s_scalbnl.S
s_sin.S s_sinf.S s_sinl.S

View File

@ -0,0 +1,34 @@
/* Round argument to nearest integral value according to current rounding
direction.
Copyright (C) 1997, 2005 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 <sysdep.h>
.text
ENTRY(__llrint)
fldl 4(%esp)
subl $8, %esp
fistpll (%esp)
fwait
popl %eax
popl %edx
ret
END(__llrint)
weak_alias (__llrint, llrint)

View File

@ -0,0 +1,34 @@
/* Round argument to nearest integral value according to current rounding
direction.
Copyright (C) 1997, 2005 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 <sysdep.h>
.text
ENTRY(__llrintf)
flds 4(%esp)
subl $8, %esp
fistpll (%esp)
fwait
popl %eax
popl %edx
ret
END(__llrintf)
weak_alias (__llrintf, llrintf)

View File

@ -0,0 +1,34 @@
/* Round argument to nearest integral value according to current rounding
direction.
Copyright (C) 1997, 2005 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 <sysdep.h>
.text
ENTRY(__llrintl)
fldt 4(%esp)
subl $8, %esp
fistpll (%esp)
fwait
popl %eax
popl %edx
ret
END(__llrintl)
weak_alias (__llrintl, llrintl)

View File

@ -0,0 +1,33 @@
/* Round argument to nearest integral value according to current rounding
direction.
Copyright (C) 1997, 2005 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 <sysdep.h>
.text
ENTRY(__lrint)
fldl 4(%esp)
subl $4, %esp
fistpl (%esp)
fwait
popl %eax
ret
END(__lrint)
weak_alias (__lrint, lrint)

View File

@ -0,0 +1,33 @@
/* Round argument to nearest integral value according to current rounding
direction.
Copyright (C) 1997, 2005 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 <sysdep.h>
.text
ENTRY(__lrintf)
flds 4(%esp)
subl $4, %esp
fistpl (%esp)
fwait
popl %eax
ret
END(__lrintf)
weak_alias (__lrintf, lrintf)

View File

@ -0,0 +1,33 @@
/* Round argument to nearest integral value according to current rounding
direction.
Copyright (C) 1997, 2005 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 <sysdep.h>
.text
ENTRY(__lrintl)
fldt 4(%esp)
subl $4, %esp
fistpl (%esp)
fwait
popl %eax
ret
END(__lrintl)
weak_alias (__lrintl, lrintl)