RflySimSDK v4.10
RflySimSDK说明文档
载入中...
搜索中...
未找到
diyfp结构体 参考

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

成员函数说明

◆ mul()

diyfp mul ( const diyfp & x,
const diyfp & y )
inlinestaticnoexcept

returns x * y

注解
The result is rounded. (Only the upper q bits are returned.)
这是这个函数的调用关系图:

◆ normalize()

diyfp normalize ( diyfp x)
inlinestaticnoexcept

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

前置条件
x.f != 0
这是这个函数的调用关系图:

◆ normalize_to()

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()

diyfp sub ( const diyfp & x,
const diyfp & y )
inlinestaticnoexcept

returns x - y

前置条件
x.e == y.e and x.f >= y.f
这是这个函数的调用关系图:

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