Commit 5ad98185 by Jeff Law

Opps. Copied in the wrong file for initial commit.

From-SVN: r24625
parent a5cad800
foo(char *bufp) unsigned calc_mp(unsigned mod)
{ {
int x = 80; unsigned a,b,c;
return (*bufp++ = x ? 'a' : 'b'); c=-1;
a=c/mod;
b=0-a*mod;
if (b > mod) { a += 1; b-=mod; }
return b;
} }
int main(int argc, char *argv[])
{
unsigned x = 1234;
unsigned y = calc_mp(x);
if (y != 680)
abort ();
exit (0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment