Skip to content

Commit 79f05d8

Browse files
willieyzhanno-becker
authored andcommitted
Consolidate imports of stdint.h
mldsa-native depends on stdint.h which is a popular extension to C90, but not part of it -- contrary to our documentation stating C90 compliance. As a step towards clarifying the reliance on non-standard headers, this commit consolidates all imports of stdint.h into common.h and mldsa_native.h. Signed-off-by: willieyz <willie.zhao@chelpis.com>
1 parent 39fe995 commit 79f05d8

57 files changed

Lines changed: 5 additions & 59 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dev/aarch64_clean/src/arith_native_aarch64.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#ifndef MLD_NATIVE_AARCH64_SRC_ARITH_NATIVE_AARCH64_H
88
#define MLD_NATIVE_AARCH64_SRC_ARITH_NATIVE_AARCH64_H
99

10-
#include <stdint.h>
1110
#include "../../../cbmc.h"
1211
#include "../../../common.h"
1312

dev/aarch64_clean/src/polyz_unpack_table.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#if defined(MLD_ARITH_BACKEND_AARCH64) && \
1515
!defined(MLD_CONFIG_MULTILEVEL_NO_SHARED)
1616

17-
#include <stdint.h>
1817
#include "arith_native_aarch64.h"
1918

2019
/* Table of indices used for tbl instructions in polyz_unpack_{17,19}.

dev/aarch64_opt/src/arith_native_aarch64.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#ifndef MLD_NATIVE_AARCH64_SRC_ARITH_NATIVE_AARCH64_H
88
#define MLD_NATIVE_AARCH64_SRC_ARITH_NATIVE_AARCH64_H
99

10-
#include <stdint.h>
1110
#include "../../../cbmc.h"
1211
#include "../../../common.h"
1312

dev/aarch64_opt/src/polyz_unpack_table.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#if defined(MLD_ARITH_BACKEND_AARCH64) && \
1515
!defined(MLD_CONFIG_MULTILEVEL_NO_SHARED)
1616

17-
#include <stdint.h>
1817
#include "arith_native_aarch64.h"
1918

2019
/* Table of indices used for tbl instructions in polyz_unpack_{17,19}.

dev/fips202/aarch64/src/fips202_native_aarch64.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#ifndef MLD_DEV_FIPS202_AARCH64_SRC_FIPS202_NATIVE_AARCH64_H
77
#define MLD_DEV_FIPS202_AARCH64_SRC_FIPS202_NATIVE_AARCH64_H
88

9-
#include <stdint.h>
109

1110
#include "../../../../cbmc.h"
1211
#include "../../../../common.h"

dev/fips202/aarch64/src/keccakf1600_round_constants.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
defined(MLD_FIPS202_AARCH64_NEED_X4_V8A_V84A_SCALAR_HYBRID)) && \
1414
!defined(MLD_CONFIG_MULTILEVEL_NO_SHARED)
1515

16-
#include <stdint.h>
1716
#include "fips202_native_aarch64.h"
1817

1918
MLD_ALIGN const uint64_t mld_keccakf1600_round_constants[] = {

dev/x86_64/src/arith_native_x86_64.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#define MLD_NATIVE_X86_64_SRC_ARITH_NATIVE_X86_64_H
88
#include "../../../common.h"
99

10-
#include <stdint.h>
1110
#include "consts.h"
1211

1312
#define MLD_AVX2_REJ_UNIFORM_BUFLEN \

dev/x86_64/src/poly_chknorm_avx2.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
!defined(MLD_CONFIG_MULTILEVEL_NO_SHARED)
2424

2525
#include <immintrin.h>
26-
#include <stdint.h>
2726
#include "arith_native_x86_64.h"
2827

2928
int mld_poly_chknorm_avx2(const int32_t *a, int32_t B)

dev/x86_64/src/poly_decompose_32_avx2.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
(MLD_CONFIG_PARAMETER_SET == 65 || MLD_CONFIG_PARAMETER_SET == 87))
3030

3131
#include <immintrin.h>
32-
#include <stdint.h>
3332
#include <string.h>
3433
#include "arith_native_x86_64.h"
3534
#include "consts.h"

dev/x86_64/src/poly_decompose_88_avx2.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
MLD_CONFIG_PARAMETER_SET == 44)
3030

3131
#include <immintrin.h>
32-
#include <stdint.h>
3332
#include <string.h>
3433
#include "arith_native_x86_64.h"
3534
#include "consts.h"

0 commit comments

Comments
 (0)