summaryrefslogtreecommitdiffstats
path: root/crypto/pqueue/pq_compat.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2005-06-06 00:32:11 +0000
committerRichard Levitte <levitte@openssl.org>2005-06-06 00:32:11 +0000
commitd1acb9b44f01844499aab7c87bae78364c579b49 (patch)
treec1bf9e498c8b45137683b1b6e198996ef960e1cb /crypto/pqueue/pq_compat.h
parentacd1c4b5af08952d2d51750a6027499d4e41cc92 (diff)
Further change pq_compat.h to generate the flag macros PQ_64BIT_IS_INTEGER
and PQ_64BIT_IS_BIGNUM with the values 0 (for false) and 1 (for true), depending on which is true. Use those flags everywhere else to provide the correct implementation for handling certain operations in q PQ_64BIT.
Diffstat (limited to 'crypto/pqueue/pq_compat.h')
-rw-r--r--crypto/pqueue/pq_compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/pqueue/pq_compat.h b/crypto/pqueue/pq_compat.h
index 776760a35a..653845353d 100644
--- a/crypto/pqueue/pq_compat.h
+++ b/crypto/pqueue/pq_compat.h
@@ -74,6 +74,9 @@
#if (defined(THIRTY_TWO_BIT) && !defined(BN_LLONG)) || defined(SIXTEEN_BIT) || defined(EIGHT_BIT)
+#define PQ_64BIT_IS_INTEGER 0
+#define PQ_64BIT_IS_BIGNUM 1
+
#define PQ_64BIT BIGNUM
#define PQ_64BIT_CTX BN_CTX
@@ -102,6 +105,9 @@
#else
+#define PQ_64BIT_IS_INTEGER 1
+#define PQ_64BIT_IS_BIGNUM 0
+
#if defined(SIXTY_FOUR_BIT) || defined(SIXTY_FOUR_BIT_LONG)
#define PQ_64BIT BN_ULONG
#elif defined(THIRTY_TWO_BIT)