clang  3.9.0
Macros | Functions
f16cintrin.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __DEFAULT_FN_ATTRS   __attribute__((__always_inline__, __nodebug__, __target__("f16c")))
 
#define _cvtss_sh(a, imm)
 Converts a 32-bit single-precision float value to a 16-bit half-precision float value. More...
 
#define _mm_cvtps_ph(a, imm)   ((__m128i)__builtin_ia32_vcvtps2ph((__v4sf)(__m128)(a), (imm)))
 Converts a 128-bit vector containing 32-bit float values into a 128-bit vector containing 16-bit half-precision float values. More...
 

Functions

static __inline float
__DEFAULT_FN_ATTRS 
_cvtsh_ss (unsigned short __a)
 Converts a 16-bit half-precision float value into a 32-bit float value. More...
 
static __inline __m128
__DEFAULT_FN_ATTRS 
_mm_cvtph_ps (__m128i __a)
 Converts a 128-bit vector containing 16-bit half-precision float values into a 128-bit vector containing 32-bit float values. More...
 

Macro Definition Documentation

#define __DEFAULT_FN_ATTRS   __attribute__((__always_inline__, __nodebug__, __target__("f16c")))

Definition at line 32 of file f16cintrin.h.

#define _cvtss_sh (   a,
  imm 
)
Value:
((unsigned short)(((__v8hi)__builtin_ia32_vcvtps2ph((__v4sf){a, 0, 0, 0}, \
(imm)))[0]))

Converts a 32-bit single-precision float value to a 16-bit half-precision float value.

unsigned short _cvtss_sh(float a, const int imm);

This intrinsic corresponds to the VCVTPS2PH instruction.

Parameters
aA 32-bit single-precision float value to be converted to a 16-bit half-precision float value.
immAn immediate value controlling rounding using bits [2:0]: 000: Nearest 001: Down 010: Up 011: Truncate 1XX: Use MXCSR.RC for rounding
Returns
The converted 16-bit half-precision float value.

Definition at line 75 of file f16cintrin.h.

#define _mm_cvtps_ph (   a,
  imm 
)    ((__m128i)__builtin_ia32_vcvtps2ph((__v4sf)(__m128)(a), (imm)))

Converts a 128-bit vector containing 32-bit float values into a 128-bit vector containing 16-bit half-precision float values.

__m128i _mm_cvtps_ph(__m128 a, const int imm);

This intrinsic corresponds to the VCVTPS2PH instruction.

Parameters
aA 128-bit vector containing 32-bit float values.
immAn immediate value controlling rounding using bits [2:0]: 000: Nearest 001: Down 010: Up 011: Truncate 1XX: Use MXCSR.RC for rounding
Returns
A 128-bit vector containing converted 16-bit half-precision float values. The lower 64 bits are used to store the converted 16-bit half-precision floating-point values.

Definition at line 102 of file f16cintrin.h.

Function Documentation

static __inline float __DEFAULT_FN_ATTRS _cvtsh_ss ( unsigned short  __a)
static

Converts a 16-bit half-precision float value into a 32-bit float value.

This intrinsic corresponds to the VCVTPH2PS instruction.

Parameters
__aA 16-bit half-precision float value.
Returns
The converted 32-bit float value.

Definition at line 46 of file f16cintrin.h.

References v.

static __inline __m128 __DEFAULT_FN_ATTRS _mm_cvtph_ps ( __m128i  __a)
static

Converts a 128-bit vector containing 16-bit half-precision float values into a 128-bit vector containing 32-bit float values.

This intrinsic corresponds to the VCVTPH2PS instruction.

Parameters
__aA 128-bit vector containing 16-bit half-precision float values. The lower 64 bits are used in the conversion.
Returns
A 128-bit vector of [4 x float] containing converted float values.

Definition at line 117 of file f16cintrin.h.