/********************************************************/ /* ntapi: Native API core library */ /* Copyright (C) 2013--2018 Z. Gilboa */ /* Released under GPLv2 and GPLv3; see COPYING.NTAPI. */ /********************************************************/ #include #include #include #include uintptr_t * __cdecl __ntapi_tt_aligned_block_memlock( __in uintptr_t * dst, __in size_t bytes) { size_t addr = (size_t)dst & ~(size_t)(NT_SYNC_BLOCK_SIZE); size_t cap = addr + bytes; for (; addr