HomeSort by relevance Sort by last modified time
    Searched refs:Radix (Results 1 - 25 of 54) sorted by null

1 2 3

  /external/swiftshader/third_party/LLVM/lib/Support/
StringRef.cpp 259 /// sequence of radix up to 36 to an unsigned long long value.
260 static bool GetAsUnsignedInteger(StringRef Str, unsigned Radix,
262 // Autosense radix if not specified.
263 if (Radix == 0)
264 Radix = GetAutoSenseRadix(Str);
266 // Empty strings (after the radix autosense) are invalid.
269 // Parse all the bytes of the string given this radix. Watch for overflow.
282 // If the parsed value is larger than the integer radix, the string is
284 if (CharVal >= Radix)
289 Result = Result*Radix+CharVal
    [all...]
APInt.cpp 48 inline static unsigned getDigit(char cdigit, uint8_t radix) {
51 if (radix == 16 || radix == 36) {
57 if (r <= radix - 11U)
61 if (r <= radix - 11U)
64 radix = 10;
68 if (r < radix)
115 APInt::APInt(unsigned numbits, StringRef Str, uint8_t radix)
118 fromString(numbits, Str, radix);
625 unsigned APInt::getBitsNeeded(StringRef str, uint8_t radix) {
    [all...]
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePrintLib/
PrintLibInternal.c 69 @param Radix Radix of the value
79 IN UINTN Radix
91 Value = (INT64)DivU64x32Remainder ((UINT64)Value, (UINT32)Radix, &Remainder);
153 UINTN Radix;
187 Radix = ((Flags & RADIX_HEX) == 0)? 10 : 16;
188 Count = BasePrintLibValueToString (ValueBuffer, Value, Radix);
PrintLibInternal.h 149 @param Radix Radix of the value
159 IN UINTN Radix
PrintLib.c 120 UINTN Radix;
306 Radix = 10;
317 Radix = 16;
326 Count = BasePrintLibValueToString (ValueBuffer, Value, Radix);
    [all...]
  /external/llvm/lib/Support/
StringRef.cpp 377 /// sequence of radix up to 36 to an unsigned long long value.
378 bool llvm::getAsUnsignedInteger(StringRef Str, unsigned Radix,
380 // Autosense radix if not specified.
381 if (Radix == 0)
382 Radix = GetAutoSenseRadix(Str);
384 // Empty strings (after the radix autosense) are invalid.
387 // Parse all the bytes of the string given this radix. Watch for overflow.
400 // If the parsed value is larger than the integer radix, the string is
402 if (CharVal >= Radix)
407 Result = Result*Radix+CharVal
    [all...]
APInt.cpp 51 inline static unsigned getDigit(char cdigit, uint8_t radix) {
54 if (radix == 16 || radix == 36) {
60 if (r <= radix - 11U)
64 if (r <= radix - 11U)
67 radix = 10;
71 if (r < radix)
118 APInt::APInt(unsigned numbits, StringRef Str, uint8_t radix)
121 fromString(numbits, Str, radix);
602 unsigned APInt::getBitsNeeded(StringRef str, uint8_t radix) {
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/MCParser/
AsmLexer.cpp 294 unsigned Radix = 0;
298 Radix = 16;
301 Radix = 2;
303 if (Radix == 2 || Radix == 16) {
307 if (Result.drop_back().getAsInteger(Radix, Value))
308 return ReturnError(TokStart, Radix == 2 ? "invalid binary number" :
323 unsigned Radix = doLookAhead(CurPtr, 10);
324 bool isHex = Radix == 16;
334 if (Result.getAsInteger(Radix, Value)
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
StringRef.cpp 411 bool llvm::consumeUnsignedInteger(StringRef &Str, unsigned Radix,
413 // Autosense radix if not specified.
414 if (Radix == 0)
415 Radix = GetAutoSenseRadix(Str);
417 // Empty strings (after the radix autosense) are invalid.
420 // Parse all the bytes of the string given this radix. Watch for overflow.
434 // If the parsed value is larger than the integer radix, we cannot
436 if (CharVal >= Radix)
441 Result = Result * Radix + CharVal;
444 if (Result / Radix < PrevResult
    [all...]
APInt.cpp 49 inline static unsigned getDigit(char cdigit, uint8_t radix) {
52 if (radix == 16 || radix == 36) {
58 if (r <= radix - 11U)
62 if (r <= radix - 11U)
65 radix = 10;
69 if (r < radix)
117 APInt::APInt(unsigned numbits, StringRef Str, uint8_t radix)
120 fromString(numbits, Str, radix);
440 unsigned APInt::getBitsNeeded(StringRef str, uint8_t radix) {
    [all...]
  /external/swiftshader/third_party/llvm-subzero/lib/Support/
StringRef.cpp 425 bool llvm::consumeUnsignedInteger(StringRef &Str, unsigned Radix,
427 // Autosense radix if not specified.
428 if (Radix == 0)
429 Radix = GetAutoSenseRadix(Str);
431 // Empty strings (after the radix autosense) are invalid.
434 // Parse all the bytes of the string given this radix. Watch for overflow.
448 // If the parsed value is larger than the integer radix, we cannot
450 if (CharVal >= Radix)
455 Result = Result * Radix + CharVal;
458 if (Result / Radix < PrevResult
    [all...]
APInt.cpp 51 inline static unsigned getDigit(char cdigit, uint8_t radix) {
54 if (radix == 16 || radix == 36) {
60 if (r <= radix - 11U)
64 if (r <= radix - 11U)
67 radix = 10;
71 if (r < radix)
118 APInt::APInt(unsigned numbits, StringRef Str, uint8_t radix)
121 fromString(numbits, Str, radix);
580 unsigned APInt::getBitsNeeded(StringRef str, uint8_t radix) {
    [all...]
  /external/llvm/lib/MC/MCParser/
AsmLexer.cpp 260 unsigned Radix = doLookAhead(CurPtr, 10);
261 bool isHex = Radix == 16;
271 if (Result.getAsInteger(Radix, Value))
276 if (Radix == 2 || Radix == 16)
347 unsigned Radix = doLookAhead(CurPtr, 8);
348 bool isHex = Radix == 16;
350 if (Result.getAsInteger(Radix, Value))
355 if (Radix == 16)
  /external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-strings/
llvm-strings.cpp 49 enum radix { none, octal, hexadecimal, decimal }; enum
50 static cl::opt<radix>
51 Radix("radix", cl::desc("print the offset within the file"),
56 static cl::alias RadixShort("t", cl::desc(""), cl::aliasopt(Radix));
64 switch (Radix) {
  /external/swiftshader/third_party/LLVM/tools/llvm-size/
llvm-size.cpp 52 Radix("-radix",
53 cl::desc("Print size in radix. Only 8, 10, and 16 are valid"),
57 RadixShort(cl::desc("Print size in radix:"),
79 /// @brief Get the length of the string that represents @p num in Radix
84 conv.toString(result, Radix, false, true);
90 /// The format used is determined by @c OutputFormat and @c Radix.
97 switch (Radix) {
226 fmt << "%7" << (Radix == octal ? "llo" : "llu") << " "
297 Radix = RadixShort
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
StringRef.h 33 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);
488 /// Parse the current string as an integer of the specified radix. If
489 /// \p Radix is specified as zero, this does radix autosensing using
497 getAsInteger(unsigned Radix, T &Result) const {
499 if (getAsSignedInteger(*this, Radix, LLVal) ||
508 getAsInteger(unsigned Radix, T &Result) const
    [all...]
APSInt.h 39 /// This constructor interprets the string \p Str using the radix of 10.
65 void toString(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
66 APInt::toString(Str, Radix, isSigned());
70 std::string toString(unsigned Radix) const {
71 return APInt::toString(Radix, isSigned());
  /external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
StringRef.h 31 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);
485 /// Parse the current string as an integer of the specified radix. If
486 /// \p Radix is specified as zero, this does radix autosensing using
494 getAsInteger(unsigned Radix, T &Result) const {
496 if (getAsSignedInteger(*this, Radix, LLVal) ||
505 getAsInteger(unsigned Radix, T &Result) const
    [all...]
  /external/swiftshader/third_party/LLVM/include/llvm/ADT/
StringRef.h 302 /// radix. If Radix is specified as zero, this does radix autosensing using
309 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;
317 /// specified radix, or of an autosensed radix if the radix give
    [all...]
APSInt.h 61 void toString(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
62 APInt::toString(Str, Radix, isSigned());
66 std::string toString(unsigned Radix) const {
67 return APInt::toString(Radix, isSigned());
  /external/llvm/include/llvm/ADT/
StringRef.h 30 bool getAsUnsignedInteger(StringRef Str, unsigned Radix,
33 bool getAsSignedInteger(StringRef Str, unsigned Radix, long long &Result);
357 /// Parse the current string as an integer of the specified radix. If
358 /// \p Radix is specified as zero, this does radix autosensing using
366 getAsInteger(unsigned Radix, T &Result) const {
368 if (getAsSignedInteger(*this, Radix, LLVal) ||
377 getAsInteger(unsigned Radix, T &Result) const {
382 if (getAsUnsignedInteger(*this, Radix, ULLVal) ||
389 /// Parse the current string as an integer of the specified \p Radix, or o
    [all...]
APSInt.h 39 /// This constructor interprets the string \p Str using the radix of 10.
65 void toString(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
66 APInt::toString(Str, Radix, isSigned());
70 std::string toString(unsigned Radix) const {
71 return APInt::toString(Radix, isSigned());
  /device/linaro/bootloader/edk2/MdePkg/Library/BasePrintLib/
PrintLibInternal.c 110 @param Radix Radix of the value
119 IN UINTN Radix
129 Value = (INT64)DivU64x32Remainder ((UINT64)Value, (UINT32)Radix, &Remainder);
193 UINTN Radix;
241 Radix = ((Flags & RADIX_HEX) == 0)? 10 : 16;
242 ValueBufferPtr = BasePrintLibValueToString (ValueBuffer, Value, Radix);
342 UINTN Radix;
590 Radix = 10;
611 Radix = 16;
    [all...]
PrintLibInternal.h 156 @param Radix Radix of the value
165 IN UINTN Radix
  /external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-size/
llvm-size.cpp 75 Radix("radix", cl::desc("Print size in radix. Only 8, 10, and 16 are valid"),
79 RadixShort(cl::desc("Print size in radix:"),
164 /// Get the length of the string that represents @p num in Radix including the
169 conv.toString(result, Radix, false, true);
173 /// Return the printing format for the Radix.
175 switch (Radix) {
218 if (Radix == hexadecimal)
362 /// The format used is determined by @c OutputFormat and @c Radix
    [all...]

Completed in 3213 milliseconds

1 2 3