]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commitdiff
global: in gnu code, use un-underscored asm
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 26 Feb 2018 23:49:16 +0000 (00:49 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 2 Mar 2018 15:42:29 +0000 (16:42 +0100)
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/curve25519.c
src/encoding.c

index 2195040811f32cf365e1e7b93c568b9232e1137d..b0308532d4334bb7e235e3778010f0c5673cd218 100644 (file)
@@ -46,7 +46,7 @@ typedef int64_t s64;
 static noinline void memzero_explicit(void *s, size_t count)
 {
        memset(s, 0, count);
-       __asm__ __volatile__("": :"r"(s) :"memory");
+       asm volatile("": :"r"(s) :"memory");
 }
 
 #ifdef __SIZEOF_INT128__
index a8bfd2404262e05b5fb97976a44dd13e514c0ef2..cb1b123b59fc06fd5c949416cb12054148867b2a 100644 (file)
@@ -113,7 +113,7 @@ bool key_is_zero(const uint8_t key[static WG_KEY_LEN])
 
        for (unsigned int i = 0; i < WG_KEY_LEN; ++i) {
                acc |= key[i];
-               __asm__ ("" : "=r" (acc) : "0" (acc));
+               asm("" : "=r" (acc) : "0" (acc));
        }
        return 1 & ((acc - 1) >> 8);
 }