/Linux-v5.4/arch/parisc/math-emu/ |
D | dfsub.c | 44 register unsigned int resultp1 = 0, resultp2 = 0; in dbl_fsub() local 74 Dbl_makequietnan(resultp1,resultp2); in dbl_fsub() 75 Dbl_copytoptr(resultp1,resultp2,dstptr); in dbl_fsub() 218 /*into*/resultp1,resultp2); in dbl_fsub() 219 if(Dbl_iszero_mantissa(resultp1,resultp2)) in dbl_fsub() 223 Dbl_setone_sign(resultp1); in dbl_fsub() 227 Dbl_setzero_sign(resultp1); in dbl_fsub() 229 Dbl_copytoptr(resultp1,resultp2,dstptr); in dbl_fsub() 236 /*into*/resultp1,resultp2); in dbl_fsub() 237 if(Dbl_isone_hidden(resultp1)) in dbl_fsub() [all …]
|
D | dfadd.c | 43 register unsigned int resultp1 = 0, resultp2 = 0; in dbl_fadd() local 74 Dbl_makequietnan(resultp1,resultp2); in dbl_fadd() 75 Dbl_copytoptr(resultp1,resultp2,dstptr); in dbl_fadd() 215 /*into*/resultp1,resultp2); in dbl_fadd() 216 if(Dbl_iszero_mantissa(resultp1,resultp2)) in dbl_fadd() 220 Dbl_setone_sign(resultp1); in dbl_fadd() 224 Dbl_setzero_sign(resultp1); in dbl_fadd() 226 Dbl_copytoptr(resultp1,resultp2,dstptr); in dbl_fadd() 233 /*into*/resultp1,resultp2); in dbl_fadd() 234 if(Dbl_isone_hidden(resultp1)) in dbl_fadd() [all …]
|
D | fmpyfadd.c | 55 unsigned int resultp1, resultp2 = 0, resultp3 = 0, resultp4 = 0; in dbl_fmpyfadd() local 71 Dbl_setnegativezerop1(resultp1); in dbl_fmpyfadd() 72 else Dbl_setzerop1(resultp1); in dbl_fmpyfadd() 94 Dbl_makequietnan(resultp1,resultp2); in dbl_fmpyfadd() 95 Dbl_copytoptr(resultp1,resultp2,dstptr); in dbl_fmpyfadd() 103 (Dbl_sign(resultp1) ^ Dbl_sign(opnd3p1))) { in dbl_fmpyfadd() 111 Dbl_makequietnan(resultp1,resultp2); in dbl_fmpyfadd() 112 Dbl_copytoptr(resultp1,resultp2,dstptr); in dbl_fmpyfadd() 119 Dbl_setinfinity_exponentmantissa(resultp1,resultp2); in dbl_fmpyfadd() 120 Dbl_copytoptr(resultp1,resultp2,dstptr); in dbl_fmpyfadd() [all …]
|
D | dfdiv.c | 41 register unsigned int opnd3p1, opnd3p2, resultp1, resultp2; in dbl_fdiv() local 52 Dbl_setnegativezerop1(resultp1); in dbl_fdiv() 53 else Dbl_setzerop1(resultp1); in dbl_fdiv() 68 Dbl_makequietnan(resultp1,resultp2); in dbl_fdiv() 69 Dbl_copytoptr(resultp1,resultp2,dstptr); in dbl_fdiv() 75 Dbl_setinfinity_exponentmantissa(resultp1,resultp2); in dbl_fdiv() 76 Dbl_copytoptr(resultp1,resultp2,dstptr); in dbl_fdiv() 120 Dbl_setzero_exponentmantissa(resultp1,resultp2); in dbl_fdiv() 121 Dbl_copytoptr(resultp1,resultp2,dstptr); in dbl_fdiv() 148 Dbl_makequietnan(resultp1,resultp2); in dbl_fdiv() [all …]
|
D | fcnvfx.c | 148 register int src_exponent, resultp1; in sgl_to_dbl_fcnvfx() local 163 resultp1 = 0x7fffffff; in sgl_to_dbl_fcnvfx() 167 resultp1 = 0x80000000; in sgl_to_dbl_fcnvfx() 174 Dint_copytoptr(resultp1,resultp2,dstptr); in sgl_to_dbl_fcnvfx() 177 Dint_set_minint(resultp1,resultp2); in sgl_to_dbl_fcnvfx() 178 Dint_copytoptr(resultp1,resultp2,dstptr); in sgl_to_dbl_fcnvfx() 187 Dint_from_sgl_mantissa(temp,src_exponent,resultp1,resultp2); in sgl_to_dbl_fcnvfx() 189 Dint_setone_sign(resultp1,resultp2); in sgl_to_dbl_fcnvfx() 199 Dint_increment(resultp1,resultp2); in sgl_to_dbl_fcnvfx() 204 Dint_decrement(resultp1,resultp2); in sgl_to_dbl_fcnvfx() [all …]
|
D | dfmpy.c | 44 register unsigned int opnd3p1, opnd3p2, resultp1, resultp2; in dbl_fmpy() local 56 Dbl_setnegativezerop1(resultp1); in dbl_fmpy() 57 else Dbl_setzerop1(resultp1); in dbl_fmpy() 72 Dbl_makequietnan(resultp1,resultp2); in dbl_fmpy() 73 Dbl_copytoptr(resultp1,resultp2,dstptr); in dbl_fmpy() 79 Dbl_setinfinity_exponentmantissa(resultp1,resultp2); in dbl_fmpy() 80 Dbl_copytoptr(resultp1,resultp2,dstptr); in dbl_fmpy() 133 Dbl_setinfinity_exponentmantissa(resultp1,resultp2); in dbl_fmpy() 134 Dbl_copytoptr(resultp1,resultp2,dstptr); in dbl_fmpy() 168 Dbl_setzero_exponentmantissa(resultp1,resultp2); in dbl_fmpy() [all …]
|
D | fcnvfu.c | 174 register unsigned int src, resultp1, resultp2; in sgl_to_dbl_fcnvfu() local 185 resultp1 = resultp2 = 0; in sgl_to_dbl_fcnvfu() 187 resultp1 = resultp2 = 0xffffffff; in sgl_to_dbl_fcnvfu() 193 Duint_copytoptr(resultp1,resultp2,dstptr); in sgl_to_dbl_fcnvfu() 205 resultp1 = resultp2 = 0; in sgl_to_dbl_fcnvfu() 210 Duint_copytoptr(resultp1,resultp2,dstptr); in sgl_to_dbl_fcnvfu() 214 Duint_from_sgl_mantissa(src,src_exponent,resultp1,resultp2); in sgl_to_dbl_fcnvfu() 222 Duint_increment(resultp1,resultp2); in sgl_to_dbl_fcnvfu() 230 Duint_increment(resultp1,resultp2); in sgl_to_dbl_fcnvfu() 236 Duint_setzero(resultp1,resultp2); in sgl_to_dbl_fcnvfu() [all …]
|
D | dfsqrt.c | 44 register unsigned int srcp1, srcp2, resultp1, resultp2; in dbl_fsqrt() local 121 Dbl_setzero(resultp1,resultp2); in dbl_fsqrt() 125 Dbl_addition(resultp1,resultp2,newbitp1,newbitp2,sump1,sump2); in dbl_fsqrt() 129 Dbl_addition(resultp1,resultp2,newbitp1,newbitp2, in dbl_fsqrt() 130 resultp1,resultp2); in dbl_fsqrt() 141 Dbl_rightshiftby1(resultp1,resultp2); in dbl_fsqrt() 146 if (!even_exponent && Dbl_islessthan(resultp1,resultp2,srcp1,srcp2)) { in dbl_fsqrt() 147 Dbl_increment(resultp1,resultp2); in dbl_fsqrt() 150 Dbl_rightshiftby1(resultp1,resultp2); in dbl_fsqrt() 155 Dbl_increment(resultp1,resultp2); in dbl_fsqrt() [all …]
|
D | dfrem.c | 42 register unsigned int resultp1, resultp2; in dbl_frem() local 58 Dbl_makequietnan(resultp1,resultp2); in dbl_frem() 59 Dbl_copytoptr(resultp1,resultp2,dstptr); in dbl_frem() 129 Dbl_makequietnan(resultp1,resultp2); in dbl_frem() 130 Dbl_copytoptr(resultp1,resultp2,dstptr); in dbl_frem() 137 resultp1 = opnd1p1; in dbl_frem() 181 Dbl_allp1(resultp1) = ~Dbl_allp1(resultp1); in dbl_frem() 191 Dbl_set_exponentmantissa(resultp1,resultp2,opnd2p1,opnd2p2); in dbl_frem() 200 Dbl_set_exponentmantissa(resultp1,resultp2,opnd1p1,opnd1p2); in dbl_frem() 226 Dbl_setzero_exponentmantissa(resultp1,resultp2); in dbl_frem() [all …]
|
D | fcnvxf.c | 123 register unsigned int resultp1 = 0, resultp2 = 0; in sgl_to_dbl_fcnvxf() local 130 Dbl_setone_sign(resultp1); in sgl_to_dbl_fcnvxf() 134 Dbl_setzero_sign(resultp1); in sgl_to_dbl_fcnvxf() 137 Dbl_setzero(resultp1,resultp2); in sgl_to_dbl_fcnvxf() 138 Dbl_copytoptr(resultp1,resultp2,dstptr); in sgl_to_dbl_fcnvxf() 155 Dbl_set_mantissap1(resultp1, src >> DBL_EXP_LENGTH - 1); in sgl_to_dbl_fcnvxf() 157 Dbl_set_exponent(resultp1, (30+DBL_BIAS) - dst_exponent); in sgl_to_dbl_fcnvxf() 158 Dbl_copytoptr(resultp1,resultp2,dstptr); in sgl_to_dbl_fcnvxf() 279 register unsigned int srcp2, resultp1 = 0, resultp2 = 0; in dbl_to_dbl_fcnvxf() local 286 Dbl_setone_sign(resultp1); in dbl_to_dbl_fcnvxf() [all …]
|
D | fcnvfut.c | 120 register unsigned int src, resultp1, resultp2; in sgl_to_dbl_fcnvfut() local 130 resultp1 = resultp2 = 0; in sgl_to_dbl_fcnvfut() 132 resultp1 = resultp2 = 0xffffffff; in sgl_to_dbl_fcnvfut() 138 Duint_copytoptr(resultp1,resultp2,dstptr); in sgl_to_dbl_fcnvfut() 150 resultp1 = resultp2 = 0; in sgl_to_dbl_fcnvfut() 155 Duint_copytoptr(resultp1,resultp2,dstptr); in sgl_to_dbl_fcnvfut() 159 Duint_from_sgl_mantissa(src,src_exponent,resultp1,resultp2); in sgl_to_dbl_fcnvfut() 160 Duint_copytoptr(resultp1,resultp2,dstptr); in sgl_to_dbl_fcnvfut() 169 Duint_setzero(resultp1,resultp2); in sgl_to_dbl_fcnvfut() 170 Duint_copytoptr(resultp1,resultp2,dstptr); in sgl_to_dbl_fcnvfut() [all …]
|
D | fcnvfxt.c | 116 register int src_exponent, resultp1; in sgl_to_dbl_fcnvfxt() local 130 resultp1 = 0x7fffffff; in sgl_to_dbl_fcnvfxt() 134 resultp1 = 0x80000000; in sgl_to_dbl_fcnvfxt() 141 Dint_copytoptr(resultp1,resultp2,dstptr); in sgl_to_dbl_fcnvfxt() 144 Dint_set_minint(resultp1,resultp2); in sgl_to_dbl_fcnvfxt() 145 Dint_copytoptr(resultp1,resultp2,dstptr); in sgl_to_dbl_fcnvfxt() 154 Dint_from_sgl_mantissa(temp,src_exponent,resultp1,resultp2); in sgl_to_dbl_fcnvfxt() 156 Dint_setone_sign(resultp1,resultp2); in sgl_to_dbl_fcnvfxt() 158 Dint_copytoptr(resultp1,resultp2,dstptr); in sgl_to_dbl_fcnvfxt() 167 Dint_setzero(resultp1,resultp2); in sgl_to_dbl_fcnvfxt() [all …]
|
D | frnd.c | 145 register unsigned int srcp1, srcp2, resultp1, resultp2; in dbl_frnd() local 182 resultp1 = srcp1; in dbl_frnd() 184 Dbl_rightshift(resultp1,resultp2,(DBL_P-1) - (src_exponent)); in dbl_frnd() 192 Dbl_increment(resultp1,resultp2); in dbl_frnd() 196 Dbl_increment(resultp1,resultp2); in dbl_frnd() 202 Dbl_increment(resultp1,resultp2); in dbl_frnd() 205 Dbl_leftshift(resultp1,resultp2,(DBL_P-1) - (src_exponent)); in dbl_frnd() 206 if (Dbl_isone_hiddenoverflow(resultp1)) in dbl_frnd() 207 Dbl_set_exponent(resultp1,src_exponent + (DBL_BIAS+1)); in dbl_frnd() 208 else Dbl_set_exponent(resultp1,src_exponent + DBL_BIAS); in dbl_frnd() [all …]
|
D | fcnvuf.c | 112 register unsigned int src, resultp1 = 0, resultp2 = 0; in sgl_to_dbl_fcnvuf() local 118 Dbl_setzero(resultp1,resultp2); in sgl_to_dbl_fcnvuf() 119 Dbl_copytoptr(resultp1,resultp2,dstptr); in sgl_to_dbl_fcnvuf() 134 Dbl_set_mantissap1(resultp1, src >> DBL_EXP_LENGTH); in sgl_to_dbl_fcnvuf() 136 Dbl_set_exponent(resultp1, (30+DBL_BIAS) - dst_exponent); in sgl_to_dbl_fcnvuf() 137 Dbl_copytoptr(resultp1,resultp2,dstptr); in sgl_to_dbl_fcnvuf() 235 register unsigned int srcp1, srcp2, resultp1 = 0, resultp2 = 0; in dbl_to_dbl_fcnvuf() local 241 Dbl_setzero(resultp1,resultp2); in dbl_to_dbl_fcnvuf() 242 Dbl_copytoptr(resultp1,resultp2,dstptr); in dbl_to_dbl_fcnvuf() 279 Dbl_set_mantissap1(resultp1, srcp1 >> DBL_EXP_LENGTH); in dbl_to_dbl_fcnvuf() [all …]
|
D | fcnvff.c | 47 register unsigned int src, resultp1, resultp2; in sgl_to_dbl_fcnvff() local 52 Dbl_allp1(resultp1) = Sgl_all(src); /* set sign of result */ in sgl_to_dbl_fcnvff() 64 Dbl_setinfinity_exponentmantissa(resultp1,resultp2); in sgl_to_dbl_fcnvff() 65 Dbl_copytoptr(resultp1,resultp2,dstptr); in sgl_to_dbl_fcnvff() 85 Dbl_setinfinity_exponent(resultp1); in sgl_to_dbl_fcnvff() 86 Sgl_to_dbl_mantissa(src,resultp1,resultp2); in sgl_to_dbl_fcnvff() 87 Dbl_copytoptr(resultp1,resultp2,dstptr); in sgl_to_dbl_fcnvff() 105 Sgl_to_dbl_exponent(src_exponent,resultp1); in sgl_to_dbl_fcnvff() 106 Sgl_to_dbl_mantissa(src,resultp1,resultp2); in sgl_to_dbl_fcnvff() 109 Dbl_setzero_exponentmantissa(resultp1,resultp2); in sgl_to_dbl_fcnvff() [all …]
|