Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/LLVM/lib/Support/
DStringRef.cpp260 static bool GetAsUnsignedInteger(StringRef Str, unsigned Radix, in GetAsUnsignedInteger() argument
263 if (Radix == 0) in GetAsUnsignedInteger()
264 Radix = GetAutoSenseRadix(Str); in GetAsUnsignedInteger()
284 if (CharVal >= Radix) in GetAsUnsignedInteger()
289 Result = Result*Radix+CharVal; in GetAsUnsignedInteger()
301 bool StringRef::getAsInteger(unsigned Radix, unsigned long long &Result) const { in getAsInteger() argument
302 return GetAsUnsignedInteger(*this, Radix, Result); in getAsInteger()
306 bool StringRef::getAsInteger(unsigned Radix, long long &Result) const { in getAsInteger() argument
311 if (GetAsUnsignedInteger(*this, Radix, ULLVal) || in getAsInteger()
320 if (GetAsUnsignedInteger(substr(1), Radix, ULLVal) || in getAsInteger()
[all …]
DAPInt.cpp2183 void APInt::toString(SmallVectorImpl<char> &Str, unsigned Radix, in toString() argument
2185 assert((Radix == 10 || Radix == 8 || Radix == 16 || Radix == 2 || in toString()
2186 Radix == 36) && in toString()
2191 switch (Radix) { in toString()
2241 *--BufPtr = Digits[N % Radix]; in toString()
2242 N /= Radix; in toString()
2270 if (Radix == 2 || Radix == 8 || Radix == 16) { in toString()
2272 unsigned ShiftAmt = (Radix == 16 ? 4 : (Radix == 8 ? 3 : 1)); in toString()
2273 unsigned MaskAmt = Radix - 1; in toString()
2281 APInt divisor(Radix == 10? 4 : 8, Radix); in toString()
[all …]
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DStringRef.cpp425 bool llvm::consumeUnsignedInteger(StringRef &Str, unsigned Radix, in consumeUnsignedInteger() argument
428 if (Radix == 0) in consumeUnsignedInteger()
429 Radix = GetAutoSenseRadix(Str); in consumeUnsignedInteger()
450 if (CharVal >= Radix) in consumeUnsignedInteger()
455 Result = Result * Radix + CharVal; in consumeUnsignedInteger()
458 if (Result / Radix < PrevResult) in consumeUnsignedInteger()
473 bool llvm::consumeSignedInteger(StringRef &Str, unsigned Radix, in consumeSignedInteger() argument
479 if (consumeUnsignedInteger(Str, Radix, ULLVal) || in consumeSignedInteger()
489 if (consumeUnsignedInteger(Str2, Radix, ULLVal) || in consumeSignedInteger()
503 bool llvm::getAsUnsignedInteger(StringRef Str, unsigned Radix, in getAsUnsignedInteger() argument
[all …]
DAPInt.cpp2121 void APInt::toString(SmallVectorImpl<char> &Str, unsigned Radix, in toString() argument
2123 assert((Radix == 10 || Radix == 8 || Radix == 16 || Radix == 2 || in toString()
2124 Radix == 36) && in toString()
2129 switch (Radix) { in toString()
2183 *--BufPtr = Digits[N % Radix]; in toString()
2184 N /= Radix; in toString()
2212 if (Radix == 2 || Radix == 8 || Radix == 16) { in toString()
2214 unsigned ShiftAmt = (Radix == 16 ? 4 : (Radix == 8 ? 3 : 1)); in toString()
2215 unsigned MaskAmt = Radix - 1; in toString()
2223 APInt divisor(Radix == 10? 4 : 8, Radix); in toString()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DStringRef.cpp411 bool llvm::consumeUnsignedInteger(StringRef &Str, unsigned Radix, in consumeUnsignedInteger() argument
414 if (Radix == 0) in consumeUnsignedInteger()
415 Radix = GetAutoSenseRadix(Str); in consumeUnsignedInteger()
436 if (CharVal >= Radix) in consumeUnsignedInteger()
441 Result = Result * Radix + CharVal; in consumeUnsignedInteger()
444 if (Result / Radix < PrevResult) in consumeUnsignedInteger()
459 bool llvm::consumeSignedInteger(StringRef &Str, unsigned Radix, in consumeSignedInteger() argument
465 if (consumeUnsignedInteger(Str, Radix, ULLVal) || in consumeSignedInteger()
475 if (consumeUnsignedInteger(Str2, Radix, ULLVal) || in consumeSignedInteger()
489 bool llvm::getAsUnsignedInteger(StringRef Str, unsigned Radix, in getAsUnsignedInteger() argument
[all …]
DAPInt.cpp2014 void APInt::toString(SmallVectorImpl<char> &Str, unsigned Radix, in toString() argument
2016 assert((Radix == 10 || Radix == 8 || Radix == 16 || Radix == 2 || in toString()
2017 Radix == 36) && in toString()
2022 switch (Radix) { in toString()
2076 *--BufPtr = Digits[N % Radix]; in toString()
2077 N /= Radix; in toString()
2104 if (Radix == 2 || Radix == 8 || Radix == 16) { in toString()
2106 unsigned ShiftAmt = (Radix == 16 ? 4 : (Radix == 8 ? 3 : 1)); in toString()
2107 unsigned MaskAmt = Radix - 1; in toString()
2117 udivrem(Tmp, Radix, Tmp, Digit); in toString()
[all …]
/external/llvm/lib/Support/
DStringRef.cpp378 bool llvm::getAsUnsignedInteger(StringRef Str, unsigned Radix, in getAsUnsignedInteger() argument
381 if (Radix == 0) in getAsUnsignedInteger()
382 Radix = GetAutoSenseRadix(Str); in getAsUnsignedInteger()
402 if (CharVal >= Radix) in getAsUnsignedInteger()
407 Result = Result*Radix+CharVal; in getAsUnsignedInteger()
410 if (Result/Radix < PrevResult) in getAsUnsignedInteger()
419 bool llvm::getAsSignedInteger(StringRef Str, unsigned Radix, in getAsSignedInteger() argument
425 if (getAsUnsignedInteger(Str, Radix, ULLVal) || in getAsSignedInteger()
434 if (getAsUnsignedInteger(Str.substr(1), Radix, ULLVal) || in getAsSignedInteger()
445 bool StringRef::getAsInteger(unsigned Radix, APInt &Result) const { in getAsInteger() argument
[all …]
DAPInt.cpp2147 void APInt::toString(SmallVectorImpl<char> &Str, unsigned Radix, in toString() argument
2149 assert((Radix == 10 || Radix == 8 || Radix == 16 || Radix == 2 || in toString()
2150 Radix == 36) && in toString()
2155 switch (Radix) { in toString()
2209 *--BufPtr = Digits[N % Radix]; in toString()
2210 N /= Radix; in toString()
2238 if (Radix == 2 || Radix == 8 || Radix == 16) { in toString()
2240 unsigned ShiftAmt = (Radix == 16 ? 4 : (Radix == 8 ? 3 : 1)); in toString()
2241 unsigned MaskAmt = Radix - 1; in toString()
2249 APInt divisor(Radix == 10? 4 : 8, Radix); in toString()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/MCParser/
DAsmLexer.cpp294 unsigned Radix = 0; in LexDigit() local
298 Radix = 16; in LexDigit()
301 Radix = 2; in LexDigit()
303 if (Radix == 2 || Radix == 16) { in LexDigit()
307 if (Result.drop_back().getAsInteger(Radix, Value)) in LexDigit()
308 return ReturnError(TokStart, Radix == 2 ? "invalid binary number" : in LexDigit()
323 unsigned Radix = doLookAhead(CurPtr, 10); in LexDigit() local
324 bool isHex = Radix == 16; in LexDigit()
334 if (Result.getAsInteger(Radix, Value)) in LexDigit()
339 if (Radix == 2 || Radix == 16) in LexDigit()
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DStringRef.h31 bool getAsUnsignedInteger(StringRef Str, unsigned Radix,
34 bool getAsSignedInteger(StringRef Str, unsigned Radix, long long &Result);
36 bool consumeUnsignedInteger(StringRef &Str, unsigned Radix,
38 bool consumeSignedInteger(StringRef &Str, unsigned Radix, long long &Result);
494 getAsInteger(unsigned Radix, T &Result) const { in getAsInteger() argument
496 if (getAsSignedInteger(*this, Radix, LLVal) || in getAsInteger()
505 getAsInteger(unsigned Radix, T &Result) const { in getAsInteger() argument
510 if (getAsUnsignedInteger(*this, Radix, ULLVal) || in getAsInteger()
528 consumeInteger(unsigned Radix, T &Result) { in consumeInteger() argument
530 if (consumeSignedInteger(*this, Radix, LLVal) || in consumeInteger()
[all …]
DAPInt.h1410 void toString(SmallVectorImpl<char> &Str, unsigned Radix, bool Signed,
1415 void toStringUnsigned(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
1416 toString(Str, Radix, false, false);
1421 void toStringSigned(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
1422 toString(Str, Radix, true, false);
1430 std::string toString(unsigned Radix, bool Signed) const;
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DStringRef.h33 bool getAsUnsignedInteger(StringRef Str, unsigned Radix,
36 bool getAsSignedInteger(StringRef Str, unsigned Radix, long long &Result);
38 bool consumeUnsignedInteger(StringRef &Str, unsigned Radix,
40 bool consumeSignedInteger(StringRef &Str, unsigned Radix, long long &Result);
497 getAsInteger(unsigned Radix, T &Result) const { in getAsInteger() argument
499 if (getAsSignedInteger(*this, Radix, LLVal) || in getAsInteger()
508 getAsInteger(unsigned Radix, T &Result) const { in getAsInteger() argument
513 if (getAsUnsignedInteger(*this, Radix, ULLVal) || in getAsInteger()
531 consumeInteger(unsigned Radix, T &Result) { in consumeInteger() argument
533 if (consumeSignedInteger(*this, Radix, LLVal) || in consumeInteger()
[all …]
DAPSInt.h65 void toString(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
66 APInt::toString(Str, Radix, isSigned());
70 std::string toString(unsigned Radix) const { in toString() argument
71 return APInt::toString(Radix, isSigned()); in toString()
DAPInt.h1664 void toString(SmallVectorImpl<char> &Str, unsigned Radix, bool Signed,
1669 void toStringUnsigned(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
1670 toString(Str, Radix, false, false);
1675 void toStringSigned(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
1676 toString(Str, Radix, true, false);
1684 std::string toString(unsigned Radix, bool Signed) const;
/external/swiftshader/third_party/LLVM/tools/llvm-size/
Dllvm-size.cpp52 Radix("-radix", variable
84 conv.toString(result, Radix, false, true); in getNumLengthAsString()
97 switch (Radix) { in PrintObjectSectionSizes()
226 fmt << "%7" << (Radix == octal ? "llo" : "llu") << " " in PrintObjectSectionSizes()
297 Radix = RadixShort; in main()
304 << (Radix == octal ? "oct" : "dec") in main()
/external/llvm/lib/MC/MCParser/
DAsmLexer.cpp260 unsigned Radix = doLookAhead(CurPtr, 10); in LexDigit() local
261 bool isHex = Radix == 16; in LexDigit()
271 if (Result.getAsInteger(Radix, Value)) in LexDigit()
276 if (Radix == 2 || Radix == 16) in LexDigit()
347 unsigned Radix = doLookAhead(CurPtr, 8); in LexDigit() local
348 bool isHex = Radix == 16; in LexDigit()
350 if (Result.getAsInteger(Radix, Value)) in LexDigit()
355 if (Radix == 16) in LexDigit()
/external/llvm/include/llvm/ADT/
DStringRef.h30 bool getAsUnsignedInteger(StringRef Str, unsigned Radix,
33 bool getAsSignedInteger(StringRef Str, unsigned Radix, long long &Result);
366 getAsInteger(unsigned Radix, T &Result) const { in getAsInteger() argument
368 if (getAsSignedInteger(*this, Radix, LLVal) || in getAsInteger()
377 getAsInteger(unsigned Radix, T &Result) const { in getAsInteger() argument
382 if (getAsUnsignedInteger(*this, Radix, ULLVal) || in getAsInteger()
399 bool getAsInteger(unsigned Radix, APInt &Result) const;
DAPSInt.h65 void toString(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
66 APInt::toString(Str, Radix, isSigned());
70 std::string toString(unsigned Radix) const { in toString() argument
71 return APInt::toString(Radix, isSigned()); in toString()
DAPInt.h1434 void toString(SmallVectorImpl<char> &Str, unsigned Radix, bool Signed,
1439 void toStringUnsigned(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
1440 toString(Str, Radix, false, false);
1445 void toStringSigned(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
1446 toString(Str, Radix, true, false);
1454 std::string toString(unsigned Radix, bool Signed) const;
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DStringRef.h309 bool getAsInteger(unsigned Radix, long long &Result) const;
310 bool getAsInteger(unsigned Radix, unsigned long long &Result) const;
311 bool getAsInteger(unsigned Radix, int &Result) const;
312 bool getAsInteger(unsigned Radix, unsigned &Result) const;
327 bool getAsInteger(unsigned Radix, APInt &Result) const;
DAPSInt.h61 void toString(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
62 APInt::toString(Str, Radix, isSigned());
66 std::string toString(unsigned Radix) const { in toString() argument
67 return APInt::toString(Radix, isSigned()); in toString()
DAPInt.h1256 void toString(SmallVectorImpl<char> &Str, unsigned Radix, bool Signed,
1261 void toStringUnsigned(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
1262 toString(Str, Radix, false, false);
1267 void toStringSigned(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
1268 toString(Str, Radix, true, false);
1274 std::string toString(unsigned Radix, bool Signed) const;
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-strings/
Dllvm-strings.cpp51 Radix("radix", cl::desc("print the offset within the file"), variable
56 static cl::alias RadixShort("t", cl::desc(""), cl::aliasopt(Radix));
64 switch (Radix) { in strings()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-size/
Dllvm-size.cpp75 Radix("radix", cl::desc("Print size in radix. Only 8, 10, and 16 are valid"), variable
169 conv.toString(result, Radix, false, true); in getNumLengthAsString()
175 switch (Radix) { in getRadixFmt()
218 if (Radix == hexadecimal) in printDarwinSectionSizes()
483 << (Radix == octal ? "oct" : "dec") << " hex filename\n"; in printObjectSectionSizes()
493 fmt << "%7" << (Radix == octal ? PRIo64 : PRIu64) << " " in printObjectSectionSizes()
848 fmt << "%7" << (Radix == octal ? PRIo64 : PRIu64) << " " in printBerkelyTotals()
862 Radix = RadixShort; in main()
/external/llvm/tools/llvm-size/
Dllvm-size.cpp73 Radix("-radix", cl::desc("Print size in radix. Only 8, 10, and 16 are valid"), variable
159 conv.toString(result, Radix, false, true); in getNumLengthAsString()
165 switch (Radix) { in getRadixFmt()
208 if (Radix == hexadecimal) in printDarwinSectionSizes()
466 << (Radix == octal ? "oct" : "dec") << " hex filename\n"; in printObjectSectionSizes()
476 fmt << "%7" << (Radix == octal ? PRIo64 : PRIu64) << " " in printObjectSectionSizes()
835 Radix = RadixShort; in main()

12