summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorGuEe-GUI <[email protected]>2026-07-22 23:06:17 +0800
committerRbb666 <[email protected]>2026-08-06 11:14:28 +0800
commit395dff4e2e9c2a3c33cdac24249b20a94ecd9d14 (patch)
treed9fc61fb4e15171323f6ce6a75f1e85fe7d6c47e /components
parent96cf830d89e823eed4259d24725905c979f2aebb (diff)
[dm][misc] make RT_BITS_PER_LONG custom mode
Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components')
-rw-r--r--components/drivers/include/drivers/misc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/misc.h b/components/drivers/include/drivers/misc.h
index 2b4b0a5443..8e3c8f22c2 100644
--- a/components/drivers/include/drivers/misc.h
+++ b/components/drivers/include/drivers/misc.h
@@ -14,11 +14,13 @@
#include <rtdef.h>
#include <cpuport.h>
+#ifndef RT_BITS_PER_LONG
#ifdef ARCH_CPU_64BIT
#define RT_BITS_PER_LONG 64
#else
#define RT_BITS_PER_LONG 32
#endif
+#endif
#define RT_BITS_PER_LONG_LONG 64
#define RT_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))