Tests: Make Duff's Device modern C
This commit is contained in:
parent
c247e0b1f7
commit
20465efe46
1 changed files with 5 additions and 4 deletions
|
@ -25,10 +25,11 @@ pellentesque diam volutpat commodo sed egestas egestas fringilla phasellus.
|
|||
Cursus vitae congue mauris rhoncus.
|
||||
|
||||
```c
|
||||
send(to, from, count)
|
||||
register short *to, *from;
|
||||
register count;
|
||||
{
|
||||
send(
|
||||
register short *to,
|
||||
register short *from,
|
||||
register count
|
||||
) {
|
||||
register n = (count + 7) / 8;
|
||||
switch (count % 8) {
|
||||
case 0: do { *to = *from++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue