--- Dmitry <[email protected]> wrote: > the example below will result in the following > pseudo code: > > 1. extend a to 64 bits one. > 2. extend b to 64 bits... > 3. call __muldi routine for them > 4. store 64 bits 'res' > > There is no mul32->64 implementation...yet. > does anybody want to write one? :)
shouldn't be too hard - if you tell me which source file contains the mul32->32, I'll take a look. > > ~d > > > On Thursday 17 February 2005 18:22, Andre Sodermans > wrote: > > so do I need to hand code it like Garst is > suggesting? > > The IAR compiler generates it exactly the way > Garst > > has mentioned but mspgcc doesn't. Perhaps it is a > > casting issue? > > > > --- Dmitry <[email protected]> wrote: > > > it can > > > ~d > > > ----- Original Message ----- > > > From: "Andre Sodermans" > <[email protected]> > > > To: <[email protected]> > > > Sent: Wednesday, February 16, 2005 10:47 PM > > > Subject: [Mspgcc-users] u32 x u32 -> u64 using > h/w > > > multiplier > > > > > > > does anybody know if mspgcc can generate the > > > > instruction stream for a multiply of two 32bit > > > > operands into a 64bit result (using h/w mul) > as > > > > > > in: > > > > unsigned long a,b; > > > > unsigned long long res; > > > > > > > > res = (unsigned long long) a*b; > > > > > > > > If I try the above code on my device (149) a > > > > u32xu32->u32 using h/w mul gets generated. > > > > > > > > > > > > > > > > > > > > __________________________________ > > > > Do you Yahoo!? > > > > Yahoo! Mail - Helps protect you from nasty > > > > > > viruses. > > > > > > > http://promotions.yahoo.com/new_mail > > > > > ------------------------------------------------------- > > > > > > SF email is sponsored by - The IT Product > Guide > > > > Read honest & candid reviews on hundreds of IT > > > > > > Products from real users. > > > > > > > Discover which products truly live up to the > hype. > > > > > > Start reading now. > > > > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > > > > > > _______________________________________________ > > > > Mspgcc-users mailing list > > > > [email protected] > > > > > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > > > > > > > > > ------------------------------------------------------- > > > > > SF email is sponsored by - The IT Product Guide > > > Read honest & candid reviews on hundreds of IT > > > Products from real users. > > > Discover which products truly live up to the > hype. > > > Start reading now. > > > > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > > > > _______________________________________________ > > > Mspgcc-users mailing list > > > [email protected] > > > > > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > > > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Mail - 250MB free storage. Do more. Manage > less. > > http://info.mail.yahoo.com/mail_250 > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT > Products from real users. > > Discover which products truly live up to the hype. > Start reading now. > > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > _______________________________________________ > > Mspgcc-users mailing list > > [email protected] > > > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT > Products from real users. > Discover which products truly live up to the hype. > Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Mspgcc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > __________________________________ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. http://info.mail.yahoo.com/mail_250
