repo.or.cz
/
glibc
/
history.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
(_IO_init): Set _vtable_offset to 0.
[glibc/history.git]
/
sysdeps
/
libm-i387
/
s_cosl.S
blob
61c9010c994c7ae0bc13f5423048d5b7761196b8
1
/*
2
* Written by J.T. Conklin <jtc@netbsd.org>.
3
* Public domain.
4
*
5
* Adapted for `long double' by Ulrich Drepper <drepper@cygnus.com>.
6
*/
7
8
#include <machine/asm.h>
9
10
RCSID("$NetBSD: $")
11
12
ENTRY(__cosl)
13
fldt 4(%esp)
14
fcos
15
fnstsw %ax
16
testl $0x400,%eax
17
jnz 1f
18
ret
19
.align ALIGNARG(4)
20
1: fldpi
21
fadd %st(0)
22
fxch %st(1)
23
2: fprem1
24
fnstsw %ax
25
testl $0x400,%eax
26
jnz 2b
27
fstp %st(1)
28
fcos
29
ret
30
END (__cosl)
31
weak_alias (__cosl, cosl)