File tree 3 files changed +22
-0
lines changed
3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 13
13
14
14
#ifndef ECMULT_WINDOW_SIZE
15
15
# define ECMULT_WINDOW_SIZE 15
16
+ # ifdef CONFIG_DEBUG
17
+ # pragma message CONFIG_DEBUG_MSG("ECMULT_WINDOW_SIZE undefined, assuming default value")
18
+ # endif
16
19
#endif
20
+
21
+ #ifdef CONFIG_DEBUG
22
+ # pragma message CONFIG_DEBUG_DEF(ECMULT_WINDOW_SIZE)
23
+ #endif
24
+
17
25
/* Noone will ever need more than a window size of 24. The code might
18
26
* be correct for larger values of ECMULT_WINDOW_SIZE but this is not
19
27
* tested.
Original file line number Diff line number Diff line change 12
12
13
13
#ifndef ECMULT_GEN_PREC_BITS
14
14
# define ECMULT_GEN_PREC_BITS 4
15
+ # ifdef CONFIG_DEBUG
16
+ # pragma message CONFIG_DEBUG_MSG("ECMULT_GEN_PREC_BITS undefined, assuming default value")
17
+ # endif
15
18
#endif
19
+
20
+ #ifdef CONFIG_DEBUG
21
+ # pragma message CONFIG_DEBUG_DEF(ECMULT_GEN_PREC_BITS)
22
+ #endif
23
+
16
24
#if ECMULT_GEN_PREC_BITS != 2 && ECMULT_GEN_PREC_BITS != 4 && ECMULT_GEN_PREC_BITS != 8
17
25
# error "Set ECMULT_GEN_PREC_BITS to 2, 4 or 8."
18
26
#endif
27
+
19
28
#define ECMULT_GEN_PREC_G (bits ) (1 << bits)
20
29
#define ECMULT_GEN_PREC_N (bits ) (256 / bits)
21
30
Original file line number Diff line number Diff line change 16
16
#include <stdio.h>
17
17
#include <limits.h>
18
18
19
+ #define STR_ (x ) #x
20
+ #define STR (x ) STR_(x)
21
+ #define CONFIG_DEBUG_MSG (x ) "CONFIG_DEBUG: " x
22
+ #define CONFIG_DEBUG_DEF (x ) CONFIG_DEBUG_MSG(#x "=" STR(x))
23
+
19
24
typedef struct {
20
25
void (* fn )(const char * text , void * data );
21
26
const void * data ;
You can’t perform that action at this time.
0 commit comments