1/* $NetBSD: fpgetround.S,v 1.7 1999/10/25 23:48:10 thorpej Exp $ */ 2 3/* 4 * Written by J.T. Conklin, Apr 6, 1995 5 * Public domain. 6 */ 7 8#include <machine/asm.h> 9 10#ifdef WEAK_ALIAS 11WEAK_ALIAS(fpgetround, _fpgetround) 12ENTRY(_fpgetround) 13#else 14ENTRY(fpgetround) 15#endif 16 fmovel %fpcr,%d0 17 bfextu %d0{#26:#2},%d0 18 rts 19