32bit multiplication
Archiver
Posts: 46,084
Hi,
I need to multiply two unsigned 16bit values and get a 32bit result.
This is actually for the Javelin, but there is not much reponse there.
As the javeln lacks the ** operator, I only have the integer multiply,
integer division and mod operator at my disposal.
Can someone point out how to calculate this 32bit value?
Thanks.
Regards peter
I need to multiply two unsigned 16bit values and get a 32bit result.
This is actually for the Javelin, but there is not much reponse there.
As the javeln lacks the ** operator, I only have the integer multiply,
integer division and mod operator at my disposal.
Can someone point out how to calculate this 32bit value?
Thanks.
Regards peter
Comments
On this site:
http://www.parallax.com/javelin/applications.asp
See:
AN011 - 32-bit Integer Math for the Javelin
Regards, Andy
--- In basicstamps@yahoogroups.com, "peter verkaik"
<peterverkaik@b...> wrote:
> Hi,
>
> I need to multiply two unsigned 16bit values and get a 32bit result.
> This is actually for the Javelin, but there is not much reponse
there.
> As the javeln lacks the ** operator, I only have the integer
multiply,
> integer division and mod operator at my disposal.
>
> Can someone point out how to calculate this 32bit value?
> Thanks.
>
> Regards peter