Lines Matching refs:fpscr
70 u32 vfp_double_normaliseround(int dd, struct vfp_double *vd, u32 fpscr, u32 exceptions, const char … in vfp_double_normaliseround() argument
129 rmode = fpscr & FPSCR_RMODE_MASK; in vfp_double_normaliseround()
208 struct vfp_double *vdm, u32 fpscr) in vfp_propagate_nan() argument
218 if (fpscr & FPSCR_DEFAULT_NAN) in vfp_propagate_nan()
250 static u32 vfp_double_fabs(int dd, int unused, int dm, u32 fpscr) in vfp_double_fabs() argument
256 static u32 vfp_double_fcpy(int dd, int unused, int dm, u32 fpscr) in vfp_double_fcpy() argument
262 static u32 vfp_double_fneg(int dd, int unused, int dm, u32 fpscr) in vfp_double_fneg() argument
268 static u32 vfp_double_fsqrt(int dd, int unused, int dm, u32 fpscr) in vfp_double_fsqrt() argument
279 ret = vfp_propagate_nan(vdp, &vdm, NULL, fpscr); in vfp_double_fsqrt()
349 return vfp_double_normaliseround(dd, &vdd, fpscr, 0, "fsqrt"); in vfp_double_fsqrt()
358 static u32 vfp_compare(int dd, int signal_on_qnan, int dm, u32 fpscr) in vfp_compare() argument
419 static u32 vfp_double_fcmp(int dd, int unused, int dm, u32 fpscr) in vfp_double_fcmp() argument
421 return vfp_compare(dd, 0, dm, fpscr); in vfp_double_fcmp()
424 static u32 vfp_double_fcmpe(int dd, int unused, int dm, u32 fpscr) in vfp_double_fcmpe() argument
426 return vfp_compare(dd, 1, dm, fpscr); in vfp_double_fcmpe()
429 static u32 vfp_double_fcmpz(int dd, int unused, int dm, u32 fpscr) in vfp_double_fcmpz() argument
431 return vfp_compare(dd, 0, VFP_REG_ZERO, fpscr); in vfp_double_fcmpz()
434 static u32 vfp_double_fcmpez(int dd, int unused, int dm, u32 fpscr) in vfp_double_fcmpez() argument
436 return vfp_compare(dd, 1, VFP_REG_ZERO, fpscr); in vfp_double_fcmpez()
439 static u32 vfp_double_fcvts(int sd, int unused, int dm, u32 fpscr) in vfp_double_fcvts() argument
475 return vfp_single_normaliseround(sd, &vsd, fpscr, exceptions, "fcvts"); in vfp_double_fcvts()
482 static u32 vfp_double_fuito(int dd, int unused, int dm, u32 fpscr) in vfp_double_fuito() argument
491 return vfp_double_normaliseround(dd, &vdm, fpscr, 0, "fuito"); in vfp_double_fuito()
494 static u32 vfp_double_fsito(int dd, int unused, int dm, u32 fpscr) in vfp_double_fsito() argument
503 return vfp_double_normaliseround(dd, &vdm, fpscr, 0, "fsito"); in vfp_double_fsito()
506 static u32 vfp_double_ftoui(int sd, int unused, int dm, u32 fpscr) in vfp_double_ftoui() argument
510 int rmode = fpscr & FPSCR_RMODE_MASK; in vfp_double_ftoui()
580 static u32 vfp_double_ftouiz(int sd, int unused, int dm, u32 fpscr) in vfp_double_ftouiz() argument
585 static u32 vfp_double_ftosi(int sd, int unused, int dm, u32 fpscr) in vfp_double_ftosi() argument
589 int rmode = fpscr & FPSCR_RMODE_MASK; in vfp_double_ftosi()
655 static u32 vfp_double_ftosiz(int dd, int unused, int dm, u32 fpscr) in vfp_double_ftosiz() argument
684 struct vfp_double *vdm, u32 fpscr) in vfp_double_fadd_nonnumber() argument
718 return vfp_propagate_nan(vdd, vdn, vdm, fpscr); in vfp_double_fadd_nonnumber()
726 struct vfp_double *vdm, u32 fpscr) in vfp_double_add() argument
754 return vfp_double_fadd_nonnumber(vdd, vdn, vdm, fpscr); in vfp_double_add()
778 vdd->sign = (fpscr & FPSCR_RMODE_MASK) == in vfp_double_add()
791 struct vfp_double *vdm, u32 fpscr) in vfp_double_multiply() argument
815 return vfp_propagate_nan(vdd, vdn, vdm, fpscr); in vfp_double_multiply()
851 vfp_double_multiply_accumulate(int dd, int dn, int dm, u32 fpscr, u32 negate, char *func) in vfp_double_multiply_accumulate() argument
864 exceptions = vfp_double_multiply(&vdp, &vdn, &vdm, fpscr); in vfp_double_multiply_accumulate()
872 exceptions |= vfp_double_add(&vdd, &vdn, &vdp, fpscr); in vfp_double_multiply_accumulate()
874 return vfp_double_normaliseround(dd, &vdd, fpscr, exceptions, func); in vfp_double_multiply_accumulate()
884 static u32 vfp_double_fmac(int dd, int dn, int dm, u32 fpscr) in vfp_double_fmac() argument
886 return vfp_double_multiply_accumulate(dd, dn, dm, fpscr, 0, "fmac"); in vfp_double_fmac()
892 static u32 vfp_double_fnmac(int dd, int dn, int dm, u32 fpscr) in vfp_double_fnmac() argument
894 return vfp_double_multiply_accumulate(dd, dn, dm, fpscr, NEG_MULTIPLY, "fnmac"); in vfp_double_fnmac()
900 static u32 vfp_double_fmsc(int dd, int dn, int dm, u32 fpscr) in vfp_double_fmsc() argument
902 return vfp_double_multiply_accumulate(dd, dn, dm, fpscr, NEG_SUBTRACT, "fmsc"); in vfp_double_fmsc()
908 static u32 vfp_double_fnmsc(int dd, int dn, int dm, u32 fpscr) in vfp_double_fnmsc() argument
910 return vfp_double_multiply_accumulate(dd, dn, dm, fpscr, NEG_SUBTRACT | NEG_MULTIPLY, "fnmsc"); in vfp_double_fnmsc()
916 static u32 vfp_double_fmul(int dd, int dn, int dm, u32 fpscr) in vfp_double_fmul() argument
929 exceptions = vfp_double_multiply(&vdd, &vdn, &vdm, fpscr); in vfp_double_fmul()
930 return vfp_double_normaliseround(dd, &vdd, fpscr, exceptions, "fmul"); in vfp_double_fmul()
936 static u32 vfp_double_fnmul(int dd, int dn, int dm, u32 fpscr) in vfp_double_fnmul() argument
949 exceptions = vfp_double_multiply(&vdd, &vdn, &vdm, fpscr); in vfp_double_fnmul()
952 return vfp_double_normaliseround(dd, &vdd, fpscr, exceptions, "fnmul"); in vfp_double_fnmul()
958 static u32 vfp_double_fadd(int dd, int dn, int dm, u32 fpscr) in vfp_double_fadd() argument
971 exceptions = vfp_double_add(&vdd, &vdn, &vdm, fpscr); in vfp_double_fadd()
973 return vfp_double_normaliseround(dd, &vdd, fpscr, exceptions, "fadd"); in vfp_double_fadd()
979 static u32 vfp_double_fsub(int dd, int dn, int dm, u32 fpscr) in vfp_double_fsub() argument
997 exceptions = vfp_double_add(&vdd, &vdn, &vdm, fpscr); in vfp_double_fsub()
999 return vfp_double_normaliseround(dd, &vdd, fpscr, exceptions, "fsub"); in vfp_double_fsub()
1005 static u32 vfp_double_fdiv(int dd, int dn, int dm, u32 fpscr) in vfp_double_fdiv() argument
1081 return vfp_double_normaliseround(dd, &vdd, fpscr, 0, "fdiv"); in vfp_double_fdiv()
1084 exceptions = vfp_propagate_nan(&vdd, &vdn, &vdm, fpscr); in vfp_double_fdiv()
1090 exceptions = vfp_propagate_nan(&vdd, &vdm, &vdn, fpscr); in vfp_double_fdiv()
1125 u32 vfp_double_cpdo(u32 inst, u32 fpscr) in vfp_double_cpdo() argument
1135 vecstride = (1 + ((fpscr & FPSCR_STRIDE_MASK) == FPSCR_STRIDE_MASK)); in vfp_double_cpdo()
1163 veclen = fpscr & FPSCR_LENGTH_MASK; in vfp_double_cpdo()
1185 except = fop->fn(dest, dn, dm, fpscr); in vfp_double_cpdo()