Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
zfp_codec.hpp File Reference
#include <cstdint>
#include <cstddef>
#include <cmath>
#include <cstring>
#include <climits>
#include <algorithm>
#include <array>
#include <bit>
#include <limits>
#include <type_traits>
#include <universal/utility/bit_cast.hpp>
#include <universal/number/zfpblock/zfp_codec_traits.hpp>

Classes

class  sw::universal::zfp_bitstream

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<size_t N>
constexpr uint64_t sw::universal::zfp_lowbits_mask ()
constexpr unsigned sw::universal::zfp_ctzll (uint64_t x)
template<typename Real>
constexpr Real sw::universal::cx_ldexp (Real x, int exp) noexcept
template<typename Real>
constexpr int sw::universal::cx_frexp_exp (Real v) noexcept
template<unsigned Dim>
constexpr const auto & sw::universal::zfp_perm ()
template<typename Int, typename UInt>
constexpr UInt sw::universal::int2uint (Int x)
template<typename Int, typename UInt>
constexpr Int sw::universal::uint2int (UInt x)
template<typename Real, size_t N>
constexpr int sw::universal::fwd_cast (const Real *fblock, typename zfp_type_traits< Real >::Int *iblock)
template<typename Real, size_t N>
constexpr void sw::universal::inv_cast (const typename zfp_type_traits< Real >::Int *iblock, Real *fblock, int emax)
template<typename Int>
constexpr void sw::universal::fwd_lift (Int *p, unsigned s)
template<typename Int>
constexpr void sw::universal::inv_lift (Int *p, unsigned s)
template<typename Int, unsigned Dim>
constexpr void sw::universal::fwd_xform (Int *iblock)
template<typename Int, unsigned Dim>
constexpr void sw::universal::inv_xform (Int *iblock)
template<typename UInt, size_t N>
constexpr size_t sw::universal::encode_bitplanes (zfp_bitstream &stream, const UInt *ublock, unsigned maxprec, size_t maxbits)
template<typename UInt, size_t N>
constexpr size_t sw::universal::decode_bitplanes (zfp_bitstream &stream, UInt *ublock, unsigned maxprec, size_t maxbits)
template<typename Real, unsigned Dim>
constexpr size_t sw::universal::zfp_raw_block_bits ()
template<typename Real, unsigned Dim>
constexpr size_t sw::universal::zfp_fixed_rate_bits (double rate)
template<unsigned Dim>
constexpr unsigned sw::universal::zfp_block_precision (int emax, unsigned maxprec, int minexp)
template<typename Real, size_t N>
constexpr bool sw::universal::zfp_has_nonfinite (const Real *fblock)
constexpr void sw::universal::zfp_pad_to (zfp_bitstream &stream, size_t bits)
template<typename Real, unsigned Dim>
constexpr size_t sw::universal::encode_raw_block (const Real *fblock, uint8_t *buffer, size_t max_bytes, size_t maxbits, bool pad)
template<typename Real, unsigned Dim>
constexpr size_t sw::universal::encode_block (const Real *fblock, uint8_t *buffer, size_t max_bytes, unsigned maxprec, size_t maxbits, int minexp=INT_MIN, bool pad=true)
template<typename Real, unsigned Dim>
constexpr size_t sw::universal::decode_block (const uint8_t *buffer, size_t max_bytes, Real *fblock, unsigned maxprec, size_t maxbits, int minexp=INT_MIN)

Variables

constexpr std::array< unsigned, 4 > sw::universal::zfp_perm_1d = { 0, 1, 2, 3 }
constexpr std::array< unsigned, 16 > sw::universal::zfp_perm_2d
constexpr std::array< unsigned, 64 > sw::universal::zfp_perm_3d