about summary refs log tree commit diff
path: root/src/math/i386/modfl.s
blob: f93800830918e689d3ed656a4e0d00a5f92e0ecd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.global modfl
.type modfl,@function
modfl:
	mov 16(%esp),%eax
	fldt 4(%esp)
	fld1
	fld %st(1)
1:	fprem
	fstsw %ax
	sahf
	jp 1b
	fstp %st(1)
	fsubr %st(1)
	fstpt (%eax)
	ret