summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
Diffstat (limited to 'sal')
-rw-r--r--sal/rtl/alloc_arena.hxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sal/rtl/alloc_arena.hxx b/sal/rtl/alloc_arena.hxx
index 7da1c532e30e..7226ef3f111a 100644
--- a/sal/rtl/alloc_arena.hxx
+++ b/sal/rtl/alloc_arena.hxx
@@ -39,10 +39,10 @@ struct rtl_arena_stat_type
/** rtl_arena_segment_type
* @internal
*/
-#define RTL_ARENA_SEGMENT_TYPE_HEAD (sal_Size(0x01))
-#define RTL_ARENA_SEGMENT_TYPE_SPAN (sal_Size(0x02))
-#define RTL_ARENA_SEGMENT_TYPE_FREE (sal_Size(0x04))
-#define RTL_ARENA_SEGMENT_TYPE_USED (sal_Size(0x08))
+constexpr sal_Size RTL_ARENA_SEGMENT_TYPE_HEAD = 0x01;
+constexpr sal_Size RTL_ARENA_SEGMENT_TYPE_SPAN = 0x02;
+constexpr sal_Size RTL_ARENA_SEGMENT_TYPE_FREE = 0x04;
+constexpr sal_Size RTL_ARENA_SEGMENT_TYPE_USED = 0x08;
struct rtl_arena_segment_type
{
@@ -63,10 +63,10 @@ struct rtl_arena_segment_type
/** rtl_arena_type
* @internal
*/
-#define RTL_ARENA_FREELIST_SIZE (sizeof(void*) * 8)
-#define RTL_ARENA_HASH_SIZE 64
+constexpr auto RTL_ARENA_FREELIST_SIZE = sizeof(void*) * 8;
+constexpr auto RTL_ARENA_HASH_SIZE = 64;
-#define RTL_ARENA_FLAG_RESCALE 1 /* within hash rescale operation */
+constexpr auto RTL_ARENA_FLAG_RESCALE = 1; /* within hash rescale operation */
struct rtl_arena_st
{