fix getaddrinfo regression with AI_ADDRCONFIG on some configurations
[musl.git] / src / math / i386 / atan2.s
bloba7d2979b050cbdeec7989b208ad0e55e6ccc7f91
1 .global atan2
2 .type atan2,@function
3 atan2:
4 fldl 4(%esp)
5 fldl 12(%esp)
6 fpatan
7 fstl 4(%esp)
8 mov 8(%esp),%eax
9 add %eax,%eax
10 cmp $0x00200000,%eax
11 jae 1f
12 # subnormal x, return x with underflow
13 fnstsw %ax
14 and $16,%ax
15 jnz 1f
16 fsts 4(%esp)
17 1: ret