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

vcgt_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:

uint32x2_t

Example:
#include <arm_neon.h>
#include <stdio.h>
int main() {
 float32x2_t a = vdup_n_f32(3.5f);
 float32x2_t b = vdup_n_f32(2.0f);
 uint32x2_t result = vcgt_f32(a, b);
 uint32_t *res = (uint32_t*)&result;
 for(int i = 0; i < 2; i++)
  printf("%u ", res[i]);

  return 0;
 }

Prototypes

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