2 ms·
I like the Duff's device-like loop entry: https://github.com/davidlazar/base64/blob/master/base64encode.c#L35 https://github.com/davidlazar/base64/blob/master/b
by jstanley 13y ago
I like the Duff's device-like loop entry: https://github.com/davidlazar/base64/blob/master/base64encode.c#L35 https://github.com/davidlazar/base64/blob/master/base64encod...
- cbsmith 13y agoI wouldn't even really call that a duff's device like entry. It's a pretty standard implementation of a state machine... I'm still really scratching my head questioning to what extent you can really consider this implementation a "coroutine" solution. It sure looks to me like a state machine solution.