Hi Ricardo,

If you multiply 25586 by 4, you would get 102344... if your calculation
is done with "long". But you're using "int", so the intermediate result
is cut to 16 bits width, giving 102344 % (1 << 16) = 36808. This results
after the division by 5 to 7361.

HTH, Bodo

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to