File:  [DVB] / dietlibc / i386 / fmod.S
Revision 1.3: download - view: text, annotated - select for diffs
Mon Sep 22 17:48:56 2003 UTC (20 years, 8 months ago) by sanjiyan
Branches: MAIN
CVS tags: HEAD
-fixed a little bug in the fmod.
-fixed a 64bit issue
-let setlocale return the constant C locale

.text
.type   fmod,@function
.type   fmodf,@function
.type   fmodl,@function
.type   __fmod2pi,@function
.global fmod, fmodl, fmodf, __fmod2pi

__fmod2pi:
	fldpi
	fadd %st(0)
	fxch
	jmp .Lfmod

fmodf:
	flds 8(%esp)		# y
	flds 4(%esp)		# x
	jmp .Lfmod
fmod:
	fldl 12(%esp)
	fldl 4(%esp)
.Lfmod:
	fprem
	fstsw %ax
	sahf
	jp .Lfmod
	fstp %st(1)
	ret

fmodl:
	fldt 16(%esp)
	fldt 4(%esp)
	jmp .Lfmod


.ende:
.size    fmod,.ende-fmod
.size    fmodl,.ende-fmodl
.size    fmodf,.ende-fmodf

LinuxTV legacy CVS <linuxtv.org/cvs>