Skip to content

Commit 052b911

Browse files
Switch to '__asm__' over 'asm' (#41)
* Use more compliant '__asm__' over 'asm' * Use more compliant '__asm__' over 'asm'
1 parent 62e0779 commit 052b911

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/base64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ volatile uint32_t mbedtls_ct_zero = 0;
2525

2626
static inline uint32_t mbedtls_ct_compiler_opaque(uint32_t x) {
2727
#if defined(MBEDTLS_CT_ASM)
28-
asm volatile ("" : [x] "+r" (x) :);
28+
__asm__ volatile ("" : [x] "+r" (x) :);
2929
return x;
3030
#else
3131
return x ^ mbedtls_ct_zero;

src/sha3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static void * (*const volatile secure_memset)(void *, int, size_t) = memset;
209209
inline void sb_clear_buffer(void *buf, const size_t sz) {
210210
#ifdef MBEDTLS_CT_ASM
211211
memset(buf, 0, sz);
212-
asm volatile ("" ::: "memory");
212+
__asm__ volatile ("" ::: "memory");
213213
#else
214214
secure_memset(buf, 0, sz);
215215
#endif

0 commit comments

Comments
 (0)