| /CTR-SDK-0.14.4/include/nn/hw/ARM/ |
| D | reg_access.h | 33 #define HW_INST_MRS(a,v) __asm { mrs a,v } argument 35 #define HW_INST_MSR(a,v) __asm { msr a,v } argument 39 #define HW_INST_MRC(a,b,c,d,e,v) __asm { mrc a,b,v,c,d,e } argument 41 #define HW_INST_MCR(a,b,c,d,e,v) __asm { mcr a,b,v,c,d,e } argument 54 #define HW_GET_CPSR(v) HW_INST_MRS(cpsr,v) argument 55 #define HW_GET_SPSR(v) HW_INST_MRS(spsr,v) argument 57 #define HW_SET_CPSR(f,v) HW_INST_MSR(cpsr_##f,v) // f: fields argument 58 #define HW_SET_SPSR(f,v) HW_INST_MSR(spsr_##f,v) // f: fields argument 64 #define HW_GET_CP15_C0(c,o,v) HW_INST_MRC(p15,0,c0,c,o,v) // Opcode_1 is fixed argument 65 #define HW_GET_CP15_C1(o,v) HW_INST_MRC(p15,0,c1,c0,o,v) // Opcode_1 and CRm are fixed argument [all …]
|
| /CTR-SDK-0.14.4/include/nn/util/ |
| D | util_FlagsEnum.h | 39 Self& operator =(bit32 v) { Replace(v); return *this; } 40 Self& operator =(int v) { Replace(v); return *this; } 42 void Replace(bit32 v) { m_FlagsValue = static_cast<StorageT>(v); } in Replace() argument 43 void Replace(int v) { m_FlagsValue = static_cast<StorageT>(v); } in Replace() argument 59 FlagsEnum1<EnumT>& operator =(bit32 v) { this->Replace(v); return *this; } 60 FlagsEnum1<EnumT>& operator =(int v) { this->Replace(v); return *this; } 70 FlagsEnum2<EnumT>& operator =(bit32 v) { this->Replace(v); return *this; } 71 FlagsEnum2<EnumT>& operator =(int v) { this->Replace(v); return *this; } 81 FlagsEnum4<EnumT>& operator =(bit32 v) { this->Replace(v); return *this; } 82 FlagsEnum4<EnumT>& operator =(int v) { this->Replace(v); return *this; }
|
| D | util_Rect.h | 74 Rect(const Rect& v) in Rect() 75 : left(v.left), in Rect() 76 top(v.top), in Rect() 77 right(v.right), in Rect() 78 bottom(v.bottom) in Rect()
|
| D | util_TypeTraits.h | 40 template <class T, T v> struct integral_constant; 134 template <class T, T v> 137 typedef integral_constant<T, v> type; 139 static const value_type value = v;
|
| /CTR-SDK-0.14.4/sources/libraries/os/ |
| D | os_Environment.cpp | 44 s64 v[1]; in GetMemoryQuotaSize() local 48 svc::GetResourceLimitLimitValues(v, h, names, sizeof(*util::NumOfElementsT(names)) ); in GetMemoryQuotaSize() 51 return static_cast<size_t>(v[0]); in GetMemoryQuotaSize() 57 s64 v[1]; in GetUsingMemorySize() local 61 svc::GetResourceLimitCurrentValues(v, h, names, sizeof(*util::NumOfElementsT(names)) ); in GetUsingMemorySize() 64 return static_cast<size_t>(v[0]); in GetUsingMemorySize()
|
| /CTR-SDK-0.14.4/sources/libraries/fnd/ |
| D | fnd_HeapBase.cpp | 106 inline void FillMemory8(uptr begin, uptr end, bit8 v) in FillMemory8() argument 113 *p++ = v; in FillMemory8() 119 void HeapBase::FillMemory32(uptr begin, uptr end, bit32 v) in FillMemory32() argument 128 *p++ = v; in FillMemory32() 132 void HeapBase::FillMemory(uptr addr, uptr end, bit8 v) in FillMemory() argument 140 FillMemory8(begin, end, v); in FillMemory() 144 bit32 vv = v | (v << 8); in FillMemory() 146 FillMemory8(begin, rbegin, v); in FillMemory() 148 FillMemory8(rend, end, v); in FillMemory()
|
| /CTR-SDK-0.14.4/include/nn/math/ |
| D | math_Vector4.h | 98 VEC4(const VEC4_& v) { x = v.x; y = v.y; z = v.z; w = v.w; } in VEC4() 102 VEC4(const VEC3& v) { x = v.x; y = v.y; z = v.z; w = 0.0f; } in VEC4() 257 inline bool VEC4IsZero(const VEC4& v){ return VEC4IsZero( &v ); } in VEC4IsZero() argument 258 inline bool VEC4IsZeroWOne(const VEC4& v){ return VEC4IsZeroWOne( &v ); } in VEC4IsZeroWOne() argument 262 inline VEC4* VEC4Scale(VEC4* pOut, const VEC4& v, f32 scale) { return VEC4Scale( pOut, &v, scale); } in VEC4Scale() argument 265 inline f32 VEC4LenSq(const VEC4& v) { return VEC4LenSq( &v ); } in VEC4LenSq() argument 266 inline f32 VEC4Len(const VEC4& v) { return VEC4Len( &v ); } in VEC4Len() argument 267 inline VEC4* VEC4Normalize(VEC4* pOut, const VEC4& v) { return VEC4Normalize( pOut, &v ); } in VEC4Normalize() argument 268 …VEC4* VEC4SafeNormalize(VEC4* pOut, const VEC4& v, const VEC4& alt) { return VEC4SafeNormalize( pO… in VEC4SafeNormalize() argument
|
| D | math_Transform.h | 135 …3* VEC3Transform(VEC3* pOut, const MTX33& m, const VEC3& v) { return VEC3Transform( pOut, &m, &v )… in VEC3Transform() argument 136 …3* VEC3Transform(VEC3* pOut, const MTX34& m, const VEC3& v) { return VEC3Transform( pOut, &m, &v )… in VEC3Transform() argument 137 …4* VEC3Transform(VEC4* pOut, const MTX44& m, const VEC3& v) { return VEC3Transform( pOut, &m, &v )… in VEC3Transform() argument 141 …ansformNormal(VEC3* pOut, const MTX34& m, const VEC3& v) { return VEC3TransformNormal( pOut, &m, &… in VEC3TransformNormal() argument 144 …ransformCoord(VEC3* pOut, const MTX44& m, const VEC3& v) { return VEC3TransformCoord( pOut, &m, &v… in VEC3TransformCoord() argument 147 …4* VEC4Transform(VEC4* pOut, const MTX44& m, const VEC4& v) { return VEC4Transform( pOut, &m, &v )… in VEC4Transform() argument
|
| D | math_Utility.h | 126 inline T ExtractBits(bit32 v, int pos, int len) in ExtractBits() argument 128 return static_cast<T>( v & (((1u << len) - 1) << pos) ); in ExtractBits() 132 inline T ExtractBits(bit64 v, int pos, int len) in ExtractBits() argument 134 return static_cast<T>( v & (((1ull << len) - 1) << pos) ); in ExtractBits() 138 inline T GetBits(bit32 v, int pos, int len) in GetBits() argument 140 return static_cast<T>( (v >> pos) & ((1u << len) - 1) ); in GetBits() 144 inline T GetBits(bit64 v, int pos, int len) in GetBits() argument 146 return static_cast<T>( (v >> pos) & ((1ull << len) - 1) ); in GetBits() 150 inline bit32 MakeBits(T v, int width, int shift) in MakeBits() argument 152 return (static_cast<bit32>(v) & ((1u << width) - 1)) << shift; in MakeBits()
|
| D | math_Vector2.h | 80 VEC2(const VEC2_& v) { x = v.x; y = v.y; } in VEC2() 390 inline bool VEC2IsZero(const VEC2& v){ return VEC2IsZero( &v ); } in VEC2IsZero() argument 394 inline VEC2* VEC2Scale(VEC2* pOut, const VEC2& v, f32 scale) { return VEC2Scale(pOut, &v, scale); } in VEC2Scale() argument 397 inline f32 VEC2LenSq(const VEC2& v) { return VEC2LenSq( &v ); } in VEC2LenSq() argument 398 inline f32 VEC2Len(const VEC2& v) { return VEC2Len( &v ); } in VEC2Len() argument 403 inline VEC2* VEC2Normalize(VEC2* pOut, const VEC2& v) { return VEC2Normalize( pOut, &v ); } in VEC2Normalize() argument 404 …VEC2* VEC2SafeNormalize(VEC2* pOut, const VEC2& v, const VEC2& alt) { return VEC2SafeNormalize( pO… in VEC2SafeNormalize() argument 405 …2* VEC2Transform(VEC2* pOut, const MTX23& m, const VEC2& v) { return VEC2Transform( pOut, &m, &v )… in VEC2Transform() argument
|
| D | math_Vector3.h | 92 VEC3(const VEC3_& v) { x = v.x; y = v.y; z = v.z; } in VEC3() 462 inline bool VEC3IsZero(const VEC3& v){ return VEC3IsZero( &v ); } in VEC3IsZero() argument 466 inline VEC3* VEC3Normalize(VEC3* pOut, const VEC3& v) { return VEC3Normalize( pOut, &v ); } in VEC3Normalize() argument 467 …VEC3* VEC3SafeNormalize(VEC3* pOut, const VEC3& v, const VEC3& alt) { return VEC3SafeNormalize( pO… in VEC3SafeNormalize() argument 473 inline VEC3* VEC3Scale(VEC3* pOut, const VEC3& v, f32 scale) { return VEC3Scale( pOut, &v, scale );… in VEC3Scale() argument 476 inline f32 VEC3Len(const VEC3& v) { return VEC3Len( &v ); } in VEC3Len() argument 477 inline f32 VEC3SquareLen(const VEC3& v) { return VEC3SquareLen( &v ); } in VEC3SquareLen() argument
|
| D | math_Matrix22.h | 65 VEC2_ v[2]; member 124 return *reinterpret_cast<VEC2*>(&this->v[index]); in GetRow() 131 return *reinterpret_cast<const VEC2*>(&this->v[index]); in GetRow()
|
| D | math_Matrix33.h | 111 VEC3_ v[3]; member 174 return *reinterpret_cast<VEC3*>(&this->v[index]); in GetRow() 181 return *reinterpret_cast<const VEC3*>(&this->v[index]); in GetRow()
|
| D | math_Matrix23.h | 71 VEC3_ v[2]; member 131 return *reinterpret_cast<VEC3*>(&this->v[index]); in GetRow() 138 return *reinterpret_cast<const VEC3*>(&this->v[index]); in GetRow()
|
| D | math_Matrix43.h | 73 VEC3_ v[4]; member 137 return *reinterpret_cast<VEC3*>(&this->v[index]); in GetRow() 144 return *reinterpret_cast<const VEC3*>(&this->v[index]); in GetRow()
|
| /CTR-SDK-0.14.4/sources/libraries/math/ |
| D | math_Geometry.cpp | 433 f32 v; in DistSqPoint3ToAABB() local 436 vv = v = P->x; in DistSqPoint3ToAABB() 437 if (v < B->Pmin.x) in DistSqPoint3ToAABB() 439 sqDist += (B->Pmin.x - v) * (B->Pmin.x - v); in DistSqPoint3ToAABB() 442 else if (v > B->Pmax.x) in DistSqPoint3ToAABB() 444 sqDist += (B->Pmax.x - v) * (B->Pmax.x - v); in DistSqPoint3ToAABB() 450 vv = v = P->y; in DistSqPoint3ToAABB() 451 if (v < B->Pmin.y) in DistSqPoint3ToAABB() 453 sqDist += (B->Pmin.y - v) * (B->Pmin.y - v); in DistSqPoint3ToAABB() 456 else if (v > B->Pmax.y) in DistSqPoint3ToAABB() [all …]
|
| /CTR-SDK-0.14.4/include/nn/fnd/ |
| D | fnd_Interlocked.h | 150 InterlockedVariable(T v) : m_v(v) {} 175 void WriteNotAtomic (T v) { m_v = v; } 239 void operator op(V v) { F f(v); AtomicUpdateConditional(f); }
|
| D | fnd_FixedBufferVector.h | 45 void Add(T v) in Add() argument 47 *Add() = v; in Add()
|
| /CTR-SDK-0.14.4/include/nn/fnd/ARMv6/ |
| D | fnd_Interlocked.h | 110 T v; 120 if (!update(x.v)) 142 T v; 152 if( x.v != compValue ) 158 x.v = setValue;
|
| /CTR-SDK-0.14.4/include/nn/os/ |
| D | os_CriticalSection.h | 255 uptr v; in GetThreadUniqueValue() local 256 HW_GET_CP15_THREAD_ID_USER_READ_ONLY(v); in GetThreadUniqueValue() 257 return v; in GetThreadUniqueValue()
|
| D | os_InterCoreCriticalSection.h | 247 uptr v; in GetThreadUniqueValue() local 248 HW_GET_CP15_THREAD_ID_USER_READ_ONLY(v); in GetThreadUniqueValue() 249 return v; in GetThreadUniqueValue()
|
| /CTR-SDK-0.14.4/include/nn/socket/ |
| D | socket_Berkeley.h | 870 inline bit32 HtoNl(bit32 v) in HtoNl() argument 872 return NN_SOCKET_HtoNl(v); in HtoNl() 884 inline bit32 NtoHl(bit32 v) in NtoHl() argument 886 return NN_SOCKET_NtoHl(v); in NtoHl() 897 inline bit16 HtoNs(bit16 v) in HtoNs() argument 899 return NN_SOCKET_HtoNs(v); in HtoNs() 910 inline bit16 NtoHs(bit16 v) in NtoHs() argument 912 return NN_SOCKET_NtoHs(v); in NtoHs()
|
| /CTR-SDK-0.14.4/sources/libraries/gr/CTR/ |
| D | gr_Shader.cpp | 367 for( int v = 0; v < vtx_exe_info->outMapCount; ++v ) in MakeOutAttrCommand_() local 369 if ( outmapInfo[ g ].type == vtxOutmapInfo[ v ].type ) in MakeOutAttrCommand_() 376 vs_copy_mask |= 1 << v; in MakeOutAttrCommand_() 394 for( int v = 0; v < vtx_exe_info->outMapCount; ++v ) in MakeOutAttrCommand_() local 396 if ( !( vs_copy_mask & ( 1 << v ) ) && in MakeOutAttrCommand_() 397 … ( vtxOutmapInfo[ v ].type >= 0 && vtxOutmapInfo[ v ].type < 9 && vtxOutmapInfo[ v ].type != 7 ) ) in MakeOutAttrCommand_() 400 outmap_buffer[ outMapBufferCount ].type = vtxOutmapInfo[ v ].type; in MakeOutAttrCommand_() 402 outmap_buffer[ outMapBufferCount ].mask = vtxOutmapInfo[ v ].mask; in MakeOutAttrCommand_()
|
| /CTR-SDK-0.14.4/include/nn/hid/CTR/ |
| D | hid_DeviceStatus.h | 175 :x(mtx33.v[0]),y(mtx33.v[1]),z(mtx33.v[2]){} in Direction()
|
| /CTR-SDK-0.14.4/include/gles2/ |
| D | gl2.h | 617 GL_APICALL void GL_APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat* v); 619 GL_APICALL void GL_APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint* v); 621 GL_APICALL void GL_APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat* v); 623 GL_APICALL void GL_APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint* v); 625 GL_APICALL void GL_APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat* v); 627 GL_APICALL void GL_APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint* v); 629 GL_APICALL void GL_APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat* v); 631 GL_APICALL void GL_APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint* v);
|