forked from KolibriOS/kolibrios
Magomed Kostoev (mkostoevr)
1f4d74f500
git-svn-id: svn://kolibrios.org@8622 a494cfbc-eb01-0410-851d-a64ba20cac60
17 lines
268 B
ArmAsm
17 lines
268 B
ArmAsm
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
|
#include "libc/asm.h"
|
|
L0:
|
|
.quad 0xffffffffffffffff
|
|
|
|
MK_C_SYM(tan)
|
|
fldl 4(%esp)
|
|
fptan
|
|
fstsw
|
|
fstp %st(0)
|
|
sahf
|
|
jnp L1
|
|
/* fstp %st(0) - if exception, there is nothing on the stack */
|
|
fldl L0
|
|
L1:
|
|
ret
|