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

_mm256_andnot_ps
ADD TO COMPARE ADDED TO COMPARE

 Intel 64-bit (64 bits)/ AVX2  View official documentation
 Location: Boolean Logic & Bit Manipulation  >  Boolean AND NOT
 CPU Extensions: AVX
Purpose:
Compute the bitwise NOT of packed single-precision (32-bit) floating-point elements in a and then AND with b, and store the results in output.
Result:

__m256

Example:
#include <immintrin.h>
#include <stdio.h>
int main() {
 __m256 a = _mm256_set1_ps(-0.0f);
 __m256 b = _mm256_set1_ps(1.23f);
 __m256 result = _mm256_andnot_ps(a, b);
 float output[8];
 _mm256_storeu_ps(output, result);
 for (int i = 0; i < 8; i++) {
   printf("%f\n", output[i]);
  }

  return 0;
 }

Prototypes

Assembly Instruction:
vandnps
Usage:
__m256 result = _mm256_andnot_ps( __m256 a, __m256 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