vm: fix a null dereference on out-of-memory
[minix.git] / lib / libc / arch / m68k / gen / fpgetround.S
blob29c3729325bb62332293f3d6d3ce9a6732b77960
1 /*      $NetBSD: fpgetround.S,v 1.8 2002/01/13 21:45:44 thorpej Exp $   */
3 /*
4  * Written by J.T. Conklin, Apr 6, 1995
5  * Public domain.
6  */
8 #include <machine/asm.h>
10 #ifdef WEAK_ALIAS
11 WEAK_ALIAS(fpgetround, _fpgetround)
12 ENTRY(_fpgetround)
13 #else
14 ENTRY(fpgetround)
15 #endif
16         fmovel %fpcr,%d0
17         bfextu %d0{#26:#2},%d0
18         rts