SYSTEMS / Learn
Saved on this device>
← Back to goals

I want to…

Recall useful powers of two

Trace this example, understand why the operation works, then try it from memory.

1 · Choose a goal → 2 · Learn the method → 3 · Practise → 4 · Spaced review

Learn the method

2^60 = 2 × 2^59Exact integer · no word-width wrapping

576460752303423488 × 2 = 1152921504606846976

2^60 = 1152921504606846976. This is an exact mathematical value, not an 8-bit word. In particular, 2^64 is one more than the largest unsigned 64-bit integer.

CS:APP · §2.1.1, §2.2.2

coffee-bytes / Systems LearningCS:APP + Hacker’s Delight