xref: /haiku/src/system/libroot/posix/musl/math/x86/atan.s (revision f504f61099b010fbfa94b1cc63d2e9072c7f7185)
1.global atan
2.type atan,@function
3atan:
4	fldl 4(%esp)
5	mov 8(%esp),%eax
6	add %eax,%eax
7	cmp $0x00200000,%eax
8	jb 1f
9	fld1
10	fpatan
11	ret
12		# subnormal x, return x with underflow
131:	fsts 4(%esp)
14	ret
15