Re: (x * x) % y

New Message Reply About this list Date view Thread view Subject view Author view

Mok-Kong Shen (mok-kong.shen@stud.uni-muenchen.de)
Fri, 23 Apr 1999 10:45:23 +0200


Olivier Langlois wrote:

> My question is : Is it possible to write a legal C construction to would
> generate the correct assembler code ?

32 bit hardware usually provides an extra register that can be utilized
for multiplication of two 32 bit operands. Since however high-level
programming languages don't (and can't) specify the availability
of results outside of the domain of 'integers', compilers don't
take that extra register into account. Hence the answer to your
question is NO. But you can certainly write (slow running)
high-level code to do multi-precision arithmetics. There are good
multi-precision packages in high-level languages that some persons
have written and well checked out. I am ignorant of the public
availability of the same in optimized assembler code, which would be
highly desirable since the saving of computing time could be very
essential.

M. K. Shen
http://www.stud.uni-muenchen.de/~mok-kong.shen/ (Updated: 12 Apr 99)


New Message Reply About this list Date view Thread view Subject view Author view

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

The following archive was created by hippie-mail 7.98617-22 on Thu May 27 1999 - 23:44:22