Home
last modified time | relevance | path

Searched refs:roundData (Results 1 – 9 of 9) sorted by relevance

/arch/arm/nwfpe/
Dfpa11_cpdo.c26 unsigned int SingleCPDO(struct roundingData *roundData, const unsigned int opcode, FPREG * rFd);
27 unsigned int DoubleCPDO(struct roundingData *roundData, const unsigned int opcode, FPREG * rFd);
28 unsigned int ExtendedCPDO(struct roundingData *roundData, const unsigned int opcode, FPREG * rFd);
35 struct roundingData roundData; in EmulateCPDO() local
43 roundData.mode = SetRoundingMode(opcode); in EmulateCPDO()
44 roundData.precision = SetRoundingPrecision(opcode); in EmulateCPDO()
45 roundData.exception = 0; in EmulateCPDO()
68 nRc = SingleCPDO(&roundData, opcode, rFd); in EmulateCPDO()
71 nRc = DoubleCPDO(&roundData, opcode, rFd); in EmulateCPDO()
75 nRc = ExtendedCPDO(&roundData, opcode, rFd); in EmulateCPDO()
[all …]
Dsingle_cpdo.c39 static float32 float32_rsf(struct roundingData *roundData, float32 rFn, float32 rFm) in float32_rsf() argument
41 return float32_sub(roundData, rFm, rFn); in float32_rsf()
44 static float32 float32_rdv(struct roundingData *roundData, float32 rFn, float32 rFm) in float32_rdv() argument
46 return float32_div(roundData, rFm, rFn); in float32_rdv()
63 static float32 float32_mvf(struct roundingData *roundData, float32 rFm) in float32_mvf() argument
68 static float32 float32_mnf(struct roundingData *roundData, float32 rFm) in float32_mnf() argument
73 static float32 float32_abs(struct roundingData *roundData, float32 rFm) in float32_abs() argument
88 unsigned int SingleCPDO(struct roundingData *roundData, const unsigned int opcode, FPREG * rFd) in SingleCPDO() argument
111 rFd->fSingle = dyadic_single[opc_mask_shift](roundData, rFn, rFm); in SingleCPDO()
117 rFd->fSingle = monadic_single[opc_mask_shift](roundData, rFm); in SingleCPDO()
Dsoftfloat.c70 static int32 roundAndPackInt32( struct roundingData *roundData, flag zSign, bits64 absZ ) in roundAndPackInt32() argument
77 roundingMode = roundData->mode; in roundAndPackInt32()
100 roundData->exception |= float_flag_invalid; in roundAndPackInt32()
103 if ( roundBits ) roundData->exception |= float_flag_inexact; in roundAndPackInt32()
217 static float32 roundAndPackFloat32( struct roundingData *roundData, flag zSign, int16 zExp, bits32 … in roundAndPackFloat32() argument
224 roundingMode = roundData->mode; in roundAndPackFloat32()
247 roundData->exception |= float_flag_overflow | float_flag_inexact; in roundAndPackFloat32()
258 if ( isTiny && roundBits ) roundData->exception |= float_flag_underflow; in roundAndPackFloat32()
261 if ( roundBits ) roundData->exception |= float_flag_inexact; in roundAndPackFloat32()
280 normalizeRoundAndPackFloat32( struct roundingData *roundData, flag zSign, int16 zExp, bits32 zSig ) in normalizeRoundAndPackFloat32() argument
[all …]
Ddouble_cpdo.c43 static float64 float64_rsf(struct roundingData *roundData, float64 rFn, float64 rFm) in float64_rsf() argument
45 return float64_sub(roundData, rFm, rFn); in float64_rsf()
48 static float64 float64_rdv(struct roundingData *roundData, float64 rFn, float64 rFm) in float64_rdv() argument
50 return float64_div(roundData, rFm, rFn); in float64_rdv()
68 static float64 float64_mvf(struct roundingData *roundData,float64 rFm) in float64_mvf() argument
73 static float64 float64_mnf(struct roundingData *roundData,float64 rFm) in float64_mnf() argument
87 static float64 float64_abs(struct roundingData *roundData,float64 rFm) in float64_abs() argument
111 unsigned int DoubleCPDO(struct roundingData *roundData, const unsigned int opcode, FPREG * rFd) in DoubleCPDO() argument
154 rFd->fDouble = dyadic_double[opc_mask_shift](roundData, rFn, rFm); in DoubleCPDO()
160 rFd->fDouble = monadic_double[opc_mask_shift](roundData, rFm); in DoubleCPDO()
Dextended_cpdo.c38 static floatx80 floatx80_rsf(struct roundingData *roundData, floatx80 rFn, floatx80 rFm) in floatx80_rsf() argument
40 return floatx80_sub(roundData, rFm, rFn); in floatx80_rsf()
43 static floatx80 floatx80_rdv(struct roundingData *roundData, floatx80 rFn, floatx80 rFm) in floatx80_rdv() argument
45 return floatx80_div(roundData, rFm, rFn); in floatx80_rdv()
63 static floatx80 floatx80_mvf(struct roundingData *roundData, floatx80 rFm) in floatx80_mvf() argument
68 static floatx80 floatx80_mnf(struct roundingData *roundData, floatx80 rFm) in floatx80_mnf() argument
74 static floatx80 floatx80_abs(struct roundingData *roundData, floatx80 rFm) in floatx80_abs() argument
90 unsigned int ExtendedCPDO(struct roundingData *roundData, const unsigned int opcode, FPREG * rFd) in ExtendedCPDO() argument
141 rFd->fExtended = dyadic_extended[opc_mask_shift](roundData, rFn, rFm); in ExtendedCPDO()
147 rFd->fExtended = monadic_extended[opc_mask_shift](roundData, rFm); in ExtendedCPDO()
Dfpa11_cprt.c72 struct roundingData roundData; in PerformFLT() local
74 roundData.mode = SetRoundingMode(opcode); in PerformFLT()
75 roundData.precision = SetRoundingPrecision(opcode); in PerformFLT()
76 roundData.exception = 0; in PerformFLT()
82 fpa11->fpreg[getFn(opcode)].fSingle = int32_to_float32(&roundData, readRegister(getRd(opcode))); in PerformFLT()
106 if (roundData.exception) in PerformFLT()
107 float_raise(roundData.exception); in PerformFLT()
116 struct roundingData roundData; in PerformFIX() local
118 roundData.mode = SetRoundingMode(opcode); in PerformFIX()
119 roundData.precision = SetRoundingPrecision(opcode); in PerformFIX()
[all …]
Dfpa11_cpdt.c103 static inline void storeSingle(struct roundingData *roundData, const unsigned int Fn, unsigned int … in storeSingle() argument
113 val.f = float64_to_float32(roundData, fpa11->fpreg[Fn].fDouble); in storeSingle()
118 val.f = floatx80_to_float32(roundData, fpa11->fpreg[Fn].fExtended); in storeSingle()
129 static inline void storeDouble(struct roundingData *roundData, const unsigned int Fn, unsigned int … in storeDouble() argument
144 val.f = floatx80_to_float64(roundData, fpa11->fpreg[Fn].fExtended); in storeDouble()
271 struct roundingData roundData; in PerformSTF() local
273 roundData.mode = SetRoundingMode(opcode); in PerformSTF()
274 roundData.precision = SetRoundingPrecision(opcode); in PerformSTF()
275 roundData.exception = 0; in PerformSTF()
296 storeSingle(&roundData, getFd(opcode), pAddress); in PerformSTF()
[all …]
Dfpa11.h111 extern unsigned int SingleCPDO(struct roundingData *roundData,
114 extern unsigned int DoubleCPDO(struct roundingData *roundData,
118 extern unsigned int ExtendedCPDO(struct roundingData *roundData,
Dsoftfloat.h278 extern int32 float64_to_uint32( struct roundingData *roundData, float64 a );