minix/lib/nbsd_libc/arch/m68k/gen/fpsetround.S
Gianluca Guida b6cbf7203b Import unmodified NetBSD libc in trunk
This patch imports the unmodified current version of NetBSD libc.
The NetBSD includes are in /nbsd_include, while the libc code itself is 
split between lib/nbsd_libc and common/lib/libc.
2011-02-14 19:36:03 +00:00

23 lines
406 B
ArmAsm

/* $NetBSD: fpsetround.S,v 1.8 2002/01/13 21:45:44 thorpej Exp $ */
/*
* Written by J.T. Conklin, Apr 6, 1995
* Public Domain.
*/
#include <machine/asm.h>
#ifdef WEAK_ALIAS
WEAK_ALIAS(fpsetround, _fpsetround)
ENTRY(_fpsetround)
#else
ENTRY(fpsetround)
#endif
movel %d2,%sp@-
fmovel %fpcr,%d1
movel %sp@(8),%d2
bfextu %d1{#26,#2},%d0
bfins %d2,%d1{#26:#2}
movel %sp@+,%d2
fmovel %d1,%fpcr
rts