mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-16 08:42:50 +00:00
Make mbedtls_ct_zero non-static
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
2894d007d3
commit
58c80f4d92
@ -37,6 +37,15 @@
|
|||||||
psa_generic_status_to_mbedtls)
|
psa_generic_status_to_mbedtls)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(MBEDTLS_CT_ASM)
|
||||||
|
/*
|
||||||
|
* Define an object with the value zero, such that the compiler cannot prove that it
|
||||||
|
* has the value zero (because it is volatile, it "may be modified in ways unknown to
|
||||||
|
* the implementation").
|
||||||
|
*/
|
||||||
|
volatile mbedtls_ct_uint_t mbedtls_ct_zero = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Define MBEDTLS_EFFICIENT_UNALIGNED_VOLATILE_ACCESS where assembly is present to
|
* Define MBEDTLS_EFFICIENT_UNALIGNED_VOLATILE_ACCESS where assembly is present to
|
||||||
* perform fast unaligned access to volatile data.
|
* perform fast unaligned access to volatile data.
|
||||||
|
@ -73,12 +73,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CT_ASM)
|
#if !defined(MBEDTLS_CT_ASM)
|
||||||
/*
|
extern volatile mbedtls_ct_uint_t mbedtls_ct_zero;
|
||||||
* Define an object with the value zero, such that the compiler cannot prove that it
|
|
||||||
* has the value zero (because it is volatile, it "may be modified in ways unknown to
|
|
||||||
* the implementation").
|
|
||||||
*/
|
|
||||||
static volatile mbedtls_ct_uint_t mbedtls_ct_zero = 0;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static inline mbedtls_ct_uint_t mbedtls_ct_compiler_opaque(mbedtls_ct_uint_t x)
|
static inline mbedtls_ct_uint_t mbedtls_ct_compiler_opaque(mbedtls_ct_uint_t x)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user