fixed_point icon indicating copy to clipboard operation
fixed_point copied to clipboard

C++ Binary Fixed-Point Arithmetic

Results 5 fixed_point issues
Sort by recently updated
recently updated
newest added

In ```c++ auto a = fixed_point(0x100000000LL); auto b = fixed_point(1); ASSERT_GT(a, b); ``` expression overflows. But only 16 (maybe 15) bits of range are required to scale operands such that...

E.g. an instruction that multiplies with saturation, then shifts right by 15 digits.

P0037
P0554

https://en.wikipedia.org/wiki/Scientific_notation#Other_bases http://en.cppreference.com/w/cpp/language/floating_literal

Design

https://github.com/google/benchmark#preventing-optimisation

Reference Implementation

https://github.com/foonathan/type_safe

Reference Implementation