Step Into x64 Assembly · Module exam · Speed & Dispatch
Exam: Fast and Branchy
A SIMD byte counter that handles any length, and a dispatcher built on a jump table.
- ~45 minto solve
- 3hints
- membersaccess
- x64 Assemblylanguage
Part of Step Into x64 Assembly. The full module exam, its missions and the real compiler and debugger are in the course. Try a free lesson first to see how it works.
Two functions from the hot path of a text-processing tool. The first counts a character in a buffer of any length, 16 bytes at a time, and must still get the last few bytes right when the length is not a multiple of 16. The second runs one of six operations chosen by a number, through a jump table, and must survive any number you throw at it, negative ones included.
In this module exam
- The brief
- What this exam tests
Missions
- Count fast, dispatch safely