comparison libtommath/tommath_private.h @ 1470:8bba51a55704

Update to libtommath v1.0.1
author Matt Johnston <matt@ucc.asn.au>
date Thu, 08 Feb 2018 23:11:40 +0800
parents 60fc6476e044
children f52919ffd3b1
comparison
equal deleted inserted replaced
1469:51043e868f55 1470:8bba51a55704
16 #define TOMMATH_PRIV_H_ 16 #define TOMMATH_PRIV_H_
17 17
18 #include <tommath.h> 18 #include <tommath.h>
19 #include <ctype.h> 19 #include <ctype.h>
20 20
21 #define MIN(x,y) (((x) < (y)) ? (x) : (y)) 21 #ifndef MIN
22 #define MIN(x,y) (((x) < (y)) ? (x) : (y))
23 #endif
22 24
23 #define MAX(x,y) (((x) > (y)) ? (x) : (y)) 25 #ifndef MAX
26 #define MAX(x,y) (((x) > (y)) ? (x) : (y))
27 #endif
24 28
25 #ifdef __cplusplus 29 #ifdef __cplusplus
26 extern "C" { 30 extern "C" {
27 31
28 /* C++ compilers don't like assigning void * to mp_digit * */ 32 /* C++ compilers don't like assigning void * to mp_digit * */
112 #endif 116 #endif
113 117
114 #endif 118 #endif
115 119
116 120
117 /* $Source$ */ 121 /* ref: $Format:%D$ */
118 /* $Revision$ */ 122 /* git commit: $Format:%H$ */
119 /* $Date$ */ 123 /* commit time: $Format:%ai$ */