Lines Matching defs:__value

48 __to_chars_itoa(char* __first, char* __last, _Tp __value, false_type);
52 __to_chars_itoa(char* __first, char* __last, _Tp __value, true_type) {
53 auto __x = std::__to_unsigned_like(__value);
54 if (__value < 0 && __first != __last) {
64 __to_chars_itoa(char* __first, char* __last, _Tp __value, false_type) {
68 if (__tx::digits <= __diff || __tx::__width(__value) <= __diff)
69 return {__tx::__convert(__first, __value), errc(0)};
77 __to_chars_itoa(char* __first, char* __last, __uint128_t __value, false_type) {
82 if (__value <= numeric_limits<uint64_t>::max())
83 return __to_chars_itoa(__first, __last, static_cast<uint64_t>(__value), false_type());
88 if (__tx::digits <= __diff || __tx::__width(__value) <= __diff)
89 return {__tx::__convert(__first, __value), errc(0)};
97 __to_chars_integral(char* __first, char* __last, _Tp __value, int __base, false_type);
101 __to_chars_integral(char* __first, char* __last, _Tp __value, int __base, true_type) {
102 auto __x = std::__to_unsigned_like(__value);
103 if (__value < 0 && __first != __last) {
119 _LIBCPP_HIDE_FROM_ABI static constexpr int __width(_Tp __value) noexcept {
123 return numeric_limits<_Tp>::digits - std::__libcpp_clz(__value | 1);
128 __to_chars(char* __first, char* __last, _Tp __value) {
130 int __n = __width(__value);
137 while (__value > __divisor) {
138 unsigned __c = __value % __divisor;
139 __value /= __divisor;
144 unsigned __c = __value % 2;
145 __value /= 2;
147 } while (__value != 0);
155 _LIBCPP_HIDE_FROM_ABI static constexpr int __width(_Tp __value) noexcept {
159 return ((numeric_limits<_Tp>::digits - std::__libcpp_clz(__value | 1)) + 2) / 3;
164 __to_chars(char* __first, char* __last, _Tp __value) {
166 int __n = __width(__value);
173 while (__value > __divisor) {
174 unsigned __c = __value % __divisor;
175 __value /= __divisor;
180 unsigned __c = __value % 8;
181 __value /= 8;
183 } while (__value != 0);
191 _LIBCPP_HIDE_FROM_ABI static constexpr int __width(_Tp __value) noexcept {
195 return (numeric_limits<_Tp>::digits - std::__libcpp_clz(__value | 1) + 3) / 4;
200 __to_chars(char* __first, char* __last, _Tp __value) {
202 int __n = __width(__value);
209 while (__value > __divisor) {
210 unsigned __c = __value % __divisor;
211 __value /= __divisor;
217 unsigned __c = __value % 16;
218 __value /= 16;
220 } while (__value != 0);
228 _LIBCPP_CONSTEXPR_SINCE_CXX23 _LIBCPP_HIDE_FROM_ABI int __to_chars_integral_width(_Tp __value) {
229 return __itoa::__integral<_Base>::__width(__value);
233 _LIBCPP_CONSTEXPR_SINCE_CXX23 _LIBCPP_HIDE_FROM_ABI int __to_chars_integral_width(_Tp __value) {
234 return std::__to_chars_integral_width<_Base>(static_cast<unsigned>(__value));
239 __to_chars_integral(char* __first, char* __last, _Tp __value) {
240 return __itoa::__integral<_Base>::__to_chars(__first, __last, __value);
245 __to_chars_integral(char* __first, char* __last, _Tp __value) {
246 return std::__to_chars_integral<_Base>(__first, __last, static_cast<unsigned>(__value));
250 _LIBCPP_CONSTEXPR_SINCE_CXX23 _LIBCPP_HIDE_FROM_ABI int __to_chars_integral_width(_Tp __value, unsigned __base) {
251 _LIBCPP_ASSERT_INTERNAL(__value >= 0, "The function requires a non-negative value.");
259 if (__value < __base)
261 if (__value < __base_2)
263 if (__value < __base_3)
265 if (__value < __base_4)
268 __value /= __base_4;
277 __to_chars_integral(char* __first, char* __last, _Tp __value, int __base, false_type) {
279 return std::__to_chars_itoa(__first, __last, __value, false_type());
283 return std::__to_chars_integral<2>(__first, __last, __value);
285 return std::__to_chars_integral<8>(__first, __last, __value);
287 return std::__to_chars_integral<16>(__first, __last, __value);
291 int __n = std::__to_chars_integral_width(__value, __base);
298 unsigned __c = __value % __base;
299 __value /= __base;
301 } while (__value != 0);
307 to_chars(char* __first, char* __last, _Tp __value) {
310 return std::__to_chars_itoa(__first, __last, static_cast<_Type>(__value), is_signed<_Tp>());
315 to_chars(char* __first, char* __last, _Tp __value, int __base) {
319 return std::__to_chars_integral(__first, __last, static_cast<_Type>(__value), __base, is_signed<_Tp>());