native 0.0.1
Vectors, masks and wide register packs for C++26
Loading...
Searching...
No Matches
bits_body.h File Reference

Native bit projection and signed subnormal flushing. 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<fp32_bits_register V, std::size_t N>
constexpr std::array< V, N > native::flush_to_zero (std::array< V, N > const &x) noexcept
 Replace binary32 subnormal lanes with signed zero. Both zero signs, normal values, infinities and every NaN payload/sign are preserved exactly. This changes the values, not the floating-point control state, and does not raise floating-point exceptions. Empty arrays are valid.

Detailed Description

Native bit projection and signed subnormal flushing.

SPDX-FileType: SOURCE
SPDX-FileCopyrightText: 2026 Edward Kmett <ekmett@gmail.com>
SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0
Author
Edward Kmett ekmett@gmail.com

Definition in file bits_body.h.