Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PATCH v1] helper: macros: add new utility macros #2178

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

TuomasTaipale
Copy link
Collaborator

Add two new utility macros:

  • ODPH_ROUNDUP_DIV() for dividing two numbers rounded up to the
    closest integer
  • ODPH_ROUNDUP_ALIGN() for rounding up a value to a given alignment

Remove unused `CACHE_ALIGN_ROUNDUP()` macro.

Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Remove unused `CACHE_ALIGN_ROUNDUP()` macro.

Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Add two new utility macros:

  - `ODPH_ROUNDUP_DIV()` for dividing two numbers rounded up to the
    closest integer
  - `ODPH_ROUNDUP_ALIGN()` for rounding up a value to a given alignment

Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Utilize new `ODPH_ROUNDUP_DIV()` helper macro.

Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Utilize new `ODPH_ROUNDUP_ALIGN()` helper macro.

Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com>
@odpbuild odpbuild changed the title helper: macros: add new utility macros [PATCH v1] helper: macros: add new utility macros Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant