| /CTR-SDK-4.2.8-20130828/include/nn/util/ |
| D | util_Bits.h | 25 bit32 n; member 26 bool Get(int i) const { return n & (1 << i); } in Get() 27 void Set0(int i) { n &= ~(1 << i); } in Set0() 28 void Set1(int i) { n |= (1 << i); } in Set1() 48 this->m_N.n = ~(~0 << size); in Initialize() 53 int clz = __clz(m_N.n); in Allocate() 80 BitsAllocatorBase(Bit32Allocator* bits, int size, int n) in BitsAllocatorBase() argument 82 for (int i = 0; i < n; ++i) in BitsAllocatorBase() 98 int AllocateImpl(Bit32Allocator* bits, int n) in AllocateImpl() argument 100 for (int i = 0; i < n; ++i) in AllocateImpl()
|
| /CTR-SDK-4.2.8-20130828/sources/libraries/rdt/CTR/ |
| D | rdt_RingBuffer.cpp | 79 void RingBuffer::Pop(size_t n) in Pop() argument 83 WARNINGMSG(n > 0, "Argument is not positive number. Do nothing.\n"); in Pop() 85 if(n > 0) in Pop() 87 size_t len = min(n, m_dataLength); in Pop() 90 u8 *p = m_pHeadData += n; in Pop() 107 bool RingBuffer::Push(const void *pBuf, size_t n) in Push() argument 112 if(n <= 0) in Push() 114 PANIC("Size of buffer is not positive number.(n=%d)\n", n); in Push() 118 if(m_dataLength + n > m_bufLength) in Push() 130 if(dst + n > getEndOfBuffer()) in Push() [all …]
|
| D | rdt_RingBuffer.h | 60 void Pop(size_t n); 64 bool Push(const void *pBuf, size_t n); 70 size_t Read(void *pBuf, size_t n) const; 76 size_t Read(void *pBuf, size_t n, size_t offset) const; 120 size_t read(void *pBuf, size_t n, size_t offset) const;
|
| D | rdt_Transceiver.cpp | 352 int n = SendRawData(m_sock, &seg, sizeof(Segment)); in Put() local 355 int n = SendRawData(&m_sendEp, m_remoteNodeId, m_port, &seg, sizeof(Segment), &ret); in Put() local 357 if(n==sizeof(Segment)) in Put() 366 …ERBOSE("Tried to send the segment, but the SendRawData function seemed to fail.... (n = %d)\n", n); in Put() 383 int n = RecvRawData(m_sock, pSeg, sizeof(Segment)); in Pull() local 386 int n = RecvRawData(&m_recvEp, pSeg, sizeof(Segment), &ret); in Pull() local 388 if((n==sizeof(Segment)) && pSeg->IsValid()) in Pull() 394 else if(n==0) in Pull() 402 LOG("It seems that size of segment is wrong(%d byte)\n", n); in Pull()
|
| D | rdt_Deque.h | 92 const T& At(size_t n) const; 211 const T& Deque<T, N>::At(size_t n) const in At() argument 213 ASSERT(n < Size()); in At() 215 return m_array[(m_front + n) % N]; in At()
|
| D | rdt_ReceiveBuffer.cpp | 82 void ReceiveBuffer::Pop(size_t n) in Pop() argument 86 ASSERT(n >= 0); in Pop() 87 m_ringBuf.Pop(n); in Pop()
|
| D | rdt_Segment.h | 119 void SetWindowSize(u16 n) { header.windowSize = n; } in SetWindowSize()
|
| /CTR-SDK-4.2.8-20130828/sources/libraries/math/ |
| D | math_Arithmetic.cpp | 583 const u32 n = u32(last - first); in CntBit1() local 589 for (i = 0; i < n; i += 31) in CntBit1() 591 lim = (n < i + 31) ? n : (i + 31); in CntBit1() 624 unsigned int n = 0; in DistBit() local 627 n += DistBit(*first1, *first2); in DistBit() 631 return n; in DistBit() 666 IExp(int x, u32 n) in IExp() argument 674 if (n & 1) { y *= p; } in IExp() 675 n >>= 1; in IExp() 676 if (n == 0) { return y; } in IExp() [all …]
|
| D | math_Equation.cpp | 345 f32 m, n, y; in SolveEquation4() local 387 n = FSqrt(spow<2>(y) - r); in SolveEquation4() 388 m = -q / (2 * n); in SolveEquation4() 399 n = FSqrt(spow<2>(y) - r); in SolveEquation4() 420 int nRoot01 = SolveEquation2(root01, m, y + n); in SolveEquation4() 431 int nRoot23 = SolveEquation2(root23, -m, y - n); in SolveEquation4()
|
| /CTR-SDK-4.2.8-20130828/include/nn/config/compiler/ |
| D | rvct.h | 54 #define NN_ATTRIBUTE_ALIGN(n) __attribute__ ((aligned(n))) argument 107 #define NN_ATTRIBUTE_FORMAT(type, m, n) \ argument 108 __attribute__ ((format(type,m,n)))
|
| D | egcc.h | 33 #define NN_ATTRIBUTE_ALIGN(n) __attribute__ ((aligned(n))) argument
|
| /CTR-SDK-4.2.8-20130828/sources/libraries/os/ |
| D | os_DeliverArg.cpp | 60 s32 n = 0; in GetArgcCore() local 61 for (; *p; p++, n++) in GetArgcCore() 68 return n; in GetArgcCore() 71 const char* GetArgvCore(const char* p, int n) in GetArgvCore() argument 73 NN_TASSERT_(n >= 0); in GetArgvCore() 74 for (; *p && n > 0; p++, n--) in GetArgvCore() 460 const char* DeliverArg::GetArgv(int n) in GetArgv() argument 463 NN_TASSERT_(n >= 0); in GetArgv() 467 return (n == 0) ? procName: GetArgvCore(reinterpret_cast<const char*>(m_pInfo->buf), n - 1); in GetArgv()
|
| D | os_ThreadPool.cpp | 173 s32 n; in WaitThreadFunc() local 174 …NN_OS_ERROR_IF_FAILED(nn::svc::WaitSynchronization(&n, GetWaitHandleBuffer(), m_WaitingCount + 1, … in WaitThreadFunc() 176 if (n >= 1) in WaitThreadFunc() 183 task = GetWaitTaskBuffer()[n - 1]->AsNonWaitableTask(); in WaitThreadFunc() 184 GetWaitTaskBuffer()[n - 1] = GetWaitTaskBuffer()[m_WaitingCount - 1]; in WaitThreadFunc() 185 GetWaitHandleBuffer()[n] = GetWaitHandleBuffer()[m_WaitingCount]; in WaitThreadFunc()
|
| /CTR-SDK-4.2.8-20130828/sources/libraries/fnd/ |
| D | fnd_Backoff.cpp | 28 volatile int n; in BackOffImpl() local 31 n = 0; in BackOffImpl()
|
| /CTR-SDK-4.2.8-20130828/sources/libraries/tpl/CTR/ |
| D | tpl_crc32.cpp | 119 int n = 0; in search_crc32_index() local 123 while(n <= m) in search_crc32_index() 125 int c = (n + m) / 2; in search_crc32_index() 146 n = c + 1; in search_crc32_index()
|
| /CTR-SDK-4.2.8-20130828/include/nn/fnd/ARMv6/ |
| D | fnd_Interlocked.h | 111 Storage n; 118 x.n = LoadStore::LoadRegEx(reinterpret_cast<volatile Storage*&>(p)); 126 … if ( LoadStore::StoreRegEx(x.n, reinterpret_cast<volatile Storage*&>(p)) == 0 ) 143 Storage n; 148 x.n = LoadStore::LoadRegEx(reinterpret_cast<volatile Storage*&>(p)); 154 LoadStore::StoreRegEx(x.n, reinterpret_cast<volatile Storage*&>(p)); 159 ret = LoadStore::StoreRegEx(x.n, reinterpret_cast<volatile Storage*&>(p));
|
| /CTR-SDK-4.2.8-20130828/include/nn/math/ |
| D | math_Matrix44.h | 87 NN_FORCE_INLINE MTX44* MTX44Frustum(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f); 104 NN_MATH_INLINE MTX44* MTX44FrustumPivot(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f, Pivo… 226 NN_FORCE_INLINE MTX44* MTX44Ortho(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f); 243 NN_MATH_INLINE MTX44* MTX44OrthoPivot(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f, PivotD… 256 NN_MATH_INLINE MTX44* MTX44PerspectiveDeg(MTX44* pOut, f32 fovy, f32 aspect, f32 n, f32 f); 261 MTX44Perspective(MTX44* pOut, f32 fovy, f32 aspect, f32 n, f32 f) in MTX44Perspective() argument 263 return MTX44PerspectiveDeg(pOut, fovy, aspect, n, f); in MTX44Perspective() 278 NN_MATH_INLINE MTX44* MTX44PerspectivePivotDeg(MTX44* pOut, f32 fovy, f32 aspect, f32 n, f32 f, Piv… 293 NN_MATH_INLINE MTX44* MTX44PerspectivePivotRad(MTX44* pOut, f32 fovy, f32 aspect, f32 n, f32 f, Piv… 306 NN_FORCE_INLINE MTX44* MTX44PerspectiveRad(MTX44* pOut, f32 fovy, f32 aspect, f32 n, f32 f); [all …]
|
| D | math_Transform.h | 214 …INLINE VEC3* VEC3TransformNormalArray(VEC3* pOutArray, const MTX34* pM, const VEC3* pArray, u32 n); 260 NN_MATH_INLINE VEC4* VEC4TransformArray(VEC4* pOut, const MTX44* pM, const VEC4* pV, u32 n); 276 …ray, const MTX34& m, const VEC3* pArray, u32 n) { return VEC3TransformNormalArray( pOutArray, &m, … in VEC3TransformNormalArray() argument 282 …tArray, const MTX44& m, const VEC4* pArray, u32 n) { return VEC4TransformArray( pOutArray, &m, pAr… in VEC4TransformArray() argument
|
| /CTR-SDK-4.2.8-20130828/include/nn/fnd/ |
| D | fnd_FixedLengthString.h | 367 bit32 n = (x >> ((7 - i) * 4)) & 0xf; in AppendHeadAsHex() local 368 NN_TASSERT_(0 <= n && n < 16); in AppendHeadAsHex() 369 hex[i] = static_cast<Char>(n < 10 ? '0' + n : 'a' + (n - 10)); in AppendHeadAsHex() 391 bit32 n = (x >> ((7 - i) * 4)) & 0xf; in AppendTailAsHex() local 392 NN_TASSERT_(0 <= n && n < 16); in AppendTailAsHex() 393 p[i] = static_cast<Char>(n < 10 ? '0' + n : 'a' + (n - 10)); in AppendTailAsHex() 502 …int n = std::memcmp(lhs.GetString(), rhs.GetString(), sizeof(Char) * std::min(lhs.GetLength(), rhs… variable 503 return n < 0 || (n == 0 && lhs.GetLength() < rhs.GetLength());
|
| D | fnd_TimeSpan.h | 279 s64 n = MultiplyRightShift(m_NanoSeconds, magic); in DivideNanoSeconds() local 282 n += m_NanoSeconds; in DivideNanoSeconds() 284 n >>= rightShift; in DivideNanoSeconds() 285 return n + (static_cast<u64>(m_NanoSeconds) >> 63); in DivideNanoSeconds()
|
| D | fnd_Allocator.h | 92 …er allocate(size_type n, void* = 0) { return static_cast<T*>(StdAllocatorAdapterHolder<Allocator, … 122 …pointer allocate(size_type n, void* = 0) { return static_cast<T*>(s_Allocator->Allocate(n * sizeof…
|
| /CTR-SDK-4.2.8-20130828/include/nn/math/ARMv6/ |
| D | math_Matrix44.h | 28 NN_MATH_INLINE MTX44* MTX44PerspectiveRadC(MTX44* pOut, f32 fovy, f32 aspect, f32 n, f32 f); 29 NN_MATH_INLINE MTX44* MTX44PerspectiveRadC_FAST(MTX44* pOut, f32 fovy, f32 aspect, f32 n, f32 f); 30 NN_MATH_INLINE MTX44* MTX44FrustumC(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f); 31 NN_MATH_INLINE MTX44* MTX44FrustumC_FAST(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f); 32 NN_MATH_INLINE MTX44* MTX44OrthoC(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f); 33 NN_MATH_INLINE MTX44* MTX44OrthoC_FAST(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f);
|
| /CTR-SDK-4.2.8-20130828/include/nn/math/inline/ |
| D | math_Matrix34.ipp | 115 MTX34TextureProjectionFrustum(MTX34* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 scaleS, f32 scale… 125 mtx[0][0] = ((2.0f * n) * reverseWidth) * scaleS; 132 mtx[1][1] = ((2.0f * n) * reverseHeight) * scaleT; 203 MTX34ShadowProjectionFrustum(MTX34* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f) 210 f32 scale = -1.0f / (f - n); 214 mtx[0][0] = ((-1.0f * n) * reverseWidth) * scale; 221 mtx[1][1] = ((-1.0f * n) * reverseHeight) * scale; 233 MTX34ShadowProjectionOrtho(MTX34* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f) 254 f32 tmp = -1.0f / (f - n); 258 mtx[2][3] = n * tmp; [all …]
|
| D | math_Matrix44.ipp | 27 MTX44FrustumPivot(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f, PivotDirection pivot) 29 MTX44Frustum( pOut, l, r, b, t, n, f ); 164 MTX44OrthoPivot(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f, PivotDirection pivot) 166 MTX44Ortho( pOut, l, r, b, t, n, f ); 173 MTX44PerspectivePivotRad(MTX44* pOut, f32 fovy, f32 aspect, f32 n, f32 f, PivotDirection pivot) 175 MTX44PerspectiveRad( pOut, fovy, aspect, n, f );
|
| /CTR-SDK-4.2.8-20130828/include/gles2/ |
| D | gl2ext.h | 616 GL_APICALL GLsizei GL_APIENTRY glSaveProgramsDMP ( GLuint n, GLuint* progs, GLuint flags, GLsize… 617 GL_APICALL void GL_APIENTRY glRestoreProgramsDMP ( GLuint n, GLuint offset, GLuint* progs, GLuin… 642 GL_APICALL GLsizei GL_APIENTRY glSaveVertexStateCollectionsDMP ( GLuint n, GLuint* vscolls, GLui… 643 GL_APICALL void GL_APIENTRY glRestoreVertexStateCollectionsDMP ( GLuint n, GLuint offset, GLuint… 649 GL_APICALL GLsizei GL_APIENTRY glSaveTextureCollectionsDMP ( GLuint n, GLuint* txcolls, GLuint f… 650 GL_APICALL void GL_APIENTRY glRestoreTextureCollectionsDMP ( GLuint n, GLuint offset, GLuint* tx… 681 GL_APICALL void GL_APIENTRY glUniformsDMP(GLuint n, GLint* locations, GLsizei* counts, const GLuint… 682 GL_APICALL void GL_APIENTRY glGetUniformsDMP(GLuint program, GLuint n, GLint* locations, GLsizei* c…
|