[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

porting PARI/GP to arm: problem with modulo



Hello,

I have investigate the second bug of PARI/GP on arm.
It can be reduced to the file in attachment.

on arm (at least debussy and rameau) we get 
./a.out
x%y=1073741824

on others arch I have tested (i386,alpha)
we have 
./a.out
x%y=0

Some of you understand the problem ?

Thanks,

Bill.
typedef unsigned long ulong;
main()
{
	ulong x=3221225472UL;
	ulong y=2UL;
	printf("x%y=%lu\n",(ulong)(x%y));
}

Reply to: