We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d39c85 commit 0206e5fCopy full SHA for 0206e5f
1 file changed
include/rtdef.h
@@ -261,6 +261,7 @@ typedef int (*init_fn_t)(void);
261
* @def RT_ALIGN_DOWN(size, align)
262
* Return the down number of aligned at specified width. RT_ALIGN_DOWN(13, 4)
263
* would return 12.
264
+ * @note align Must be an integer power of 2 or the result will be incorrect
265
*/
266
#define RT_ALIGN_DOWN(size, align) ((size) & ~((align) - 1))
267
0 commit comments