File:  [DVB] / dietlibc / i386 / exp.S
Revision 1.5: download - view: text, annotated - select for diffs
Fri Dec 17 19:22:11 2004 UTC (19 years, 5 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
  support libm.so (John K. Hohm)
  hack rpc/xdr.h to work with gcc 4 (Andreas Jochens via Gerrit Pape)

#include "PIC.h"

.text

.global expf,exp,expl,__finexp
	.type	 expf,@function
	.type	 exp,@function
	.type	 expl,@function
	.type	 __finexp,@function
expf:
	fldl2e
	fmuls 4(%esp)
	jmp .Lfinexp
expl:
	fldl2e
	fldt 4(%esp)
	fmulp
	jmp .Lfinexp
exp:
	fldl2e
	fmull 4(%esp)
#ifndef __DYN_LIB
__finexp:
#endif
.Lfinexp:
	fst	%st(1)
	frndint
	fst	%st(2)
	fsubrp
	f2xm1
	fld1
	faddp
	fscale
	ret

#ifdef __DYN_LIB
__finexp:
	PIC_RESTORE
	jmp .Lfinexp
#endif

.Lende:
.size    exp,.Lende-exp
.size    expl,.Lende-expl
.size    expf,.Lende-expf
.size    __finexp,.Lende-__finexp

LinuxTV legacy CVS <linuxtv.org/cvs>