While I see that someone has added basic linux-ia64 support
to the configury since version 0.9.5, they did not add the
macros to get at the high 64-bits of a 128-bit multiply.



r~


diff -rup openssl-0.9.5/crypto/bn/bn_lcl.h openssl-ia64/crypto/bn/bn_lcl.h
--- openssl-0.9.5/crypto/bn/bn_lcl.h    Sat Feb 26 14:16:32 2000
+++ openssl-ia64/crypto/bn/bn_lcl.h     Thu Aug 31 15:22:24 2000
@@ -118,6 +118,15 @@ extern "C" {
             : "r"(a), "r"(b));         \
        ret;                    })
 #  endif       /* compiler */
+# elif defined(__ia64) && defined(SIXTY_FOUR_BIT_LONG)
+#  if defined(__GNUC__)
+#   define BN_UMULT_HIGH(a,b)  ({      \
+       register BN_ULONG ret;          \
+       asm ("xmpy.hu %0 = %1, %2"      \
+            : "=f"(ret)                \
+            : "f"(a), "f"(b));         \
+       ret;                    })
+#  endif       /* compiler */
 # endif                /* cpu */
 #endif         /* NO_ASM */
 
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to