slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Public 属性 | 静态 Public 属性 | 所有成员列表
detail::dtoa_impl::diyfp结构体 参考

#include <json.hpp>

Public 成员函数

constexpr diyfp (std::uint64_t f_, int e_) noexcept
 

静态 Public 成员函数

static diyfp sub (const diyfp &x, const diyfp &y) noexcept
 returns x - y
 
static diyfp mul (const diyfp &x, const diyfp &y) noexcept
 returns x * y
 
static diyfp normalize (diyfp x) noexcept
 normalize x such that the significand is >= 2^(q-1)
 
static diyfp normalize_to (const diyfp &x, const int target_exponent) noexcept
 normalize x such that the result has the exponent E
 

Public 属性

std::uint64_t f = 0
 
int e = 0
 

静态 Public 属性

static constexpr int kPrecision = 64
 

构造及析构函数说明

◆ diyfp()

constexpr detail::dtoa_impl::diyfp::diyfp ( std::uint64_t f_,
int e_ )
inlineconstexprnoexcept

成员函数说明

◆ mul()

static diyfp detail::dtoa_impl::diyfp::mul ( const diyfp & x,
const diyfp & y )
inlinestaticnoexcept

returns x * y

注解
The result is rounded. (Only the upper q bits are returned.)

◆ normalize()

static diyfp detail::dtoa_impl::diyfp::normalize ( diyfp x)
inlinestaticnoexcept

normalize x such that the significand is >= 2^(q-1)

前置条件
x.f != 0

◆ normalize_to()

static diyfp detail::dtoa_impl::diyfp::normalize_to ( const diyfp & x,
const int target_exponent )
inlinestaticnoexcept

normalize x such that the result has the exponent E

前置条件
e >= x.e and the upper e - x.e bits of x.f must be zero.

◆ sub()

static diyfp detail::dtoa_impl::diyfp::sub ( const diyfp & x,
const diyfp & y )
inlinestaticnoexcept

returns x - y

前置条件
x.e == y.e and x.f >= y.f

类成员变量说明

◆ e

int detail::dtoa_impl::diyfp::e = 0

◆ f

std::uint64_t detail::dtoa_impl::diyfp::f = 0

◆ kPrecision

constexpr int detail::dtoa_impl::diyfp::kPrecision = 64
staticconstexpr

该结构体的文档由以下文件生成: