Commit 033b8a33 authored by Liu Yu's avatar Liu Yu Committed by Kumar Gala

powerpc/math-emu: Remove redundant 'ret'

FP_DECL_EX is already used, so ret is redundant.
And FP_SET_EXCEPTION will add status into return value.
Signed-off-by: default avatarLiu Yu <yu.liu@freescale.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 463a8c01
...@@ -13,7 +13,6 @@ fadd(void *frD, void *frA, void *frB) ...@@ -13,7 +13,6 @@ fadd(void *frD, void *frA, void *frB)
FP_DECL_D(B); FP_DECL_D(B);
FP_DECL_D(R); FP_DECL_D(R);
FP_DECL_EX; FP_DECL_EX;
int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p\n", __func__, frD, frA, frB); printk("%s: %p %p %p\n", __func__, frD, frA, frB);
......
...@@ -14,7 +14,6 @@ fcmpo(u32 *ccr, int crfD, void *frA, void *frB) ...@@ -14,7 +14,6 @@ fcmpo(u32 *ccr, int crfD, void *frA, void *frB)
FP_DECL_EX; FP_DECL_EX;
int code[4] = { (1 << 3), (1 << 1), (1 << 2), (1 << 0) }; int code[4] = { (1 << 3), (1 << 1), (1 << 2), (1 << 0) };
long cmp; long cmp;
int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p (%08x) %d %p %p\n", __func__, ccr, *ccr, crfD, frA, frB); printk("%s: %p (%08x) %d %p %p\n", __func__, ccr, *ccr, crfD, frA, frB);
...@@ -29,7 +28,7 @@ fcmpo(u32 *ccr, int crfD, void *frA, void *frB) ...@@ -29,7 +28,7 @@ fcmpo(u32 *ccr, int crfD, void *frA, void *frB)
#endif #endif
if (A_c == FP_CLS_NAN || B_c == FP_CLS_NAN) if (A_c == FP_CLS_NAN || B_c == FP_CLS_NAN)
ret |= EFLAG_VXVC; FP_SET_EXCEPTION(EFLAG_VXVC);
FP_CMP_D(cmp, A, B, 2); FP_CMP_D(cmp, A, B, 2);
cmp = code[(cmp + 1) & 3]; cmp = code[(cmp + 1) & 3];
...@@ -44,5 +43,5 @@ fcmpo(u32 *ccr, int crfD, void *frA, void *frB) ...@@ -44,5 +43,5 @@ fcmpo(u32 *ccr, int crfD, void *frA, void *frB)
printk("CR: %08x\n", *ccr); printk("CR: %08x\n", *ccr);
#endif #endif
return ret; return FP_CUR_EXCEPTIONS;
} }
...@@ -13,7 +13,6 @@ fdiv(void *frD, void *frA, void *frB) ...@@ -13,7 +13,6 @@ fdiv(void *frD, void *frA, void *frB)
FP_DECL_D(B); FP_DECL_D(B);
FP_DECL_D(R); FP_DECL_D(R);
FP_DECL_EX; FP_DECL_EX;
int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p\n", __func__, frD, frA, frB); printk("%s: %p %p %p\n", __func__, frD, frA, frB);
...@@ -28,22 +27,22 @@ fdiv(void *frD, void *frA, void *frB) ...@@ -28,22 +27,22 @@ fdiv(void *frD, void *frA, void *frB)
#endif #endif
if (A_c == FP_CLS_ZERO && B_c == FP_CLS_ZERO) { if (A_c == FP_CLS_ZERO && B_c == FP_CLS_ZERO) {
ret |= EFLAG_VXZDZ; FP_SET_EXCEPTION(EFLAG_VXZDZ);
#ifdef DEBUG #ifdef DEBUG
printk("%s: FPSCR_VXZDZ raised\n", __func__); printk("%s: FPSCR_VXZDZ raised\n", __func__);
#endif #endif
} }
if (A_c == FP_CLS_INF && B_c == FP_CLS_INF) { if (A_c == FP_CLS_INF && B_c == FP_CLS_INF) {
ret |= EFLAG_VXIDI; FP_SET_EXCEPTION(EFLAG_VXIDI);
#ifdef DEBUG #ifdef DEBUG
printk("%s: FPSCR_VXIDI raised\n", __func__); printk("%s: FPSCR_VXIDI raised\n", __func__);
#endif #endif
} }
if (B_c == FP_CLS_ZERO && A_c != FP_CLS_ZERO) { if (B_c == FP_CLS_ZERO && A_c != FP_CLS_ZERO) {
ret |= EFLAG_DIVZERO; FP_SET_EXCEPTION(EFLAG_DIVZERO);
if (__FPU_TRAP_P(EFLAG_DIVZERO)) if (__FPU_TRAP_P(EFLAG_DIVZERO))
return ret; return FP_CUR_EXCEPTIONS;
} }
FP_DIV_D(R, A, B); FP_DIV_D(R, A, B);
......
...@@ -14,7 +14,6 @@ fdivs(void *frD, void *frA, void *frB) ...@@ -14,7 +14,6 @@ fdivs(void *frD, void *frA, void *frB)
FP_DECL_D(B); FP_DECL_D(B);
FP_DECL_D(R); FP_DECL_D(R);
FP_DECL_EX; FP_DECL_EX;
int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p\n", __func__, frD, frA, frB); printk("%s: %p %p %p\n", __func__, frD, frA, frB);
...@@ -29,22 +28,22 @@ fdivs(void *frD, void *frA, void *frB) ...@@ -29,22 +28,22 @@ fdivs(void *frD, void *frA, void *frB)
#endif #endif
if (A_c == FP_CLS_ZERO && B_c == FP_CLS_ZERO) { if (A_c == FP_CLS_ZERO && B_c == FP_CLS_ZERO) {
ret |= EFLAG_VXZDZ; FP_SET_EXCEPTION(EFLAG_VXZDZ);
#ifdef DEBUG #ifdef DEBUG
printk("%s: FPSCR_VXZDZ raised\n", __func__); printk("%s: FPSCR_VXZDZ raised\n", __func__);
#endif #endif
} }
if (A_c == FP_CLS_INF && B_c == FP_CLS_INF) { if (A_c == FP_CLS_INF && B_c == FP_CLS_INF) {
ret |= EFLAG_VXIDI; FP_SET_EXCEPTION(EFLAG_VXIDI);
#ifdef DEBUG #ifdef DEBUG
printk("%s: FPSCR_VXIDI raised\n", __func__); printk("%s: FPSCR_VXIDI raised\n", __func__);
#endif #endif
} }
if (B_c == FP_CLS_ZERO && A_c != FP_CLS_ZERO) { if (B_c == FP_CLS_ZERO && A_c != FP_CLS_ZERO) {
ret |= EFLAG_DIVZERO; FP_SET_EXCEPTION(EFLAG_DIVZERO);
if (__FPU_TRAP_P(EFLAG_DIVZERO)) if (__FPU_TRAP_P(EFLAG_DIVZERO))
return ret; return FP_CUR_EXCEPTIONS;
} }
FP_DIV_D(R, A, B); FP_DIV_D(R, A, B);
......
...@@ -15,7 +15,6 @@ fmadd(void *frD, void *frA, void *frB, void *frC) ...@@ -15,7 +15,6 @@ fmadd(void *frD, void *frA, void *frB, void *frC)
FP_DECL_D(C); FP_DECL_D(C);
FP_DECL_D(T); FP_DECL_D(T);
FP_DECL_EX; FP_DECL_EX;
int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC); printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC);
...@@ -33,12 +32,12 @@ fmadd(void *frD, void *frA, void *frB, void *frC) ...@@ -33,12 +32,12 @@ fmadd(void *frD, void *frA, void *frB, void *frC)
if ((A_c == FP_CLS_INF && C_c == FP_CLS_ZERO) || if ((A_c == FP_CLS_INF && C_c == FP_CLS_ZERO) ||
(A_c == FP_CLS_ZERO && C_c == FP_CLS_INF)) (A_c == FP_CLS_ZERO && C_c == FP_CLS_INF))
ret |= EFLAG_VXIMZ; FP_SET_EXCEPTION(EFLAG_VXIMZ);
FP_MUL_D(T, A, C); FP_MUL_D(T, A, C);
if (T_s != B_s && T_c == FP_CLS_INF && B_c == FP_CLS_INF) if (T_s != B_s && T_c == FP_CLS_INF && B_c == FP_CLS_INF)
ret |= EFLAG_VXISI; FP_SET_EXCEPTION(EFLAG_VXISI);
FP_ADD_D(R, T, B); FP_ADD_D(R, T, B);
......
...@@ -16,7 +16,6 @@ fmadds(void *frD, void *frA, void *frB, void *frC) ...@@ -16,7 +16,6 @@ fmadds(void *frD, void *frA, void *frB, void *frC)
FP_DECL_D(C); FP_DECL_D(C);
FP_DECL_D(T); FP_DECL_D(T);
FP_DECL_EX; FP_DECL_EX;
int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC); printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC);
...@@ -34,12 +33,12 @@ fmadds(void *frD, void *frA, void *frB, void *frC) ...@@ -34,12 +33,12 @@ fmadds(void *frD, void *frA, void *frB, void *frC)
if ((A_c == FP_CLS_INF && C_c == FP_CLS_ZERO) || if ((A_c == FP_CLS_INF && C_c == FP_CLS_ZERO) ||
(A_c == FP_CLS_ZERO && C_c == FP_CLS_INF)) (A_c == FP_CLS_ZERO && C_c == FP_CLS_INF))
ret |= EFLAG_VXIMZ; FP_SET_EXCEPTION(EFLAG_VXIMZ);
FP_MUL_D(T, A, C); FP_MUL_D(T, A, C);
if (T_s != B_s && T_c == FP_CLS_INF && B_c == FP_CLS_INF) if (T_s != B_s && T_c == FP_CLS_INF && B_c == FP_CLS_INF)
ret |= EFLAG_VXISI; FP_SET_EXCEPTION(EFLAG_VXISI);
FP_ADD_D(R, T, B); FP_ADD_D(R, T, B);
......
...@@ -15,7 +15,6 @@ fmsub(void *frD, void *frA, void *frB, void *frC) ...@@ -15,7 +15,6 @@ fmsub(void *frD, void *frA, void *frB, void *frC)
FP_DECL_D(C); FP_DECL_D(C);
FP_DECL_D(T); FP_DECL_D(T);
FP_DECL_EX; FP_DECL_EX;
int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC); printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC);
...@@ -33,7 +32,7 @@ fmsub(void *frD, void *frA, void *frB, void *frC) ...@@ -33,7 +32,7 @@ fmsub(void *frD, void *frA, void *frB, void *frC)
if ((A_c == FP_CLS_INF && C_c == FP_CLS_ZERO) || if ((A_c == FP_CLS_INF && C_c == FP_CLS_ZERO) ||
(A_c == FP_CLS_ZERO && C_c == FP_CLS_INF)) (A_c == FP_CLS_ZERO && C_c == FP_CLS_INF))
ret |= EFLAG_VXIMZ; FP_SET_EXCEPTION(EFLAG_VXIMZ);
FP_MUL_D(T, A, C); FP_MUL_D(T, A, C);
...@@ -41,7 +40,7 @@ fmsub(void *frD, void *frA, void *frB, void *frC) ...@@ -41,7 +40,7 @@ fmsub(void *frD, void *frA, void *frB, void *frC)
B_s ^= 1; B_s ^= 1;
if (T_s != B_s && T_c == FP_CLS_INF && B_c == FP_CLS_INF) if (T_s != B_s && T_c == FP_CLS_INF && B_c == FP_CLS_INF)
ret |= EFLAG_VXISI; FP_SET_EXCEPTION(EFLAG_VXISI);
FP_ADD_D(R, T, B); FP_ADD_D(R, T, B);
......
...@@ -16,7 +16,6 @@ fmsubs(void *frD, void *frA, void *frB, void *frC) ...@@ -16,7 +16,6 @@ fmsubs(void *frD, void *frA, void *frB, void *frC)
FP_DECL_D(C); FP_DECL_D(C);
FP_DECL_D(T); FP_DECL_D(T);
FP_DECL_EX; FP_DECL_EX;
int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC); printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC);
...@@ -34,7 +33,7 @@ fmsubs(void *frD, void *frA, void *frB, void *frC) ...@@ -34,7 +33,7 @@ fmsubs(void *frD, void *frA, void *frB, void *frC)
if ((A_c == FP_CLS_INF && C_c == FP_CLS_ZERO) || if ((A_c == FP_CLS_INF && C_c == FP_CLS_ZERO) ||
(A_c == FP_CLS_ZERO && C_c == FP_CLS_INF)) (A_c == FP_CLS_ZERO && C_c == FP_CLS_INF))
ret |= EFLAG_VXIMZ; FP_SET_EXCEPTION(EFLAG_VXIMZ);
FP_MUL_D(T, A, C); FP_MUL_D(T, A, C);
...@@ -42,7 +41,7 @@ fmsubs(void *frD, void *frA, void *frB, void *frC) ...@@ -42,7 +41,7 @@ fmsubs(void *frD, void *frA, void *frB, void *frC)
B_s ^= 1; B_s ^= 1;
if (T_s != B_s && T_c == FP_CLS_INF && B_c == FP_CLS_INF) if (T_s != B_s && T_c == FP_CLS_INF && B_c == FP_CLS_INF)
ret |= EFLAG_VXISI; FP_SET_EXCEPTION(EFLAG_VXISI);
FP_ADD_D(R, T, B); FP_ADD_D(R, T, B);
......
...@@ -13,7 +13,6 @@ fmul(void *frD, void *frA, void *frB) ...@@ -13,7 +13,6 @@ fmul(void *frD, void *frA, void *frB)
FP_DECL_D(B); FP_DECL_D(B);
FP_DECL_D(R); FP_DECL_D(R);
FP_DECL_EX; FP_DECL_EX;
int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p\n", __func__, frD, frA, frB); printk("%s: %p %p %p\n", __func__, frD, frA, frB);
...@@ -31,7 +30,7 @@ fmul(void *frD, void *frA, void *frB) ...@@ -31,7 +30,7 @@ fmul(void *frD, void *frA, void *frB)
if ((A_c == FP_CLS_INF && B_c == FP_CLS_ZERO) || if ((A_c == FP_CLS_INF && B_c == FP_CLS_ZERO) ||
(A_c == FP_CLS_ZERO && B_c == FP_CLS_INF)) (A_c == FP_CLS_ZERO && B_c == FP_CLS_INF))
ret |= EFLAG_VXIMZ; FP_SET_EXCEPTION(EFLAG_VXIMZ);
FP_MUL_D(R, A, B); FP_MUL_D(R, A, B);
......
...@@ -14,7 +14,6 @@ fmuls(void *frD, void *frA, void *frB) ...@@ -14,7 +14,6 @@ fmuls(void *frD, void *frA, void *frB)
FP_DECL_D(B); FP_DECL_D(B);
FP_DECL_D(R); FP_DECL_D(R);
FP_DECL_EX; FP_DECL_EX;
int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p\n", __func__, frD, frA, frB); printk("%s: %p %p %p\n", __func__, frD, frA, frB);
...@@ -32,7 +31,7 @@ fmuls(void *frD, void *frA, void *frB) ...@@ -32,7 +31,7 @@ fmuls(void *frD, void *frA, void *frB)
if ((A_c == FP_CLS_INF && B_c == FP_CLS_ZERO) || if ((A_c == FP_CLS_INF && B_c == FP_CLS_ZERO) ||
(A_c == FP_CLS_ZERO && B_c == FP_CLS_INF)) (A_c == FP_CLS_ZERO && B_c == FP_CLS_INF))
ret |= EFLAG_VXIMZ; FP_SET_EXCEPTION(EFLAG_VXIMZ);
FP_MUL_D(R, A, B); FP_MUL_D(R, A, B);
......
...@@ -15,7 +15,6 @@ fnmadd(void *frD, void *frA, void *frB, void *frC) ...@@ -15,7 +15,6 @@ fnmadd(void *frD, void *frA, void *frB, void *frC)
FP_DECL_D(C); FP_DECL_D(C);
FP_DECL_D(T); FP_DECL_D(T);
FP_DECL_EX; FP_DECL_EX;
int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC); printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC);
...@@ -33,12 +32,12 @@ fnmadd(void *frD, void *frA, void *frB, void *frC) ...@@ -33,12 +32,12 @@ fnmadd(void *frD, void *frA, void *frB, void *frC)
if ((A_c == FP_CLS_INF && C_c == FP_CLS_ZERO) || if ((A_c == FP_CLS_INF && C_c == FP_CLS_ZERO) ||
(A_c == FP_CLS_ZERO && C_c == FP_CLS_INF)) (A_c == FP_CLS_ZERO && C_c == FP_CLS_INF))
ret |= EFLAG_VXIMZ; FP_SET_EXCEPTION(EFLAG_VXIMZ);
FP_MUL_D(T, A, C); FP_MUL_D(T, A, C);
if (T_s != B_s && T_c == FP_CLS_INF && B_c == FP_CLS_INF) if (T_s != B_s && T_c == FP_CLS_INF && B_c == FP_CLS_INF)
ret |= EFLAG_VXISI; FP_SET_EXCEPTION(EFLAG_VXISI);
FP_ADD_D(R, T, B); FP_ADD_D(R, T, B);
......
...@@ -16,7 +16,6 @@ fnmadds(void *frD, void *frA, void *frB, void *frC) ...@@ -16,7 +16,6 @@ fnmadds(void *frD, void *frA, void *frB, void *frC)
FP_DECL_D(C); FP_DECL_D(C);
FP_DECL_D(T); FP_DECL_D(T);
FP_DECL_EX; FP_DECL_EX;
int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC); printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC);
...@@ -34,12 +33,12 @@ fnmadds(void *frD, void *frA, void *frB, void *frC) ...@@ -34,12 +33,12 @@ fnmadds(void *frD, void *frA, void *frB, void *frC)
if ((A_c == FP_CLS_INF && C_c == FP_CLS_ZERO) || if ((A_c == FP_CLS_INF && C_c == FP_CLS_ZERO) ||
(A_c == FP_CLS_ZERO && C_c == FP_CLS_INF)) (A_c == FP_CLS_ZERO && C_c == FP_CLS_INF))
ret |= EFLAG_VXIMZ; FP_SET_EXCEPTION(EFLAG_VXIMZ);
FP_MUL_D(T, A, C); FP_MUL_D(T, A, C);
if (T_s != B_s && T_c == FP_CLS_INF && B_c == FP_CLS_INF) if (T_s != B_s && T_c == FP_CLS_INF && B_c == FP_CLS_INF)
ret |= EFLAG_VXISI; FP_SET_EXCEPTION(EFLAG_VXISI);
FP_ADD_D(R, T, B); FP_ADD_D(R, T, B);
......
...@@ -15,7 +15,6 @@ fnmsub(void *frD, void *frA, void *frB, void *frC) ...@@ -15,7 +15,6 @@ fnmsub(void *frD, void *frA, void *frB, void *frC)
FP_DECL_D(C); FP_DECL_D(C);
FP_DECL_D(T); FP_DECL_D(T);
FP_DECL_EX; FP_DECL_EX;
int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC); printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC);
...@@ -33,7 +32,7 @@ fnmsub(void *frD, void *frA, void *frB, void *frC) ...@@ -33,7 +32,7 @@ fnmsub(void *frD, void *frA, void *frB, void *frC)
if ((A_c == FP_CLS_INF && C_c == FP_CLS_ZERO) || if ((A_c == FP_CLS_INF && C_c == FP_CLS_ZERO) ||
(A_c == FP_CLS_ZERO && C_c == FP_CLS_INF)) (A_c == FP_CLS_ZERO && C_c == FP_CLS_INF))
ret |= EFLAG_VXIMZ; FP_SET_EXCEPTION(EFLAG_VXIMZ);
FP_MUL_D(T, A, C); FP_MUL_D(T, A, C);
...@@ -41,7 +40,7 @@ fnmsub(void *frD, void *frA, void *frB, void *frC) ...@@ -41,7 +40,7 @@ fnmsub(void *frD, void *frA, void *frB, void *frC)
B_s ^= 1; B_s ^= 1;
if (T_s != B_s && T_c == FP_CLS_INF && B_c == FP_CLS_INF) if (T_s != B_s && T_c == FP_CLS_INF && B_c == FP_CLS_INF)
ret |= EFLAG_VXISI; FP_SET_EXCEPTION(EFLAG_VXISI);
FP_ADD_D(R, T, B); FP_ADD_D(R, T, B);
......
...@@ -16,7 +16,6 @@ fnmsubs(void *frD, void *frA, void *frB, void *frC) ...@@ -16,7 +16,6 @@ fnmsubs(void *frD, void *frA, void *frB, void *frC)
FP_DECL_D(C); FP_DECL_D(C);
FP_DECL_D(T); FP_DECL_D(T);
FP_DECL_EX; FP_DECL_EX;
int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC); printk("%s: %p %p %p %p\n", __func__, frD, frA, frB, frC);
...@@ -34,7 +33,7 @@ fnmsubs(void *frD, void *frA, void *frB, void *frC) ...@@ -34,7 +33,7 @@ fnmsubs(void *frD, void *frA, void *frB, void *frC)
if ((A_c == FP_CLS_INF && C_c == FP_CLS_ZERO) || if ((A_c == FP_CLS_INF && C_c == FP_CLS_ZERO) ||
(A_c == FP_CLS_ZERO && C_c == FP_CLS_INF)) (A_c == FP_CLS_ZERO && C_c == FP_CLS_INF))
ret |= EFLAG_VXIMZ; FP_SET_EXCEPTION(EFLAG_VXIMZ);
FP_MUL_D(T, A, C); FP_MUL_D(T, A, C);
...@@ -42,7 +41,7 @@ fnmsubs(void *frD, void *frA, void *frB, void *frC) ...@@ -42,7 +41,7 @@ fnmsubs(void *frD, void *frA, void *frB, void *frC)
B_s ^= 1; B_s ^= 1;
if (T_s != B_s && T_c == FP_CLS_INF && B_c == FP_CLS_INF) if (T_s != B_s && T_c == FP_CLS_INF && B_c == FP_CLS_INF)
ret |= EFLAG_VXISI; FP_SET_EXCEPTION(EFLAG_VXISI);
FP_ADD_D(R, T, B); FP_ADD_D(R, T, B);
......
...@@ -12,7 +12,6 @@ fsqrt(void *frD, void *frB) ...@@ -12,7 +12,6 @@ fsqrt(void *frD, void *frB)
FP_DECL_D(B); FP_DECL_D(B);
FP_DECL_D(R); FP_DECL_D(R);
FP_DECL_EX; FP_DECL_EX;
int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p %p\n", __func__, frD, frB); printk("%s: %p %p %p %p\n", __func__, frD, frB);
...@@ -25,9 +24,9 @@ fsqrt(void *frD, void *frB) ...@@ -25,9 +24,9 @@ fsqrt(void *frD, void *frB)
#endif #endif
if (B_s && B_c != FP_CLS_ZERO) if (B_s && B_c != FP_CLS_ZERO)
ret |= EFLAG_VXSQRT; FP_SET_EXCEPTION(EFLAG_VXSQRT);
if (B_c == FP_CLS_NAN) if (B_c == FP_CLS_NAN)
ret |= EFLAG_VXSNAN; FP_SET_EXCEPTION(EFLAG_VXSNAN);
FP_SQRT_D(R, B); FP_SQRT_D(R, B);
......
...@@ -13,7 +13,6 @@ fsqrts(void *frD, void *frB) ...@@ -13,7 +13,6 @@ fsqrts(void *frD, void *frB)
FP_DECL_D(B); FP_DECL_D(B);
FP_DECL_D(R); FP_DECL_D(R);
FP_DECL_EX; FP_DECL_EX;
int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p %p\n", __func__, frD, frB); printk("%s: %p %p %p %p\n", __func__, frD, frB);
...@@ -26,9 +25,9 @@ fsqrts(void *frD, void *frB) ...@@ -26,9 +25,9 @@ fsqrts(void *frD, void *frB)
#endif #endif
if (B_s && B_c != FP_CLS_ZERO) if (B_s && B_c != FP_CLS_ZERO)
ret |= EFLAG_VXSQRT; FP_SET_EXCEPTION(EFLAG_VXSQRT);
if (B_c == FP_CLS_NAN) if (B_c == FP_CLS_NAN)
ret |= EFLAG_VXSNAN; FP_SET_EXCEPTION(EFLAG_VXSNAN);
FP_SQRT_D(R, B); FP_SQRT_D(R, B);
......
...@@ -13,7 +13,6 @@ fsub(void *frD, void *frA, void *frB) ...@@ -13,7 +13,6 @@ fsub(void *frD, void *frA, void *frB)
FP_DECL_D(B); FP_DECL_D(B);
FP_DECL_D(R); FP_DECL_D(R);
FP_DECL_EX; FP_DECL_EX;
int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p\n", __func__, frD, frA, frB); printk("%s: %p %p %p\n", __func__, frD, frA, frB);
...@@ -31,7 +30,7 @@ fsub(void *frD, void *frA, void *frB) ...@@ -31,7 +30,7 @@ fsub(void *frD, void *frA, void *frB)
B_s ^= 1; B_s ^= 1;
if (A_s != B_s && A_c == FP_CLS_INF && B_c == FP_CLS_INF) if (A_s != B_s && A_c == FP_CLS_INF && B_c == FP_CLS_INF)
ret |= EFLAG_VXISI; FP_SET_EXCEPTION(EFLAG_VXISI);
FP_ADD_D(R, A, B); FP_ADD_D(R, A, B);
......
...@@ -14,7 +14,6 @@ fsubs(void *frD, void *frA, void *frB) ...@@ -14,7 +14,6 @@ fsubs(void *frD, void *frA, void *frB)
FP_DECL_D(B); FP_DECL_D(B);
FP_DECL_D(R); FP_DECL_D(R);
FP_DECL_EX; FP_DECL_EX;
int ret = 0;
#ifdef DEBUG #ifdef DEBUG
printk("%s: %p %p %p\n", __func__, frD, frA, frB); printk("%s: %p %p %p\n", __func__, frD, frA, frB);
...@@ -32,7 +31,7 @@ fsubs(void *frD, void *frA, void *frB) ...@@ -32,7 +31,7 @@ fsubs(void *frD, void *frA, void *frB)
B_s ^= 1; B_s ^= 1;
if (A_s != B_s && A_c == FP_CLS_INF && B_c == FP_CLS_INF) if (A_s != B_s && A_c == FP_CLS_INF && B_c == FP_CLS_INF)
ret |= EFLAG_VXISI; FP_SET_EXCEPTION(EFLAG_VXISI);
FP_ADD_D(R, A, B); FP_ADD_D(R, A, B);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment