Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 7/13/2023
Public
Document Table of Contents

_mm256_cvtps_ph()

Converts eight single-precision floating point values to half-precision (16-bit) floating point values. The corresponding 3rd Generation Intel® Core™ Processor extension instruction is VCVTPS2PH.

Syntax

extern __m128i _mm_cvtps_ph(__m256 x, int imm);

Arguments

X

a vector containing eight single-precision FP values

Imm

a conversion control constant

Description

This intrinsic converts eight single-precision floating point values to half-precision (16-bit) floating point values.