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

_mm_cmpgt_epi64
ADD TO COMPARE ADDED TO COMPARE

 Location: Comparison  >  Vector Compare Greater Than, return Vector Mask
 CPU Extensions: SSE4.2
Purpose:
Compare packed signed 64-bit integers in a and b for greater-than, and store the results in output.
Result:

__m128i

Example:
#include <nmmintrin.h>
#include <stdio.h>
int main() {
 __m128i a = _mm_set_epi64x(100000, -200000);
 __m128i b = _mm_set_epi64x(50000, -250000);
 __m128i result = _mm_cmpgt_epi64(a, b);
 long long *res = (long long*)&result;
 for(int i = 0; i < 2; i++)
  printf("%lld ", res[i]);

  return 0;
 }

Prototypes

Assembly Instruction:
pcmpgtq
Usage:
__m128i result = _mm_cmpgt_epi64( __m128i a, __m128i b )
Performance Metrics:
📊 Unlock Performance Insights

Get access to detailed performance metrics including latency, throughput, and CPU-specific benchmarks for this intrinsic.

SIMD Intrinsics Summary
SIMD Engines: 6
C Intrinsics: 10444
NEON: 4353
AVX2: 405
AVX512: 4717
SSE4.2: 598
VSX: 192
IBM-Z: 179