Home
last modified time | relevance | path

Searched refs:uint64_t (Results 1 – 25 of 34) sorted by relevance

12

/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Ddiyfp.h41 DiyFp(uint64_t fp, int exp) : f(fp), e(exp) {} in DiyFp()
46 uint64_t u64; in DiyFp()
50 uint64_t significand = (u.u64 & kDpSignificandMask); in DiyFp()
67 uint64_t h;
68 uint64_t l = _umul128(f, rhs.f, &h);
69 if (l & (uint64_t(1) << 63)) // rounding
75 uint64_t h = static_cast<uint64_t>(p >> 64);
76 uint64_t l = static_cast<uint64_t>(p);
77 if (l & (uint64_t(1) << 63)) // rounding
81 const uint64_t M32 = 0xFFFFFFFF;
[all …]
Dbiginteger.h30 typedef uint64_t Type;
36 explicit BigInteger(uint64_t u) : count_(1) { in BigInteger()
64 BigInteger& operator=(uint64_t u) {
70 BigInteger& operator+=(uint64_t u) {
87 BigInteger& operator*=(uint64_t u) {
92 uint64_t k = 0;
94 uint64_t hi;
110 uint64_t k = 0;
112 const uint64_t c = digits_[i] >> 32;
113 const uint64_t d = digits_[i] & 0xFFFFFFFF;
[all …]
Dieee754.h27 explicit Double(uint64_t u) : u_(u) {} in Double()
30 uint64_t Uint64Value() const { return u_; } in Uint64Value()
38 uint64_t Significand() const { return u_ & kSignificandMask; } in Significand()
46uint64_t IntegerSignificand() const { return IsNormal() ? Significand() | kHiddenBit : Significand… in IntegerSignificand()
48 uint64_t ToBias() const { return (u_ & kSignMask) ? ~u_ + 1 : u_ | kSignMask; } in ToBias()
63 static const uint64_t kSignMask = RAPIDJSON_UINT64_C2(0x80000000, 0x00000000);
64 static const uint64_t kExponentMask = RAPIDJSON_UINT64_C2(0x7FF00000, 0x00000000);
65 static const uint64_t kSignificandMask = RAPIDJSON_UINT64_C2(0x000FFFFF, 0xFFFFFFFF);
66 static const uint64_t kHiddenBit = RAPIDJSON_UINT64_C2(0x00100000, 0x00000000);
70 uint64_t u_;
Ditoa.h123 inline char* u64toa(uint64_t value, char* buffer) { in u64toa()
125 const uint64_t kTen8 = 100000000; in u64toa()
126 const uint64_t kTen9 = kTen8 * 10; in u64toa()
127 const uint64_t kTen10 = kTen8 * 100; in u64toa()
128 const uint64_t kTen11 = kTen8 * 1000; in u64toa()
129 const uint64_t kTen12 = kTen8 * 10000; in u64toa()
130 const uint64_t kTen13 = kTen8 * 100000; in u64toa()
131 const uint64_t kTen14 = kTen8 * 1000000; in u64toa()
132 const uint64_t kTen15 = kTen8 * 10000000; in u64toa()
133 const uint64_t kTen16 = kTen8 * kTen8; in u64toa()
[all …]
Ddtoa.h34 inline void GrisuRound(char* buffer, int len, uint64_t delta, uint64_t rest, uint64_t ten_kappa, ui… in GrisuRound()
59 inline void DigitGen(const DiyFp& W, const DiyFp& Mp, uint64_t delta, char* buffer, int* len, int* … in DigitGen()
61 const DiyFp one(uint64_t(1) << -Mp.e, Mp.e); in DigitGen()
64 uint64_t p2 = Mp.f & (one.f - 1); in DigitGen()
85 uint64_t tmp = (static_cast<uint64_t>(p1) << -one.e) + p2; in DigitGen()
88 … GrisuRound(buffer, *len, delta, tmp, static_cast<uint64_t>(kPow10[kappa]) << -one.e, wp_w.f); in DigitGen()
Dstrtod.h57 const uint64_t bInt = db.IntegerSignificand(); in CheckWithinHalfULP()
131 uint64_t significand = 0; in StrtodDiyFp()
192 const uint64_t precisionBits = (v.f & ((uint64_t(1) << precisionSize) - 1)) * kUlp; in StrtodDiyFp()
193 const uint64_t halfWay = (uint64_t(1) << (precisionSize - 1)) * kUlp; in StrtodDiyFp()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dtrie_map.h40 const uint64_t mValue;
44 Result(const uint64_t value, const bool isValid, const int nextLevelBitmapEntryIndex) in Result()
66 IterationResult(const TrieMap *const trieMap, const int key, const uint64_t value, in IterationResult()
83 AK_FORCE_INLINE uint64_t value() const { in value()
94 const uint64_t mValue;
135 uint64_t mValue;
165 static const uint64_t MAX_VALUE;
193 bool putRoot(const int key, const uint64_t value) { in putRoot()
197 bool put(const int key, const uint64_t value, const int bitmapEntryIndex);
274 AK_FORCE_INLINE uint64_t getValueOfValueEntry() const { in getValueOfValueEntry()
[all …]
Dtrie_map.cpp39 const uint64_t TrieMap::MAX_VALUE =
40 (static_cast<uint64_t>(1) << ((FIELD0_SIZE + FIELD1_SIZE) * CHAR_BIT)) - 1;
103 bool TrieMap::put(const int key, const uint64_t value, const int bitmapEntryIndex) { in put()
194 bool TrieMap::writeValue(const uint64_t value, const int terminalEntryIndex) { in writeValue()
213 bool TrieMap::updateValue(const Entry &terminalEntry, const uint64_t value, in updateValue()
311 bool TrieMap::putInternal(const uint32_t key, const uint64_t value, const uint32_t hashedKey, in putInternal()
349 bool TrieMap::addNewEntryByResolvingConflict(const uint32_t key, const uint64_t value, in addNewEntryByResolvingConflict()
398 bool TrieMap::addNewEntryByExpandingTable(const uint32_t key, const uint64_t value, in addNewEntryByExpandingTable()
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/
Dtrie_map_test.cpp86 EXPECT_EQ(static_cast<uint64_t>(i), trieMap.getRoot(i).mValue); in TEST()
93 std::unordered_map<int, uint64_t> testKeyValuePairs; in TEST()
100 std::uniform_int_distribution<uint64_t> valueDistribution(0, TrieMap::MAX_VALUE); in TEST()
105 const uint64_t value = valueRandomNumberGenerator(); in TEST()
121 std::map<int, uint64_t> firstLevelEntries; in TEST()
123 std::map<int, std::map<int, uint64_t>> twoLevelMap; in TEST()
124 std::map<int, std::map<int, std::map<int, uint64_t>>> threeLevelMap; in TEST()
132 std::uniform_int_distribution<uint64_t> valueDistribution(0, TrieMap::MAX_VALUE); in TEST()
137 const uint64_t value = valueRandomNumberGenerator(); in TEST()
145 const uint64_t value = valueRandomNumberGenerator(); in TEST()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/
Dmisctest.cpp106 inline unsigned CountDecimalDigit64_enroll4(uint64_t n) { in CountDecimalDigit64_enroll4()
144 inline unsigned CountDecimalDigit64_fast(uint64_t n) { in CountDecimalDigit64_fast()
145 static const uint64_t powers_of_10[] = { in CountDecimalDigit64_fast()
169 uint64_t m = n | 1; in CountDecimalDigit64_fast()
225 uint64_t i = 1, j; in TEST_F()
395 WriteUint64((uint64_t)i64); in WriteInt64()
399 bool WriteUint64(uint64_t u64) { in WriteUint64()
483 WriteUint64((uint64_t)i64); in WriteInt64()
487 bool WriteUint64(uint64_t u64) { in WriteUint64()
554 WriteUint64((uint64_t)i64); in WriteInt64()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dstrtodtest.cpp26 static const uint64_t kExponentMask = RAPIDJSON_UINT64_C2(0x7FF00000, 0x00000000); in TEST()
27 static const uint64_t kSignificandMask = RAPIDJSON_UINT64_C2(0x000FFFFF, 0xFFFFFFFF); in TEST()
28 static const uint64_t kHiddenBit = RAPIDJSON_UINT64_C2(0x00100000, 0x00000000); in TEST()
35 uint64_t u; in TEST()
37 u.u = 0x465a72e467d88 | ((static_cast<uint64_t>(-149 + kExponentBias)) << kSignificandSize); in TEST()
39 const uint64_t bInt = (u.u & kSignificandMask) | kHiddenBit; in TEST()
Ditoatest.cpp44 struct Traits<uint64_t> {
47 static uint64_t Negate(uint64_t x) { return x; }; in Negate()
116 static void u64toa_naive(uint64_t value, char* buffer) { in u64toa_naive()
132 uint64_t u = static_cast<uint64_t>(value); in i64toa_naive()
Dbigintegertest.cpp65 a *= static_cast <uint64_t>(0); in TEST()
67 a *= static_cast <uint64_t>(123); in TEST()
71 b *= static_cast<uint64_t>(1); in TEST()
73 b *= static_cast<uint64_t>(0); in TEST()
77 c *= static_cast<uint64_t>(456u); in TEST()
Dreadertest.cpp87 bool Uint64(uint64_t i) { actual_ = i; step_++; return true; } in Uint64()
90 uint64_t actual_;
152 uint64_t u; in TEST()
158 u.u = uint64_t(r()) << 32; in TEST()
311 for (uint64_t exp = 0; exp < 2047; exp++) { in TestParseDouble()
315 uint64_t u = (exp << 52) | uint64_t(r() & 0x000FFFFF) << 32; in TestParseDouble()
316 u |= uint64_t(r()); in TestParseDouble()
389 uint64_t u = uint64_t(r()) << 32; in TEST()
390 u |= uint64_t(r()); in TEST()
404 uint64_t bias1 = e.ToBias(); in TEST()
[all …]
Dpointertest.cpp656 const uint64_t u64 = RAPIDJSON_UINT64_C2(0xFFFFFFFFF, 0xFFFFFFFFF); in TEST()
708 const uint64_t u64 = RAPIDJSON_UINT64_C2(0xFFFFFFFFF, 0xFFFFFFFFF); in TEST()
766 const uint64_t u64 = RAPIDJSON_UINT64_C2(0xFFFFFFFFF, 0xFFFFFFFFF); in TEST()
825 const uint64_t u64 = RAPIDJSON_UINT64_C2(0xFFFFFFFFF, 0xFFFFFFFFF); in TEST()
976 const uint64_t u64 = RAPIDJSON_UINT64_C2(0xFFFFFFFFF, 0xFFFFFFFFF); in TEST()
1029 const uint64_t u64 = RAPIDJSON_UINT64_C2(0xFFFFFFFFF, 0xFFFFFFFFF); in TEST()
1081 const uint64_t u64 = RAPIDJSON_UINT64_C2(0xFFFFFFFFF, 0xFFFFFFFFF); in TEST()
1133 const uint64_t u64 = RAPIDJSON_UINT64_C2(0xFFFFFFFFF, 0xFFFFFFFFF); in TEST()
1188 const uint64_t u64 = RAPIDJSON_UINT64_C2(0xFFFFFFFFF, 0xFFFFFFFFF); in TEST()
1245 const uint64_t u64 = RAPIDJSON_UINT64_C2(0xFFFFFFFFF, 0xFFFFFFFFF); in TEST()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dprobability_entry.h100 uint64_t encode(const bool hasHistoricalInfo) const { in encode()
101 uint64_t encodedEntry = static_cast<uint8_t>(mFlags); in encode()
116 static ProbabilityEntry decode(const uint64_t encodedEntry, const bool hasHistoricalInfo) { in decode()
152 static int readFromEncodedEntry(const uint64_t encodedEntry, const int size, const int pos) { in readFromEncodedEntry()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/msinttypes/
Dstdint.h136 typedef unsigned __int64 uint64_t; typedef
147 typedef uint64_t uint_least64_t;
157 typedef uint64_t uint_fast64_t;
170 typedef uint64_t uintmax_t;
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Drapidjson.h245 #define RAPIDJSON_ALIGN(x) (((x) + static_cast<uint64_t>(7u)) & ~static_cast<uint64_t>(7u))
261 …ine RAPIDJSON_UINT64_C2(high32, low32) ((static_cast<uint64_t>(high32) << 32) | static_cast<uint64…
Dwriter.h113 bool Uint64(uint64_t u64) { Prefix(kNumberType); return WriteUint64(u64); } in Uint64()
228 bool WriteUint64(uint64_t u64) { in WriteUint64()
374 inline bool Writer<StringBuffer>::WriteUint64(uint64_t u) { in WriteUint64()
Ddocument.h528 if (!(static_cast<uint64_t>(i64) & RAPIDJSON_UINT64_C2(0xFFFFFFFF, 0x00000000)))
530 if (!(static_cast<uint64_t>(i64) & RAPIDJSON_UINT64_C2(0xFFFFFFFF, 0x80000000)))
538 explicit GenericValue(uint64_t u64) RAPIDJSON_NOEXCEPT : data_(), flags_(kNumberUint64Flag) {
1451 uint64_t GetUint64() const { RAPIDJSON_ASSERT(flags_ & kUint64Flag); return data_.n.u64; }
1465 …GenericValue& SetUint64(uint64_t u64) { this->~GenericValue(); new (this) GenericValue(u64); re…
1658 uint64_t u64;
2022 bool Uint64(uint64_t i) { new (stack_.template Push<ValueType>()) ValueType(i); return true; }
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/
Dprobability_entry_test.cpp31 const uint64_t encodedEntry = entry.encode(false /* hasHistoricalInfo */); in TEST()
47 const uint64_t encodedEntry = entry.encode(true /* hasHistoricalInfo */); in TEST()
/packages/apps/Test/connectivity/sl4n/rapidjson/example/tutorial/
Dtutorial.cpp93 uint64_t f20 = 1; // compute factorial of 20 in main()
94 for (uint64_t j = 1; j <= 20; j++) in main()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dsax.md68 bool Uint64(uint64_t u) { cout << "Uint64(" << u << ")" << endl; return true; }
107 bool Uint64(uint64_t i);
122 …function out of `Int(int)`, `Uint(unsigned)`, `Int64(int64_t)`, `Uint64(uint64_t)` and `Double(dou…
420 bool Uint64(uint64_t u) { return out_.Uint64(u); }
/packages/apps/Test/connectivity/sl4n/rapidjson/example/simplereader/
Dsimplereader.cpp13 bool Uint64(uint64_t u) { cout << "Uint64(" << u << ")" << endl; return true; } in Uint64()
/packages/apps/Test/connectivity/sl4n/rapidjson/example/capitalize/
Dcapitalize.cpp25 bool Uint64(uint64_t u) { return out_.Uint64(u); } in Uint64()

12