- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The function description as below, but my computer don't support AVX512 Intrinsics,
So I want to know how to realize similary function using AVX2?
Thanks in advance ^_^
unsigned int mm512_reduce_max_epu32 (_m512i a)
Synopsis
unsigned int mm512_reduce_max_epu32 (_m512i a)
include <immintrin.h>
Instruction: Sequence
CPUID Flags: AVX512F for AVX-512, KNCNI for KNC
Description
Reduce the packed unsigned 32-bit integers in a by maximum. Returns the maximum of all elements in a.
Operation
dst[31:0] := 0
FOR j := 0 to 15
i := j*32
dst[31:0] := (dst[31:0] > a[i+31:i] ? dst[31:0] : a[i+31:i])
ENDFOR
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I try to use <_mm_extract_epi32 > to extract &compare u32 data, and then choose the max value,but the parameter imm8 is const int type.
_mm_extract_epi32 (__m128i a, const int imm8)

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page