Home
last modified time | relevance | path

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

123

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DStringRef.cpp416 bool llvm::consumeUnsignedInteger(StringRef &Str, unsigned Radix, in consumeUnsignedInteger() argument
419 if (Radix == 0) in consumeUnsignedInteger()
420 Radix = GetAutoSenseRadix(Str); in consumeUnsignedInteger()
441 if (CharVal >= Radix) in consumeUnsignedInteger()
446 Result = Result * Radix + CharVal; in consumeUnsignedInteger()
449 if (Result / Radix < PrevResult) in consumeUnsignedInteger()
464 bool llvm::consumeSignedInteger(StringRef &Str, unsigned Radix, in consumeSignedInteger() argument
470 if (consumeUnsignedInteger(Str, Radix, ULLVal) || in consumeSignedInteger()
480 if (consumeUnsignedInteger(Str2, Radix, ULLVal) || in consumeSignedInteger()
494 bool llvm::getAsUnsignedInteger(StringRef Str, unsigned Radix, in getAsUnsignedInteger() argument
[all …]
DAPInt.cpp2168 void APInt::toString(SmallVectorImpl<char> &Str, unsigned Radix, in toString() argument
2170 assert((Radix == 10 || Radix == 8 || Radix == 16 || Radix == 2 || in toString()
2171 Radix == 36) && in toString()
2176 switch (Radix) { in toString()
2230 *--BufPtr = Digits[N % Radix]; in toString()
2231 N /= Radix; in toString()
2258 if (Radix == 2 || Radix == 8 || Radix == 16) { in toString()
2260 unsigned ShiftAmt = (Radix == 16 ? 4 : (Radix == 8 ? 3 : 1)); in toString()
2261 unsigned MaskAmt = Radix - 1; in toString()
2271 udivrem(Tmp, Radix, Tmp, Digit); in toString()
[all …]
/external/llvm-project/llvm/lib/Support/
DStringRef.cpp410 bool llvm::consumeUnsignedInteger(StringRef &Str, unsigned Radix, in consumeUnsignedInteger() argument
413 if (Radix == 0) in consumeUnsignedInteger()
414 Radix = GetAutoSenseRadix(Str); in consumeUnsignedInteger()
435 if (CharVal >= Radix) in consumeUnsignedInteger()
440 Result = Result * Radix + CharVal; in consumeUnsignedInteger()
443 if (Result / Radix < PrevResult) in consumeUnsignedInteger()
458 bool llvm::consumeSignedInteger(StringRef &Str, unsigned Radix, in consumeSignedInteger() argument
464 if (consumeUnsignedInteger(Str, Radix, ULLVal) || in consumeSignedInteger()
474 if (consumeUnsignedInteger(Str2, Radix, ULLVal) || in consumeSignedInteger()
488 bool llvm::getAsUnsignedInteger(StringRef Str, unsigned Radix, in getAsUnsignedInteger() argument
[all …]
DAPInt.cpp2167 void APInt::toString(SmallVectorImpl<char> &Str, unsigned Radix, in toString() argument
2169 assert((Radix == 10 || Radix == 8 || Radix == 16 || Radix == 2 || in toString()
2170 Radix == 36) && in toString()
2175 switch (Radix) { in toString()
2229 *--BufPtr = Digits[N % Radix]; in toString()
2230 N /= Radix; in toString()
2257 if (Radix == 2 || Radix == 8 || Radix == 16) { in toString()
2259 unsigned ShiftAmt = (Radix == 16 ? 4 : (Radix == 8 ? 3 : 1)); in toString()
2260 unsigned MaskAmt = Radix - 1; in toString()
2270 udivrem(Tmp, Radix, Tmp, Digit); 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/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/llvm-project/llvm/lib/MC/MCParser/
DAsmLexer.cpp294 static std::string radixName(unsigned Radix) { in radixName() argument
295 switch (Radix) { in radixName()
305 return "base-" + std::to_string(Radix); in radixName()
364 unsigned Radix = 0; in LexDigit() local
368 Radix = 16; in LexDigit()
372 Radix = 10; in LexDigit()
377 Radix = 8; in LexDigit()
381 Radix = 2; in LexDigit()
385 Radix = 10; in LexDigit()
389 Radix = 2; in LexDigit()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/MCParser/
DAsmLexer.cpp299 unsigned Radix = 0; in LexDigit() local
303 Radix = 16; in LexDigit()
306 Radix = 2; in LexDigit()
308 if (Radix == 2 || Radix == 16) { in LexDigit()
312 if (Result.drop_back().getAsInteger(Radix, Value)) in LexDigit()
313 return ReturnError(TokStart, Radix == 2 ? "invalid binary number" : in LexDigit()
328 unsigned Radix = doHexLookAhead(CurPtr, 10, LexMasmIntegers); in LexDigit() local
329 bool isHex = Radix == 16; in LexDigit()
340 if (Result.getAsInteger(Radix, Value)) in LexDigit()
345 if (LexMasmIntegers && Radix == 16) in LexDigit()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DStringRef.h38 bool getAsUnsignedInteger(StringRef Str, unsigned Radix,
41 bool getAsSignedInteger(StringRef Str, unsigned Radix, long long &Result);
43 bool consumeUnsignedInteger(StringRef &Str, unsigned Radix,
45 bool consumeSignedInteger(StringRef &Str, unsigned Radix, long long &Result);
499 getAsInteger(unsigned Radix, T &Result) const { in getAsInteger() argument
501 if (getAsSignedInteger(*this, Radix, LLVal) || in getAsInteger()
510 getAsInteger(unsigned Radix, T &Result) const { in getAsInteger() argument
515 if (getAsUnsignedInteger(*this, Radix, ULLVal) || in getAsInteger()
533 consumeInteger(unsigned Radix, T &Result) { in consumeInteger() argument
535 if (consumeSignedInteger(*this, Radix, LLVal) || in consumeInteger()
[all …]
DAPSInt.h82 void toString(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
83 APInt::toString(Str, Radix, isSigned());
87 std::string toString(unsigned Radix) const { in toString() argument
88 return APInt::toString(Radix, isSigned()); in toString()
/external/llvm-project/llvm/include/llvm/ADT/
DStringRef.h41 bool getAsUnsignedInteger(StringRef Str, unsigned Radix,
44 bool getAsSignedInteger(StringRef Str, unsigned Radix, long long &Result);
46 bool consumeUnsignedInteger(StringRef &Str, unsigned Radix,
48 bool consumeSignedInteger(StringRef &Str, unsigned Radix, long long &Result);
511 getAsInteger(unsigned Radix, T &Result) const { in getAsInteger() argument
513 if (getAsSignedInteger(*this, Radix, LLVal) || in getAsInteger()
522 getAsInteger(unsigned Radix, T &Result) const { in getAsInteger() argument
527 if (getAsUnsignedInteger(*this, Radix, ULLVal) || in getAsInteger()
545 consumeInteger(unsigned Radix, T &Result) { in consumeInteger() argument
547 if (consumeSignedInteger(*this, Radix, LLVal) || in consumeInteger()
[all …]
DAPSInt.h82 void toString(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
83 APInt::toString(Str, Radix, isSigned());
87 std::string toString(unsigned Radix) const { in toString() argument
88 return APInt::toString(Radix, isSigned()); in toString()
/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 …]
/external/fft2d/src/fft2d/fft2d/
Dreadme2d.txt8 fftsg.c : 1D FFT Package in C - Fast Version (Split-Radix)
9 fftsg.f : 1D FFT Package in Fortran - Fast Version (Split-Radix)
10 fftsg2d.c : 2D FFT Package in C - Version II (Split-Radix)
11 fftsg2d.f : 2D FFT Package in Fortran - Version II (Split-Radix)
12 fftsg3d.c : 3D FFT Package in C - Version II (Split-Radix)
13 fftsg3d.f : 3D FFT Package in Fortran - Version II (Split-Radix)
/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/llvm-project/clang/test/Analysis/
Dllvm-conventions.cpp104 getAsInteger(unsigned Radix, T &Result) const;
107 getAsInteger(unsigned Radix, T &Result) const;
110 consumeInteger(unsigned Radix, T &Result);
113 consumeInteger(unsigned Radix, T &Result);
114 bool getAsInteger(unsigned Radix, APInt &Result) const;
/external/llvm-project/llvm/tools/llvm-strings/
Dllvm-strings.cpp50 Radix("radix", cl::desc("print the offset within the file"), variable
55 static cl::alias RadixShort("t", cl::desc(""), cl::aliasopt(Radix));
66 switch (Radix) { in strings()
/external/llvm-project/llvm/include/llvm/MC/MCParser/
DMCAsmLexer.h163 void setMasmDefaultRadix(unsigned Radix) { DefaultRadix = Radix; } in setMasmDefaultRadix() argument
/external/llvm-project/llvm/tools/llvm-size/
Dllvm-size.cpp78 static cl::opt<RadixTy> Radix( variable
166 conv.toString(result, Radix, false, true); in getNumLengthAsString()
172 switch (Radix) { in getRadixFmt()
221 if (Radix == hexadecimal) in printDarwinSectionSizes()
505 << (Radix == octal ? "oct" : "dec") in printObjectSectionSizes()
518 fmt << "%7" << (Radix == octal ? PRIo64 : PRIu64) << "\t" in printObjectSectionSizes()
871 fmt << "%7" << (Radix == octal ? PRIo64 : PRIu64) << "\t" in printBerkeleyTotals()
886 Radix = RadixShort.getValue(); 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()

123