| /CTR-SDK-0.14.4/sources/libraries/gr/CTR/ |
| D | gr_LookUpTable.cpp | 29 int i = 0; in SetTable() local 30 …*command++ = Float32ToUnsignedFix12( table[ i ] ) | Float32ToFix12( table[ i + 1 ] - table[ i ] ) … in SetTable() 33 for ( ++i; i < 0x80; ++i ) in SetTable() 35 …*command++ = Float32ToUnsignedFix12( table[ i ] ) | Float32ToFix12( table[ i + 1 ] - table[ i ] ) … in SetTable() 39 …*command++ = Float32ToUnsignedFix12( table[ i ] ) | Float32ToFix12( table[ i + 1 ] - table[ i ] ) … in SetTable() 42 for ( ++i; i < 0xff; ++i ) in SetTable() 44 …*command++ = Float32ToUnsignedFix12( table[ i ] ) | Float32ToFix12( table[ i + 1 ] - table[ i ] ) … in SetTable() 47 *command++ = Float32ToUnsignedFix12( table[ i ] ); in SetTable()
|
| D | gr_Vertex.cpp | 92 for ( int i = 0; i < VERTEX_ATTRIBUTE_MAX; ++i ) in EnableAttrAsArray() local 94 if ( m_LoadArray[ i ].IsEnable() == false ) in EnableAttrAsArray() 96 array = &m_LoadArray[ i ]; in EnableAttrAsArray() 107 for ( int i = 1; i < VERTEX_ATTRIBUTE_MAX; ++i ) in EnableAttrAsArray() local 109 array->bind[ i ] = -1; in EnableAttrAsArray() 110 array->byte[ i ] = 0; in EnableAttrAsArray() 134 for ( int i = 0; i < 4; ++i ) in EnableAttrAsConst() local 136 … m_AttrConst[ bind_reg ].param[ i ] = i < dimension ? param[ i ] : defaultParam[ i ]; in EnableAttrAsConst() 149 for ( int i = 0; i < VERTEX_ATTRIBUTE_MAX; ++i ) in EnableInterleavedArray() local 151 if ( m_LoadArray[ i ].IsEnable() == false ) in EnableInterleavedArray() [all …]
|
| D | gr_Fog.cpp | 34 int i = 0; in SetTable() local 35 …*command++ = Float32ToUnsignedFix11( table[ i ] ) << 13 | Float32ToFix13Fraction11( table[ i + 1 ]… in SetTable() 38 for ( ++i; i < 0x7F; ++i ) in SetTable() 40 *command++ = Float32ToUnsignedFix11( table[ i ] ) << 13 | in SetTable() 41 Float32ToFix13Fraction11( table[ i + 1 ] - table[ i ] ); in SetTable() 44 *command++ = Float32ToUnsignedFix11( table[ i ] ) << 13; in SetTable()
|
| D | gr_FragmentLight.cpp | 131 for ( int i = 0; i < LIGHT_SOURCE_MAX; ++i ) in MakeLightEnvCommand() local 133 if ( isEnable[ i ] == false ) continue; in MakeLightEnvCommand() 135 if ( isShadowed[ i ] ) in MakeLightEnvCommand() 137 regLightEnable &= ~( i << i ); in MakeLightEnvCommand() 140 if ( isEnableSpot[ i ] ) in MakeLightEnvCommand() 142 regLightEnable &= ~( 1 << ( 8 + i ) ); in MakeLightEnvCommand() 145 if ( isEnableDistAttn[ i ] ) in MakeLightEnvCommand() 147 regLightEnable &= ~( 1 << ( 24 + i ) ); in MakeLightEnvCommand() 150 regLightEnableEach |= ( i << ( count++ * 4 ) ); in MakeLightEnvCommand() 208 for ( int i = 0; i < LIGHT_SOURCE_MAX; ++i ) in MakeLightSourceCommand() local [all …]
|
| D | gr_Shader.cpp | 42 for ( int i = 0; i < m_ExeImageInfoNum; ++i ) in SetupBinary() local 44 … m_ExeImageInfo[ i ] = reinterpret_cast< const ExeImageInfo* >( (u8*)shader_binary + *binary ); in SetupBinary() 45 NN_GR_ASSERT( m_ExeImageInfo[ i ]->signature == 0x454c5644 ); // DVLP in SetupBinary() 67 for ( int i = 0; i < m_SwizzleCount; i++ ) in SetupBinary() local 69 m_Swizzle[ i ] = swizzle[ i * 2 ] ; in SetupBinary() 278 for ( int i = 0; i < exe_info->setupCount; ++i ) in MakeConstRgCommand_() local 280 const SetupInfo& info = setupInfo[ i ]; in MakeConstRgCommand_() 414 for( int i = 0; i < exe_info->outMapCount; ++i ) in MakeOutAttrCommand_() local 416 outmap_buffer[ i ] = outmapInfo[ i ]; in MakeOutAttrCommand_() 424 for ( int i = 0; i <outMapBufferCount; ++i ) in MakeOutAttrCommand_() local [all …]
|
| /CTR-SDK-0.14.4/sources/libraries/rdt/CTR/ |
| D | rdt_Stopwatch.cpp | 41 for(int i=0; i<MAX_STOPWATCHES; ++i) in Initialize() local 43 s_paStopwatches[i] = NULL; in Initialize() 71 for(int i=0; i<MAX_STOPWATCHES; ++i) in ResetAll() local 73 if(s_paStopwatches[i]) in ResetAll() 75 s_paStopwatches[i]->Reset(); in ResetAll() 85 for(int i=0; i<MAX_STOPWATCHES; ++i) in PrintAll() local 87 if(s_paStopwatches[i]) in PrintAll() 89 s_paStopwatches[i]->printContents(); in PrintAll() 204 for(int i=0; i<MAX_STOPWATCHES; ++i) in addToList() local 206 if(s_paStopwatches[i]==NULL) in addToList() [all …]
|
| /CTR-SDK-0.14.4/sources/libraries/fslow/ |
| D | fslow_SafeHandle.cpp | 211 for(s32 i = 0; i < NumEntry; ++i) in Initialize() local 214 pEntryBuffer[i].Initialize(i); in Initialize() 238 for(s32 i = 0; i < m_NumEntry; ++i) in Finalize() local 240 m_pEntryBuffer[i].Finalize(); in Finalize() 326 for(s32 i = 0; i < m_NumEntry; ++i) in UnregisterRecursive() local 328 pEntryDependOn = GetEntry(i); in UnregisterRecursive() 331 UnregisterRecursive(i); in UnregisterRecursive() 434 for (s32 i = 0; i < m_NumEntry; ++i) in FindFreeEntry() local 436 if (!m_pEntryBuffer[i].IsActivated()) in FindFreeEntry() 438 return m_pEntryBuffer + i; in FindFreeEntry()
|
| /CTR-SDK-0.14.4/sources/libraries/os/ |
| D | os_ThreadLocalStorage.cpp | 51 for(int i = 0; i < TLS_NUM; ++i) in SearchFreeTLSIndex() local 53 if(!IsMappedIndex(i)) in SearchFreeTLSIndex() 55 return i; in SearchFreeTLSIndex() 124 for( int i = 0; i < TLS_NUM; ++i ) in ClearAllSlots() local 126 tlr.tls[i] = 0; in ClearAllSlots()
|
| D | os_Synchronization.cpp | 43 for (int i = 0; i < args->numHandles; ++i) in WaitMultipleImpl() local 45 handles[i] = args->objs[i]->GetHandle(); in WaitMultipleImpl() 85 for (int i = 0; i < numHandles; ++i) in WaitMultiple() local 87 handles[i] = objs[i]->GetHandle(); in WaitMultiple()
|
| D | os_ThreadPool.cpp | 74 inline void ThreadPool::StartExecuteThread(size_t i, uptr stackBottom, s32 priority) in StartExecuteThread() argument 76 Thread* thread = new (GetThreads() + i) Thread(); in StartExecuteThread() 86 for (size_t i = 0; i < numThreads; i++) in Initialize() local 88 StartExecuteThread(i, stackBottoms[i], priority); in Initialize() 99 for (size_t i = 0; i < numThreads; i++) in Initialize() local 101 StartExecuteThread(i, stacks[i].GetStackBottom(), priority); in Initialize() 115 for (size_t i = 0; i < m_NumThreads; i++) in Finalize() local 117 Thread& thread = GetThreads()[i]; in Finalize()
|
| /CTR-SDK-0.14.4/include/nn/fnd/ |
| D | fnd_FixedLengthString.h | 100 void CheckIndex(s32 i) const in CheckIndex() argument 102 NN_UNUSED_VAR(i); in CheckIndex() 103 NN_TASSERT_(0 <= i && i <= m_Length); in CheckIndex() 114 for (s32 i = 0; i < maxLength + 1; ++i) in CalculateLength() local 116 if (!s[i]) in CalculateLength() 118 return i; in CalculateLength() 125 void CopyFrom(const T* s, s32 i = 0) 127 for (; i < MaxLength + 1; ++i) 131 SetLength(i); 134 this->m_Data[i] = *s++; [all …]
|
| D | fnd_BuddyHeap.h | 96 for (size_t i = 0; i < numPages; i++) in Initialize() local 98 m_pPages[i].pNext = NULL; in Initialize() 101 for (size_t i = 0; i < MAX_ORDER; ++i ) in Initialize() local 103 m_FreeArea[i].Initialize(); in Initialize() 105 for (size_t i = 0; i < numMaxOrders; i++) in Initialize() local 108 m_FreeArea[MAX_ORDER - 1].PushBack(&(m_pPages[i * numMaxPages])); in Initialize() 393 for(s32 i = order; i < MAX_ORDER; i++) in GetFreePage() local 398 if(!(m_FreeArea[i].IsEmpty())) in GetFreePage() 401 Page* pPage = m_FreeArea[i].PopFront(); in GetFreePage() 407 DivideBuddies(pPage, order, i); in GetFreePage() [all …]
|
| D | fnd_BufferManager.h | 91 for (s32 i = 0; i < MAX_CACHE; ++i) in FindEntry() local 93 if (m_Entries[i].HasHandle(handle)) in FindEntry() 95 return m_Entries + i; in FindEntry() 103 for (s32 i = 0; i < MAX_CACHE; ++i) in FindEmptyEntry() local 105 if (!m_Entries[i].IsValid()) in FindEmptyEntry() 107 return m_Entries + i; in FindEmptyEntry()
|
| /CTR-SDK-0.14.4/sources/libraries/test/ |
| D | test_Suite.cpp | 42 for ( int i = 0; i < NUM_RESULTHOLDER; i++ ) in Suite() local 44 s_ResultHolderArm9[i].threadId = INVALID_THREADID; in Suite() 45 s_ResultHolderArm9[i].value = 0; in Suite() 130 for (int i = 0; i < m_TotalTestsNum; i++) in UnregisterTest() local 132 if (m_Tests.GetElement(i).testFunc == func) in UnregisterTest() 134 m_Tests.DeleteElement(i); in UnregisterTest() 135 i--; in UnregisterTest() 179 for ( int i = 0; i < NUM_RESULTHOLDER; i++ ) in GetCurrent() 181 if ( threadId == s_ResultHolderArm9[i].threadId ) in GetCurrent() 183 return reinterpret_cast<Suite::ResultHolder*>(s_ResultHolderArm9[i].value); in GetCurrent() [all …]
|
| D | test_TextOutput.cpp | 67 for(int i = 0; i < m_SuiteNum; ++i) in OnFinished() local 69 if(m_pSuiteInfos[i].failureNum == 0) in OnFinished() 74 NN_PRINT_TEST_LOG("[%s]\n", m_pSuiteInfos[i].suiteName.GetBuffer()); in OnFinished() 75 for(int j = 0; j < m_pSuiteInfos[i].testsNum; ++j) in OnFinished() 77 if(m_pSuiteInfos[i].pTestInfos[j].failureCount != 0) in OnFinished() 79 … NN_PRINT_TEST_LOG(" [%s]\n", m_pSuiteInfos[i].pTestInfos[j].testName.GetBuffer()); in OnFinished() 80 AssertInfos& assertInfos = m_pSuiteInfos[i].pTestInfos[j].assertInfos; in OnFinished()
|
| /CTR-SDK-0.14.4/include/nn/crypto/ |
| D | crypto_HashContextBase.h | 108 for ( s32 i = 0 ; i < length ; ++i ) in FillBytes() local 116 for ( s32 i = 0 ; i < length ; ++i ) in CopyBytes() local
|
| /CTR-SDK-0.14.4/include/nn/net/osl/ |
| D | osl_IpcDispatcher.h | 49 for (s32 i = 0; i < m_countDispatchers; ++i) in IpcDispatcherExecutor() local 51 NN_POINTER_ASSERT(ppDispatchers[i]); in IpcDispatcherExecutor() 52 m_ppDispatchers[i] = ppDispatchers[i]; in IpcDispatcherExecutor() 70 for (s32 i = 0; i < m_countDispatchers; ++i) in WaitAny() local 72 NN_POINTER_ASSERT(m_ppDispatchers[i]); in WaitAny() 73 ppObjectsToWait[i] = m_ppDispatchers[i]; in WaitAny() 75 for (s32 i = 0; i < countWaitObjects; ++i) in WaitAny() local 77 NN_POINTER_ASSERT(ppObjects[i]); in WaitAny() 78 ppObjectsToWait[m_countDispatchers + i] = ppObjects[i]; in WaitAny() 312 for(s32 i = 0; i < maxThreads; ++i) in ConstructWorkerList() local [all …]
|
| D | osl_BuddyHeap.h | 85 for(int i = 0; i < numPages; i++) in Initialize() local 87 m_pPages[i].pNext = NULL; in Initialize() 90 for( int i = 0; i < MAX_ORDER; ++i ) in Initialize() local 92 m_FreeArea[i].Initialize(); in Initialize() 94 for(int i = 0; i < numMaxOrders; i++) in Initialize() local 96 m_FreeArea[MAX_ORDER - 1].PushBack(&(m_pPages[i * numMaxPages])); in Initialize() 298 for(int i = order; i < MAX_ORDER; i++) in GetFreePage() local 300 if(!(m_FreeArea[i].IsEmpty())) in GetFreePage() 302 Page* pPage = m_FreeArea[i].PopFront(); in GetFreePage() 306 DivideBuddies(pPage, order, i); in GetFreePage() [all …]
|
| /CTR-SDK-0.14.4/sources/libraries/fnd/ |
| D | fnd_Backoff.cpp | 29 for (u32 i = 0; i < spinCount; ++i) in BackOffImpl() local
|
| D | fnd_UnitHeap.cpp | 66 for( int i = 0; i < this->m_Count; i++ ) in Dump() local 83 for( int i = 0; i < this->m_Count; i++ ) in Dump() local
|
| /CTR-SDK-0.14.4/include/nn/fslow/ |
| D | fslow_SafePath.h | 57 const Char& operator[](int i) const { return (**this)[i]; } 70 for (s32 i = 0; i < MaxSize; ++i) in GetArchiveNameLength() local 72 if (s[i] == Separator) in GetArchiveNameLength() 74 return i; in GetArchiveNameLength()
|
| D | fslow_HandleTable.h | 169 for(s32 i = 0; i < TNumEntry; ++i) in Initialize() local 171 m_Entry[i].Initialize(i); in Initialize() 216 for(s32 i = 0; i < TNumEntry; ++i) in FindFreeEntry() local 218 if(!m_Entry[i].IsValid()) in FindFreeEntry() 220 return m_Entry + i; in FindFreeEntry()
|
| D | fslow_IArchive.h | 172 for (s32 i = 0; i <= MaxLength; ++i) in ArchiveName() local 174 if (!s[i] || s[i] == Separator) in ArchiveName() 178 m_Data.c[i] = s[i]; in ArchiveName() 185 for (s32 i = 0; i <= MaxLength; ++i) in GetPathString() local 203 for (s32 i = 0; i <= MaxLength; ++i) in GetPathString() local 213 u->EraseHead(i + 1); in GetPathString()
|
| /CTR-SDK-0.14.4/include/nn/math/ARMv6/inline/ |
| D | math_Types.ipp | 106 s32 i, j, k; 127 i = 0; 128 if (m[1][1] > m[0][0]) i = 1; 129 if (m[2][2] > m[i][i]) i = 2; 130 j = nxt[i]; 132 s = (f32)::std::sqrtf( (m[i][i] - (m[j][j] + m[k][k])) + 1.0f ); 133 q[i] = s * 0.5f; 139 q[j] = (m[i][j] + m[j][i]) * s; 140 q[k] = (m[i][k] + m[k][i]) * s; 153 s32 i; [all …]
|
| /CTR-SDK-0.14.4/include/nn/snd/CTR/Common/ |
| D | snd_Types.h | 141 for (int i = 0; i < CHANNEL_INDEX_NUM; i++) in MixParam() local 143 mainBus[i] = auxBusA[i] = auxBusB[i] = 0.0f; in MixParam()
|