mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-08-18 11:53:05 +08:00
[dm][misc] make RT_BITS_PER_LONG custom mode
Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user