Home
last modified time | relevance | path

Searched refs:RoundUp (Results 1 – 25 of 33) sorted by relevance

12

/NW4C-1.2.23/sources/libraries/gfx/
Dgfx_ParticleShape.cpp377 deviceMemorySize = ut::RoundUp(deviceMemorySize, 32); in GetMemorySizeInternal()
379 deviceMemorySize = ut::RoundUp(deviceMemorySize, 32); in GetMemorySizeInternal()
383 nodeMemorySize = ut::RoundUp(nodeMemorySize, 32); in GetMemorySizeInternal()
385 nodeMemorySize = ut::RoundUp(nodeMemorySize, 32); in GetMemorySizeInternal()
387 nodeMemorySize = ut::RoundUp(nodeMemorySize, 32); in GetMemorySizeInternal()
389 nodeMemorySize = ut::RoundUp(nodeMemorySize, 32); in GetMemorySizeInternal()
391 nodeMemorySize = ut::RoundUp(nodeMemorySize, 32); in GetMemorySizeInternal()
414 deviceMemorySize = ut::RoundUp(deviceMemorySize, 32); in GetDeviceMemorySizeInternal()
416 deviceMemorySize = ut::RoundUp(deviceMemorySize, 32); in GetDeviceMemorySizeInternal()
443 deviceMemorySize = ut::RoundUp(deviceMemorySize, 32); in Create()
[all …]
Dgfx_ParticleUtil.cpp313 size += ut::RoundUp(baseSize, 4); in DuplicateResParticleInitializer()
329 dstPtr += ut::RoundUp(baseSize, 4); in DuplicateResParticleInitializer()
711 size += ut::RoundUp(baseSize, 4); in DuplicateResParticleUpdater()
712 size += ut::RoundUp(animationSize, 4); in DuplicateResParticleUpdater()
713 size += ut::RoundUp(enabledSize, 4); in DuplicateResParticleUpdater()
714 size += ut::RoundUp(dataSize, 4); in DuplicateResParticleUpdater()
715 size += ut::RoundUp(animationOptionSize, 4); in DuplicateResParticleUpdater()
716 size += ut::RoundUp(childStrSize, 4); in DuplicateResParticleUpdater()
717 size += ut::RoundUp(childFormSize, 4); in DuplicateResParticleUpdater()
718 size += ut::RoundUp(childOptionSize, 4); in DuplicateResParticleUpdater()
[all …]
Dgfx_ParticleCollection.cpp41 prevSize = ut::RoundUp(prevSize, 8); in ParticleStreamCreateSize()
45 ut::RoundUp(capacity, internal::PARTICLE_SIMD_WIDTH_MAX) * sizeof(T) + in ParticleStreamCreateSize()
65 ut::RoundUp(capacity, internal::PARTICLE_SIMD_WIDTH_MAX) * sizeof(T) + in ParticleStreamCreate()
69 *buffer = reinterpret_cast<u8*>(ut::RoundUp(*buffer, 8)); in ParticleStreamCreate()
89 prevSize = ut::RoundUp(prevSize, 4); in ParticleParameterAttributeCreateSize()
109 *buffer = reinterpret_cast<u8*>(ut::RoundUp(*buffer, 4)); in ParticleParameterAttributeCreate()
133 collectionMemorySize = ut::RoundUp(collectionMemorySize, 4); in GetMemorySizeInternal()
156 collectionMemorySize = ut::RoundUp(collectionMemorySize, 4); in GetMemorySizeInternal()
370 collectionMemorySize = ut::RoundUp(collectionMemorySize, 4); in Create()
395 collectionMemorySize = ut::RoundUp(collectionMemorySize, 4); in Create()
[all …]
/NW4C-1.2.23/sources/libraries/font/
Dfont_PackedFont.cpp542 const u32 sizeFINF = math::RoundUp(sizeof(FontInformation), 4); in CalcCopySize()
543 const u32 sizeTGLP = math::RoundUp(sizeof(FontTextureGlyph), 4); in CalcCopySize()
551 const u32 loadResSize = math::RoundUp(sizeFINF + sizeTGLP, GlyphDataAlignment) in CalcCopySize()
573 …u32 offsetCompSheetArray = math::RoundUp(offsetLRUBuffer + sizeLRUBuffer, … in CalcCacheSize()
574 …u32 offsetSheetIndexArray = math::RoundUp(offsetCompSheetArray + sizeCompSheetArray, … in CalcCacheSize()
575 …u32 offsetResSheetIndexArray = math::RoundUp(offsetSheetIndexArray + sizeCompSheetArray, … in CalcCacheSize()
576 …u32 offsetSheetCached = math::RoundUp(offsetResSheetIndexArray + sizeResSheetIndexArray… in CalcCacheSize()
577 …u32 size = math::RoundUp(offsetSheetCached + sizeSheetCached, … in CalcCacheSize()
578 …size = math::RoundUp(size + sizeTextureNamesArray,… in CalcCacheSize()
604 u32 sizeGlyphIndexAdjustArray = math::RoundUp(sizeof(u16) * numResSheet, 2); in AssignMemory()
[all …]
Dfont_DispStringBuffer.cpp40 const u32 drawFlagBytes = math::RoundUp(this->charCountMax, 8) / 8; in DispStringBuffer()
41 ptr += math::RoundUp(drawFlagBytes, sizeof(u32)); in DispStringBuffer()
Dfont_ArchiveFont.cpp137 const u32 sizeTable = math::RoundUp(sizeof(u16) * gg.GetNumSheet(), 4); in GetRequireBufferSize()
138 const u32 sizeFINF = math::RoundUp(sizeof(FontInformation), 4); in GetRequireBufferSize()
139 const u32 sizeTGLP = math::RoundUp(sizeof(FontTextureGlyph), 4); in GetRequireBufferSize()
140 const u32 sizeSumSheet = math::RoundUp(gg.GetSheetSize() * numRequireSheets, 4); in GetRequireBufferSize()
150 math::RoundUp(sizeTable + sizeFINF + sizeTGLP, GlyphDataAlignment) in GetRequireBufferSize()
154 totalSize = math::RoundUp(totalSize, 4); in GetRequireBufferSize()
Dfont_ArchiveFontBase.cpp412 sizeAdjustTable = math::RoundUp(gg.GetNumSheet() * sizeof(u16), 4); // 4 バイトアライメント in ConstructOpAnalyzeGLGR()
1115 const u32 offsetStatic = math::RoundUp(sizePreBlock, 2); in FontGlyphGroupsAcs()
1116 const u32 offsetNameOffsets = math::RoundUp(offsetStatic + sizeStatic, 2); in FontGlyphGroupsAcs()
1117 const u32 offsetSizeSheets = math::RoundUp(offsetNameOffsets+ sizeNameOffsets, 4); in FontGlyphGroupsAcs()
1118 const u32 offsetSizeCWDH = math::RoundUp(offsetSizeSheets + sizeSizeSheets, 4); in FontGlyphGroupsAcs()
1119 const u32 offsetSizeCMAP = math::RoundUp(offsetSizeCWDH + sizeSizeCWDH, 4); in FontGlyphGroupsAcs()
1120 const u32 offsetUseSheets = math::RoundUp(offsetSizeCMAP + sizeSizeCMAP, 4); in FontGlyphGroupsAcs()
1121 const u32 offsetUseCWDH = math::RoundUp(offsetUseSheets + sizeUseSheets, 4); in FontGlyphGroupsAcs()
1122 const u32 offsetUseCMAP = math::RoundUp(offsetUseCWDH + sizeUseCWDH, 4); in FontGlyphGroupsAcs()
Dfont_RectDrawer.cpp102 const int TEX_ENV_COMMAND_SIZE = math::RoundUp(1 + TEX_ENV_DATA_NUM, 2);
654 u32 size = (count / BURST_MAX) * math::RoundUp(2 + 1 + BURST_MAX, 2); in CalcInstCommandCount()
657 size += math::RoundUp(2 + 1 + (count % BURST_MAX), 2); in CalcInstCommandCount()
1110 m_CmdCacheDrawBegin.RoundUp(8); in InitializeCMD()
1149 m_CmdCacheDrawBegin.RoundUp(8); in InitializeCMD()
1488 for (int i = math::RoundUp(charCount, 8) / 8; i > 0; --i) in BuildTextCommand()
1804 const int UniformHeader = math::RoundUp(SingleCommand + 1, 2); in CalcCommandBufferCapacity()
/NW4C-1.2.23/sources/libraries/ut/
Dut_FrameHeap.cpp50 startAddress = RoundUp( startAddress, MIN_ALIGNMENT ); in Create()
123 size = RoundUp( size, MIN_ALIGNMENT ); in Alloc()
156 void* newBlock = RoundUp( mHeadAllocator, (u32)alignment ); in AllocFromHead()
242 newSize = RoundUp( newSize, MIN_ALIGNMENT ); in ResizeForMBlock()
306 const void* block = RoundUp( mHeadAllocator, (u32)alignment ); in GetAllocatableSize()
Dut_CmdCache.cpp425 m_CmdBuffer = static_cast<u8*>(ut::RoundUp(buffer, 4)); in Init()
460 CmdCache::RoundUp(u8 align) in RoundUp() function in nw::ut::internal::CmdCache
464 const u32 alignedBufferSize = ut::RoundUp(m_CmdBufferSize, align); in RoundUp()
/NW4C-1.2.23/sources/libraries/snd/
Dsnd_InstancePool.cpp41 char* ptr = static_cast<char*>( ut::RoundUp( buffer, 4 ) ); in CreateImpl()
42 objSize = ut::RoundUp( objSize, 4 ); in CreateImpl()
Dsnd_SoundArchivePlayer.cpp217 size += ut::RoundUp( playerCount * sizeof( SoundPlayer ), 4 ); in GetRequiredMemSize()
232 size += ut::RoundUp( sizeof(internal::PlayerHeap), 4 ); in GetRequiredMemSize()
233 size = ut::RoundUp( size, 32 ); in GetRequiredMemSize()
234 size += ut::RoundUp( playerInfo.playerHeapSize, 4 ); in GetRequiredMemSize()
244 size += ut::RoundUp( in GetRequiredMemSize()
248 size += ut::RoundUp( in GetRequiredMemSize()
252 size += ut::RoundUp( in GetRequiredMemSize()
256 size += ut::RoundUp( in GetRequiredMemSize()
371 void* ep = ut::RoundUp( ut::AddOffsetToPtr( *buffer, sizeof(internal::PlayerHeap) ), 4 ); in CreatePlayerHeap()
382 *buffer = ut::RoundUp( *buffer, 32 ); in CreatePlayerHeap()
[all …]
Dsnd_PlayerHeap.cpp71 startAddress = ut::RoundUp( startAddress, 32 ); in Create()
113 m_pAllocAddress = ut::RoundUp( endp, 32 ); in Alloc()
Dsnd_StreamSoundFileLoader.cpp48 s32 readSize = m_Stream.Read( ut::RoundUp( buffer2, 32 ), headerSize ); in LoadFileHeader()
55 reinterpret_cast<StreamSoundFile::FileHeader*>( ut::RoundUp( buffer2, 32 ) ); in LoadFileHeader()
Dsnd_SoundArchiveLoader.cpp112 s32 readByte = stream->Read( buffer, ut::RoundUp( static_cast<u32>( size ), 32 ) ); in ReadFile()
125 u32 curReadingSize = ut::RoundUp( ut::Min<u32>( loadBlockSize, restSize ), 32 ); in ReadFile()
Dsnd_FrameHeap.cpp110 startAddress = ut::RoundUp( startAddress, 4 ); // Heap align in Create()
190 const unsigned long blockSize = ut::RoundUp( sizeof(Block), HEAP_ALIGN ); in Alloc()
192 blockSize + ut::RoundUp( size, HEAP_ALIGN ), in Alloc()
Dsnd_StreamBufferPool.cpp55 const int availableByte = ut::RoundUp( m_BlockCount, BIT_PER_BYTE ) / BIT_PER_BYTE; in Alloc()
Dsnd_HioSoundArchive.cpp127 ut::RoundUp( sizeof(internal::SoundArchiveFile::FileHeader), 32 ) ); in LoadFileHeader()
129 void* alignedBuffer = ut::RoundUp( headerArea, 32 ); in LoadFileHeader()
411 length = static_cast<u32>( ut::RoundUp( m_Offset + m_Size - curPos, 32 ) ); in Read()
Dsnd_RomSoundArchive.cpp204 ut::RoundUp( sizeof(internal::SoundArchiveFile::FileHeader), 32 ) in LoadFileHeader()
207 void* file = ut::RoundUp( headerArea, 32 ); in LoadFileHeader()
655 length = static_cast<u32>( ut::RoundUp( m_Offset + m_Size - curPos, 32 ) ); in Read()
Dsnd_FxDelay.cpp330 uptr ptr = nw::ut::RoundUp( m_pBuffer, 32 ); in AllocBuffer()
/NW4C-1.2.23/include/nw/ut/
Dut_CmdCache.h44 void RoundUp(u8 align);
Dut_Inlines.h487 template <typename ValueT> ValueT RoundUp(ValueT x, unsigned int base);
491 RoundUp(ValueT* x, unsigned int base) in RoundUp() function
501 RoundUp(const ValueT* x, unsigned int base) in RoundUp() function
511 RoundUp(ValueT x, unsigned int base) in RoundUp() function
/NW4C-1.2.23/include/nw/os/
Dos_Memory.h380 m_Size = ut::RoundUp(m_Size, m_Alignment) + size;
402 m_Size = ut::RoundUp(m_Size, m_Alignment) * operand;
/NW4C-1.2.23/sources/libraries/demo/
Ddemo_Memory.cpp45 top = nw::ut::RoundUp( top, align ); in AlignMemory_()
/NW4C-1.2.23/demos/snd/playerHeap/sources/
DplayerHeapApp.cpp116 nw::ut::RoundUp( m_pMemoryForSoundArchivePlayer, 32 ), setupSize, in InitializeSoundSystem()

12