You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works: using q4_20 = cnl::fixed_point<unsigned_multiprecision<24>,-20>; q4_20 a = 3.051757812500000e-05;
` std::cout << "a : " << a << " used_bits : " << used_bits(a) << " leading bits : " << leading_bits(a) << std::endl;'
Producing correctly: a : 3.0517578125e-05 used_bits : 6 leading bits : 18
This fails: using q4_20 = cnl::fixed_point<signed_multiprecision<24>,-20>; q4_20 a = 3.051757812500000e-05;
` std::cout << "a : " << a << " used_bits : " << used_bits(a) << " leading bits : " << leading_bits(a) << std::endl;'
with: a : 3.0517578125e-05 used_bits : unknown file: Failure C++ exception with description "Division by zero." thrown in the test body. Process finished with exit code 1
The text was updated successfully, but these errors were encountered:
…ypes
- addresses [issue#67](#67)
- pass by `const&` to avoid costly copies of (potentially) large objects
- do not rely on `sizeof(I)*CHAR_BIT` to measure bit width
- use `cnl::digits` instead
…ypes
- addresses [issue#67](#67)
- pass by `const&` to avoid costly copies of (potentially) large objects
- do not rely on `sizeof(I)*CHAR_BIT` to measure bit width
- use `cnl::digits` instead
…ypes
- addresses [issue#67](johnmcfarlane#67)
- pass by `const&` to avoid costly copies of (potentially) large objects
- do not rely on `sizeof(I)*CHAR_BIT` to measure bit width
- use `cnl::digits` instead
This works:
using q4_20 = cnl::fixed_point<unsigned_multiprecision<24>,-20>;
q4_20 a = 3.051757812500000e-05;
` std::cout << "a : " << a << " used_bits : " << used_bits(a) << " leading bits : " << leading_bits(a) << std::endl;'
Producing correctly:
a : 3.0517578125e-05 used_bits : 6 leading bits : 18
This fails:
using q4_20 = cnl::fixed_point<signed_multiprecision<24>,-20>;
q4_20 a = 3.051757812500000e-05;
` std::cout << "a : " << a << " used_bits : " << used_bits(a) << " leading bits : " << leading_bits(a) << std::endl;'
with:
a : 3.0517578125e-05 used_bits : unknown file: Failure
C++ exception with description "Division by zero." thrown in the test body.
Process finished with exit code 1
The text was updated successfully, but these errors were encountered: