Home
last modified time | relevance | path

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

12

/third_party/boost/boost/spirit/home/x3/support/numeric_utils/detail/
Dextract_int.hpp53 template <typename T, unsigned Radix>
56 template <int Digits, unsigned Radix>
69 #define BOOST_PP_LOCAL_MACRO(Radix) \ argument
70 template <int Digits> struct digits2_to_n<Digits, Radix> \
74 BOOST_PP_SEQ_ELEM(Radix, BOOST_SPIRIT_X3_LOG2))); \
83 template <typename T, unsigned Radix>
84 struct digits_traits : digits2_to_n<std::numeric_limits<T>::digits, Radix>
109 template <unsigned Radix>
115 return (ch >= '0' && ch <= (Radix > 10 ? '9' : static_cast<Char>('0' + Radix -1))) in is_valid()
116 || (Radix > 10 && ch >= 'a' && ch <= static_cast<Char>('a' + Radix -10 -1)) in is_valid()
[all …]
/third_party/boost/boost/spirit/home/qi/numeric/detail/
Dnumeric_utils.hpp56 template <typename T, unsigned Radix>
59 template <int Digits, unsigned Radix>
72 #define BOOST_PP_LOCAL_MACRO(Radix) \ argument
73 template <int Digits> struct digits2_to_n<Digits, Radix> \
77 BOOST_PP_SEQ_ELEM(Radix, BOOST_SPIRIT_LOG2))); \
86 template <typename T, unsigned Radix>
87 struct digits_traits : digits2_to_n<std::numeric_limits<T>::digits, Radix>
112 template <unsigned Radix>
118 return (ch >= '0' && ch <= (Radix > 10 ? '9' : static_cast<Char>('0' + Radix -1))) in is_valid()
119 || (Radix > 10 && ch >= 'a' && ch <= static_cast<Char>('a' + Radix -10 -1)) in is_valid()
[all …]
/third_party/boost/boost/spirit/home/qi/numeric/
Dint.hpp30 template <typename T, unsigned Radix, unsigned MinDigits
43 template <typename T = int, unsigned Radix = 10, unsigned MinDigits = 1
46 : spirit::terminal<tag::int_parser<T, Radix, MinDigits, MaxDigits> >
136 template <typename T, unsigned Radix, unsigned MinDigits
139 , tag::int_parser<T, Radix, MinDigits, MaxDigits> >
143 template <typename T, unsigned Radix, unsigned MinDigits
146 , terminal_ex<tag::int_parser<T, Radix, MinDigits, MaxDigits>
151 template <typename T, unsigned Radix, unsigned MinDigits
154 , tag::int_parser<T, Radix, MinDigits, MaxDigits>, 1
184 , unsigned Radix = 10
[all …]
Duint.hpp31 template <typename T, unsigned Radix, unsigned MinDigits
44 template <typename T = int, unsigned Radix = 10, unsigned MinDigits = 1
47 : spirit::terminal<tag::uint_parser<T, Radix, MinDigits, MaxDigits> >
165 template <typename T, unsigned Radix, unsigned MinDigits
168 , tag::uint_parser<T, Radix, MinDigits, MaxDigits> >
172 template <typename T, unsigned Radix, unsigned MinDigits
175 , terminal_ex<tag::uint_parser<T, Radix, MinDigits, MaxDigits>
180 template <typename T, unsigned Radix, unsigned MinDigits
183 , tag::uint_parser<T, Radix, MinDigits, MaxDigits>, 1
218 template <typename T, unsigned Radix = 10, unsigned MinDigits = 1
[all …]
Dnumeric_utils.hpp46 template <typename T, unsigned Radix, unsigned MinDigits, int MaxDigits
52 Radix >= 2 && Radix <= 36,
63 , Radix in call()
66 , detail::positive_accumulator<Radix> in call()
97 template <typename T, unsigned Radix, unsigned MinDigits, int MaxDigits>
102 Radix == 2 || Radix == 8 || Radix == 10 || Radix == 16,
112 T, Radix, MinDigits, MaxDigits> in call()
116 T, Radix, MinDigits, MaxDigits, detail::negative_accumulator<Radix> > in call()
/third_party/boost/boost/spirit/home/x3/support/numeric_utils/
Dextract_int.hpp40 template <typename T, unsigned Radix, unsigned MinDigits, int MaxDigits
46 (Radix >= 2 && Radix <= 36),
57 , Radix in call()
60 , detail::positive_accumulator<Radix> in call()
90 template <typename T, unsigned Radix, unsigned MinDigits, int MaxDigits>
95 (Radix == 2 || Radix == 8 || Radix == 10 || Radix == 16),
105 T, Radix, MinDigits, MaxDigits> in call()
109 T, Radix, MinDigits, MaxDigits, detail::negative_accumulator<Radix> > in call()
/third_party/boost/boost/spirit/home/karma/numeric/
Dint.hpp43 template <typename T, unsigned Radix, bool force_sign>
55 template <typename T = int, unsigned Radix = 10, bool force_sign = false>
57 : spirit::terminal<tag::int_generator<T, Radix, force_sign> >
145 template <typename T, unsigned Radix, bool force_sign>
146 struct use_terminal<karma::domain, tag::int_generator<T, Radix, force_sign> >
150 template <typename T, unsigned Radix, bool force_sign, typename A0>
152 , terminal_ex<tag::int_generator<T, Radix, force_sign>
157 template <typename T, unsigned Radix, bool force_sign>
160 , tag::int_generator<T, Radix, force_sign>
200 typename T, typename CharEncoding, typename Tag, unsigned Radix
[all …]
Duint.hpp42 template <typename T, unsigned Radix>
54 template <typename T = unsigned int, unsigned Radix = 10>
56 : spirit::terminal<tag::uint_generator<T, Radix> >
185 template <typename T, unsigned Radix>
186 struct use_terminal<karma::domain, tag::uint_generator<T, Radix> >
190 template <typename T, unsigned Radix, typename A0>
192 , terminal_ex<tag::uint_generator<T, Radix>, fusion::vector1<A0> >
196 template <typename T, unsigned Radix>
199 , tag::uint_generator<T, Radix>
245 template <typename T, typename CharEncoding, typename Tag, unsigned Radix>
[all …]
/third_party/boost/boost/spirit/home/x3/numeric/
Dint.hpp20 , unsigned Radix = 10
23 struct int_parser : parser<int_parser<T, Radix, MinDigits, MaxDigits>>
27 (Radix == 2 || Radix == 8 || Radix == 10 || Radix == 16),
37 typedef extract_int<T, Radix, MinDigits, MaxDigits> extract; in parse()
Duint.hpp21 , unsigned Radix = 10
24 struct uint_parser : parser<uint_parser<T, Radix, MinDigits, MaxDigits>>
28 (Radix >= 2 && Radix <= 36),
38 typedef extract_uint<T, Radix, MinDigits, MaxDigits> extract; in parse()
/third_party/boost/boost/spirit/home/classic/core/primitives/impl/
Dnumerics.ipp57 template<const int Radix>
123 // extract_int<Radix, MinDigits, MaxDigits, Accumulate>
126 // The template parameter Radix represents the radix of the
133 // positive_accumulate<Radix> (default) for parsing positive
134 // numbers or negative_accumulate<Radix> otherwise.
159 template <typename T, int Radix>
168 static T const max_div_radix = max/Radix;
172 n *= Radix;
182 n *= Radix;
189 template <typename T, int Radix>
[all …]
/third_party/skia/third_party/externals/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 …]
/third_party/skia/third_party/externals/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.cpp2106 void APInt::toString(SmallVectorImpl<char> &Str, unsigned Radix, in toString() argument
2108 assert((Radix == 10 || Radix == 8 || Radix == 16 || Radix == 2 || in toString()
2109 Radix == 36) && in toString()
2114 switch (Radix) { in toString()
2168 *--BufPtr = Digits[N % Radix]; in toString()
2169 N /= Radix; in toString()
2197 if (Radix == 2 || Radix == 8 || Radix == 16) { in toString()
2199 unsigned ShiftAmt = (Radix == 16 ? 4 : (Radix == 8 ? 3 : 1)); in toString()
2200 unsigned MaskAmt = Radix - 1; in toString()
2208 APInt divisor(Radix == 10? 4 : 8, Radix); in toString()
[all …]
/third_party/boost/boost/spirit/home/classic/core/primitives/
Dnumerics.hpp31 int Radix,
35 struct uint_parser : parser<uint_parser<T, Radix, MinDigits, MaxDigits> >
37 typedef uint_parser<T, Radix, MinDigits, MaxDigits> self_t;
49 typedef impl::uint_parser_impl<T, Radix, MinDigits, MaxDigits> impl_t; in parse()
62 int Radix,
66 struct int_parser : parser<int_parser<T, Radix, MinDigits, MaxDigits> >
68 typedef int_parser<T, Radix, MinDigits, MaxDigits> self_t;
80 typedef impl::int_parser_impl<T, Radix, MinDigits, MaxDigits> impl_t; in parse()
Dnumerics_fwd.hpp24 int Radix = 10,
37 int Radix = 10,
/third_party/boost/boost/spirit/home/karma/numeric/detail/
Dnumeric_utils.hpp467 template <unsigned Radix, typename CharEncoding, typename Tag>
469 : detail::convert_digit<CharEncoding, Tag, (Radix <= 10) ? true : false>
473 template <unsigned Radix>
479 return n / Radix; in call()
487 return floor(n / Radix); in call()
535 template <unsigned Radix>
543 return static_cast<long>(n % Radix); in call()
551 return cast_to_long::call(fmod(n, T(Radix))); in call()
588 unsigned Radix, typename CharEncoding = unused_type
592 typedef traits::convert_digit<Radix, CharEncoding, Tag> radix_type;
[all …]
/third_party/skia/third_party/externals/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 …]
/third_party/skia/third_party/externals/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 …]
/third_party/skia/third_party/externals/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()
/third_party/boost/libs/sort/doc/
Dbibliography.qbk19 [h4 Radix Sort]
22 Wikipedia has an article about Radix Sorting.
23 A more detailed description of various Radix Sorting algorithms is provided here:
40 …_flag and Peter M. McIlroy, Keith Bostic, M. Douglas McIlroy. Engineering Radix Sort, Computing S…
42 [h4 Adaptive Left Radix (ARL)]
44 ARL (Adaptive Left Radix) is a hybrid cache-friendly integer sorting algorithm
/third_party/boost/boost/spirit/home/classic/debug/
Dparser_names.hpp64 template <typename T, int Radix, unsigned MinDigits, int MaxDigits>
66 parser_name(uint_parser<T, Radix, MinDigits, MaxDigits> const& p);
68 template <typename T, int Radix, unsigned MinDigits, int MaxDigits>
70 parser_name(int_parser<T, Radix, MinDigits, MaxDigits> const& p);
/third_party/boost/boost/multiprecision/detail/
Dgeneric_interconvert.hpp422 template <class To, class From, int Radix>
423 void generic_interconvert_float2rational(To& to, const From& from, const mpl::int_<Radix>& /*radix*… in generic_interconvert_float2rational() argument
448 num *= Radix; in generic_interconvert_float2rational()
453 denom = ui_type(Radix); in generic_interconvert_float2rational()
507 template <class To, class From, int Radix>
508 void generic_interconvert_float2int(To& to, const From& from, const mpl::int_<Radix>& /*radix*/) in generic_interconvert_float2int() argument
525 num *= Radix; in generic_interconvert_float2int()
/third_party/boost/libs/spirit/doc/qi/
Dnumeric.qbk82 , unsigned Radix
93 [[`Radix`] [The radix base. This can be
160 T, Radix, MinDigits, MaxDigits
163 [Parse an unsigned integer of type `T` using radix `Radix`, with
168 T, Radix, MinDigits, MaxDigits
171 [Match the literal `num` of type `T` using radix `Radix`, with
227 T, Radix, MinDigits, MaxDigits
230 T, Radix, MinDigits, MaxDigits
326 , unsigned Radix
337 [[`Radix`] [The radix base. This can be
[all …]

12