| /CTR-SDK-1.0.0/CTR_SDK/sources/libraries/test/ |
| D | test_String.cpp | 38 ::std::sprintf(buf, "%d", num); in String() 61 return ::std::strcmp(pBuffer, m_pBuffer) == 0; in operator ==() 66 int newLen = ::std::strlen(m_pBuffer) + ::std::strlen(pBuffer) + 1; in operator +=() 68 ::std::strcpy(pNewBuffer, m_pBuffer); in operator +=() 69 ::std::strcat(pNewBuffer, pBuffer); in operator +=() 94 m_pBuffer = new char[::std::strlen(pBuffer) + 1]; in Initialize() 95 ::std::strcpy(m_pBuffer, pBuffer); in Initialize()
|
| D | test_Util.cpp | 28 int data = ::std::rand(); in FillBytesRandom() 30 size_t copyLen = ::std::min(sizeof(data), len); in FillBytesRandom() 31 ::std::memcpy(pBuffer, &data, copyLen); in FillBytesRandom()
|
| D | test_Suite.cpp | 157 ::std::longjmp(*m_pExitTestJumpBuffer, 1); in ExitCurrentTest() 256 ::std::jmp_buf* Suite::ResultHolder::GetJmpbuf() in GetJmpbuf() 261 …lureHandler(Result result, const char* filename, int lineno, const char* fmt, ::std::va_list vlist) in ResultFailureHandler() 273 ::std::vsnprintf(buf, sizeof(buf), fmt, vlist); in ResultFailureHandler() 285 …anicHandler(Result result, const char* filename, int lineno, const char* fmt, ::std::va_list vlist) in ResultPanicHandler() 298 ::std::vsnprintf(buf, sizeof(buf), fmt, vlist); in ResultPanicHandler() 407 ::std::jmp_buf jumpBuf; in DoRunSpecificTest()
|
| /CTR-SDK-1.0.0/CTR_SDK/include/nn/font/CTR/ |
| D | font_TextWriterBase.h | 327 std::va_list args 385 std::va_list args); 427 std::size_t size in SetBuffer() 450 std::size_t size in SetBuffer() 476 static std::size_t GetBufferSize() in GetBufferSize() 487 std::size_t count, in VSNPrintf() 489 std::va_list arg in VSNPrintf() 493 using namespace std; in VSNPrintf() local 501 std::size_t count, in VSNPrintf() 503 std::va_list arg in VSNPrintf() [all …]
|
| /CTR-SDK-1.0.0/CTR_SDK/include/nn/math/ |
| D | math_Triangular.h | 104 return ::std::tanf(NN_MATH_FIDX_TO_RAD(fidx)); in TanFIdx() 229 inline f32 NN_fAcos(f32 x) { return ::std::acosf(x); } in NN_fAcos() 230 inline f32 NN_fAsin(f32 x) { return ::std::asinf(x); } in NN_fAsin() 231 inline f32 NN_fAtan(f32 x) { return ::std::atanf(x); } in NN_fAtan() 232 inline f32 NN_fAtan2(f32 y, f32 x) { return ::std::atan2f(y, x); } in NN_fAtan2() 246 return NN_MATH_RAD_TO_FIDX(::std::asin(x)); in AsinFIdx() 260 return NN_MATH_RAD_TO_FIDX(::std::acosf(x)); in AcosFIdx() 278 return ::std::asin(x); in AsinRad() 291 return ::std::acos(x); in AcosRad() 328 return NN_MATH_RAD_TO_DEG(::std::asin(x)); in AsinDeg() [all …]
|
| D | math_Arithmetic.h | 133 ret = ::std::fabsf(x); in FAbs() 193 return ::std::expf(x); in FExp() 210 return ::std::logf(x); in FLog() 227 return ::std::log10f(x); in FLog10() 242 return ::std::fmodf(x, y); in FMod() 257 return ::std::modff(x, y); in FModf() 271 return ::std::ceilf(x); in FCeil() 285 return ::std::floorf(x); in FFloor() 381 return 1.f / ::std::sqrtf(x); in FrSqrt() 397 return ::std::sqrtf(x); in FSqrt() [all …]
|
| D | math_Transform.h | 64 …bool operator == (const self_type& rhs) const { return ::std::memcmp(this, &rhs, sizeof(Transform2… 65 …bool operator != (const self_type& rhs) const { return ::std::memcmp(this, &rhs, sizeof(Transform2… 91 …bool operator == (const self_type& rhs) const { return ::std::memcmp(this, &rhs, sizeof(Transform3… 92 …bool operator != (const self_type& rhs) const { return ::std::memcmp(this, &rhs, sizeof(Transform3…
|
| /CTR-SDK-1.0.0/CTR_SDK/sources/libraries/dbg/ |
| D | dbg_Logger.cpp | 44 …size_t length = std::min<size_t>(nn::nstd::TVSNPrintf(dst, bufferLength, fmt, vlist), bufferLength… in SafeTVSNPrintf() 52 …size_t length = std::min<size_t>(nn::nstd::TVSNPrintf(dst, bufferLength, fmt, vlist), bufferLength… in SafeTSNPrintf() 85 char* pFileNameTop = (char8*)std::strrchr(path, '\\'); in GetBaseName() 114 char8* pSrcSigHead = ::std::strrchr(pSrcTop, '('); in MakeFuncName() 119 pSrcTop + ::std::strlen(src) : in MakeFuncName() 138 if (std::strncmp(p, "::", 2) == 0) in MakeFuncName() 163 size_t copyLength = ::std::min<size_t>(pSrcLast - pSrcTop, length - 1); in MakeFuncName() 164 ::std::memcpy(dest, pSrcTop, copyLength); in MakeFuncName() 195 ::std::strncat(&buffer[len], " : ", sizeof(buffer) - len - 3); in PrintLog() 235 char* pModulePosition = std::strchr(pFileNameTop, '_'); in PrintLog() [all …]
|
| D | dbg_Dump.cpp | 69 std::strcat(buffer, " "); in DumpMemory() 79 if (std::isprint(val)) in DumpMemory() 90 std::strcat(buffer, " "); in DumpMemory() 102 std::strcat(buffer, "\n"); in DumpMemory()
|
| D | dbg_DebugString.cpp | 44 PutString(text, std::strlen(text)); in PutString() 47 NN_WEAK_SYMBOL void VPrintf(const char* fmt, ::std::va_list arg) in VPrintf() 50 u32 length = ::std::vsnprintf(buf, sizeof(buf), fmt, arg); in VPrintf() 58 NN_WEAK_SYMBOL void TVPrintf(const char* fmt, ::std::va_list arg) in TVPrintf()
|
| /CTR-SDK-1.0.0/CTR_SDK/include/nn/gr/CTR/ |
| D | gr_Vertex.h | 68 InterleaveInfo() { std::memset( this, 0, sizeof( InterleaveInfo ) ); } in InterleaveInfo() 142 std::memcpy( command, m_CmdCacheVertex, m_CmdCacheVertexNum * sizeof( bit32 ) ); in MakeEnableAttrCommand() 223 std::memset( command, 0, size ); in MakeDisableCommand() 264 std::memset( this, 0, sizeof( Vertex ) ); in DisableAll() 273 std::memset( this, 0, sizeof( Vertex ) ); in Vertex()
|
| D | gr_Shader.h | 209 … std::memcpy( command, m_CmdCacheVtxConst, m_CmdCacheVtxConstNum * sizeof( bit32 ) ); in MakeVtxConstRgCommand() 223 … std::memcpy( command, m_CmdCacheGeoConst, m_CmdCacheGeoConstNum * sizeof( bit32 ) ); in MakeGeoConstRgCommand() 259 … std::memcpy( command, m_CmdCacheOutAttr, m_CmdCacheOutAttrNum * sizeof( bit32 ) ); in MakeOutAttrCommand()
|
| /CTR-SDK-1.0.0/CTR_SDK/sources/libraries/init/ |
| D | init_Alloc.cpp | 67 NN_WEAK_SYMBOL void* operator new (size_t size, const ::std::nothrow_t&) throw() in operator new() 72 NN_WEAK_SYMBOL void* operator new[] (size_t size, const ::std::nothrow_t&) throw() in operator new[]() 74 return operator new(size, ::std::nothrow_t()); in operator new[]()
|
| /CTR-SDK-1.0.0/CTR_SDK/sources/libraries/fnd/ |
| D | fnd_Storage.cpp | 33 std::memcpy(buffer, m_Buffer + m_Position, ret); in TryRead() 50 std::memcpy(m_Buffer + m_Position, buffer, ret); in TryWrite()
|
| /CTR-SDK-1.0.0/CTR_SDK/include/nn/fnd/ |
| D | fnd_FixedLengthString.h | 143 std::memmove(m_Buffer + index, m_Data, sizeof(Char) * (GetLength() + 1)); 274 … std::memmove(m_Buffer + MaxLength - this->GetLength(), m_Data, sizeof(Char) * originalLength); in AppendHead() 275 std::memcpy(m_Buffer + MaxLength - totalSize, s, sizeof(Char) * length); in AppendHead() 286 std::memcpy(m_Data, s, length * sizeof(Char)); in AppendHead() 308 … std::memmove(m_Buffer + MaxLength - this->GetLength(), m_Data, sizeof(Char) * originalLength); in AppendHead() 309 std::memcpy(m_Buffer + MaxLength - totalSize, s, sizeof(Char) * length); in AppendHead() 320 std::memcpy(m_Data, s, length * sizeof(Char)); in AppendHead() 342 std::memcpy(p, s.GetString(), sizeof(Char) * s.GetLength()); in AppendTail() 470 …return lhs.GetLength() == rhs.GetLength() && std::memcmp(lhs.GetString(), rhs.GetString(), sizeof(… 475 …return std::memcmp(lhs.m_Data, rhs, sizeof(Char) * lhs.GetLength()) == 0 && rhs[lhs.GetLength()] =… [all …]
|
| /CTR-SDK-1.0.0/CTR_SDK/include/nn/dbg/ |
| D | dbg_DebugString.h | 138 void VPrintf(const char* fmt, ::std::va_list arg); 148 void TVPrintf(const char* fmt, ::std::va_list arg);
|
| /CTR-SDK-1.0.0/CTR_SDK/include/nn/math/inline/ |
| D | math_Quaternion.ipp | 170 theta = ::std::sqrtf( q->x * q->x + q->y * q->y + q->z * q->z ); 175 scale = (f32)::std::sinf(theta) / theta; 181 pOut->w = (f32)::std::cosf(theta); 206 scale = ::std::sqrtf(scale); 207 theta = ::std::atan2f( scale, q->w ); 279 theta = ::std::acosf(cos_th); 280 sin_th = ::std::sinf(theta); 281 tp = ::std::sinf((1.0F - t) * theta) / sin_th; 282 tq *= ::std::sinf( t * theta ) / sin_th; 392 sh = ::std::sinf(half); [all …]
|
| /CTR-SDK-1.0.0/CTR_SDK/include/nn/fs/ |
| D | fs_DirectoryBase.h | 54 size_t pathLen = ::std::mbstowcs(0, pathName, 0) + 1; in TryInitialize() 57 ::std::mbstowcs(buffer, pathName, pathLen); in TryInitialize()
|
| /CTR-SDK-1.0.0/CTR_SDK/sources/libraries/os/ |
| D | os_DeliverArg.cpp | 95 ::std::memset(m_pInfo, 0, NN_OS_DELIVER_ARG_INFO_SIZE); in InitializeForEnc() 127 s32 length = ::std::strlen(pString); in SetString() 134 ::std::strcpy((char*)m_pBuf, pString); in SetString() 209 ::std::memcpy(pDest, pBinary, nSize); in SetBinary() 398 ::std::memcpy(pBinary, &m_pInfo->buf[m_pInfo->argBufferSize], nCopySize); in GetBinary()
|
| /CTR-SDK-1.0.0/CTR_SDK/sources/libraries/gr/CTR/ |
| D | gr_ProcedureTexture.cpp | 139 … std::memcpy( command, m_NoiseLookUpTableCommand, sizeof( m_NoiseLookUpTableCommand ) ); in MakeTableCommand() 143 … std::memcpy( command, m_RgbMapLookUpTableCommand, sizeof( m_RgbMapLookUpTableCommand ) ); in MakeTableCommand() 148 … std::memcpy( command, m_AlphaMapLookUpTableCommand, sizeof( m_AlphaMapLookUpTableCommand ) ); in MakeTableCommand() 152 … std::memcpy( command, m_ColorLookUpTableCommand, sizeof( m_ColorLookUpTableCommand ) ); in MakeTableCommand() 155 … std::memcpy( command, m_ColorDiffLookUpTableCommand, sizeof( m_ColorDiffLookUpTableCommand ) ); in MakeTableCommand()
|
| /CTR-SDK-1.0.0/CTR_SDK/include/nn/fslow/ |
| D | fslow_Path.h | 95 std::wcstombs(buf, static_cast<const wchar_t*>(m_Data), 256); in PRINT() 146 this->m_BinarySize = (std::strlen(path) + 1) * sizeof(*path); in LowPath() 154 this->m_BinarySize = (std::wcslen(path) + 1) * sizeof(*path); in LowPath()
|
| /CTR-SDK-1.0.0/CTR_SDK/sources/libraries/rdt/CTR/ |
| D | rdt_HostBase.cpp | 75 std::srand(1234); in Initialize() 130 int r = (m_packetLossRatio==0) ? 100 : std::rand()%100; in putSegment()
|
| /CTR-SDK-1.0.0/CTR_SDK/include/nn/config/compiler/ |
| D | egcc.h | 45 namespace std
|
| /CTR-SDK-1.0.0/CTR_SDK/sources/libraries/tpl/CTR/ |
| D | tpl_ReadTexturePackage.cpp | 49 int fileNameLen = (int)::std::strlen(texPath); in GetTextureIndex() 158 if(::std::strncmp(header->magic, "CTPK", 4) != 0) in CheckTexturePackageHeader()
|
| /CTR-SDK-1.0.0/CTR_SDK/include/nn/math/ARMv6/inline/ |
| D | math_Vector3.ipp | 48 mag = 1.0f / ::std::sqrtf(mag); 74 mag = 1.0f / ::std::sqrtf(mag);
|