diff options
author | Richard Levitte <levitte@openssl.org> | 2005-06-06 00:32:30 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2005-06-06 00:32:30 +0000 |
commit | 0fb4d54068e75192008b6a9ff376f9466adca277 (patch) | |
tree | a19111a0f52c1804eb416874aeed485890a3b2e1 /crypto/pqueue | |
parent | 830a468a2395dfc902f0f489b9cdfc0ac5fe6be4 (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')
-rw-r--r-- | crypto/pqueue/pq_compat.h | 6 | ||||
-rw-r--r-- | crypto/pqueue/pqueue.c | 2 |
2 files changed, 7 insertions, 1 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) diff --git a/crypto/pqueue/pqueue.c b/crypto/pqueue/pqueue.c index 6ec5c6756c..e3eb836d45 100644 --- a/crypto/pqueue/pqueue.c +++ b/crypto/pqueue/pqueue.c @@ -199,7 +199,7 @@ pqueue_find(pqueue_s *pq, PQ_64BIT priority) return found; } -#if !(defined(OPENSSL_SYS_VMS) || defined(VMS_TEST)) +#if PQ_64BIT_IS_INTEGER void pqueue_print(pqueue_s *pq) { |