Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 46) sorted by relevance

12

/CTR-SDK-1.3.0/CTR_SDK/sources/libraries/os/
Dos_ThreadLocalStorage.cpp38 inline bool IsMappedIndex(s32 index) in IsMappedIndex() argument
40 return ((sTLSMap >> index) & 1) == 1; in IsMappedIndex()
68 s32 index = SearchFreeTLSIndex(); in AllocateTLSIndex() local
69 if(index >= 0 && index < TLS_NUM) in AllocateTLSIndex()
71 sTLSMap |= (1 << index); in AllocateTLSIndex()
73 return index; in AllocateTLSIndex()
81 s32 FreeTLSIndex(int index) in FreeTLSIndex() argument
83 if(!IsMappedIndex(index)) in FreeTLSIndex()
87 return sTLSMap &= ~(1 << index); in FreeTLSIndex()
/CTR-SDK-1.3.0/CTR_SDK/sources/libraries/gr/CTR/
Dgr_ProcedureTexture.cpp171 u32 index = 0; in SetLookUpDualTables_() local
174 *command++ = Float32ToUnsignedFix12( lookUpTable[ index ] ) | in SetLookUpDualTables_()
175 ( Float32ToFix12Fraction11( diffLookUpTable[ index ] ) << 12 ); in SetLookUpDualTables_()
179 for ( index = 1; index < 0x80; index++ ) in SetLookUpDualTables_()
183 *command++ = Float32ToUnsignedFix12( lookUpTable[ index ] ) | in SetLookUpDualTables_()
184 ( Float32ToFix12Fraction11( diffLookUpTable[ index ] ) << 12 ); in SetLookUpDualTables_()
214 u32 index = 0; in SetColorLookUpTable_() local
220 *command++ |= ( FloatToUnsignedByte( lookUpTable[ index ] ) << colorShiftNum ); in SetColorLookUpTable_()
221 index++; in SetColorLookUpTable_()
230 … *command++ |= ( FloatToUnsignedByte( lookUpTable[ index ] ) << colorShiftNum ); in SetColorLookUpTable_()
[all …]
Dgr_Shader.cpp33 for ( u32 index = 0; index < OUT_ATTR_COMMAND_MAX; index++) in Shader() local
35 m_CmdCacheOutAttr[ index ] = 0; in Shader()
38 for ( u32 index = 0; index < CONST_REG_COMMAND_MAX; index++) in Shader() local
40 m_CmdCacheVtxConst[ index ] = 0; in Shader()
41 m_CmdCacheGeoConst[ index ] = 0; in Shader()
324 struct SetupInfo { u16 type; u16 index; bit32 value[4]; }; in MakeConstRgCommand_() member
339 *boolMap |= ( info.value[ 0 ] << info.index ) & ( 1 << info.index ); in MakeConstRgCommand_()
344 *command++ = PICA_CMD_HEADER_SINGLE( reg_integer + info.index ); in MakeConstRgCommand_()
348 *command++ = info.index; in MakeConstRgCommand_()
380 struct OutmapInfo { u16 type; u16 index; u16 mask; u16 reserve; }; in MakeOutAttrCommand_() member
[all …]
Dgr_FrameBuffer.cpp112 for (u32 index = 0; index < 4; index++) in ColorBuffer() local
114 clearColor[ index ] = 0.0f; in ColorBuffer()
/CTR-SDK-1.3.0/CTR_SDK/include/nn/fnd/
Dfnd_FixedBufferVector.h36 const T& operator[](int index) const
38 return m_Buffer[index];
40 T& operator[](int index)
42 return m_Buffer[index];
58 void Remove(int index) in Remove() argument
63 if( index != last ) in Remove()
65 m_Buffer[index] = m_Buffer[last]; in Remove()
/CTR-SDK-1.3.0/CTR_SDK/include/nn/math/
Dmath_Matrix22.h121 VEC2& GetRow(int index) in GetRow()
123 NN_MATH_MINMAXLT_ASSERT(index, 0, ROW_COUNT); in GetRow()
124 return *reinterpret_cast<VEC2*>(&this->v[index]); in GetRow()
128 const VEC2& GetRow(int index) const in GetRow()
130 NN_MATH_MINMAXLT_ASSERT(index, 0, ROW_COUNT); in GetRow()
131 return *reinterpret_cast<const VEC2*>(&this->v[index]); in GetRow()
135 VEC2 GetColumn(int index) const in GetColumn()
137 NN_MATH_MINMAXLT_ASSERT(index, 0, COLUMN_COUNT); in GetColumn()
139 column.x = this->m[0][index]; in GetColumn()
140 column.y = this->m[1][index]; in GetColumn()
[all …]
Dmath_Matrix33.h171 VEC3& GetRow(int index) in GetRow()
173 NN_MATH_MINMAXLT_ASSERT(index, 0, ROW_COUNT); in GetRow()
174 return *reinterpret_cast<VEC3*>(&this->v[index]); in GetRow()
178 const VEC3& GetRow(int index) const in GetRow()
180 NN_MATH_MINMAXLT_ASSERT(index, 0, ROW_COUNT); in GetRow()
181 return *reinterpret_cast<const VEC3*>(&this->v[index]); in GetRow()
185 VEC3 GetColumn(int index) const in GetColumn()
187 NN_MATH_MINMAXLT_ASSERT(index, 0, COLUMN_COUNT); in GetColumn()
189 column.x = this->m[0][index]; in GetColumn()
190 column.y = this->m[1][index]; in GetColumn()
[all …]
Dmath_Matrix43.h134 VEC3& GetRow(int index) in GetRow()
136 NN_MATH_MINMAXLT_ASSERT(index, 0, ROW_COUNT); in GetRow()
137 return *reinterpret_cast<VEC3*>(&this->v[index]); in GetRow()
141 const VEC3& GetRow(int index) const in GetRow()
143 NN_MATH_MINMAXLT_ASSERT(index, 0, ROW_COUNT); in GetRow()
144 return *reinterpret_cast<const VEC3*>(&this->v[index]); in GetRow()
148 VEC4 GetColumn(int index) const in GetColumn()
150 NN_MATH_MINMAXLT_ASSERT(index, 0, COLUMN_COUNT); in GetColumn()
152 column.x = this->m[0][index]; in GetColumn()
153 column.y = this->m[1][index]; in GetColumn()
[all …]
Dmath_Matrix23.h128 VEC3& GetRow(int index) in GetRow()
130 NN_MATH_MINMAXLT_ASSERT(index, 0, ROW_COUNT); in GetRow()
131 return *reinterpret_cast<VEC3*>(&this->v[index]); in GetRow()
135 const VEC3& GetRow(int index) const in GetRow()
137 NN_MATH_MINMAXLT_ASSERT(index, 0, ROW_COUNT); in GetRow()
138 return *reinterpret_cast<const VEC3*>(&this->v[index]); in GetRow()
142 VEC2 GetColumn(int index) const in GetColumn()
144 NN_MATH_MINMAXLT_ASSERT(index, 0, COLUMN_COUNT); in GetColumn()
146 column.x = this->m[0][index]; in GetColumn()
147 column.y = this->m[1][index]; in GetColumn()
[all …]
Dmath_Matrix44.h323 VEC4& GetRow(int index) in GetRow()
325 NN_MATH_MINMAXLT_ASSERT(index, 0, ROW_COUNT); in GetRow()
326 return *reinterpret_cast<VEC4*>(&this->v[index]); in GetRow()
330 const VEC4& GetRow(int index) const in GetRow()
332 NN_MATH_MINMAXLT_ASSERT(index, 0, ROW_COUNT); in GetRow()
333 return *reinterpret_cast<const VEC4*>(&this->v[index]); in GetRow()
337 VEC4 GetColumn(int index) const in GetColumn()
339 NN_MATH_MINMAXLT_ASSERT(index, 0, COLUMN_COUNT); in GetColumn()
341 column.x = this->m[0][index]; in GetColumn()
342 column.y = this->m[1][index]; in GetColumn()
[all …]
/CTR-SDK-1.3.0/CTR_SDK/include/nn/net/osl/
Dosl_MbufIndexed.h45 static Mbuf* ConvertFromIndex(Index index);
47 void SetNext(Index index) in SetNext() argument
49 m_nextIndex = index; in SetNext()
52 void SetPrevious(Index index) in SetPrevious() argument
54 m_prevIndex = index; in SetPrevious()
Dosl_MbufPool.h52 Mbuf* GetPtrFromIndex(s32 index);
101 inline Mbuf* MbufPool::GetPtrFromIndex(s32 index) in GetPtrFromIndex() argument
103 NN_TASSERTMSG_(0 <= index && index < m_count, "index = %d, m_count = %d", index, m_count); in GetPtrFromIndex()
104 return reinterpret_cast<Mbuf*>(m_base + m_unitSize * index); in GetPtrFromIndex()
/CTR-SDK-1.3.0/CTR_SDK/include/nn/font/
Dfont_PackedFont.h291 void Use(int index);
297 void Unuse(int index);
303 void Lock(int index);
309 void Unlock(int index);
313 bool IsLocked(int index) const in IsLocked() argument
315 const OrderNode& node = GetNode(index); in IsLocked()
346 OrderNode& GetNode(int index) { return mpOrderNodeArray[index]; } in GetNode() argument
348 const OrderNode& GetNode(int index) const { return mpOrderNodeArray[index]; } in GetNode() argument
417 int CalcSheetIndex(GlyphIndex index) const;
Dfont_ResFontBase.h221 const CharWidths& GetCharWidthsFromIndex(GlyphIndex index) const;
233 GlyphIndex index
243 GlyphIndex index
255 GlyphIndex index,
304 GetTextureObject(int index) const in GetTextureObject() argument
307 return &GetTextureObjectsBufferPtr()[index]; in GetTextureObject()
/CTR-SDK-1.3.0/CTR_SDK/include/nn/gr/CTR/
Dgr_Vertex.h165 for ( int index = 0; index < VERTEX_ATTRIBUTE_MAX; ++index ) in MakeDisableAttrCommand() local
168 if ( m_LoadArray[ index ].IsEnable() ) in MakeDisableAttrCommand()
173 … PICA_CMD_HEADER_BURSTSEQ( PICA_REG_LOAD_ARRAY0_ATTR_OFFSET + 3 * index, 0x3 ); in MakeDisableAttrCommand()
187 PICA_CMD_HEADER_SINGLE( PICA_REG_LOAD_ARRAY0_ELEMENT1 + 3 * index ); in MakeDisableAttrCommand()
191 if ( m_AttrConst[ index ].IsEnable() ) in MakeDisableAttrCommand()
193 *command++ = index; in MakeDisableAttrCommand()
/CTR-SDK-1.3.0/CTR_SDK/sources/libraries/test/
Dtest_XmlOutput.cpp66 int index = 0; in ConvertToXmlString() local
67 for(index = 0; index < SPECIALS_NUM; ++index) in ConvertToXmlString()
69 if(*pSrc == specials[index]) in ConvertToXmlString()
71 if(pDst + copyLens[index] - buf > STR_LEN) in ConvertToXmlString()
75 ::std::memcpy(pDst, converts[index], copyLens[index]); in ConvertToXmlString()
76 pDst += copyLens[index]; in ConvertToXmlString()
80 if(index == SPECIALS_NUM) // 特殊文字でない in ConvertToXmlString()
/CTR-SDK-1.3.0/CTR_SDK/sources/libraries/fslow/
Dfslow_SafeHandle.cpp59 void SafeHandleTableEntry::Initialize(s32 index) in Initialize() argument
62 NN_TASSERT_(index <= MAX_INDEX); in Initialize()
64 m_DependencyIndex = static_cast<bit8>(index); in Initialize()
65 m_Handle.Initialize(index); in Initialize()
313 void SafeHandleTable::UnregisterRecursive(s32 index) in UnregisterRecursive() argument
315 SafeHandleTableEntry* pEntry = GetEntry(index); in UnregisterRecursive()
329 if(pEntryDependOn->IsActivated() && (pEntryDependOn->GetDependencyIndex() == index)) in UnregisterRecursive()
/CTR-SDK-1.3.0/CTR_SDK/sources/libraries/tpl/CTR/
Dtpl_crc32.cpp162 const char *getTextureFilePath(const void *infoData, int index) in getTextureFilePath() argument
166 NN_TASSERT_(index < header->numTexture); in getTextureFilePath()
169 reinterpret_cast<const CtrTextureInfo *>(header + 1) + index; in getTextureFilePath()
183 const char *filePath = getTextureFilePath(s.infoData, hash.index); in cmpTpkSearchData()
Dtpl_Internal.h56 int index; member
/CTR-SDK-1.3.0/CTR_SDK/include/nn/gx/CTR/
Dgx_MacroShader.h150 #define PICA_CMD_DATA_VS_FLOAT_ADDR(mode, index) \ argument
151 ( (index) & 0xff | ( (mode) ? 0x80000000 : 0) )
153 #define PICA_CMD_SET_VS_FLOAT_ADDR(mode, index) \ argument
154 PICA_CMD_DATA_VS_FLOAT_ADDR(mode, index), PICA_CMD_HEADER_SINGLE(PICA_REG_VS_FLOAT_ADDR)
659 #define PICA_CMD_DATA_GS_FLOAT_ADDR(mode, index) \ argument
660 ( ((index) & 0xff) | (mode) << 31 )
662 #define PICA_CMD_SET_GS_FLOAT_ADDR(mode, index) \ argument
663 PICA_CMD_DATA_GS_FLOAT_ADDR(mode, index), PICA_CMD_HEADER_SINGLE(PICA_REG_GS_FLOAT_ADDR)
/CTR-SDK-1.3.0/CTR_SDK/include/nn/fslow/
Dfslow_SafeHandle.h203 SafeHandle(bit8 index) { Initialize(index); } in SafeHandle() argument
258 void Initialize(s32 index);
345 SafeHandleTableEntry* GetEntry(s32 index) const in GetEntry() argument
347 return (index < m_NumEntry) ? (m_pEntryBuffer + index) : 0; in GetEntry()
355 void UnregisterRecursive(s32 index);
Dfslow_HandleTable.h231 s32 index = handle.GetFixedValue(); in FindEntryFromHandle() local
233 if(index < TNumEntry) in FindEntryFromHandle()
235 return m_Entry[index].HasHandle(value) ? (m_Entry + index) : 0; in FindEntryFromHandle()
/CTR-SDK-1.3.0/CTR_SDK/include/nn/boss/
Dboss_TaskIdList.h58 char* GetTaskId(u16 index);
Dboss_StepIdList.h58 u8 GetStepId(u16 index);
Dboss_NsDataIdList.h71 u32 GetNsDataId(u16 index);

12