Ring1_Intrinsic_minimum
Get the minimum of two values.
Ring1_Result
Ring1_Intrinsic_clamp_suffix
(
type *result,
type x,
type y
)
The following table denotes the valid combinations of suffix and type
suffix |
type |
f32 |
float |
f64 |
double |
u8 |
uint8_t |
u16 |
uint16_t |
u32 |
uint32_t |
u64 |
uint64_t |
s8 |
int8_t |
s16 |
int16_t |
s32 |
int32_t |
s64 |
int64_t |
sz |
size_t |
This function gets the minimum of two values.
Parameter Values
result
- A pointer to a
type
variable. x
- The first value.
y
- The second value.
Return Values
Ring1_Result_Success
on success,
Ring1_Result_Failure
on failure.
Post Conditions
If this function fails, then it sets the by-thread status variable.
Below is a list of failure conditions and the status codes indicating them.
Ring1_Status_InvalidArgument
result
wasNULL
.Ring1_Status_InvalidArgument
x
wasRing1_Intrinsic_Fp_NoNumber_suffix
.Ring1_Status_InvalidArgument
y
wasRing1_Intrinsic_Fp_NoNumber_suffix
.
If this function succeeds, then *result
was assigned the minimum of x
and
y
.