Opps. Copied in the wrong file for initial commit.

From-SVN: r24625
This commit is contained in:
Jeff Law 1999-01-11 16:40:03 -07:00
parent a5cad80034
commit 5ad9818511

View File

@ -1,5 +1,21 @@
foo(char *bufp)
unsigned calc_mp(unsigned mod)
{
int x = 80;
return (*bufp++ = x ? 'a' : 'b');
unsigned a,b,c;
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);
}