Home
last modified time | relevance | path

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

12

/NW4C-2.0.3/sources/libraries/gfx/
Dgfx_ParticleShape.cpp379 deviceMemorySize = ut::RoundUp(deviceMemorySize, 32); in GetMemorySizeInternal()
381 deviceMemorySize = ut::RoundUp(deviceMemorySize, 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()
393 nodeMemorySize = ut::RoundUp(nodeMemorySize, 32); in GetMemorySizeInternal()
416 deviceMemorySize = ut::RoundUp(deviceMemorySize, 32); in GetDeviceMemorySizeInternal()
418 deviceMemorySize = ut::RoundUp(deviceMemorySize, 32); in GetDeviceMemorySizeInternal()
445 deviceMemorySize = ut::RoundUp(deviceMemorySize, 32); in Create()
[all …]
Dgfx_ParticleUtil.cpp315 size += ut::RoundUp(baseSize, 4); in DuplicateResParticleInitializer()
331 dstPtr += ut::RoundUp(baseSize, 4); in DuplicateResParticleInitializer()
713 size += ut::RoundUp(baseSize, 4); in DuplicateResParticleUpdater()
714 size += ut::RoundUp(animationSize, 4); in DuplicateResParticleUpdater()
715 size += ut::RoundUp(enabledSize, 4); in DuplicateResParticleUpdater()
716 size += ut::RoundUp(dataSize, 4); in DuplicateResParticleUpdater()
717 size += ut::RoundUp(animationOptionSize, 4); in DuplicateResParticleUpdater()
718 size += ut::RoundUp(childStrSize, 4); in DuplicateResParticleUpdater()
719 size += ut::RoundUp(childFormSize, 4); in DuplicateResParticleUpdater()
720 size += ut::RoundUp(childOptionSize, 4); in DuplicateResParticleUpdater()
[all …]
Dgfx_ParticleCollection.cpp43 prevSize = ut::RoundUp(prevSize, 8); in ParticleStreamCreateSize()
68 *buffer = reinterpret_cast<u8*>(ut::RoundUp(*buffer, 8)); in ParticleStreamCreate()
88 prevSize = ut::RoundUp(prevSize, 4); in ParticleParameterAttributeCreateSize()
108 *buffer = reinterpret_cast<u8*>(ut::RoundUp(*buffer, 4)); in ParticleParameterAttributeCreate()
132 collectionMemorySize = ut::RoundUp(collectionMemorySize, 4); in GetMemorySizeInternal()
155 collectionMemorySize = ut::RoundUp(collectionMemorySize, 4); in GetMemorySizeInternal()
369 collectionMemorySize = ut::RoundUp(collectionMemorySize, 4); in Create()
394 collectionMemorySize = ut::RoundUp(collectionMemorySize, 4); in Create()
565 nodeMemory = reinterpret_cast<u8*>(ut::RoundUp(nodeMemory, 4)); in Create()
Dgfx_AnimEvaluator.cpp48 size += ut::RoundUp(headBytes + primBytes, sizeof(bit32)); in GetCacheBufferSizeNeeded()
65 cachePtr += ut::RoundUp(headBytes + primBytes, sizeof(bit32)); in SetCacheBufferPointers()
/NW4C-2.0.3/sources/libraries/font/
Dfont_PackedFont.cpp544 const u32 sizeFINF = math::RoundUp(sizeof(FontInformation), 4); in CalcCopySize()
545 const u32 sizeTGLP = math::RoundUp(sizeof(FontTextureGlyph), 4); in CalcCopySize()
553 const u32 loadResSize = math::RoundUp(sizeFINF + sizeTGLP, GlyphDataAlignment) in CalcCopySize()
575 …u32 offsetCompSheetArray = math::RoundUp(offsetLRUBuffer + sizeLRUBuffer, … in CalcCacheSize()
576 …u32 offsetSheetIndexArray = math::RoundUp(offsetCompSheetArray + sizeCompSheetArray, … in CalcCacheSize()
577 …u32 offsetResSheetIndexArray = math::RoundUp(offsetSheetIndexArray + sizeCompSheetArray, … in CalcCacheSize()
578 …u32 offsetSheetCached = math::RoundUp(offsetResSheetIndexArray + sizeResSheetIndexArray… in CalcCacheSize()
579 …u32 size = math::RoundUp(offsetSheetCached + sizeSheetCached, … in CalcCacheSize()
580 …size = math::RoundUp(size + sizeTextureNamesArray,… in CalcCacheSize()
606 u32 sizeGlyphIndexAdjustArray = math::RoundUp(sizeof(u16) * numResSheet, 2); in AssignMemory()
[all …]
Dfont_DispStringBuffer.cpp42 const u32 drawFlagBytes = math::RoundUp(this->charCountMax, 8) / 8; in DispStringBuffer()
43 ptr += math::RoundUp(drawFlagBytes, sizeof(u32)); in DispStringBuffer()
Dfont_ArchiveFont.cpp139 const u32 sizeTable = math::RoundUp(sizeof(u16) * gg.GetNumSheet(), 4); in GetRequireBufferSize()
140 const u32 sizeFINF = math::RoundUp(sizeof(FontInformation), 4); in GetRequireBufferSize()
141 const u32 sizeTGLP = math::RoundUp(sizeof(FontTextureGlyph), 4); in GetRequireBufferSize()
142 const u32 sizeSumSheet = math::RoundUp(gg.GetSheetSize() * numRequireSheets, 4); in GetRequireBufferSize()
152 math::RoundUp(sizeTable + sizeFINF + sizeTGLP, GlyphDataAlignment) in GetRequireBufferSize()
156 totalSize = math::RoundUp(totalSize, 4); in GetRequireBufferSize()
Dfont_ArchiveFontBase.cpp414 sizeAdjustTable = math::RoundUp(gg.GetNumSheet() * sizeof(u16), 4); // 4 バイトアライメント in ConstructOpAnalyzeGLGR()
1117 const u32 offsetStatic = math::RoundUp(sizePreBlock, 2); in FontGlyphGroupsAcs()
1118 const u32 offsetNameOffsets = math::RoundUp(offsetStatic + sizeStatic, 2); in FontGlyphGroupsAcs()
1119 const u32 offsetSizeSheets = math::RoundUp(offsetNameOffsets+ sizeNameOffsets, 4); in FontGlyphGroupsAcs()
1120 const u32 offsetSizeCWDH = math::RoundUp(offsetSizeSheets + sizeSizeSheets, 4); in FontGlyphGroupsAcs()
1121 const u32 offsetSizeCMAP = math::RoundUp(offsetSizeCWDH + sizeSizeCWDH, 4); in FontGlyphGroupsAcs()
1122 const u32 offsetUseSheets = math::RoundUp(offsetSizeCMAP + sizeSizeCMAP, 4); in FontGlyphGroupsAcs()
1123 const u32 offsetUseCWDH = math::RoundUp(offsetUseSheets + sizeUseSheets, 4); in FontGlyphGroupsAcs()
1124 const u32 offsetUseCMAP = math::RoundUp(offsetUseCWDH + sizeUseCWDH, 4); in FontGlyphGroupsAcs()
Dfont_RectDrawer.cpp104 const int TEX_ENV_COMMAND_SIZE = math::RoundUp(1 + TEX_ENV_DATA_NUM, 2);
680 u32 size = (count / BURST_MAX) * math::RoundUp(2 + 1 + BURST_MAX, 2); in CalcInstCommandCount()
683 size += math::RoundUp(2 + 1 + (count % BURST_MAX), 2); in CalcInstCommandCount()
1139 m_CmdCacheDrawBegin.RoundUp(8); in InitializeCMD()
1178 m_CmdCacheDrawBegin.RoundUp(8); in InitializeCMD()
1518 for (int i = math::RoundUp(charCount, 8) / 8; i > 0; --i) in BuildTextCommand()
1850 const int UniformHeader = math::RoundUp(SingleCommand + 1, 2); in CalcCommandBufferCapacity()
/NW4C-2.0.3/sources/libraries/ut/
Dut_FrameHeap.cpp52 startAddress = RoundUp( startAddress, MIN_ALIGNMENT ); in Create()
125 size = RoundUp( size, MIN_ALIGNMENT ); in Alloc()
158 void* newBlock = RoundUp( mHeadAllocator, (u32)alignment ); in AllocFromHead()
244 newSize = RoundUp( newSize, MIN_ALIGNMENT ); in ResizeForMBlock()
308 const void* block = RoundUp( mHeadAllocator, (u32)alignment ); in GetAllocatableSize()
Dut_CmdCache.cpp427 m_CmdBuffer = static_cast<u8*>(ut::RoundUp(buffer, 4)); in Init()
462 CmdCache::RoundUp(u8 align) in RoundUp() function in nw::ut::internal::CmdCache
466 const GLsizei alignedBufferSize = ut::RoundUp(m_CmdBufferSize, align); in RoundUp()
/NW4C-2.0.3/sources/libraries/snd/
Dsnd_SoundArchivePlayer.cpp231 size += ut::RoundUp( playerCount * sizeof( SoundPlayer ), 4 ); in GetRequiredMemSize()
246 size += ut::RoundUp( sizeof(internal::PlayerHeap), 4 ); in GetRequiredMemSize()
247 size = ut::RoundUp( size, 32 ); in GetRequiredMemSize()
248 size += ut::RoundUp( playerInfo.playerHeapSize, 4 ); in GetRequiredMemSize()
258 size += ut::RoundUp( in GetRequiredMemSize()
262 size += ut::RoundUp( in GetRequiredMemSize()
266 size += ut::RoundUp( in GetRequiredMemSize()
270 size += ut::RoundUp( in GetRequiredMemSize()
385 void* ep = ut::RoundUp( ut::AddOffsetToPtr( *buffer, sizeof(internal::PlayerHeap) ), 4 ); in CreatePlayerHeap()
396 *buffer = ut::RoundUp( *buffer, 32 ); in CreatePlayerHeap()
[all …]
Dsnd_InstancePool.cpp43 char* ptr = static_cast<char*>( ut::RoundUp( buffer, 4 ) ); in CreateImpl()
44 objSize = ut::RoundUp( objSize, 4 ); in CreateImpl()
Dsnd_PlayerHeap.cpp73 startAddress = ut::RoundUp( startAddress, 32 ); in Create()
121 m_pAllocAddress = ut::RoundUp( endp, 32 ); in Alloc()
Dsnd_StreamSoundFileLoader.cpp50 s32 readSize = m_Stream.Read( ut::RoundUp( buffer2, 32 ), headerSize ); in LoadFileHeader()
57 reinterpret_cast<StreamSoundFile::FileHeader*>( ut::RoundUp( buffer2, 32 ) ); in LoadFileHeader()
Dsnd_FrameHeap.cpp112 startAddress = ut::RoundUp( startAddress, 4 ); // Heap align in Create()
201 const unsigned long blockSize = ut::RoundUp( sizeof(Block), HEAP_ALIGN ); in Alloc()
203 blockSize + ut::RoundUp( size, HEAP_ALIGN ), in Alloc()
Dsnd_SoundDataManager.cpp49 size += ut::RoundUp( in GetRequiredMemSize()
110 void* ep = ut::RoundUp( ut::AddOffsetToPtr( *buffer, requiredSize ), 4 ); in CreateFileAddressTable()
Dsnd_StreamBufferPool.cpp66 const int availableByte = ut::RoundUp( m_BlockCount, BIT_PER_BYTE ) / BIT_PER_BYTE; in Alloc()
Dsnd_HioSoundArchive.cpp129 ut::RoundUp( sizeof(internal::SoundArchiveFile::FileHeader), 32 ) ); in LoadFileHeader()
131 void* alignedBuffer = ut::RoundUp( headerArea, 32 ); in LoadFileHeader()
413 length = static_cast<u32>( ut::RoundUp( m_Offset + m_Size - curPos, 32 ) ); in Read()
/NW4C-2.0.3/include/nw/ut/
Dut_CmdCache.h46 void RoundUp(u8 align);
Dut_Inlines.h489 template <typename ValueT> ValueT RoundUp(ValueT x, unsigned int base);
493 RoundUp(ValueT* x, unsigned int base) in RoundUp() function
503 RoundUp(const ValueT* x, unsigned int base) in RoundUp() function
513 RoundUp(ValueT x, unsigned int base) in RoundUp() function
/NW4C-2.0.3/sources/libraries/lyt/
Dlyt_TexResource.cpp79 ut::RoundUp(imageSize, BLOCK_ALIGNMENT)); in Set()
/NW4C-2.0.3/include/nw/os/
Dos_Memory.h419 m_Size = ut::RoundUp(m_Size, m_Alignment) + size;
442 m_Size = ut::RoundUp(m_Size, m_Alignment) * operand;
/NW4C-2.0.3/sources/libraries/demo/
Ddemo_Memory.cpp47 top = nw::ut::RoundUp( top, align ); in AlignMemory_()
/NW4C-2.0.3/demos/snd/playerHeap/sources/
DplayerHeapApp.cpp115 nw::ut::RoundUp( m_pMemoryForSoundArchivePlayer, 32 ), setupSize, in InitializeSoundSystem()

12