Home
last modified time | relevance | path

Searched refs:exp (Results 1 – 25 of 50) sorted by relevance

12

/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Dstrtod.h27 inline double FastPath(double significand, int exp) { in FastPath() argument
28 if (exp < -308) in FastPath()
30 else if (exp >= 0) in FastPath()
31 return significand * internal::Pow10(exp); in FastPath()
33 return significand / internal::Pow10(-exp); in FastPath()
130 inline bool StrtodDiyFp(const char* decimals, size_t length, size_t decimalPosition, int exp, doubl… in StrtodDiyFp() argument
152 const int dExp = (int)decimalPosition - (int)i + exp; in StrtodDiyFp()
207 …odBigInteger(double approx, const char* decimals, size_t length, size_t decimalPosition, int exp) { in StrtodBigInteger() argument
209 const int dExp = (int)decimalPosition - (int)length + exp; in StrtodBigInteger()
225 …lPrecision(double d, int p, const char* decimals, size_t length, size_t decimalPosition, int exp) { in StrtodFullPrecision() argument
[all …]
Dbiginteger.h162 BigInteger& MultiplyPow5(unsigned exp) { in MultiplyPow5() argument
177 if (exp == 0) return *this; in MultiplyPow5()
178 for (; exp >= 27; exp -= 27) *this *= RAPIDJSON_UINT64_C2(0X6765C793, 0XFA10079D); // 5^27 in MultiplyPow5()
179 for (; exp >= 13; exp -= 13) *this *= static_cast<uint32_t>(1220703125u); // 5^13 in MultiplyPow5()
180 if (exp > 0) *this *= kPow5[exp - 1]; in MultiplyPow5()
229 unsigned exp = static_cast<unsigned>(end - begin); in AppendDecimal64() local
230 (MultiplyPow5(exp) <<= exp) += u; // *this = *this * 10^exp + u in AppendDecimal64()
Ddiyfp.h41 DiyFp(uint64_t fp, int exp) : f(fp), e(exp) {} in DiyFp()
235 inline DiyFp GetCachedPower10(int exp, int *outExp) { in GetCachedPower10() argument
236 unsigned index = (static_cast<unsigned>(exp) + 348u) / 8u; in GetCachedPower10()
/packages/modules/NeuralNetworks/common/random/
Drandom_distributions.h672 const uint16 exp = static_cast<uint16>(15); in Uint16ToHalf() local
673 const uint16 val = (exp << 10) | man; in Uint16ToHalf()
690 const uint16 exp = static_cast<uint16>(127); in Uint16ToGfloat16() local
691 const uint16 val = (exp << 7) | man; in Uint16ToGfloat16()
710 const uint32 exp = static_cast<uint32>(127); in Uint32ToFloat() local
711 const uint32 val = (exp << 23) | man; in Uint32ToFloat()
730 const uint64 exp = static_cast<uint64>(1023); in Uint64ToDouble() local
731 const uint64 val = (exp << 52) | man; in Uint64ToDouble()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dreader.h910 int exp = 0; in ParseNumber() local
927 exp = s.Take() - '0'; in ParseNumber()
930 exp = exp * 10 + (s.Take() - '0'); in ParseNumber()
931 … if (exp >= 214748364) { // Issue #313: prevent overflow exponent in ParseNumber()
940 exp = exp * 10 + (s.Take() - '0'); in ParseNumber()
941 if (exp > maxExp) in ParseNumber()
950 exp = -exp; in ParseNumber()
959 int p = exp + expFrac; in ParseNumber()
961 d = internal::StrtodFullPrecision(d, p, decimal, length, decimalPosition, exp); in ParseNumber()
/packages/modules/NeuralNetworks/runtime/test/generated/spec_V1_2/
Dexp.example.cpp7 namespace generated_tests::exp { namespace
54 namespace generated_tests::exp { namespace
101 namespace generated_tests::exp { namespace
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DScroller.java395 mDuration = (int) (1000.0 * Math.exp(l / (DECELERATION_RATE - 1.0))); in fling()
404 (int) (ALPHA * Math.exp(DECELERATION_RATE / (DECELERATION_RATE - 1.0) * l)); in fling()
426 x -= (1.0f - (float)Math.exp(-x)); in viscousFluid()
429 x = 1.0f - (float)Math.exp(1.0f - x); in viscousFluid()
/packages/modules/StatsD/lib/libstatssocket/
Dstatsd_writer.c44 #define TEMP_FAILURE_RETRY(exp) ({ \ argument
45 __typeof__(exp) _rc; \
47 _rc = (exp); \
/packages/modules/NeuralNetworks/runtime/test/specs/V1_0/
Dlogistic_quant8_2.mod.py38 255 if 1. / (1. + math.exp(-x * .5)) * 256 > 255
39 else int(round(1. / (1. + math.exp(-x * .5)) * 256))
Dlogistic_float_2.mod.py37 output_values = [1. / (1. + math.exp(-x)) for x in input_values]
/packages/modules/NeuralNetworks/runtime/test/specs/V1_3/
Dlogistic_quant8_signed.mod.py57 255 if 1. / (1. + math.exp(-x * .5)) * 256 > 255 else int(
58 round(1. / (1. + math.exp(-x * .5)) * 256)) for x in input_values
/packages/services/Mtp/tests/src/com/android/mtp/
DTestUtil.java58 } catch (IOException exp) { in setupMtpDevice()
59 instrumentation.show(Objects.toString(exp.getMessage())); in setupMtpDevice()
/packages/services/Mtp/src/com/android/mtp/
DMtpManager.java304 } catch (IOException exp) { in createDeviceRecord()
305 Log.e(MtpDocumentsProvider.TAG, "Failed to open device", exp); in createDeviceRecord()
/packages/modules/NeuralNetworks/runtime/test/specs/V1_2/
Dexp.mod.py24 output_data = [math.exp(x) for x in input_data]
Dlogistic_v1_2.mod.py52 output_values = [1. / (1. + math.exp(-x)) for x in input_values]
/packages/modules/NeuralNetworks/common/include/
DActivationFunctor.h50 return 1.0f / (1.0f + std::exp(-a)); in operator()
/packages/modules/NeuralNetworks/runtime/test/specs/V1_1/
Dlogistic_float_2_relaxed.mod.py38 output_values = [1. / (1. + math.exp(-x)) for x in input_values]
/packages/apps/SecureElement/src/com/android/se/security/
DAccessControlEnforcer.java321 } catch (Throwable exp) { in internal_setUpChannelAccess()
322 throw new AccessControlException(exp.getMessage()); in internal_setUpChannelAccess()
/packages/modules/NeuralNetworks/common/operations/
DSoftmax.cpp73 sum += std::exp((*p - maxValue) * beta); in softmaxSlowFloat32()
78 *pOut = std::exp((*p - maxValue) * beta) / sum; in softmaxSlowFloat32()
DElu.cpp48 outputData[i] = static_cast<T>(std::max(0.f, x) + std::min(0.f, alpha * (std::exp(x) - 1))); in eluFloat()
/packages/apps/Gallery2/jni/filters/
Dvibrance.c42 float sx = (float)(Vib/(1+exp(-red*3))); in JNIFUNCF()
Dedge.c96 float ret = 1.0f - exp (- alpha * pow(mag, beta)); in JNIFUNCF()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DBubbleFunScorer.java110 return -Math.exp(-rssi * BELS_PER_DECIBEL); in unscaledShapeFunction()
DExtendedWifiInfo.java85 double lastSampleWeight = Math.exp(-1.0 * timeDelta / FILTER_TIME_CONSTANT); in update()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dreadertest.cpp311 for (uint64_t exp = 0; exp < 2047; exp++) { in TestParseDouble() local
315 uint64_t u = (exp << 52) | uint64_t(r() & 0x000FFFFF) << 32; in TestParseDouble()

12