[NTOSKRNL] Quickly check for alignment in NtRead/WriteFile
authorPierre Schweitzer <pierre@reactos.org>
Thu, 4 Oct 2018 08:42:13 +0000 (10:42 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Thu, 4 Oct 2018 08:45:10 +0000 (10:45 +0200)
commite19e907a2c40fa90a238e78b146b5dfc3fe715a3
treeac00436f46d827a6907da4e0afbba016e8a78e8a
parent44155053cdade19887932598ce6048a74f0ca71f
[NTOSKRNL] Quickly check for alignment in NtRead/WriteFile

This quick check based on bits and operation is for 2^ based
sector sizes (most of the cases) and will perform faster than
the modulo operation which is still used in fallback in case
the sector size wouldn't be a power of 2.
ntoskrnl/io/iomgr/iofunc.c