Other-Convert-Other#
_cvtsh_ss#
- Tech:
Other
- Category:
Convert
- Header:
emmintrin.h
- Searchable:
Other-Convert-Other
- Return Type:
float
- Param Types:
unsigned short a
- Param ETypes:
UI16 a
float _cvtsh_ss(unsigned short a);
Intel Description
Convert the half-precision (16-bit) floating-point value “a” to a single-precision (32-bit) floating-point value, and store the result in “dst”.
Intel Implementation Psudeo-Code
dst[31:0] := Convert_FP16_To_FP32(a[15:0])
_cvtss_sh#
- Tech:
Other
- Category:
Convert
- Header:
emmintrin.h
- Searchable:
Other-Convert-Other
- Return Type:
unsigned short
- Param Types:
float a, int rounding
- Param ETypes:
FP32 a, IMM rounding
unsigned short _cvtss_sh(float a, int rounding);
Intel Description
- Convert the single-precision (32-bit) floating-point value “a” to a half-precision (16-bit) floating-point value, and store the result in “dst”.
[round_note]
Intel Implementation Psudeo-Code
dst[15:0] := Convert_FP32_To_FP16(a[31:0])