mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 18:00:01 +08:00
Add Math::divideAndRoundUp usage
Change-Id: Iae7775a61f7d12dd43d9253498fe388956af2fc4 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
fcf2387398
commit
4d76fe93b0
@@ -227,7 +227,7 @@ void AubFileStream::expectMemory(uint64_t physAddress, const void *memory, size_
|
||||
auto sizeThisIteration = std::min(sizeRemaining, blockSizeMax);
|
||||
|
||||
// Round up to the number of dwords
|
||||
auto dwordCount = (headerSize + sizeThisIteration + sizeof(uint32_t) - 1) / sizeof(uint32_t);
|
||||
auto dwordCount = Math::divideAndRoundUp(headerSize + sizeThisIteration, sizeof(uint32_t));
|
||||
|
||||
header.dwordCount = static_cast<uint32_t>(dwordCount - 1);
|
||||
header.dataSizeInBytes = static_cast<uint32_t>(sizeThisIteration);
|
||||
|
||||
Reference in New Issue
Block a user