-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Monolithic build: Automatically namespace statics
Signed-off-by: Hanno Becker <[email protected]>
- Loading branch information
1 parent
ceb2fef
commit 016af58
Showing
6 changed files
with
324 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
examples/monolithic_build/mlkem_native_namespace_statics.i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/* | ||
* Copyright (c) 2024 The mlkem-native project authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/* | ||
* WARNING: This file is auto-generated from scripts/autogenerate_files.py | ||
* Do not modify it directly. | ||
*/ | ||
|
||
/* | ||
* Namespacing of statics | ||
*/ | ||
|
||
|
||
/* Namespace all static definitions from *.c or *.h files */ | ||
#define cbd2 MLKEM_NAMESPACE(cbd2) | ||
#define scalar_compress_d5 MLKEM_NAMESPACE(scalar_compress_d5) | ||
#define ct_memcmp MLKEM_NAMESPACE(ct_memcmp) | ||
#define montgomery_reduce MLKEM_NAMESPACE(montgomery_reduce) | ||
#define shake256x4_squeezeblocks MLKEM_NAMESPACE(shake256x4_squeezeblocks) | ||
#define scalar_compress_d11 MLKEM_NAMESPACE(scalar_compress_d11) | ||
#define ct_cmov_zero MLKEM_NAMESPACE(ct_cmov_zero) | ||
#define shake256x4_absorb_once MLKEM_NAMESPACE(shake256x4_absorb_once) | ||
#define keccak_absorb_once MLKEM_NAMESPACE(keccak_absorb_once) | ||
#define rej_uniform_scalar MLKEM_NAMESPACE(rej_uniform_scalar) | ||
#define ct_cmask_nonzero_u16 MLKEM_NAMESPACE(ct_cmask_nonzero_u16) | ||
#define KeccakF_RoundConstants MLKEM_NAMESPACE(KeccakF_RoundConstants) | ||
#define ct_cmask_neg_i16 MLKEM_NAMESPACE(ct_cmask_neg_i16) | ||
#define poly_permute_bitrev_to_custom \ | ||
MLKEM_NAMESPACE(poly_permute_bitrev_to_custom) | ||
#define invntt_layer MLKEM_NAMESPACE(invntt_layer) | ||
#define cast_uint16_to_int16 MLKEM_NAMESPACE(cast_uint16_to_int16) | ||
#define keccak_squeezeblocks_x4 MLKEM_NAMESPACE(keccak_squeezeblocks_x4) | ||
#define fqmul MLKEM_NAMESPACE(fqmul) | ||
#define ct_sel_uint8 MLKEM_NAMESPACE(ct_sel_uint8) | ||
#define value_barrier_u32 MLKEM_NAMESPACE(value_barrier_u32) | ||
#define scalar_decompress_d5 MLKEM_NAMESPACE(scalar_decompress_d5) | ||
#define keccak_squeeze_once MLKEM_NAMESPACE(keccak_squeeze_once) | ||
#define unpack_sk MLKEM_NAMESPACE(unpack_sk) | ||
#define check_sk MLKEM_NAMESPACE(check_sk) | ||
#define ntt_layer MLKEM_NAMESPACE(ntt_layer) | ||
#define unpack_ciphertext MLKEM_NAMESPACE(unpack_ciphertext) | ||
#define scalar_signed_to_unsigned_q MLKEM_NAMESPACE(scalar_signed_to_unsigned_q) | ||
#define value_barrier_i32 MLKEM_NAMESPACE(value_barrier_i32) | ||
#define pack_ciphertext MLKEM_NAMESPACE(pack_ciphertext) | ||
#define montgomery_reduce_generic MLKEM_NAMESPACE(montgomery_reduce_generic) | ||
#define gen_matrix_entry_x4 MLKEM_NAMESPACE(gen_matrix_entry_x4) | ||
#define keccak_absorb_once_x4 MLKEM_NAMESPACE(keccak_absorb_once_x4) | ||
#define gen_matrix_entry MLKEM_NAMESPACE(gen_matrix_entry) | ||
#define ntt_butterfly_block MLKEM_NAMESPACE(ntt_butterfly_block) | ||
#define matvec_mul MLKEM_NAMESPACE(matvec_mul) | ||
#define scalar_decompress_d4 MLKEM_NAMESPACE(scalar_decompress_d4) | ||
#define barrett_reduce MLKEM_NAMESPACE(barrett_reduce) | ||
#define value_barrier_u8 MLKEM_NAMESPACE(value_barrier_u8) | ||
#define pack_pk MLKEM_NAMESPACE(pack_pk) | ||
#define pack_sk MLKEM_NAMESPACE(pack_sk) | ||
#define unpack_pk MLKEM_NAMESPACE(unpack_pk) | ||
#define ct_cmask_nonzero_u8 MLKEM_NAMESPACE(ct_cmask_nonzero_u8) | ||
#define keccak_squeezeblocks MLKEM_NAMESPACE(keccak_squeezeblocks) | ||
#define scalar_decompress_d10 MLKEM_NAMESPACE(scalar_decompress_d10) | ||
#define ct_sel_int16 MLKEM_NAMESPACE(ct_sel_int16) | ||
#define load32_littleendian MLKEM_NAMESPACE(load32_littleendian) | ||
#define scalar_compress_d10 MLKEM_NAMESPACE(scalar_compress_d10) | ||
#define scalar_compress_d4 MLKEM_NAMESPACE(scalar_compress_d4) | ||
#define scalar_decompress_d11 MLKEM_NAMESPACE(scalar_decompress_d11) | ||
#define scalar_compress_d1 MLKEM_NAMESPACE(scalar_compress_d1) | ||
#define check_pk MLKEM_NAMESPACE(check_pk) |
67 changes: 67 additions & 0 deletions
67
examples/monolithic_build/mlkem_native_unnamespace_statics.i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* | ||
* Copyright (c) 2024 The mlkem-native project authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/* | ||
* WARNING: This file is auto-generated from scripts/autogenerate_files.py | ||
* Do not modify it directly. | ||
*/ | ||
|
||
/* | ||
* Undo all namespacing of statics | ||
*/ | ||
|
||
|
||
/* Unnamespace all static definitions from *.c or *.h files */ | ||
#undef cbd2 | ||
#undef scalar_compress_d5 | ||
#undef ct_memcmp | ||
#undef montgomery_reduce | ||
#undef shake256x4_squeezeblocks | ||
#undef scalar_compress_d11 | ||
#undef ct_cmov_zero | ||
#undef shake256x4_absorb_once | ||
#undef keccak_absorb_once | ||
#undef rej_uniform_scalar | ||
#undef ct_cmask_nonzero_u16 | ||
#undef KeccakF_RoundConstants | ||
#undef ct_cmask_neg_i16 | ||
#undef poly_permute_bitrev_to_custom | ||
#undef invntt_layer | ||
#undef cast_uint16_to_int16 | ||
#undef keccak_squeezeblocks_x4 | ||
#undef fqmul | ||
#undef ct_sel_uint8 | ||
#undef value_barrier_u32 | ||
#undef scalar_decompress_d5 | ||
#undef keccak_squeeze_once | ||
#undef unpack_sk | ||
#undef check_sk | ||
#undef ntt_layer | ||
#undef unpack_ciphertext | ||
#undef scalar_signed_to_unsigned_q | ||
#undef value_barrier_i32 | ||
#undef pack_ciphertext | ||
#undef montgomery_reduce_generic | ||
#undef gen_matrix_entry_x4 | ||
#undef keccak_absorb_once_x4 | ||
#undef gen_matrix_entry | ||
#undef ntt_butterfly_block | ||
#undef matvec_mul | ||
#undef scalar_decompress_d4 | ||
#undef barrett_reduce | ||
#undef value_barrier_u8 | ||
#undef pack_pk | ||
#undef pack_sk | ||
#undef unpack_pk | ||
#undef ct_cmask_nonzero_u8 | ||
#undef keccak_squeezeblocks | ||
#undef scalar_decompress_d10 | ||
#undef ct_sel_int16 | ||
#undef load32_littleendian | ||
#undef scalar_compress_d10 | ||
#undef scalar_compress_d4 | ||
#undef scalar_decompress_d11 | ||
#undef scalar_compress_d1 | ||
#undef check_pk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.