Blame SOURCES/openssl-fips-0.9.8e-ia64.patch

c4366c
diff -up openssl-fips-0.9.8e/crypto/bn/bn_lcl.h.ia64 openssl-fips-0.9.8e/crypto/bn/bn_lcl.h
c4366c
--- openssl-fips-0.9.8e/crypto/bn/bn_lcl.h.ia64	2010-04-16 18:15:11.000000000 +0200
c4366c
+++ openssl-fips-0.9.8e/crypto/bn/bn_lcl.h	2010-04-16 18:15:11.000000000 +0200
c4366c
@@ -279,6 +279,15 @@ extern "C" {
c4366c
 #   define BN_UMULT_HIGH(a,b)		__umulh((a),(b))
c4366c
 #   define BN_UMULT_LOHI(low,high,a,b)	((low)=_umul128((a),(b),&(high)))
c4366c
 #  endif
c4366c
+# elif defined(__ia64) && defined(SIXTY_FOUR_BIT_LONG)
c4366c
+#  if defined(__GNUC__)
c4366c
+#   define BN_UMULT_HIGH(a,b) ({      \
c4366c
+      register BN_ULONG ret;          \
c4366c
+      asm ("xmpy.hu %0 = %1, %2"      \
c4366c
+           : "=f"(ret)                \
c4366c
+           : "f"(a), "f"(b));         \
c4366c
+      ret;                    })
c4366c
+#  endif      /* compiler */
c4366c
 # endif		/* cpu */
c4366c
 #endif		/* OPENSSL_NO_ASM */
c4366c