include stdio.h include smmintrin.h int main () __m128 a; a.m128_f32[3] = 10.25; a.m128_f32[2] = -6.5; a.m128_f32[1] = 0; a.m128_f32[0] = 0.125; __m128 res = _mm_ceil_ps( a ); printf_s(Original a: %8f %8f %8f %8f\n, a.m128_f32[3], a.m128_f32[2], a.m128_f32[1], a.m128_f32[0]); printf_s(Result res: %8f %8f %8f %8f\n, res.m128_f32[3], res.m128_f32[2], res.m128_f32[1], res.m128_f32[0]); return 0;
A 128-bit parameter that contains four 32-bit floating point values.
Original a: 10.250000 -6.500000 0.000000 0.125000 Result res: 11.000000 -6.000000 0.000000 1.000000
Before using this intrinsic, software must ensure that the processor supports the instruction.
Emits the Streaming SIMD Extensions 4 (SSE4) instructionroundps. This instruction rounds up packed single precision floating point values.
We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.
This documentation is archived and is not being maintained.
This function is implemented as a macro that invokes intrinsic_mm_round_pswith appropriate rounding control.
The return valuerand parameteraeach consist of 128 bits.r0-r3anda0-a3are the sequentially ordered 32-bit components of these parameters, wherer0anda0denote the least significant 32 bits.
Were sorry. The content you requested has been removed. Youll be auto redirected in 1 second.