Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

This is, oddly, one of the few things I think would actually be clearer in assembly language than it is in C.


You can actually get rid of the confusing nesting:

    switch(n%4)
    {
    loop:
    case 0: stuff();
    case 3: stuff();
    case 2: stuff();
    case 1: stuff();
    if(--n) goto loop;
    }




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: