summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/floatingpoint.h
diff options
context:
space:
mode:
authoralm <alm@FreeBSD.org>1993-08-27 05:09:38 +0000
committeralm <alm@FreeBSD.org>1993-08-27 05:09:38 +0000
commit3d93ce434ad5d1f0d85e9bff6ef0795f9595b579 (patch)
treebbff268b5ec60afbd55737e0b02686e0b8dcf5e2 /sys/i386/include/floatingpoint.h
parent3362e19b0294d7df74a6fd5dbb8faa18a2f5bf09 (diff)
downloadFreeBSD-src-3d93ce434ad5d1f0d85e9bff6ef0795f9595b579.zip
FreeBSD-src-3d93ce434ad5d1f0d85e9bff6ef0795f9595b579.tar.gz
prefixed inline functions' parameter names with _ and declared
the return type explicitly.
Diffstat (limited to 'sys/i386/include/floatingpoint.h')
-rw-r--r--sys/i386/include/floatingpoint.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/sys/i386/include/floatingpoint.h b/sys/i386/include/floatingpoint.h
index bc69d2e..6e2ebec 100644
--- a/sys/i386/include/floatingpoint.h
+++ b/sys/i386/include/floatingpoint.h
@@ -55,36 +55,36 @@
/*
* return the contents of a FP register
*/
-static __inline__
-__fpgetreg(reg)
+static __inline__ int
+__fpgetreg(int _reg)
{
- unsigned short mem;
+ unsigned short _mem;
- switch(reg) {
+ switch(_reg) {
default:
- fnstcw(&mem);
+ fnstcw(&_mem);
break;
case FP_STKY_REG:
- fnstsw(&mem);
+ fnstsw(&_mem);
break;
}
- return mem;
+ return _mem;
}
/*
* set a FP mode; return previous mode
*/
-static __inline__
-__fpsetreg(m, reg, fld, off)
+static __inline__ int
+__fpsetreg(int _m, int _reg, int _fld, int _off)
{
- unsigned env[7];
- unsigned p;
+ unsigned _env[7];
+ unsigned _p;
- fnstenv(env);
- p = (env[reg] & fld) >> off;
- env[reg] = (env[reg] & ~fld) | (m << off & fld);
- fldenv(env);
- return p;
+ fnstenv(_env);
+ _p = (_env[_reg] & _fld) >> _off;
+ _env[_reg] = (_env[_reg] & ~_fld) | (_m << _off & _fld);
+ fldenv(_env);
+ return _p;
}
#endif /* __i386__ */
OpenPOWER on IntegriCloud