Pacify gcc 2.95.3: put an "=" output constraint at the start in an

asm argument.
Also, wrap >80 character line.
This commit is contained in:
simonb 2001-09-22 06:30:17 +00:00
parent 8573719e3d
commit 6879b04b7e
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fpu_status.h,v 1.2 1997/04/01 16:35:12 matthias Exp $ */
/* $NetBSD: fpu_status.h,v 1.3 2001/09/22 06:30:17 simonb Exp $ */
/*
* IEEE floating point support for NS32081 and NS32381 fpus.
@ -63,7 +63,10 @@
#define FPC_DZF 0x4000 /* Divide by zero flag */
#define FPC_UNDE 0x8000 /* Soft Underflow enable, requires FPC_UEN */
#define GET_SET_FSR(val) ({int _tmp; asm volatile("sfsr %0; lfsr %1" : "&=g" (_tmp): "g" (val)); _tmp;})
#define GET_SET_FSR(val) ({ \
int _tmp; \
asm volatile("sfsr %0; lfsr %1" : "=&g" (_tmp): "g" (val)); _tmp; \
})
#define GET_FSR() ({int _tmp; asm volatile("sfsr %0" : "=g" (_tmp)); _tmp;})
#define SET_FSR(val) ({asm volatile("lfsr %0" :: "g" (val));})