Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8622 | Boppan | 1 | /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ |
2 | #include "libc/asm.h" |
||
3 | L0: |
||
4 | .quad 0xffffffffffffffff |
||
5 | |||
6 | MK_C_SYM(tan) |
||
7 | fldl 4(%esp) |
||
8 | fptan |
||
9 | fstsw |
||
10 | fstp %st(0) |
||
11 | sahf |
||
12 | jnp L1 |
||
13 | /* fstp %st(0) - if exception, there is nothing on the stack */ |
||
14 | fldl L0 |
||
15 | L1: |
||
16 | ret |