File:  [DVB] / dietlibc / i386 / sinh.S
Revision 1.3: download - view: text, annotated - select for diffs
Fri Dec 17 19:22:11 2004 UTC (19 years, 6 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 sinhf,sinh,sinhl
	.type	sinhf,@function
	.type	sinh,@function
	.type	sinhl,@function
sinhf:
	fldl2e
	fmuls 4(%esp)
	jmp finsinh
sinh:
	fldl2e
	fmull 4(%esp)
finsinh:
#ifdef __DYN_LIB
	PIC_SAVE
	PIC_INIT
	call __finexp@PLT
	PIC_RESTORE
#else
	call __finexp
#endif
	fld1
	fdiv %st(1),%st(0)	# st(0)=1/exp(x), st(1)=exp(x)
	fsubrp %st(0),%st(1)
	pushl $0x3f000000	# 1/2
	flds (%esp)
	popl %eax
	fmulp
	ret

sinhl:
	fldl2e
	fldt 4(%esp)
	fmulp
	jmp finsinh

.Lende:
.size    sinh,.Lende-sinh
.size    sinhf,.Lende-sinhf
.size    sinhl,.Lende-sinhl

LinuxTV legacy CVS <linuxtv.org/cvs>