diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2026-04-06 15:18:26 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2026-04-06 15:18:26 +0200 |
| commit | fe534f1497da6447153064d7bba00243000f803b (patch) | |
| tree | 851cd657931dce7584baf00cf092360416161793 /src/arch/avx2.h | |
| parent | b729562fc3c1b85f1ea9a19fadd1caaf85b85777 (diff) | |
| download | nissy-core-fe534f1497da6447153064d7bba00243000f803b.tar.gz nissy-core-fe534f1497da6447153064d7bba00243000f803b.zip | |
Added popcount_u64
Diffstat (limited to 'src/arch/avx2.h')
| -rw-r--r-- | src/arch/avx2.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/avx2.h b/src/arch/avx2.h index 5857493..15ce02a 100644 --- a/src/arch/avx2.h +++ b/src/arch/avx2.h | |||
| @@ -34,6 +34,12 @@ popcount_u32(uint32_t x) | |||
| 34 | return _mm_popcnt_u32(x); | 34 | return _mm_popcnt_u32(x); |
| 35 | } | 35 | } |
| 36 | 36 | ||
| 37 | STATIC_INLINE int | ||
| 38 | popcount_u64(uint64_t x) | ||
| 39 | { | ||
| 40 | return _mm_popcnt_u64(x); | ||
| 41 | } | ||
| 42 | |||
| 37 | STATIC void | 43 | STATIC void |
| 38 | pieces(cube_t cube[static 1], uint8_t c[static 8], uint8_t e[static 12]) | 44 | pieces(cube_t cube[static 1], uint8_t c[static 8], uint8_t e[static 12]) |
| 39 | { | 45 | { |
