Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
logarithm.hpp File Reference
#include <algorithm>
#include <bit>
#include <type_traits>
#include <vector>
#include <universal/number/efloat/math/exponent.hpp>
#include <universal/number/efloat/math/sqrt.hpp>
#include <universal/number/efloat/math/trigonometry.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::efloat_detail
 decimal formatting (binary -> decimal string at arbitrary precision)

Functions

template<unsigned nlimbs>
constexpr efloat< nlimbs > sw::universal::efloat_detail::atanh_working_small (const efloat< nlimbs > &v, unsigned working)
template<unsigned nlimbs>
constexpr efloat< nlimbs > sw::universal::efloat_detail::log_grid_point (unsigned j, unsigned bits)
template<unsigned nlimbs>
efloat< nlimbs > sw::universal::efloat_detail::log_table_cached (unsigned j, unsigned bits)
template<unsigned nlimbs>
constexpr efloat< nlimbs > sw::universal::efloat_detail::log_table (unsigned j, unsigned bits)
template<unsigned nlimbs>
constexpr efloat< nlimbs > sw::universal::efloat_detail::log_table_series (const efloat< nlimbs > &x, unsigned working)
template<unsigned nlimbs>
constexpr int64_t sw::universal::efloat_detail::log_magnitude (const efloat< nlimbs > &x)
template<unsigned nlimbs>
constexpr efloat< nlimbs > sw::universal::efloat_detail::log_agm (const efloat< nlimbs > &x, unsigned working)
template<unsigned nlimbs>
constexpr efloat< nlimbs > sw::universal::efloat_detail::log_working (const efloat< nlimbs > &x, unsigned working)
template<unsigned nlimbs>
constexpr efloat< nlimbs > sw::universal::efloat_detail::log_base_working (const efloat< nlimbs > &x, unsigned target, bool ten)
template<unsigned nlimbs>
constexpr efloat< nlimbs > sw::universal::efloat_detail::log1p_working (const efloat< nlimbs > &x, unsigned target)
template<unsigned nlimbs>
constexpr bool sw::universal::efloat_detail::is_power_of_ten (const efloat< nlimbs > &x, int64_t &j)
template<unsigned nlimbs>
constexpr efloat< nlimbs > sw::universal::log (const efloat< nlimbs > &x)
template<unsigned nlimbs>
constexpr efloat< nlimbs > sw::universal::log2 (const efloat< nlimbs > &x)
template<unsigned nlimbs>
constexpr efloat< nlimbs > sw::universal::log10 (const efloat< nlimbs > &x)
template<unsigned nlimbs>
constexpr efloat< nlimbs > sw::universal::log1p (const efloat< nlimbs > &x)

Variables

constexpr unsigned sw::universal::efloat_detail::log_table_shift = 9
constexpr unsigned sw::universal::efloat_detail::log_table_first = 362
constexpr unsigned sw::universal::efloat_detail::log_table_last = 724
constexpr unsigned sw::universal::efloat_detail::log_agm_bits_per_series_bit = 4500
constexpr unsigned sw::universal::efloat_detail::log_error_bits = 16
constexpr unsigned sw::universal::efloat_detail::log_agm_guard_bits = 16
constexpr unsigned sw::universal::efloat_detail::log_derived_error_bits = log_error_bits + 4u