#include <corecrt_internal.h>
#include <float.h>
#include <stdint.h>
#include <stdlib.h>
Go to the source code of this file.
|
__acrt_fp_class __cdecl | __acrt_fp_classify (double const &value) throw () |
|
bool __cdecl | __acrt_fp_is_negative (double const &value) throw () |
|
| _Success_ (return==0) errno_t __cdecl __acrt_fp_format(_In_ double const *value |
|
| _Maybe_unsafe_ (_Inout_updates_z_, result_buffer_count) char *result_buffer |
|
| _In_fits_precision_ (precision) size_t result_buffer_count |
|
| _Out_writes_ (scratch_buffer_count) char *scratch_buffer |
|
errno_t __cdecl | __acrt_fp_strflt_to_string (_Out_writes_z_(buffer_count) char *buffer, _When_((digits > 0), _In_ _Pre_satisfies_(buffer_count > digits+1)) _When_((digits<=0), _In_ _Pre_satisfies_(buffer_count > 1)) _In_ size_t buffer_count, _In_ int digits, _Inout_ STRFLT value, _In_ __acrt_has_trailing_digits trailing_digits, _In_ __acrt_rounding_mode rounding_mode, _Inout_ __crt_cached_ptd_host &ptd) |
|
__acrt_has_trailing_digits __cdecl | __acrt_fltout (_In_ _CRT_DOUBLE value, _In_ unsigned precision, _In_ __acrt_precision_style precision_style, _Out_ STRFLT result, _Out_writes_z_(buffer_count) char *buffer, _In_ size_t buffer_count) |
|
◆ _In_fits_precision_
#define _In_fits_precision_ |
( |
|
precision_arg | ) |
|
◆ STRFLT
◆ __acrt_fp_class
◆ __acrt_has_trailing_digits
◆ __acrt_precision_style
◆ __acrt_rounding_mode
◆ __acrt_fltout()
◆ __acrt_fp_classify()
Definition at line 122 of file corecrt_internal_fltintrn.h.
123{
126
128
129 bool const value_is_nan_or_infinity =
components._exponent == (1u << floating_traits::exponent_bits) - 1;
130 if (!value_is_nan_or_infinity)
131 {
133 }
135 {
137 }
138 else if (
components._sign == 1 &&
components._mantissa == floating_traits::special_nan_mantissa_mask)
139 {
141 }
142 else if (
components._mantissa & floating_traits::special_nan_mantissa_mask)
143 {
145 }
146 else
147 {
149 }
150}
floating_traits::components_type components_type
GLenum GLenum GLuint components
Referenced by __acrt_fltout(), and __acrt_fp_format().
◆ __acrt_fp_is_negative()
◆ __acrt_fp_strflt_to_string()
◆ _In_fits_precision_()
◆ _Maybe_unsafe_()
◆ _Out_writes_()
◆ _Success_()
_Success_ |
( |
return |
= = 0 | ) |
const |
◆ format
◆ options
◆ precision
◆ ptd
◆ rounding_mode
◆ scratch_buffer_count