Skip to content

Commit e35d750

Browse files
Lv Zhengrafaeljw
authored andcommitted
ACPICA: Utilities: Add ACPI_IS_ALIGNED() macro
This patch introduces ACPI_IS_ALIGNED() macro. Lv Zheng. Signed-off-by: Lv Zheng <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 5391abf commit e35d750

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/acpi/acpica/acmacros.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@
262262

263263
/* Generic (power-of-two) rounding */
264264

265-
#define ACPI_IS_POWER_OF_TWO(a) (((a) & ((a) - 1)) == 0)
265+
#define ACPI_IS_ALIGNED(a, s) (((a) & ((s) - 1)) == 0)
266+
#define ACPI_IS_POWER_OF_TWO(a) ACPI_IS_ALIGNED(a, a)
266267

267268
/*
268269
* Bitmask creation

0 commit comments

Comments
 (0)