mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
Revert "fix IS_ALIGNED macro"
This reverts commit 07a3b4db789ec6fe0c4773b9199b268280abc4a3.
This commit is contained in:
parent
de1a9b4ab3
commit
53f9e72e18
1 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@
|
|||
|
||||
#define ALIGN(x, a) ALIGN_MASK(x, (uintptr_t) (a) - 1)
|
||||
#define ALIGN_MASK(x, m) (((uintptr_t) (x) + (m)) & ~(m))
|
||||
#define IS_ALIGNED(x, a) ((uintptr_t) (x) % (uintptr_t) (a) == 0)
|
||||
#define IS_ALIGNED(x, a) (ALIGN(x, a) == (uintptr_t) x)
|
||||
|
||||
/** Round-up integer division */
|
||||
#define CEIL(x, y) (((x) + (y) - 1) / (y))
|
||||
|
@ -228,4 +228,4 @@ static inline int log2i(long long x) {
|
|||
/** Sleep with rdtsc */
|
||||
void rdtsc_sleep(uint64_t nanosecs, uint64_t start);
|
||||
|
||||
#endif /* _UTILS_H_ */
|
||||
#endif /* _UTILS_H_ */
|
Loading…
Add table
Reference in a new issue