\( % Arcus cosine. \def\acos{\cos^{-1}} % Vector projection. \def\projection#1#2{{proj_{#1}\left(#2\right)}} % Vector rejection. \def\rejection#1#2{{rej_{#1}\left(#2\right)}} % Norm. \def\norm#1{{\left\|#1\right\|}} % Cross product. \def\cross#1#2{\mathit{cross}\left(#1,#2\right)} % Dot product. \def\dot#1#2{{#1 \cdot #2}} % Magnitude. \def\mag#1{{\left|#1\right}} \def\group#1{\left(#1\right)}} \def\sbgrp#1{\left\{#1\right\}} \)

Ring1_Intrinsic_Fp_getBits

Get the bits of a IEEE754 32 bit floating-point number value.

Ring1_Result
Ring1_Intrinsic_Fp_getBits_suffix
  (
    resultType* result,
    valuetype value
  )

The following table denotes the valid combinations of suffix and type

suffix resultType valueType
f32 uint32_t float
f64 uint64_t double

This function gets the bits of the IEEE754 bit floating-point number value value. Certain value of value are treated diffently than others:

  • If value is a not number value, then value is treated as if it was Ring1_Intrinsic_Fp_NoNumber_suffix.
  • If value is Ring1_Intrinsic_Fp_NegativeZero_suffix, then value is treated as if it was Ring1_Intrinsic_Fp_PositiveZero_suffix.

Parameter Variables

result
A pointer to a result variable.
value
A value variable.

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 was NULL.

If this function fails, result is not dereferenced.

If this function succeeds, result is assigned the raw bits of the IEEE754 floating-point value value.

Return Values

Ring1_Result_Success on success, Ring1_Result_Failure on failure.