|
native 0.0.1
Vectors, masks and wide register packs for C++26
|
Range-reduced exponential over scalar, SIMD, and register-pack inputs. More...
Go to the source code of this file.
Namespaces | |
| namespace | native |
| Architecture-tagged vectors, register packs and supporting value types. Native arithmetic follows its architecture tag and instruction-set preconditions. Common utilities do not select or admit a runtime CPU profile. | |
Functions | |
| template<bool Flush = false, std::size_t L, ::native::isa<> Arch> requires (::native::avx512 <= Arch ) && ::native::detail::avx512_backend::float_shape<L> | |
| constexpr simd< float, L, Arch > | native::exp2 (simd< float, L, Arch > input) noexcept |
| template<bool Flush = false, std::size_t L, std::size_t N, ::native::isa<> Arch> requires (::native::avx512 <= Arch ) && ::native::detail::avx512_backend::float_shape<L> | |
| constexpr std::array< simd< float, L, Arch >, N > | native::exp2 (std::array< simd< float, L, Arch >, N > const &input) noexcept |
| template<bool Flush, std::size_t L, ::native::isa<> Arch> requires (::native::avx512 <= Arch ) && ::native::detail::avx512_backend::float_shape<L> | |
| constexpr simd< float, L, Arch > | native::exp2 (simd< float, L, Arch > input, std::bool_constant< Flush >) noexcept |
| template<bool Flush, std::size_t L, std::size_t N, ::native::isa<> Arch> requires (::native::avx512 <= Arch ) && ::native::detail::avx512_backend::float_shape<L> | |
| constexpr std::array< simd< float, L, Arch >, N > | native::exp2 (std::array< simd< float, L, Arch >, N > const &input, std::bool_constant< Flush >) noexcept |
| template<std::size_t L, ::native::isa<> Arch> requires (::native::avx512 <= Arch ) && ::native::detail::avx512_backend::float_shape<L> | |
| constexpr simd< float, L, Arch > | native::atan2 (simd< float, L, Arch > y, simd< float, L, Arch > x) noexcept |
| template<std::size_t L, std::size_t N, ::native::isa<> Arch> requires (::native::avx512 <= Arch ) && ::native::detail::avx512_backend::float_shape<L> | |
| constexpr std::array< simd< float, L, Arch >, N > | native::atan2 (std::array< simd< float, L, Arch >, N > const &y, std::array< simd< float, L, Arch >, N > const &x) noexcept |
| template<bool Flush = false, unsigned Degree = 6, std::size_t L, ::native::isa<> Arch> requires (Degree >= 1 && Degree <= 7) && (::native::avx512 <= Arch ) && ::native::detail::avx512_backend::float_shape<L> | |
| constexpr simd< float, L, Arch > | native::exp (simd< float, L, Arch > input) noexcept |
| Evaluate the binary32 range-reduced exponential approximation. Degree selects a polynomial from one through seven, defaulting to six. Every degree shares range reduction and exponent scaling; none promises correctly rounded exp for every input. Flush selects the early underflow cutoff at compile time; it does not change CPU controls or turn a raw vector into a policy-bearing FTZ type. | |
| template<bool Flush = false, unsigned Degree = 6, std::size_t L, std::size_t N, ::native::isa<> Arch> requires (Degree >= 1 && Degree <= 7) && (::native::avx512 <= Arch ) && ::native::detail::avx512_backend::float_shape<L> | |
| constexpr std::array< simd< float, L, Arch >, N > | native::exp (std::array< simd< float, L, Arch >, N > const &input) noexcept |
| template<bool Flush, unsigned Degree = 6, std::size_t L, std::size_t N, ::native::isa<> Arch> requires (Degree >= 1 && Degree <= 7) && (::native::avx512 <= Arch ) && ::native::detail::avx512_backend::float_shape<L> | |
| constexpr std::array< simd< float, L, Arch >, N > | native::exp (std::array< simd< float, L, Arch >, N > const &input, std::bool_constant< Flush >, std::integral_constant< unsigned, Degree >={}) noexcept |
| template<bool Flush, unsigned Degree = 6, std::size_t L, ::native::isa<> Arch> requires (Degree >= 1 && Degree <= 7) && (::native::avx512 <= Arch ) && ::native::detail::avx512_backend::float_shape<L> | |
| constexpr simd< float, L, Arch > | native::exp (simd< float, L, Arch > input, std::bool_constant< Flush >, std::integral_constant< unsigned, Degree >={}) noexcept |
|
template<std::size_t L, isa<> A> requires (::native::avx512 <= A ) && detail::polyfill_operation_shape<float,L,A> | |
| constexpr auto | native::sincos (simd< float, L, A > input) noexcept |
| Paired sine/cosine preserving the permitted logical lane shape. | |
|
template<std::size_t L, std::size_t N, isa<> A> requires (::native::avx512 <= A ) && detail::polyfill_operation_shape<float,L,A> | |
| constexpr auto | native::sincos (std::array< simd< float, L, A >, N > const &input) noexcept |
| Stage paired trigonometry across permitted independent register groups. | |
|
template<bool Flush = false, unsigned Degree = 6, std::size_t L, isa<> A> requires (::native::avx512 <= A ) && detail::polyfill_operation_shape<float,L,A> && (Degree>=1 && Degree<=7) | |
| constexpr simd< float, L, A > | native::exp (simd< float, L, A > input) noexcept |
| Range-reduced exp preserving native chunk arithmetic and logical lane shape. | |
|
template<bool Flush = false, unsigned Degree = 6, std::size_t L, std::size_t N, isa<> A> requires (::native::avx512 <= A ) && detail::polyfill_operation_shape<float,L,A> && (Degree>=1 && Degree<=7) | |
| constexpr std::array< simd< float, L, A >, N > | native::exp (std::array< simd< float, L, A >, N > const &input) noexcept |
| Stage every independent binary32 exponential register group together; N may be zero. | |
|
template<bool Flush, unsigned Degree = 6, class V> requires (::native::avx512 <= V::architecture ) && detail::polyfill_operation_shape<float,V::lanes,V::architecture> && (Degree>=1 && Degree<=7) | |
| constexpr V | native::exp (V input, std::bool_constant< Flush >, std::integral_constant< unsigned, Degree >={}) noexcept |
| Select exp's underflow policy and polynomial degree through constant tags. | |
|
template<bool Flush, unsigned Degree = 6, class V, std::size_t N> requires (::native::avx512 <= V::architecture ) && detail::polyfill_operation_shape<float,V::lanes,V::architecture> && (Degree>=1 && Degree<=7) | |
| constexpr std::array< V, N > | native::exp (std::array< V, N > const &input, std::bool_constant< Flush >, std::integral_constant< unsigned, Degree >={}) noexcept |
| Select exp's batch policy through constant tags. | |
|
template<bool Flush = false, std::size_t L, isa<> A> requires (::native::avx512 <= A ) && detail::polyfill_operation_shape<float,L,A> | |
| constexpr simd< float, L, A > | native::exp2 (simd< float, L, A > input) noexcept |
| Base-two exponential preserving the permitted lane shape. | |
|
template<bool Flush = false, std::size_t L, std::size_t N, isa<> A> requires (::native::avx512 <= A ) && detail::polyfill_operation_shape<float,L,A> | |
| constexpr std::array< simd< float, L, A >, N > | native::exp2 (std::array< simd< float, L, A >, N > const &input) noexcept |
| Base-two exponential across independent register groups; N may be zero. | |
|
template<bool Flush, class V> requires (::native::avx512 <= V::architecture ) && detail::polyfill_operation_shape<float,V::lanes,V::architecture> | |
| constexpr V | native::exp2 (V input, std::bool_constant< Flush >) noexcept |
| Select exp2's underflow policy through a constant tag. | |
|
template<bool Flush, class V, std::size_t N> requires (::native::avx512 <= V::architecture ) && detail::polyfill_operation_shape<float,V::lanes,V::architecture> | |
| constexpr std::array< V, N > | native::exp2 (std::array< V, N > const &input, std::bool_constant< Flush >) noexcept |
| Select exp2's batch policy through a constant tag. | |
|
template<std::size_t L, isa<> A> requires (::native::avx512 <= A ) && detail::polyfill_operation_shape<float,L,A> | |
| constexpr simd< float, L, A > | native::atan2 (simd< float, L, A > y, simd< float, L, A > x) noexcept |
| Evaluate atan2(y,x) over matching permitted logical lane domains. | |
|
template<std::size_t L, std::size_t N, isa<> A> requires (::native::avx512 <= A ) && detail::polyfill_operation_shape<float,L,A> | |
| constexpr std::array< simd< float, L, A >, N > | native::atan2 (std::array< simd< float, L, A >, N > const &y, std::array< simd< float, L, A >, N > const &x) noexcept |
| Evaluate atan2 across independent permitted register groups. | |
Range-reduced exponential over scalar, SIMD, and register-pack inputs.
Definition in file exp_body.h.