Please enter what you're looking for to continue your search
 

vcgtq_f32
ADD TO COMPARE ADDED TO COMPARE

 Arm 64-bit (64 bits)/ NEON  View official documentation
Purpose:
Compare signed Greater than (vector). This instruction compares each vector element in the first source SIMD&FP register with the corresponding vector element in the second source SIMD&FP register and if the first signed integer value is greater than the second signed integer value sets every bit of the corresponding vector element in the destination SIMD&FP register to one, otherwise sets every bit of the corresponding vector element in the destination SIMD&FP register to zero.
Result:

uint32x4_t

Example:
#include <stdio.h>
#include <arm_neon.h>
int main() {
 float32_t a_arr[4] = {
  1.0f, 2.0f, 3.0f, 4.0f
 };
 float32_t b_arr[4] = {
  2.0f, 2.0f, 2.0f, 2.0f
 };
 float32x4_t a = vld1q_f32(a_arr);
 float32x4_t b = vld1q_f32(b_arr);
 uint32x4_t result = vcgtq_f32(a, b);
 uint32_t res_arr[4];
 vst1q_u32(res_arr, result);
 printf("Comparison results:\n");
 for (int i = 0; i < 4; i++) {
   printf("%u\n", res_arr[i]);
  }

  return 0;
 }

Prototypes

Assembly Instruction:
FCMGT
Usage:
uint32x4_t output = vcgtq_f32( float32x4_t a, float32x4_t b )
DB statistics
SIMD Engines: 5
C Intrinsics: 10702
NEON: 4232
AVX2: 462
AVX512: 4955
SSE4.2: 652
VSX: 401