github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/tools/syz-declextract/testdata/include/types.h (about) 1 // Copyright 2024 syzkaller project authors. All rights reserved. 2 // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. 3 4 typedef signed char s8; 5 typedef short s16; 6 typedef int s32; 7 typedef long long s64; 8 typedef unsigned char u8; 9 typedef unsigned short u16; 10 typedef unsigned int u32; 11 typedef unsigned long long u64; 12 13 #define __user __attribute__((btf_type_tag("user"))) 14 15 #define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0])) 16 17 static inline u32 atomic_load32(u32* p) { 18 return __atomic_load_n(p, __ATOMIC_RELAXED); 19 } 20 21 inline u64 atomic_load64(u64* p) { 22 return __atomic_load_n(p, __ATOMIC_RELAXED); 23 }