diff options
| author | Martin Matuska <mm@FreeBSD.org> | 2010-05-13 20:32:56 +0000 |
|---|---|---|
| committer | Martin Matuska <mm@FreeBSD.org> | 2010-05-13 20:32:56 +0000 |
| commit | c43d127a9a77587d673144a8d7198303b438e99b (patch) | |
| tree | 1cb19e0cf3e413fa2f84c4f8c268f6161be50805 /sys/cddl/boot | |
| parent | 94162961c62f030094deaff29fc346a92d4523a9 (diff) | |
Notes
Diffstat (limited to 'sys/cddl/boot')
| -rw-r--r-- | sys/cddl/boot/zfs/zfsimpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/boot/zfs/zfsimpl.h b/sys/cddl/boot/zfs/zfsimpl.h index ef13487a8e0d5..04c74a31b8748 100644 --- a/sys/cddl/boot/zfs/zfsimpl.h +++ b/sys/cddl/boot/zfs/zfsimpl.h @@ -66,7 +66,7 @@ #define P2ROUNDUP(x, align) (-(-(x) & -(align))) #define P2END(x, align) (-(~(x) & -(align))) #define P2PHASEUP(x, align, phase) ((phase) - (((phase) - (x)) & -(align))) -#define P2CROSS(x, y, align) (((x) ^ (y)) > (align) - 1) +#define P2BOUNDARY(off, len, align) (((off) ^ ((off) + (len) - 1)) > (align) - 1) /* * General-purpose 32-bit and 64-bit bitfield encodings. |
