4#include "native/isa_import.h"
5#include "native/x86/popcnt.h"
6#include "native/targets.h"
11extern "C++" namespace native {
12 template<isa<x86> Arch = NATIVE_BA
SELINE>
requires(Arch.has(x86_feature::popcnt))
13 constexpr std::uint16_t
popcnt(std::uint16_t value)
noexcept;
15 template<isa<x86> Arch = NATIVE_BA
SELINE>
requires(!Arch.has(x86_feature::popcnt) && !Arch.has(
polyfill))
16 consteval std::uint16_t
popcnt(std::uint16_t value)
noexcept;
19 template<isa<x86> Arch = NATIVE_BA
SELINE>
requires(!Arch.has(x86_feature::popcnt) && Arch.has(
polyfill))
20 constexpr std::uint16_t
popcnt(std::uint16_t value)
noexcept;
22 template<isa<x86> Arch = NATIVE_BA
SELINE>
requires(Arch.has(x86_feature::popcnt))
23 constexpr std::uint32_t
popcnt(std::uint32_t value)
noexcept;
25 template<isa<x86> Arch = NATIVE_BA
SELINE>
requires(!Arch.has(x86_feature::popcnt) && !Arch.has(
polyfill))
26 consteval std::uint32_t
popcnt(std::uint32_t value)
noexcept;
29 template<isa<x86> Arch = NATIVE_BA
SELINE>
requires(!Arch.has(x86_feature::popcnt) && Arch.has(
polyfill))
30 constexpr std::uint32_t
popcnt(std::uint32_t value)
noexcept;
32 template<isa<x86> Arch = NATIVE_BA
SELINE>
requires(Arch.has(x86_feature::popcnt))
33 constexpr std::uint64_t
popcnt(std::uint64_t value)
noexcept;
35 template<isa<x86> Arch = NATIVE_BA
SELINE>
requires(!Arch.has(x86_feature::popcnt) && !Arch.has(
polyfill))
36 consteval std::uint64_t
popcnt(std::uint64_t value)
noexcept;
39 template<isa<x86> Arch = NATIVE_BA
SELINE>
requires(!Arch.has(x86_feature::popcnt) && Arch.has(
polyfill))
40 constexpr std::uint64_t
popcnt(std::uint64_t value)
noexcept;
constexpr std::uint16_t popcnt(std::uint16_t value) noexcept
Architecture-tagged vectors, register packs and supporting value types. Native arithmetic follows its...
constexpr polyfill_t polyfill
Compose this permission with an ISA using A | polyfill. Used alone, it selects scalar emulation in th...