Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2018-08-31 12:00:03 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2018-08-31 12:00:03 +0300
commite3e0c946b7bcfd9a331fb76cd5e7317d1b38be99 (patch)
tree4526f9b75b0d068a3ed16a12d48869cae22ea801 /include/llfio/v2.0/mapped.hpp
parent011874565dbbd95680ffbc7db8b250593760376b (diff)
Add large, huge and massive page support, for Windows. POSIX support is coming.
Diffstat (limited to 'include/llfio/v2.0/mapped.hpp')
-rw-r--r--include/llfio/v2.0/mapped.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llfio/v2.0/mapped.hpp b/include/llfio/v2.0/mapped.hpp
index e723ca75..a992968e 100644
--- a/include/llfio/v2.0/mapped.hpp
+++ b/include/llfio/v2.0/mapped.hpp
@@ -106,7 +106,7 @@ public:
#ifdef _WIN32
byteoffset & ~65535,
#else
- utils::round_down_to_page_size(byteoffset),
+ utils::round_down_to_page_size(byteoffset, utils::page_size()),
#endif
byteoffset, &sh, (length == (size_type) -1) ? 0 : length * sizeof(T), _flag)) // NOLINT
{
@@ -124,7 +124,7 @@ public:
#ifdef _WIN32
byteoffset & ~65535,
#else
- utils::round_down_to_page_size(byteoffset),
+ utils::round_down_to_page_size(byteoffset, utils::page_size()),
#endif
byteoffset, nullptr, (length == (size_type) -1) ? 0 : length * sizeof(T), _flag)) // NOLINT
{