Created
February 19, 2013 09:22
-
-
Save raggi/4984306 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch (count % 8) | |
{ | |
case 0:; | |
<D3492>:; | |
*to++ = *from++ ; | |
case 7:; | |
*to++ = *from++ ; | |
case 6:; | |
*to++ = *from++ ; | |
case 5:; | |
*to++ = *from++ ; | |
case 4:; | |
*to++ = *from++ ; | |
case 3:; | |
*to++ = *from++ ; | |
case 2:; | |
*to++ = *from++ ; | |
case 1:; | |
*to++ = *from++ ; | |
if ( --n > 0) goto <D3492>; else goto <D3493>; | |
<D3493>:; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The GCC IR for a Duffs device turns the do while into a goto in stage 3. Go figure.