Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DStringRef.cpp408 bool llvm::consumeUnsignedInteger(StringRef &Str, unsigned Radix, in consumeUnsignedInteger() argument
411 if (Radix == 0) in consumeUnsignedInteger()
412 Radix = GetAutoSenseRadix(Str); in consumeUnsignedInteger()
433 if (CharVal >= Radix) in consumeUnsignedInteger()
438 Result = Result * Radix + CharVal; in consumeUnsignedInteger()
441 if (Result / Radix < PrevResult) in consumeUnsignedInteger()
456 bool llvm::consumeSignedInteger(StringRef &Str, unsigned Radix, in consumeSignedInteger() argument
462 if (consumeUnsignedInteger(Str, Radix, ULLVal) || in consumeSignedInteger()
472 if (consumeUnsignedInteger(Str2, Radix, ULLVal) || in consumeSignedInteger()
486 bool llvm::getAsUnsignedInteger(StringRef Str, unsigned Radix, in getAsUnsignedInteger() argument
[all …]
H A DAPInt.cpp513 unsigned APInt::getSufficientBitsNeeded(StringRef Str, uint8_t Radix) { in getSufficientBitsNeeded() argument
527 if (Radix == 2) in getSufficientBitsNeeded()
529 if (Radix == 8) in getSufficientBitsNeeded()
531 if (Radix == 16) in getSufficientBitsNeeded()
538 if (Radix == 10) in getSufficientBitsNeeded()
541 assert(Radix == 36); in getSufficientBitsNeeded()
2134 void APInt::toString(SmallVectorImpl<char> &Str, unsigned Radix, bool Signed, in toString() argument
2137 assert((Radix == 10 || Radix == 8 || Radix == 16 || Radix == 2 || in toString()
2138 Radix == 36) && in toString()
2143 switch (Radix) { in toString()
[all …]
H A DAPFloat.cpp3201 unsigned Radix = 10; in convertFromStringSpecials() local
3205 Radix = 16; in convertFromStringSpecials()
3207 Radix = 8; in convertFromStringSpecials()
3212 if (!str.getAsInteger(Radix, Payload)) { in convertFromStringSpecials()
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DAsmLexer.cpp303 static std::string radixName(unsigned Radix) { in radixName() argument
304 switch (Radix) { in radixName()
314 return "base-" + std::to_string(Radix); in radixName()
373 unsigned Radix = 0; in LexDigit() local
377 Radix = 16; in LexDigit()
381 Radix = 10; in LexDigit()
386 Radix = 8; in LexDigit()
390 Radix = 2; in LexDigit()
394 Radix = 10; in LexDigit()
398 Radix = 2; in LexDigit()
[all …]
H A DMasmParser.cpp7176 unsigned Radix; in parseDirectiveRadix() local
7177 if (RadixString.getAsInteger(10, Radix)) { in parseDirectiveRadix()
7182 if (Radix < 2 || Radix > 16) in parseDirectiveRadix()
7184 std::to_string(Radix)); in parseDirectiveRadix()
7185 getLexer().setMasmDefaultRadix(Radix); in parseDirectiveRadix()
/freebsd/contrib/llvm-project/llvm/tools/llvm-strings/
H A Dllvm-strings.cpp73 static radix Radix;
95 switch (Radix) {
154 Radix = none; in main()
156 Radix = octal; in main()
158 Radix = decimal; in main()
160 Radix = hexadecimal; in main()
80 static radix Radix; global() variable
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DStringRef.h34 bool getAsUnsignedInteger(StringRef Str, unsigned Radix,
37 bool getAsSignedInteger(StringRef Str, unsigned Radix, long long &Result);
39 bool consumeUnsignedInteger(StringRef &Str, unsigned Radix,
41 bool consumeSignedInteger(StringRef &Str, unsigned Radix, long long &Result);
455 template <typename T> bool getAsInteger(unsigned Radix, T &Result) const { in getAsInteger() argument
458 if (getAsSignedInteger(*this, Radix, LLVal) || in getAsInteger()
467 if (getAsUnsignedInteger(*this, Radix, ULLVal) || in getAsInteger()
484 template <typename T> bool consumeInteger(unsigned Radix, T &Result) { in consumeInteger() argument
487 if (consumeSignedInteger(*this, Radix, LLVal) || in consumeInteger()
493 if (consumeUnsignedInteger(*this, Radix, ULLVal) || in consumeInteger()
[all …]
H A DStringExtras.h331 inline std::string toString(const APInt &I, unsigned Radix, bool Signed,
336 I.toString(S, Radix, Signed, formatAsCLiteral, UpperCase, InsertSeparators);
340 inline std::string toString(const APSInt &I, unsigned Radix) { in toString() argument
341 return toString(I, Radix, I.isSigned()); in toString()
H A DAPInt.h1548 static unsigned getSufficientBitsNeeded(StringRef Str, uint8_t Radix);
1643 void toString(SmallVectorImpl<char> &Str, unsigned Radix, bool Signed,
1649 void toStringUnsigned(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
1650 toString(Str, Radix, false, false);
1655 void toStringSigned(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
1656 toString(Str, Radix, true, false);
H A DAPSInt.h83 void toString(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
84 APInt::toString(Str, Radix, isSigned());
/freebsd/contrib/llvm-project/llvm/tools/llvm-size/
H A Dllvm-size.cpp75 static RadixTy Radix;
146 /// Get the length of the string that represents @p num in Radix including the in error()
151 conv.toString(result, Radix, false, true); in error()
155 /// Return the printing format for the Radix.
157 switch (Radix) { in getNumLengthAsString()
206 if (Radix == hexadecimal)
350 /// The format used is determined by @c OutputFormat and @c Radix. in printDarwinSegmentSizes()
490 << (Radix == octal ? "oct" : "dec") in printObjectSectionSizes()
503 fmt << "%7" << (Radix == octal ? PRIo64 : PRIu64) << "\t" in printObjectSectionSizes()
858 fmt << "%7" << (Radix in printBerkeleyTotals()
84 static RadixTy Radix; global() variable
[all...]
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/MCParser/
H A DMCAsmLexer.h167 void setMasmDefaultRadix(unsigned Radix) { DefaultRadix = Radix; } in setMasmDefaultRadix() argument
/freebsd/contrib/llvm-project/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp119 enum Radix { d, o, x }; enum
121 static Radix AddressRadix;
755 case Radix::o: in printSymbolList()
758 case Radix::x: in printSymbolList()
768 case Radix::o: in printSymbolList()
771 case Radix::x: in printSymbolList()
2465 AddressRadix = Radix::o; in llvm_nm_main()
2467 AddressRadix = Radix::d; in llvm_nm_main()
2469 AddressRadix = Radix::x; in llvm_nm_main()
H A DOpts.td34 defm radix : Eq<"radix", "Radix (o/d/x) for printing symbol Values">, MetaVarName<"<radix>">;
/freebsd/contrib/llvm-project/llvm/lib/FileCheck/
H A DFileCheck.cpp85 unsigned Radix; in getMatchingString() local
92 Radix = 10; in getMatchingString()
96 Radix = 16; in getMatchingString()
99 Radix = 16; in getMatchingString()
106 IntValue.abs().toString(AbsoluteValueStr, Radix, /*Signed=*/false, in getMatchingString()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DLiteralSupport.cpp1448 static bool alwaysFitsInto64Bits(unsigned Radix, unsigned NumDigits) { in alwaysFitsInto64Bits() argument
1449 switch (Radix) { in alwaysFitsInto64Bits()
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DCore.h2230 uint8_t Radix);
2239 unsigned SLen, uint8_t Radix);
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h137 static ConstantInt *get(IntegerType *Ty, StringRef Str, uint8_t Radix);
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DCore.cpp1549 uint8_t Radix) { in LLVMConstIntOfString() argument
1551 Radix)); in LLVMConstIntOfString()
1555 unsigned SLen, uint8_t Radix) { in LLVMConstIntOfStringAndSize() argument
1557 Radix)); in LLVMConstIntOfStringAndSize()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExpr.cpp1012 std::string FixedPointLiteral::getValueAsString(unsigned Radix) const { in getValueAsString()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DExpr.h1578 std::string getValueAsString(unsigned Radix) const;
/freebsd/contrib/one-true-awk/testdir/
H A Dfunstack.ok2176 Radix Conversion . . . . . . . . . . . . 344--346
H A Dfunstack.in16471 title = "Addition in an Arbitrary Base Without Radix Conversion",
16482 …a mixed radix, and stored one digit per byte in bytes of sufficient size. Radix conversion is unne…