ACPICA: Utilities: Add ACPI_IS_ALIGNED() macro
This patch introduces ACPI_IS_ALIGNED() macro. Lv Zheng. Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
5391abfdae
commit
e35d75024b
1 changed files with 2 additions and 1 deletions
|
@ -262,7 +262,8 @@
|
||||||
|
|
||||||
/* Generic (power-of-two) rounding */
|
/* Generic (power-of-two) rounding */
|
||||||
|
|
||||||
#define ACPI_IS_POWER_OF_TWO(a) (((a) & ((a) - 1)) == 0)
|
#define ACPI_IS_ALIGNED(a, s) (((a) & ((s) - 1)) == 0)
|
||||||
|
#define ACPI_IS_POWER_OF_TWO(a) ACPI_IS_ALIGNED(a, a)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Bitmask creation
|
* Bitmask creation
|
||||||
|
|
Loading…
Reference in a new issue