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

_mm256_cmpgt_epi64
ADD TO COMPARE ADDED TO COMPARE

Purpose:
Compare packed signed 64-bit integers in a and b for greater-than, and store the results in output.
Result:

__m256i

Example:
#include <immintrin.h>
#include <stdio.h>
int main() {
 __m256i a = _mm256_set_epi64x(100000, -200000, 300000, 400000);
 __m256i b = _mm256_set_epi64x(50000, -250000, 200000, 450000);
 __m256i result = _mm256_cmpgt_epi64(a, b);
 long long *res = (long long*)&result;
 for(int i = 0; i < 4; i++)
  printf("%lld ", res[i]);

  return 0;
 }

Prototypes

Assembly Instruction:
vpcmpgtq
Usage:
__m256i result = _mm256_cmpgt_epi64( __m256i a, __m256i 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