File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed
examples/monolithic_build Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 118
118
#undef MLK_MULTILEVEL_BUILD
119
119
#undef MLK_NAMESPACE
120
120
#undef MLK_NAMESPACE_K
121
+ #undef MLK_NAMESPACE_PREFIX
122
+ #undef MLK_NAMESPACE_PREFIX_K
121
123
/* mlkem/indcpa.h */
122
124
#undef MLK_INDCPA_H
123
125
#undef mlk_gen_matrix
Original file line number Diff line number Diff line change 42
42
#define MLK_ADD_PARAM_SET (s ) s
43
43
#endif
44
44
45
- #define MLK_NAMESPACE (s ) \
46
- MLK_CONCAT(MLK_CONCAT(MLK_CONFIG_NAMESPACE_PREFIX, _), s)
47
- #define MLK_NAMESPACE_K (s ) \
48
- MLK_CONCAT(MLK_CONCAT(MLK_ADD_PARAM_SET(MLK_CONFIG_NAMESPACE_PREFIX), _), s)
45
+ #define MLK_NAMESPACE_PREFIX MLK_CONCAT(MLK_CONFIG_NAMESPACE_PREFIX, _)
46
+ #define MLK_NAMESPACE_PREFIX_K \
47
+ MLK_CONCAT(MLK_ADD_PARAM_SET(MLK_CONFIG_NAMESPACE_PREFIX), _)
48
+
49
+ /* Functions are prefixed by MLK_CONFIG_NAMESPACE.
50
+ *
51
+ * If multiple parameter sets are used, functions depending on the parameter
52
+ * set are additionally prefixed with 512/768/1024. See config.h.
53
+ *
54
+ * Example: If MLK_CONFIG_NAMESPACE_PREFIX is mlkem, then
55
+ * MLK_NAMESPACE_K(enc) becomes mlkem512_enc/mlkem768_enc/mlkem1024_enc.
56
+ */
57
+ #define MLK_NAMESPACE (s ) MLK_CONCAT(MLK_NAMESPACE_PREFIX, s)
58
+ #define MLK_NAMESPACE_K (s ) MLK_CONCAT(MLK_NAMESPACE_PREFIX_K, s)
49
59
50
60
/* On Apple platforms, we need to emit leading underscore
51
61
* in front of assembly symbols. We thus introducee a separate
You can’t perform that action at this time.
0 commit comments