Use proper variable typing

Orig-Change-Id: If5c33d90b33f538448ac12e7bee94b4b9173d39c
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
This commit is contained in:
Bruce Beare 2010-10-11 12:08:07 -07:00 committed by David 'Digit' Turner
parent 832a86eaba
commit 4029e0e7cb
2 changed files with 5 additions and 3 deletions

View File

@ -153,7 +153,8 @@ feholdexcept(fenv_t *envp)
int int
feupdateenv(const fenv_t *envp) feupdateenv(const fenv_t *envp)
{ {
int mxcsr, status; int mxcsr;
short status;
__fnstsw(&status); __fnstsw(&status);
if (__HAS_SSE()) if (__HAS_SSE())

View File

@ -102,7 +102,7 @@ extern const fenv_t __fe_dfl_env;
#define __fnclex() __asm __volatile("fnclex") #define __fnclex() __asm __volatile("fnclex")
#define __fnstenv(__env) __asm __volatile("fnstenv %0" : "=m" (*(__env))) #define __fnstenv(__env) __asm __volatile("fnstenv %0" : "=m" (*(__env)))
#define __fnstcw(__cw) __asm __volatile("fnstcw %0" : "=m" (*(__cw))) #define __fnstcw(__cw) __asm __volatile("fnstcw %0" : "=m" (*(__cw)))
#define __fnstsw(__sw) __asm __volatile("fnstsw %0" : "=am" (*(__sw))) #define __fnstsw(__sw) __asm __volatile("fnstsw %0" : "=a" (*(__sw)))
#define __fwait() __asm __volatile("fwait") #define __fwait() __asm __volatile("fwait")
#define __ldmxcsr(__csr) __asm __volatile("ldmxcsr %0" : : "m" (__csr)) #define __ldmxcsr(__csr) __asm __volatile("ldmxcsr %0" : : "m" (__csr))
#define __stmxcsr(__csr) __asm __volatile("stmxcsr %0" : "=m" (*(__csr))) #define __stmxcsr(__csr) __asm __volatile("stmxcsr %0" : "=m" (*(__csr)))
@ -148,7 +148,8 @@ int feraiseexcept(int __excepts);
static __inline int static __inline int
fetestexcept(int __excepts) fetestexcept(int __excepts)
{ {
int __mxcsr, __status; int __mxcsr;
short __status;
__fnstsw(&__status); __fnstsw(&__status);
if (__HAS_SSE()) if (__HAS_SSE())