From fc85c874b585778fe2eae90ab562103b7c8a7b6f Mon Sep 17 00:00:00 2001 From: Charles Forsyth Date: Sun, 18 May 2014 15:32:02 +0100 Subject: revert to 626 to undo unintended push --- lib9/setfcr-Solaris-sparc.c | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 lib9/setfcr-Solaris-sparc.c (limited to 'lib9/setfcr-Solaris-sparc.c') diff --git a/lib9/setfcr-Solaris-sparc.c b/lib9/setfcr-Solaris-sparc.c deleted file mode 100644 index 405e9cf2..00000000 --- a/lib9/setfcr-Solaris-sparc.c +++ /dev/null @@ -1,42 +0,0 @@ -/* This code is a little awkward. If somebody who understands Solaris - better would tell me an idiomatic way to invoke equivalent - behavior, I'd be grateful. ehg@bell-labs.com */ - -#include "lib9.h" - -ulong -getfcr(void) -{ - ulong v; - - asm(" st %fsr, [%fp-8]"); - return v; -} - -void -setfcr(ulong v) -{ - ulong vv; - - vv = (getfcr() & ~FPFCR) | (v & FPFCR); - asm(" ld [%fp-4], %fsr"); -} - -ulong -getfsr(void) -{ - ulong v; - - asm(" st %fsr, [%fp-8]"); - return v; -} - -void -setfsr(ulong v) -{ - ulong vv; - - vv = (getfsr() & ~FPFSR) | (v & FPFSR); - asm(" ld [%fp-4], %fsr"); -} - -- cgit v1.2.3