~/talk

Signed Integers: Faster and Corrector

Talkat CppCon 2017 · 2017-09-24..09-29· [rust]
links:none on file
slides:none on file

Claim: using signed integers lets the optimizer generate simpler, faster code by relying on signed overflow undefined behavior. Evidence: GCC blog examples and live Compiler Explorer comparisons showing smaller assembly for add, multiply/divide patterns. Surprise: a mul then div sequence reduces to a cheap operation (example: 14 divided by 7 yields 2 in the optimized case). Caveats: depends on undefined behavior, const/contract assumptions, and careful reasoning about correctness.

AI-written summary · about

  1. 0:00Introduction to signed
  2. 1:37Undefined behavior talk
  3. 3:46Compiler optimization examples
~/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.