78 static char const*
const strings[][4] =
80 {
"INF",
"INF",
"inf",
"inf" },
81 {
"NAN",
"NAN",
"nan",
"nan" },
82 {
"NAN(SNAN)",
"NAN",
"nan(snan)",
"nan" },
83 {
"NAN(IND)",
"NAN",
"nan(ind)",
"nan" },
110static
errno_t fp_format_e_internal(
149 *++
p = *
ptd.get_locale()->locinfo->lconv->decimal_point;
160 char* exponentpos =
p + 2;
186 *
p +=
static_cast<char>(
exp / 100);
194 *
p +=
static_cast<char>(
exp / 10);
198 *++
p +=
static_cast<char>(
exp);
204 if (*exponentpos ==
'0')
206 memmove(exponentpos, exponentpos + 1, 3);
267 unsigned short digit =
static_cast<unsigned short>((
components->_mantissa &
mask) >> maskpos);
279 unsigned __int64 const roundBitsMask = (
static_cast<unsigned __int64>(1) << maskpos) - 1;
290 digit =
static_cast<unsigned short>(((
components->_mantissa / 16) &
mask) >> maskpos);
297 return digit % 2 == 1;
306 unsigned short const digit =
static_cast<unsigned short>((
components->_mantissa &
mask) >> maskpos);
449 *
pos = *
ptd.get_locale()->locinfo->lconv->decimal_point;
457 short maskpos = (floating_traits::mantissa_bits - 1) - 4;
464 unsigned short digit =
static_cast<unsigned short>((
components->_mantissa &
mask) >> maskpos);
468 digit +=
static_cast<unsigned short>(
hexadd);
485 while (*
p ==
'f' || *
p ==
'F')
495 *
p +=
static_cast<char>(1 +
hexadd);
579static
errno_t fp_format_f_internal(
616 if (!
g_fmt || !is_zero_pflt) {
630 *
p++ = *
ptd.get_locale()->locinfo->lconv->decimal_point;
641 memset(
p,
'0', computed_precision);
729 size_t const minus_sign_length = strflt.sign ==
'-' ? 1 : 0;
731 int g_magnitude = strflt.decpt - 1;
739 if (fptostr_result != 0)
742 return fptostr_result;
745 bool const g_round_expansion = g_magnitude < (strflt.decpt - 1);
748 g_magnitude = strflt.decpt - 1;
751 if (g_magnitude < -4 || g_magnitude >=
precision)
759 if (g_round_expansion)
787 double const*
const value,
790 char*
const scratch_buffer,
796 __crt_cached_ptd_host&
ptd
815 return fp_format_nan_or_infinity(
844 _ASSERTE((
"Unsupported format specifier", 0));
errno_t __cdecl __acrt_fp_strflt_to_string(char *const buffer, size_t const buffer_count, int digits, STRFLT const pflt, __acrt_has_trailing_digits const trailing_digits, __acrt_rounding_mode const rounding_mode, __crt_cached_ptd_host &ptd)
ACPI_SIZE strlen(const char *String)
__acrt_has_trailing_digits __cdecl __acrt_fltout(_CRT_DOUBLE value, unsigned const precision, __acrt_precision_style const precision_style, STRFLT const flt, char *const result, size_t const result_count)
#define _CRT_UNBOUNDED_BUFFER_SIZE
#define _Maybe_unsafe_(buffer_annotation, expr)
bool __cdecl __acrt_fp_is_negative(double const &value)
__acrt_has_trailing_digits
#define _In_fits_precision_(precision_arg)
__acrt_fp_class __cdecl __acrt_fp_classify(double const &value)
#define _UCRT_VALIDATE_RETURN_ERRCODE(ptd, expr, errorcode)
#define _CRT_INTERNAL_PRINTF_STANDARD_ROUNDING
#define _CRT_INTERNAL_PRINTF_LEGACY_THREE_DIGIT_EXPONENTS
#define _CRT_INTERNAL_PRINTF_LEGACY_MSVCRT_COMPATIBILITY
int __cdecl fegetround(void)
result_buffer_count char *const _In_ int const _In_ bool const _In_ unsigned const _In_ STRFLT const _In_ bool const g_fmt
static void __cdecl shift_bytes(_Maybe_unsafe_(_Inout_updates_z_, buffer_count) char *const buffer_base, _In_ size_t const buffer_count, _In_range_(buffer_base, buffer_base+buffer_count) char *const string, _In_ int const distance)
buffer_count char *const buffer
result_buffer_count char *const _In_ int const _In_ bool const _In_ unsigned const _In_ STRFLT const _In_ bool const _Inout_ __crt_cached_ptd_host &ptd throw()
result_buffer_count char *const _In_ int const _In_ bool const _In_ unsigned const _In_ STRFLT const pflt
floating_traits::components_type components_type
result_buffer_count char *const _In_ int const _In_ bool const _In_ unsigned const min_exponent_digits
errno_t __cdecl __acrt_fp_format(double const *const value, char *const result_buffer, size_t const result_buffer_count, char *const scratch_buffer, size_t const scratch_buffer_count, int const format, int const precision, uint64_t const options, __acrt_rounding_mode rounding_mode, __crt_cached_ptd_host &ptd)
_In_ size_t const _In_ int _In_ bool const _In_ unsigned const _In_ __acrt_rounding_mode const _Inout_ __crt_cached_ptd_host & ptd
result_buffer_count char *const _In_ int const precision
static bool should_round_up(double const *const argument, unsigned __int64 const mask, short const maskpos, __acrt_rounding_mode const rounding_mode)
result_buffer_count char *const result_buffer
result_buffer_count char *const _In_ int const _In_ bool const capitals
static bool fe_to_nearest(double const *const argument, unsigned __int64 const mask, short const maskpos)
_In_ size_t const scratch_buffer_count
_In_ size_t const _In_ int const _In_ bool const _In_ unsigned const _In_ __acrt_rounding_mode const rounding_mode
struct png_info_def *typedef unsigned char **typedef struct png_info_def *typedef struct png_info_def *typedef struct png_info_def *typedef unsigned char ** row
GLsizei const GLchar *const * strings
GLenum GLenum GLuint components
GLsizei GLsizei GLfloat distance
GLenum GLint GLint * precision
#define memmove(s1, s2, n)
#define strcpy_s(d, l, s)
#define _Out_writes_z_(s)
#define _Inout_updates_z_(s)
#define UNREFERENCED_PARAMETER(P)
_CRT_RESTORE_GCC_WARNINGS _CRT_DISABLE_GCC_WARNINGS _Check_return_ _CRTIMP _CONST_RETURN char *__cdecl strrchr(_In_z_ const char *_Str, _In_ int _Ch)
size_t const result_buffer_count
size_t const buffer_count