Skip to content

[mem]MIN_SIZE宏定义 不易于理解 #8761

Description

@wdfk-prog

https://club.rt-thread.org/ask/question/34fb69df13455861.html

  • 进行如下修改更易于理解
#define MIN_SIZE (sizeof(rt_ubase_t) + sizeof(rt_size_t) + sizeof(rt_size_t))
  • rt_ubase_t 在32位占4字节,在64位8字节
  • rt_size_t 在32位占4字节,在64位8字节

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions