add _LP64 checks
This commit is contained in:
parent
72bb1ed618
commit
8475a5876d
11
patches/bn_div.c.patch
Normal file
11
patches/bn_div.c.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- openbsd/src/lib/libcrypto/bn/bn_div.c 2018-08-03 22:40:06.596555542 -0500
|
||||
+++ crypto/bn/bn_div.c 2019-01-20 19:26:37.891450640 -0600
|
||||
@@ -89,7 +89,7 @@
|
||||
q; \
|
||||
})
|
||||
# define REMAINDER_IS_ALREADY_CALCULATED
|
||||
-# elif defined(__x86_64)
|
||||
+# elif defined(__x86_64) && defined(_LP64)
|
||||
/*
|
||||
* Same story here, but it's 128-bit by 64-bit division. Wow!
|
||||
* <appro@fy.chalmers.se>
|
11
patches/bn_lcl.h.patch
Normal file
11
patches/bn_lcl.h.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- ./openbsd/src/lib/libcrypto/bn/bn_lcl.h 2018-12-17 06:59:43.067523154 -0600
|
||||
+++ ./crypto/bn/bn_lcl.h 2019-01-20 19:43:53.679717457 -0600
|
||||
@@ -239,7 +239,7 @@
|
||||
: "r"(a), "r"(b)); \
|
||||
ret; })
|
||||
# endif /* compiler */
|
||||
-# elif defined(__x86_64) || defined(__x86_64__)
|
||||
+# elif (defined(__x86_64) || defined(__x86_64__)) && defined(_LP64)
|
||||
# if defined(__GNUC__) && __GNUC__>=2
|
||||
# define BN_UMULT_HIGH(a,b) ({ \
|
||||
BN_ULONG ret,discard; \
|
Loading…
x
Reference in New Issue
Block a user