diff options
author | alm <alm@FreeBSD.org> | 1993-08-27 05:09:38 +0000 |
---|---|---|
committer | alm <alm@FreeBSD.org> | 1993-08-27 05:09:38 +0000 |
commit | 3d93ce434ad5d1f0d85e9bff6ef0795f9595b579 (patch) | |
tree | bbff268b5ec60afbd55737e0b02686e0b8dcf5e2 /sys/amd64/include/floatingpoint.h | |
parent | 3362e19b0294d7df74a6fd5dbb8faa18a2f5bf09 (diff) | |
download | FreeBSD-src-3d93ce434ad5d1f0d85e9bff6ef0795f9595b579.zip FreeBSD-src-3d93ce434ad5d1f0d85e9bff6ef0795f9595b579.tar.gz |
prefixed inline functions' parameter names with _ and declared
the return type explicitly.
Diffstat (limited to 'sys/amd64/include/floatingpoint.h')
-rw-r--r-- | sys/amd64/include/floatingpoint.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sys/amd64/include/floatingpoint.h b/sys/amd64/include/floatingpoint.h index bc69d2e..6e2ebec 100644 --- a/sys/amd64/include/floatingpoint.h +++ b/sys/amd64/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__ */ |