projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[ACPICA]
[reactos.git]
/
reactos
/
drivers
/
bus
/
acpi
/
acpica
/
include
/
acmacros.h
diff --git
a/reactos/drivers/bus/acpi/acpica/include/acmacros.h
b/reactos/drivers/bus/acpi/acpica/include/acmacros.h
index
1393412
..
ecb8050
100644
(file)
--- a/
reactos/drivers/bus/acpi/acpica/include/acmacros.h
+++ b/
reactos/drivers/bus/acpi/acpica/include/acmacros.h
@@
-264,6
+264,10
@@
#define ACPI_IS_MISALIGNED(value) (((ACPI_SIZE) value) & (sizeof(ACPI_SIZE)-1))
+/* Generic (power-of-two) rounding */
+
+#define ACPI_IS_POWER_OF_TWO(a) (((a) & ((a) - 1)) == 0)
+
/*
* Bitmask creation
* Bit positions start at zero.