Skip to content

Commit

Permalink
fix redefinition of ROUND_UP (#111)
Browse files Browse the repository at this point in the history
ROUND_UP is also defined with zephyr base. This just ifndef
around ROUND_UP, so if it is already defined, then it won't
get redefined.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
  • Loading branch information
XenuIsWatching authored Jul 25, 2023
1 parent f668520 commit 202bead
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Include/dsp/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ extern "C"

#define SQ(x) ((x) * (x))

#define ROUND_UP(N, S) ((((N) + (S) - 1) / (S)) * (S))
#ifndef ROUND_UP
#define ROUND_UP(N, S) ((((N) + (S) - 1) / (S)) * (S))
#endif


/**
Expand Down

0 comments on commit 202bead

Please sign in to comment.