[dm][misc] make RT_BITS_PER_LONG custom mode

Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
GuEe-GUI
2026-08-06 11:14:28 +08:00
committed by Rbb666
parent 96cf830d89
commit 395dff4e2e
@@ -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))