Hi,
Is there any changes that I should do to debug this problem of uniarch
architecture
Thanks
--- En date de : Mer 11.5.11, Miriam Dali <miriamd...@yahoo.fr> a écrit :
De: Miriam Dali <miriamd...@yahoo.fr>
Objet: Re: [Mspgcc-users] modulo
À: "Peter Bigot" <big...@acm.org>
Cc: mspgcc-users@lists.sourceforge.net
Date: Mercredi 11 mai 2011, 20h42
I include stdint.h and use uint16_t but the error still there, may be I should
upgrade mspgcc, my version is 4.4.3
--- En date de : Mer 11.5.11, Peter Bigot <big...@acm.org> a écrit :
De: Peter Bigot <big...@acm.org>
Objet: Re: [Mspgcc-users] modulo
À: "Miriam Dali" <miriamd...@yahoo.fr>
Cc: "Grant Edwards" <grant.b.edwa...@gmail.com>,
mspgcc-users@lists.sourceforge.net
Date: Mercredi 11 mai 2011, 0h55
Your code seems to work for me with the most recent mspgcc4 release, but not
with uniarch. In today's uniarch, sizeof(short int) == 1, thanks to my
cleaning out a "redundancy" that wasn't redundant. I'll fix that, but it'll be
a couple days before
I'll have a chance to do all the bookkeeping associated with pushing out a fix.
I recommend #include <stdint.h> and using things like uint16_t when you want to
be sure of what's going on.
Peter
On Tue, May 10, 2011 at 1:27 PM, Miriam Dali <miriamd...@yahoo.fr> wrote:
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
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users