2022-06-19 17:47:00 +02:00
|
|
|
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
|
|
|
|
2022-06-19 21:27:38 +02:00
|
|
|
.global tan;
|
|
|
|
|
2022-06-19 17:47:00 +02:00
|
|
|
tan.L0:
|
|
|
|
.quad 0xffffffffffffffff
|
|
|
|
|
|
|
|
tan:
|
|
|
|
fldl 4(%esp)
|
|
|
|
fptan
|
|
|
|
fstsw
|
|
|
|
fstp %st(0)
|
|
|
|
sahf
|
|
|
|
jnp tan.L1
|
2022-06-19 21:27:38 +02:00
|
|
|
fstp %st(0) /*- if exception, there is nothing on the stack */
|
2022-06-19 17:47:00 +02:00
|
|
|
fldl tan.L0
|
|
|
|
tan.L1:
|
|
|
|
ret
|