Home
last modified time | relevance | path

Searched refs:expo (Results 1 – 25 of 29) sorted by relevance

12

/external/python/cpython2/Lib/
Dfpformat.py47 if exppart: expo = int(exppart[1:])
48 else: expo = 0
49 return sign, intpart, fraction, expo
51 def unexpo(intpart, fraction, expo): argument
53 if expo > 0: # Move the point left
55 intpart, fraction = intpart + fraction[:expo], fraction[expo:]
56 if expo > f:
57 intpart = intpart + '0'*(expo-f)
58 elif expo < 0: # Move the point right
60 intpart, fraction = intpart[:expo], intpart[expo:] + fraction
[all …]
/external/llvm-project/flang/lib/Decimal/
Ddecimal-to-binary.cpp112 int expo{0}; in ParseNumber() local
118 expo = 10 * expo + *q++ - '0'; in ParseNumber()
125 expo = 10 * Real::decimalRange; in ParseNumber()
130 exponent_ -= expo; in ParseNumber()
132 exponent_ += expo; in ParseNumber()
238 int expo{exponent_ + Binary::exponentBias + (precision - 1)}; in ToBinary() local
239 while (expo < 1 && (fraction > 0 || guard > oneHalf)) { in ToBinary()
243 ++expo; in ToBinary()
253 while (fraction < topBit && expo > 1) { in ToBinary()
254 --expo; in ToBinary()
[all …]
Dbinary-to-decimal.cpp136 int expo = exponent_ + p - start; in ConvertToDecimal() local
147 return {buffer, static_cast<std::size_t>(p - buffer), expo, Exact}; in ConvertToDecimal()
175 ++expo; in ConvertToDecimal()
182 return {buffer, static_cast<std::size_t>(p - buffer), expo, Inexact}; in ConvertToDecimal()
/external/llvm-project/flang/runtime/
Dedit-output.cpp97 int expo, const DataEdit &edit, int &length) { in FormatExponent() argument
100 for (unsigned e{static_cast<unsigned>(std::abs(expo))}; e > 0;) { in FormatExponent()
118 *--exponent = expo < 0 ? '-' : '+'; in FormatExponent()
281 int expo{converted.decimalExponent + scale}; in EditFOutput() local
282 if (expo > extraDigits && extraDigits >= 0) { in EditFOutput()
283 extraDigits = expo; in EditFOutput()
288 } else if (expo < extraDigits && extraDigits > -fracDigits) { in EditFOutput()
289 extraDigits = std::max(expo, -fracDigits); in EditFOutput()
294 int digitsBeforePoint{std::max(0, std::min(expo, convertedDigits))}; in EditFOutput()
295 int zeroesBeforePoint{std::max(0, expo - digitsBeforePoint)}; in EditFOutput()
[all …]
/external/swiftshader/third_party/astc-encoder/Source/
Dastc_image_load_store.cpp41 int expo; in float_to_lns() local
42 float normfrac = frexpf(p, &expo); in float_to_lns()
44 if (expo < -13) in float_to_lns()
48 expo = 0; in float_to_lns()
52 expo += 14; in float_to_lns()
63 p1 += expo * 2048.0f; in float_to_lns()
/external/llvm-project/compiler-rt/lib/builtins/hexagon/
Dfastmath2_dlib_asm.S375 #define expo R4 macro
386 expo = sxth(mantal) define
392 p2 = cmp.gt(expo, #126)
393 p3 = cmp.ge(expo, #-126)
399 expo = add(expo, #126) define
409 if(p0) expo = add(expo, #1)
416 mask &= asl(expo, #23)
/external/libxaac/decoder/
Dixheaacd_lt_predict.c126 WORD32 expo = 0; in ixheaacd_filter_bank_ltp() local
288 expo = ixheaacd_calc_max_spectral_line_dec(out_mdct, 1024) - 1; in ixheaacd_filter_bank_ltp()
290 expo = 8 - expo; in ixheaacd_filter_bank_ltp()
293 out_mdct, in_data, aac_tables_ptr->pstr_imdct_tables, expo, 1024); in ixheaacd_filter_bank_ltp()
333 expo = ixheaacd_calc_max_spectral_line_dec(out_mdct, 1024) - 1; in ixheaacd_filter_bank_ltp()
335 expo = 8 - expo; in ixheaacd_filter_bank_ltp()
337 out_mdct, in_data, aac_tables_ptr->pstr_imdct_tables, expo, 1024); in ixheaacd_filter_bank_ltp()
379 expo = ixheaacd_calc_max_spectral_line_dec(out_mdct, 1024) - 1; in ixheaacd_filter_bank_ltp()
381 expo = 8 - expo; in ixheaacd_filter_bank_ltp()
383 out_mdct, in_data, aac_tables_ptr->pstr_imdct_tables, expo, 1024); in ixheaacd_filter_bank_ltp()
Dixheaacd_basic_ops40.h26 WORD16 expo; in norm40() local
33 expo = ixheaacd_norm32(tempo); in norm40()
34 *in = tempo << expo; in norm40()
36 return (expo); in norm40()
40 expo = 31 - (ixheaacd_norm32(tempo)); in norm40()
41 *in = (*in) >> expo; in norm40()
43 return (-expo); in norm40()
Dixheaacd_lpfuncs.c370 WORD32 expo, imdct_scale; in ixheaacd_imdct_process() local
398 expo = (*ixheaacd_calc_max_spectral_line)(ptr_spec_coeff, 1024) - 1; in ixheaacd_imdct_process()
400 expo = 8 - expo; in ixheaacd_imdct_process()
403 ptr_spec_coeff, scratch, ptr_aac_tables->pstr_imdct_tables, expo, in ixheaacd_imdct_process()
555 WORD32 expo; in ixheaacd_imdct_process() local
557 expo = (*ixheaacd_calc_max_spectral_line)(ptr_spec_coeff, 1024) - 1; in ixheaacd_imdct_process()
559 expo = 5 - expo; in ixheaacd_imdct_process()
564 ptr_aac_tables->pstr_imdct_tables, expo, 128); in ixheaacd_imdct_process()
Dixheaacd_aac_imdct.c1581 ia_aac_dec_imdct_tables_struct *ptr_imdct_tables, WORD32 expo, in ixheaacd_inverse_transform() argument
1584 ptr_imdct_tables, (npoints >> 2), expo); in ixheaacd_inverse_transform()
1589 expo += 2; in ixheaacd_inverse_transform()
1591 return expo; in ixheaacd_inverse_transform()
1598 WORD32 expo, neg_expo = 0, k; in ixheaacd_mdct_480_ld() local
1602 expo = (*ixheaacd_calc_max_spectral_line)(inp, MDCT_LEN) - 1; in ixheaacd_mdct_480_ld()
1607 neg_expo = 7 - expo; in ixheaacd_mdct_480_ld()
1653 WORD16 expo, neg_expo; in ixheaacd_inverse_transform_512() local
1659 expo = (*ixheaacd_calc_max_spectral_line)(data, n) - 1; in ixheaacd_inverse_transform_512()
1663 neg_expo = 7 - expo; in ixheaacd_inverse_transform_512()
Dixheaacd_aac_imdct.h25 ia_aac_dec_imdct_tables_struct *ptr_imdct_tables, WORD32 expo,
/external/llvm-project/flang/unittests/Decimal/
Dthorough-test.cpp49 int expo{result.decimalExponent}; in testReadback() local
50 expo -= result.length; in testReadback()
52 ++expo; in testReadback()
54 std::sprintf(q + result.length, "e%d", expo); in testReadback()
Dquick-sanity-test.cpp50 int expo{result.decimalExponent}; in testReadback() local
51 expo -= result.length; in testReadback()
53 ++expo; in testReadback()
56 std::sprintf(q + result.length, "e%d", expo); in testReadback()
/external/libhevc/encoder/
Dia_basic_ops40.h107 WORD16 expo; in norm40() local
117 expo = norm32(tempo); in norm40()
118 *in = tempo << expo; in norm40()
120 return (expo); in norm40()
124 expo = 31 - (norm32(tempo)); in norm40()
125 *in = (*in) >> expo; in norm40()
127 return (-expo); in norm40()
/external/llvm-project/flang/module/
Dieee_arithmetic.f90102 expo,maxExpo,negative,significandNZ,quietBit)
103 integer, intent(in) :: expo, maxExpo local
105 if (expo == 0) then
119 else if (expo == maxExpo) then
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DBigNumberFormatTest.java301 private void expect(Object fmto, Object numo, Object expo) { in expect() argument
315 if (expo instanceof String[]) { in expect()
316 exps = (String[]) expo; in expect()
318 exp = (String) expo; in expect()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DBigNumberFormatTest.java298 private void expect(Object fmto, Object numo, Object expo) { in expect() argument
312 if (expo instanceof String[]) { in expect()
313 exps = (String[]) expo; in expect()
315 exp = (String) expo; in expect()
/external/llvm-project/flang/lib/Evaluate/
Dreal.cpp512 int expo{result.decimalExponent}; in AsFortran() local
514 --expo; in AsFortran()
517 if (expo != 0) { in AsFortran()
518 o << 'e' << expo; in AsFortran()
/external/clang/test/Sema/
Dtransparent-union.c76 unsigned int expo:2; member
/external/lua/src/
Dllex.c226 const char *expo = "Ee"; in read_numeral() local
231 expo = "Pp"; in read_numeral()
233 if (check_next2(ls, expo)) /* exponent mark? */ in read_numeral()
/external/icu/icu4c/source/config/
Dmh-os39059 # -Wc,expo is used to export all functions
60 SHAREDLIBCFLAGS = -Wc,expo
61 SHAREDLIBCXXFLAGS = -Wc,expo
/external/llvm-project/clang/test/Sema/
Dtransparent-union.c115 unsigned int expo:2; member
/external/python/cpython2/Objects/
Dobject.c1030 int expo; in _Py_HashDouble() local
1075 v = frexp(v, &expo); in _Py_HashDouble()
1079 x = hipart + (long)v + (expo << 15); in _Py_HashDouble()
Dlongobject.c176 int i, ndig, expo, neg; in PyLong_FromDouble() local
192 frac = frexp(dval, &expo); /* dval = frac*2**expo; 0.0 <= frac < 1.0 */ in PyLong_FromDouble()
193 if (expo <= 0) in PyLong_FromDouble()
195 ndig = (expo-1) / PyLong_SHIFT + 1; /* Number of 'digits' in result */ in PyLong_FromDouble()
199 frac = ldexp(frac, (expo-1) % PyLong_SHIFT + 1); in PyLong_FromDouble()
/external/python/cpython3/Objects/
Dlongobject.c436 int i, ndig, expo, neg; in PyLong_FromDouble() local
452 frac = frexp(dval, &expo); /* dval = frac*2**expo; 0.0 <= frac < 1.0 */ in PyLong_FromDouble()
453 assert(expo > 0); in PyLong_FromDouble()
454 ndig = (expo-1) / PyLong_SHIFT + 1; /* Number of 'digits' in result */ in PyLong_FromDouble()
458 frac = ldexp(frac, (expo-1) % PyLong_SHIFT + 1); in PyLong_FromDouble()

12