2003-04-30 16:21:03 +00:00
|
|
|
#include <machine/asm.h>
|
|
|
|
#if defined(LIBC_SCCS)
|
|
|
|
RCSID("$NetBSD: fabs.S,v 1.4 1997/07/16 14:37:16 christos Exp $")
|
|
|
|
#endif
|
|
|
|
__FBSDID("$FreeBSD$");
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Ok, this sucks. Is there really no way to push an xmm register onto
|
|
|
|
* the FP stack directly?
|
|
|
|
*/
|
|
|
|
|
|
|
|
ENTRY(fabs)
|
|
|
|
movsd %xmm0, -8(%rsp)
|
|
|
|
fldl -8(%rsp)
|
|
|
|
fabs
|
2003-09-26 01:49:48 +00:00
|
|
|
fstpl -8(%rsp)
|
2003-04-30 16:21:03 +00:00
|
|
|
movsd -8(%rsp),%xmm0
|
|
|
|
ret
|