git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow specifiying access mode when creating twifs file node
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
compiler.h
diff --git
a/lunaix-os/includes/lunaix/compiler.h
b/lunaix-os/includes/lunaix/compiler.h
index ffc73c885e33a7beba59d4a4c43e1be68cbffe1c..aea7e5829c656c0c4566d50041bd59013a25819e 100644
(file)
--- a/
lunaix-os/includes/lunaix/compiler.h
+++ b/
lunaix-os/includes/lunaix/compiler.h
@@
-14,6
+14,9
@@
#define unreachable __builtin_unreachable()
#define no_inline __attribute__((noinline))
#define unreachable __builtin_unreachable()
#define no_inline __attribute__((noinline))
+#define _be __attribute__((scalar_storage_order ("big-endian")))
+#define _le __attribute__((scalar_storage_order ("little-endian")))
+
#define _default _weak
#define msbiti (sizeof(int) * 8 - 1)
#define _default _weak
#define msbiti (sizeof(int) * 8 - 1)
@@
-36,8
+39,9
@@
#define prefetch_rd(ptr, ll) __builtin_prefetch((ptr), 0, ll)
#define prefetch_wr(ptr, ll) __builtin_prefetch((ptr), 1, ll)
#define prefetch_rd(ptr, ll) __builtin_prefetch((ptr), 0, ll)
#define prefetch_wr(ptr, ll) __builtin_prefetch((ptr), 1, ll)
-#define stringify(v) #v
-#define stringify__(v) stringify(v)
+#define v__(v) (v)
+#define stringify(v) #v
+#define stringify__(v) stringify(v)
#define compact __attribute__((packed))
#define align(v) __attribute__((aligned (v)))
#define compact __attribute__((packed))
#define align(v) __attribute__((aligned (v)))