W-M-R commented on code in PR #15455:
URL: https://github.com/apache/nuttx/pull/15455#discussion_r1910491897
##########
libs/libbuiltin/libgcc/profile.c:
##########
@@ -288,13 +284,13 @@ void moncontrol(int mode)
if (mode)
{
- uintptr_t lowpc = ROUNDDOWN((uintptr_t)&_stext,
+ uintptr_t lowpc = ALIGN_DOWN((uintptr_t)&_stext,
HISTFRACTION * sizeof(HISTCOUNTER));
- uintptr_t highpc = ROUNDUP((uintptr_t)&_etext,
- HISTFRACTION * sizeof(HISTCOUNTER));
+ uintptr_t highpc = ALIGN_UP((uintptr_t)&_etext,
+ HISTFRACTION * sizeof(HISTCOUNTER));
Review Comment:
You are absolutely right. I will open a new PR to fix this align.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]