remove the trapb ops bracketing mf_fpcr, in this one case they aren't needed

This commit is contained in:
ross 2001-04-26 03:19:10 +00:00
parent 885770193a
commit 91a26b1052

View File

@ -1,4 +1,4 @@
/* $NetBSD: fpgetround.c,v 1.3 2000/06/14 17:24:58 cgd Exp $ */
/* $NetBSD: fpgetround.c,v 1.4 2001/04/26 03:19:10 ross Exp $ */
/*
* Copyright (c) 1995 Christopher G. Demetriou
@ -43,9 +43,7 @@ fpgetround()
double fpcrval;
u_int64_t old;
__asm__("trapb");
__asm__("mf_fpcr %0" : "=f" (fpcrval));
__asm__("trapb");
old = *(u_int64_t *)&fpcrval;
return ((old >> 58) & 0x3);