You'll have to use a 32-bit type for word, and 64-bit for dword. This
is not going to be very efficient, as you can imagine. It's very
unfortunate that compilers do not provide a 128-bit data type on 64-bit
CPUs, because it means there is no portable way to access the 64 by 64
bit multiply.

I just added some code to CVS that will allow word to be 64-bit, with
no dword defined (multiply will use inline assembly). I tested it on
HP's "test drive" Itanium machine and it passed the validation tests.
If you can concerned about efficency please grab the current code from
CVS and try it.

On Thu, Jul 24, 2003 at 06:15:30PM -0400, Peter Webb wrote:
> I'm compiling crypto42 for the Itanium and am having trouble setting up the 
> header files.
> 
> I'm specifically having trouble with config.h which wants "word" to be the 
> size of a register, and "dword" to be twice as big. Registers are 64 bits 
> on the Itanium and there is no 128 bit data type. A long long is only 8 bytes.
> 
> Any suggestions?
> 
> 
> Peter Webb                    mailto:[EMAIL PROTECTED]
> The MathWorks         http://www.mathworks.com
> 508-647-7376                  "Math by MATLAB"

Reply via email to