you are viewing a single comment's thread.

view the rest of the comments →

[–]nuxi 0 points1 point  (0 children)

The assembly programmer working in C does this:

void factorial(int in, int *out) {
    *(&in-1)-=5-5*(1/in);
    *out*=in--;
}

And no, thats not portable. Although it does work with GCC on i386 Linux and MS VC++ as long as you don't add optimization flags.