The type-casting module provides safe casting between C types. Overflows or underflows in the destination type's range are reported as errors to the transaction. More...
Files | |
| file | picotm-cast-ctypes.h |
| Transactional, safe type casting for native C types. | |
| file | picotm-cast.h |
| Public interfaces of picotm's type-casting module. | |
Macros | |
| #define | PICOTM_CAST_TX(__sname, __stype, __dname, __dtype, __dmin, __dmax) |
Functions | |
| static char | cast__Bool_to_char_tx (_Bool value) |
| static double | cast__Bool_to_double_tx (_Bool value) |
| static float | cast__Bool_to_float_tx (_Bool value) |
| static int | cast__Bool_to_int_tx (_Bool value) |
| static long double | cast__Bool_to_ldouble_tx (_Bool value) |
| static long long | cast__Bool_to_llong_tx (_Bool value) |
| static long | cast__Bool_to_long_tx (_Bool value) |
| static signed char | cast__Bool_to_schar_tx (_Bool value) |
| static short | cast__Bool_to_short_tx (_Bool value) |
| static unsigned char | cast__Bool_to_uchar_tx (_Bool value) |
| static unsigned int | cast__Bool_to_uint_tx (_Bool value) |
| static unsigned long long | cast__Bool_to_ullong_tx (_Bool value) |
| static unsigned long | cast__Bool_to_ulong_tx (_Bool value) |
| static unsigned short | cast__Bool_to_ushort_tx (_Bool value) |
| static _Bool | cast_char_to__Bool_tx (char value) |
| static double | cast_char_to_double_tx (char value) |
| static float | cast_char_to_float_tx (char value) |
| static int | cast_char_to_int_tx (char value) |
| static long double | cast_char_to_ldouble_tx (char value) |
| static long long | cast_char_to_llong_tx (char value) |
| static long | cast_char_to_long_tx (char value) |
| static signed char | cast_char_to_schar_tx (char value) |
| static short | cast_char_to_short_tx (char value) |
| static unsigned char | cast_char_to_uchar_tx (char value) |
| static unsigned int | cast_char_to_uint_tx (char value) |
| static unsigned long long | cast_char_to_ullong_tx (char value) |
| static unsigned long | cast_char_to_ulong_tx (char value) |
| static unsigned short | cast_char_to_ushort_tx (char value) |
| static float | cast_double_to_float_tx (double value) |
| static long double | cast_double_to_ldouble_tx (double value) |
| static double | cast_float_to_double_tx (float value) |
| static long double | cast_float_to_ldouble_tx (float value) |
| static _Bool | cast_int_to__Bool_tx (int value) |
| static char | cast_int_to_char_tx (int value) |
| static double | cast_int_to_double_tx (int value) |
| static float | cast_int_to_float_tx (int value) |
| static long double | cast_int_to_ldouble_tx (int value) |
| static long long | cast_int_to_llong_tx (int value) |
| static long | cast_int_to_long_tx (int value) |
| static signed char | cast_int_to_schar_tx (int value) |
| static short | cast_int_to_short_tx (int value) |
| static unsigned char | cast_int_to_uchar_tx (int value) |
| static unsigned int | cast_int_to_uint_tx (int value) |
| static unsigned long long | cast_int_to_ullong_tx (int value) |
| static unsigned long | cast_int_to_ulong_tx (int value) |
| static unsigned short | cast_int_to_ushort_tx (int value) |
| static double | cast_ldouble_to_double_tx (long double value) |
| static float | cast_ldouble_to_float_tx (long double value) |
| static _Bool | cast_llong_to__Bool_tx (long long value) |
| static char | cast_llong_to_char_tx (long long value) |
| static double | cast_llong_to_double_tx (long long value) |
| static float | cast_llong_to_float_tx (long long value) |
| static int | cast_llong_to_int_tx (long long value) |
| static long double | cast_llong_to_ldouble_tx (long long value) |
| static long | cast_llong_to_long_tx (long long value) |
| static signed char | cast_llong_to_schar_tx (long long value) |
| static short | cast_llong_to_short_tx (long long value) |
| static unsigned char | cast_llong_to_uchar_tx (long long value) |
| static unsigned int | cast_llong_to_uint_tx (long long value) |
| static unsigned long long | cast_llong_to_ullong_tx (long long value) |
| static unsigned long | cast_llong_to_ulong_tx (long long value) |
| static unsigned short | cast_llong_to_ushort_tx (long long value) |
| static _Bool | cast_long_to__Bool_tx (long value) |
| static char | cast_long_to_char_tx (long value) |
| static double | cast_long_to_double_tx (long value) |
| static float | cast_long_to_float_tx (long value) |
| static int | cast_long_to_int_tx (long value) |
| static long double | cast_long_to_ldouble_tx (long value) |
| static long long | cast_long_to_llong_tx (long value) |
| static signed char | cast_long_to_schar_tx (long value) |
| static short | cast_long_to_short_tx (long value) |
| static unsigned char | cast_long_to_uchar_tx (long value) |
| static unsigned int | cast_long_to_uint_tx (long value) |
| static unsigned long long | cast_long_to_ullong_tx (long value) |
| static unsigned long | cast_long_to_ulong_tx (long value) |
| static unsigned short | cast_long_to_ushort_tx (long value) |
| static _Bool | cast_schar_to__Bool_tx (signed char value) |
| static char | cast_schar_to_char_tx (signed char value) |
| static double | cast_schar_to_double_tx (signed char value) |
| static float | cast_schar_to_float_tx (signed char value) |
| static int | cast_schar_to_int_tx (signed char value) |
| static long double | cast_schar_to_ldouble_tx (signed char value) |
| static long long | cast_schar_to_llong_tx (signed char value) |
| static long | cast_schar_to_long_tx (signed char value) |
| static short | cast_schar_to_short_tx (signed char value) |
| static unsigned char | cast_schar_to_uchar_tx (signed char value) |
| static unsigned int | cast_schar_to_uint_tx (signed char value) |
| static unsigned long long | cast_schar_to_ullong_tx (signed char value) |
| static unsigned long | cast_schar_to_ulong_tx (signed char value) |
| static unsigned short | cast_schar_to_ushort_tx (signed char value) |
| static _Bool | cast_short_to__Bool_tx (short value) |
| static char | cast_short_to_char_tx (short value) |
| static double | cast_short_to_double_tx (short value) |
| static float | cast_short_to_float_tx (short value) |
| static int | cast_short_to_int_tx (short value) |
| static long double | cast_short_to_ldouble_tx (short value) |
| static long long | cast_short_to_llong_tx (short value) |
| static long | cast_short_to_long_tx (short value) |
| static signed char | cast_short_to_schar_tx (short value) |
| static unsigned char | cast_short_to_uchar_tx (short value) |
| static unsigned int | cast_short_to_uint_tx (short value) |
| static unsigned long long | cast_short_to_ullong_tx (short value) |
| static unsigned long | cast_short_to_ulong_tx (short value) |
| static unsigned short | cast_short_to_ushort_tx (short value) |
| static _Bool | cast_uchar_to__Bool_tx (unsigned char value) |
| static char | cast_uchar_to_char_tx (unsigned char value) |
| static double | cast_uchar_to_double_tx (unsigned char value) |
| static float | cast_uchar_to_float_tx (unsigned char value) |
| static int | cast_uchar_to_int_tx (unsigned char value) |
| static long double | cast_uchar_to_ldouble_tx (unsigned char value) |
| static long long | cast_uchar_to_llong_tx (unsigned char value) |
| static long | cast_uchar_to_long_tx (unsigned char value) |
| static signed char | cast_uchar_to_schar_tx (unsigned char value) |
| static short | cast_uchar_to_short_tx (unsigned char value) |
| static unsigned int | cast_uchar_to_uint_tx (unsigned char value) |
| static unsigned long long | cast_uchar_to_ullong_tx (unsigned char value) |
| static unsigned long | cast_uchar_to_ulong_tx (unsigned char value) |
| static unsigned short | cast_uchar_to_ushort_tx (unsigned char value) |
| static _Bool | cast_uint_to__Bool_tx (unsigned int value) |
| static char | cast_uint_to_char_tx (unsigned int value) |
| static double | cast_uint_to_double_tx (unsigned int value) |
| static float | cast_uint_to_float_tx (unsigned int value) |
| static int | cast_uint_to_int_tx (unsigned int value) |
| static long double | cast_uint_to_ldouble_tx (unsigned int value) |
| static long long | cast_uint_to_llong_tx (unsigned int value) |
| static long | cast_uint_to_long_tx (unsigned int value) |
| static signed char | cast_uint_to_schar_tx (unsigned int value) |
| static short | cast_uint_to_short_tx (unsigned int value) |
| static unsigned char | cast_uint_to_uchar_tx (unsigned int value) |
| static unsigned long long | cast_uint_to_ullong_tx (unsigned int value) |
| static unsigned long | cast_uint_to_ulong_tx (unsigned int value) |
| static unsigned short | cast_uint_to_ushort_tx (unsigned int value) |
| static _Bool | cast_ullong_to__Bool_tx (unsigned long long value) |
| static char | cast_ullong_to_char_tx (unsigned long long value) |
| static double | cast_ullong_to_double_tx (unsigned long long value) |
| static float | cast_ullong_to_float_tx (unsigned long long value) |
| static int | cast_ullong_to_int_tx (unsigned long long value) |
| static long double | cast_ullong_to_ldouble_tx (unsigned long long value) |
| static long long | cast_ullong_to_llong_tx (unsigned long long value) |
| static long | cast_ullong_to_long_tx (unsigned long long value) |
| static signed char | cast_ullong_to_schar_tx (unsigned long long value) |
| static short | cast_ullong_to_short_tx (unsigned long long value) |
| static unsigned char | cast_ullong_to_uchar_tx (unsigned long long value) |
| static unsigned int | cast_ullong_to_uint_tx (unsigned long long value) |
| static unsigned long | cast_ullong_to_ulong_tx (unsigned long long value) |
| static unsigned short | cast_ullong_to_ushort_tx (unsigned long long value) |
| static _Bool | cast_ulong_to__Bool_tx (unsigned long value) |
| static char | cast_ulong_to_char_tx (unsigned long value) |
| static double | cast_ulong_to_double_tx (unsigned long value) |
| static float | cast_ulong_to_float_tx (unsigned long value) |
| static int | cast_ulong_to_int_tx (unsigned long value) |
| static long double | cast_ulong_to_ldouble_tx (unsigned long value) |
| static long long | cast_ulong_to_llong_tx (unsigned long value) |
| static long | cast_ulong_to_long_tx (unsigned long value) |
| static signed char | cast_ulong_to_schar_tx (unsigned long value) |
| static short | cast_ulong_to_short_tx (unsigned long value) |
| static unsigned char | cast_ulong_to_uchar_tx (unsigned long value) |
| static unsigned int | cast_ulong_to_uint_tx (unsigned long value) |
| static unsigned long long | cast_ulong_to_ullong_tx (unsigned long value) |
| static unsigned short | cast_ulong_to_ushort_tx (unsigned long value) |
| static _Bool | cast_ushort_to__Bool_tx (unsigned short value) |
| static char | cast_ushort_to_char_tx (unsigned short value) |
| static double | cast_ushort_to_double_tx (unsigned short value) |
| static float | cast_ushort_to_float_tx (unsigned short value) |
| static int | cast_ushort_to_int_tx (unsigned short value) |
| static long double | cast_ushort_to_ldouble_tx (unsigned short value) |
| static long long | cast_ushort_to_llong_tx (unsigned short value) |
| static long | cast_ushort_to_long_tx (unsigned short value) |
| static signed char | cast_ushort_to_schar_tx (unsigned short value) |
| static short | cast_ushort_to_short_tx (unsigned short value) |
| static unsigned char | cast_ushort_to_uchar_tx (unsigned short value) |
| static unsigned int | cast_ushort_to_uint_tx (unsigned short value) |
| static unsigned long long | cast_ushort_to_ullong_tx (unsigned short value) |
| static unsigned long | cast_ushort_to_ulong_tx (unsigned short value) |
The type-casting module provides safe casting between C types. Type casting is subject to overflows or underflows of the destination type's range. For example, casting the value of 512 from 16-bit-wide short to 8-bit-wide signed char overflows the range of signed char. Similarly, casting from signed to unsigned types underflows the destination type's range if the source value is negative.
All type-casting functions are in the form of cast_<source type>_to_<destination type>_tx(), where <source type> and <destination type> are names for C types. Each function takes a value of the source type and returns the same value casted to the destination type.
Picotm's type-casting module comes with pre-defined functions for converting between all C-native integer types, and for converting from C-native integer to floating-point types. Here's an example transaction that casts a value from long to int.
Depending on the system's architecture, type long is either 32 bit of 64 bit in size. The example succeeds on 32-bit systems but reports an error on 64-bit systems.
The C preprocessor macro PICOTM_CAST_TX() creates a cast function for a specific pair of types and limits. We can use it to define cast functions for application-specific types. All pre-defined conversion function are created with this macro, so casts for application types share the same behaviour and features.
For example, our application might define the floating-point type float100, which is only defined from minus 100 to plus 100.
We can now create a function for casting from float to float100 using PICOTM_CAST_TX().
This macro expands to a function that casts from type float to type float100.
The return value of this function is of type float100 and spans values between -FLT_MAX and FLT_MAX, which has been defined to 100. If the parameter overflows or underflows this range, the function signals ERANGE to the transaction's recovery code.
Similarly, we can define a function for casting from unsigned char to float100.
This expands to the function shown below. Note that we used uchar for function names that involve unsigned char.
We can also cast from float100 to another type. The cast's minimum and maximum values are always relative to the destination type. So for a cast from float100 to unsigned char we have to use 0 and UCHAR_MAX as the limits.
Conversions from floating-point to integer types are not supported by the type-casting module, as they involve floating-point rounding modes. Transactional conversion functions from picotm's C Math Library module perform such operations.
Also not supported by the type-casting module are conversions from and to C strings. The sscanf_tx() and snprintf_tx() families of functions from picotm's C Standard Library Module perform these operations.
Results or parameters of type-casting operations should be loaded into the transaction or stored from the transaction using the Transactional memory module.
| #define PICOTM_CAST_TX | ( | __sname, | |
| __stype, | |||
| __dname, | |||
| __dtype, | |||
| __dmin, | |||
| __dmax | |||
| ) |
Defines a C function that casts a value from a source type to a destination type.
| __sname | The name of the source type. |
| __stype | The C type of the source value. |
| __dname | The name of the destination type. |
| __dtype | The C type of the destination value. |
| __dmin | The minimum value of the destination type. |
| __dmax | The maximum value of the destination type. |
|
inlinestatic |
Casts a value of type _Bool to type char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type _Bool to type double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type _Bool to type float. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
float.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type _Bool to type int. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
int.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type _Bool to type long double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type _Bool to type long long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type _Bool to type long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type _Bool to type signed char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
signed char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type _Bool to type short. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
short.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type _Bool to type unsigned char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type _Bool to type unsigned int. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned int.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type _Bool to type unsigned long long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned long long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type _Bool to type unsigned long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type _Bool to type unsigned short. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned short.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type char to type _Bool. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
_Bool.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type char to type double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type char to type float. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
float.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type char to type int. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
int.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type char to type long double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type char to type long long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type char to type long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type char to type signed char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
signed char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type char to type short. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
short.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type char to type unsigned char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type char to type unsigned int. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned int.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type char to type unsigned long long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned long long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type char to type unsigned long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type char to type unsigned short. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned short.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type double to type float. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
float.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type double to type long double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type float to type double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type float to type long double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type int to type _Bool. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
_Bool.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type int to type char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type int to type double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type int to type float. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
float.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type int to type long double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type int to type long long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type int to type long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type int to type signed char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
signed char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type int to type short. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
short.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type int to type unsigned char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type int to type unsigned int. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned int.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type int to type unsigned long long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned long long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type int to type unsigned long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type int to type unsigned short. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned short.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long double to type double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long double to type float. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
float.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long long to type _Bool. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
_Bool.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long long to type char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long long to type double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long long to type float. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
float.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long long to type int. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
int.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long long to type long double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long long to type long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long long to type signed char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
signed char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long long to type short. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
short.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long long to type unsigned char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long long to type unsigned int. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned int.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long long to type unsigned long long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned long long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long long to type unsigned long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long long to type unsigned short. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned short.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long to type _Bool. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
_Bool.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long to type char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long to type double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long to type float. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
float.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long to type int. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
int.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long to type long double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long to type long long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long to type signed char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
signed char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long to type short. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
short.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long to type unsigned char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long to type unsigned int. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned int.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long to type unsigned long long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned long long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long to type unsigned long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type long to type unsigned short. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned short.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type signed char to type _Bool. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
_Bool.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type signed char to type char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type signed char to type double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type signed char to type float. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
float.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type signed char to type int. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
int.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type signed char to type long double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type signed char to type long long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type signed char to type long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type signed char to type short. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
short.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type signed char to type unsigned char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type signed char to type unsigned int. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned int.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type signed char to type unsigned long long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned long long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type signed char to type unsigned long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type signed char to type unsigned short. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned short.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type short to type _Bool. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
_Bool.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type short to type char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type short to type double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type short to type float. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
float.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type short to type int. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
int.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type short to type long double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type short to type long long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type short to type long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type short to type signed char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
signed char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type short to type unsigned char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type short to type unsigned int. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned int.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type short to type unsigned long long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned long long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type short to type unsigned long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type short to type unsigned short. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned short.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned char to type _Bool. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
_Bool.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned char to type char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned char to type double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned char to type float. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
float.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned char to type int. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
int.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned char to type long double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned char to type long long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned char to type long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned char to type signed char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
signed char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned char to type short. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
short.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned char to type unsigned int. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned int.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned char to type unsigned long long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned long long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned char to type unsigned long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned char to type unsigned short. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned short.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned int to type _Bool. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
_Bool.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned int to type char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned int to type double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned int to type float. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
float.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned int to type int. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
int.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned int to type long double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned int to type long long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned int to type long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned int to type signed char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
signed char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned int to type short. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
short.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned int to type unsigned char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned int to type unsigned long long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned long long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned int to type unsigned long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned int to type unsigned short. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned short.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long long to type _Bool. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
_Bool.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long long to type char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long long to type double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long long to type float. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
float.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long long to type int. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
int.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long long to type long double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long long to type long long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long long to type long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long long to type signed char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
signed char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long long to type short. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
short.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long long to type unsigned char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long long to type unsigned int. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned int.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long long to type unsigned long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long long to type unsigned short. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned short.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long to type _Bool. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
_Bool.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long to type char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long to type double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long to type float. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
float.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long to type int. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
int.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long to type long double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long to type long long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long to type long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long to type signed char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
signed char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long to type short. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
short.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long to type unsigned char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long to type unsigned int. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned int.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long to type unsigned long long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned long long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned long to type unsigned short. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned short.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned short to type _Bool. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
_Bool.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned short to type char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned short to type double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned short to type float. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
float.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned short to type int. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
int.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned short to type long double. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long double.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned short to type long long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned short to type long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned short to type signed char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
signed char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned short to type short. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
short.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned short to type unsigned char. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned char.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned short to type unsigned int. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned int.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned short to type unsigned long long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned long long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |
|
inlinestatic |
Casts a value of type unsigned short to type unsigned long. The function detects overflows and underflows of the destination type's range and reports them as errno code to the transaction's recovery phase.
| value | The value. |
unsigned long.| ERANGE | Reported to the transaction's recovery phase if the addition's result overflows the type's range. |
| ERANGE | Reported to the transaction's recovery phase if the addition's result underflows the type's range. |