summaryrefslogtreecommitdiff
path: root/libm/powerpc/e500/fpu
diff options
context:
space:
mode:
Diffstat (limited to 'libm/powerpc/e500/fpu')
-rw-r--r--libm/powerpc/e500/fpu/fedisblxcpt.c10
-rw-r--r--libm/powerpc/e500/fpu/feenablxcpt.c10
2 files changed, 10 insertions, 10 deletions
diff --git a/libm/powerpc/e500/fpu/fedisblxcpt.c b/libm/powerpc/e500/fpu/fedisblxcpt.c
index d2c5caba7..aeca87bc6 100644
--- a/libm/powerpc/e500/fpu/fedisblxcpt.c
+++ b/libm/powerpc/e500/fpu/fedisblxcpt.c
@@ -31,15 +31,15 @@ fedisableexcept (int excepts)
INTERNAL_SYSCALL (prctl, err, 2, PR_GET_FPEXC, &pflags);
/* Save old enable bits. */
- if (pflags & PR_FP_EXC_OVF)
+ if (pflags & PR_FP_EXC_OVF)
result |= FE_OVERFLOW;
- if (pflags & PR_FP_EXC_UND)
+ if (pflags & PR_FP_EXC_UND)
result |= FE_UNDERFLOW;
- if (pflags & PR_FP_EXC_INV)
+ if (pflags & PR_FP_EXC_INV)
result |= FE_INVALID;
- if (pflags & PR_FP_EXC_DIV)
+ if (pflags & PR_FP_EXC_DIV)
result |= FE_DIVBYZERO;
- if (pflags & PR_FP_EXC_RES)
+ if (pflags & PR_FP_EXC_RES)
result |= FE_INEXACT;
if (excepts & FE_INEXACT)
diff --git a/libm/powerpc/e500/fpu/feenablxcpt.c b/libm/powerpc/e500/fpu/feenablxcpt.c
index 4f00a918d..999fdd734 100644
--- a/libm/powerpc/e500/fpu/feenablxcpt.c
+++ b/libm/powerpc/e500/fpu/feenablxcpt.c
@@ -31,15 +31,15 @@ feenableexcept (int excepts)
INTERNAL_SYSCALL (prctl, err, 2, PR_GET_FPEXC, &pflags);
/* Save old enable bits. */
- if (pflags & PR_FP_EXC_OVF)
+ if (pflags & PR_FP_EXC_OVF)
result |= FE_OVERFLOW;
- if (pflags & PR_FP_EXC_UND)
+ if (pflags & PR_FP_EXC_UND)
result |= FE_UNDERFLOW;
- if (pflags & PR_FP_EXC_INV)
+ if (pflags & PR_FP_EXC_INV)
result |= FE_INVALID;
- if (pflags & PR_FP_EXC_DIV)
+ if (pflags & PR_FP_EXC_DIV)
result |= FE_DIVBYZERO;
- if (pflags & PR_FP_EXC_RES)
+ if (pflags & PR_FP_EXC_RES)
result |= FE_INEXACT;
if (excepts & FE_INEXACT)