Skip to content

Commit 0206e5f

Browse files
author
liuyucai
committed
更改rtdef.h中RT_ALIGN和RT_ALIGN_DOWN的注释
1 parent 2d39c85 commit 0206e5f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/rtdef.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ typedef int (*init_fn_t)(void);
261261
* @def RT_ALIGN_DOWN(size, align)
262262
* Return the down number of aligned at specified width. RT_ALIGN_DOWN(13, 4)
263263
* would return 12.
264+
* @note align Must be an integer power of 2 or the result will be incorrect
264265
*/
265266
#define RT_ALIGN_DOWN(size, align) ((size) & ~((align) - 1))
266267

0 commit comments

Comments
 (0)