NetBSD/lib/libc/arch/x86_64/gen/fpgetsticky.S
thorpej 5d3e829423 Add internal names for fp{get,set}{mask,round,sticky}(), and
externally-visible weak aliases for the internal names.
2002-01-13 21:45:39 +00:00

20 lines
327 B
ArmAsm

/* $NetBSD: fpgetsticky.S,v 1.2 2002/01/13 21:45:51 thorpej Exp $ */
/*
* Written by J.T. Conklin, Apr 4, 1995
* Public domain.
*/
#include <machine/asm.h>
#ifdef WEAK_ALIAS
WEAK_ALIAS(fpgetsticky, _fpgetsticky)
ENTRY(_fpgetsticky)
#else
ENTRY(fpgetsticky)
#endif
fnstsw -4(%rsp)
movl -4(%rsp),%eax
andl $63,%eax
ret