Skip to content

Commit 2d39c85

Browse files
author
liuyucai
committed
更改rtdef.h中RT_ALIGN的注释
1 parent 0c08453 commit 2d39c85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/rtdef.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,8 @@ typedef int (*init_fn_t)(void);
250250
*
251251
* @def RT_ALIGN(size, align)
252252
* Return the most contiguous size aligned at specified width. RT_ALIGN(13, 4)
253-
* would return 16.
253+
* would return 16.
254+
* @note align Must be an integer power of 2 or the result will be incorrect
254255
*/
255256
#define RT_ALIGN(size, align) (((size) + (align) - 1) & ~((align) - 1))
256257

0 commit comments

Comments
 (0)