aboutsummaryrefslogtreecommitdiffstats
path: root/include/lib/utils_def.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lib/utils_def.h')
-rw-r--r--include/lib/utils_def.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/lib/utils_def.h b/include/lib/utils_def.h
index 2975103f5..7335103b1 100644
--- a/include/lib/utils_def.h
+++ b/include/lib/utils_def.h
@@ -16,7 +16,14 @@
#define SIZE_FROM_LOG2_WORDS(n) (4 << (n))
-#define BIT(nr) (ULL(1) << (nr))
+#define BIT_32(nr) (U(1) << (nr))
+#define BIT_64(nr) (ULL(1) << (nr))
+
+#ifdef AARCH32
+#define BIT BIT_32
+#else
+#define BIT BIT_64
+#endif
/*
* Create a contiguous bitmask starting at bit position @l and ending at