CppCon 2018 has ended
Back To Schedule
Thursday, September 27 • 14:00 - 15:00
Signed integers are two's complement

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

There is One True Representation for signed integers, and that representation is two’s complement. There are, however, rumors of a fantasy world—before C++20—where ones' complement, signed magnitude and "pure binary representations" dwell. That world boasts Extraordinary Values, Padding Bits, and just like our world it hosts swaths of Undefined Behavior.

Join me in exploring this magnificent fantasy world, and discover its antics. Together we'll marvel at how the other representations were forever banished from real-world C++, doomed to cast mere shadows onto our reality.

avatar for JF Bastien

JF Bastien

Software Architect, Toyota Research Institute-Advanced Development
Compiler engineer, chair of the C++ committee's language evolution working group.

Thursday September 27, 2018 14:00 - 15:00 PDT
Steamboat (403)