~/talk

fixed_point

Talkat CppCon 2016 · 2016-09-18..09-23· [software-architecture]
links:none on file
slides:none on file

Library provides literal class templates for safe integers and binary fixed‑point that guarantee correct scaling and avoid silent precision loss; arithmetic widening on multiply produces results wide enough to hold full products (e.g., two 16‑bit u8.8 values yield a 32‑bit intermediate), with checked, rounded and elastic variants to catch overflow or auto‑grow. Implementation reuses Boost.Multiprecision integration and demo code shows 400+400‑bit fixed‑point values working and composing with elastic integers.

AI-written summary · about

  1. 0:00Intro
  2. 1:19What's Wrong With Floating-Point?
  3. 4:11fixed_point.h (version 0)
  4. 7:06Criticisms?
  5. 10:28Hypothesis
  6. 12:03Suggestions
  7. 16:33Class Template
  8. 19:00Arithmetic Operators - The 'Multiply Problem
  9. 22:35Arithmetic Functions
  10. 26:18Composition
  11. 29:58Safety
  12. 33:36Language Features
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.