this is the code:
unsigned short int xk=3588, yk=47541, yk1, sig=10, de=1;
unsigned long int xk1;
xk1=( xk + ( sig * ( (long int)yk - xk) * de));
yk1=xk1 % 65535;
printf("xk1=%lx\t\n,",xk1);
printf("yk1=%x\t\n,",yk1);
thanks
--- En date de : Mar 10.5.11, Grant Edwards <grant.b.edwa...@gmail.com> a
écrit :
De: Grant Edwards <grant.b.edwa...@gmail.com>
Objet: Re: [Mspgcc-users] modulo
À: mspgcc-users@lists.sourceforge.net
Date: Mardi 10 mai 2011, 17h20
On 2011-05-10, Miriam Dali <miriamd...@yahoo.fr> wrote:
> Thank you for your answers, I tried to cast yk to long int as you
> said, the result that I get is: xk1=fffbc2ee, and yk1=49898 it's the
> same result when I cast all the variables
Show us the code.
--
Grant Edwards grant.b.edwards Yow! Hey, wait
at a minute!! I want a
gmail.com divorce!! ... you're not
Clint Eastwood!!
-----La pièce jointe associée suit-----
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
-----La pièce jointe associée suit-----
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users