Home
last modified time | relevance | path

Searched refs:std (Results 1 – 25 of 56) sorted by relevance

123

/CTR-SDK-1.0.0/CTR_SDK/sources/libraries/test/
Dtest_String.cpp38 ::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()
Dtest_Util.cpp28 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()
Dtest_Suite.cpp157 ::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/
Dfont_TextWriterBase.h327 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/
Dmath_Triangular.h104 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 …]
Dmath_Arithmetic.h133 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 …]
Dmath_Transform.h64 …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/
Ddbg_Logger.cpp44 …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 …]
Ddbg_Dump.cpp69 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()
Ddbg_DebugString.cpp44 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/
Dgr_Vertex.h68 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()
Dgr_Shader.h209std::memcpy( command, m_CmdCacheVtxConst, m_CmdCacheVtxConstNum * sizeof( bit32 ) ); in MakeVtxConstRgCommand()
223std::memcpy( command, m_CmdCacheGeoConst, m_CmdCacheGeoConstNum * sizeof( bit32 ) ); in MakeGeoConstRgCommand()
259std::memcpy( command, m_CmdCacheOutAttr, m_CmdCacheOutAttrNum * sizeof( bit32 ) ); in MakeOutAttrCommand()
/CTR-SDK-1.0.0/CTR_SDK/sources/libraries/init/
Dinit_Alloc.cpp67 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/
Dfnd_Storage.cpp33 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/
Dfnd_FixedLengthString.h143 std::memmove(m_Buffer + index, m_Data, sizeof(Char) * (GetLength() + 1));
274std::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()
308std::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/
Ddbg_DebugString.h138 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/
Dmath_Quaternion.ipp170 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/
Dfs_DirectoryBase.h54 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/
Dos_DeliverArg.cpp95 ::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/
Dgr_ProcedureTexture.cpp139std::memcpy( command, m_NoiseLookUpTableCommand, sizeof( m_NoiseLookUpTableCommand ) ); in MakeTableCommand()
143std::memcpy( command, m_RgbMapLookUpTableCommand, sizeof( m_RgbMapLookUpTableCommand ) ); in MakeTableCommand()
148std::memcpy( command, m_AlphaMapLookUpTableCommand, sizeof( m_AlphaMapLookUpTableCommand ) ); in MakeTableCommand()
152std::memcpy( command, m_ColorLookUpTableCommand, sizeof( m_ColorLookUpTableCommand ) ); in MakeTableCommand()
155std::memcpy( command, m_ColorDiffLookUpTableCommand, sizeof( m_ColorDiffLookUpTableCommand ) ); in MakeTableCommand()
/CTR-SDK-1.0.0/CTR_SDK/include/nn/fslow/
Dfslow_Path.h95 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/
Drdt_HostBase.cpp75 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/
Degcc.h45 namespace std
/CTR-SDK-1.0.0/CTR_SDK/sources/libraries/tpl/CTR/
Dtpl_ReadTexturePackage.cpp49 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/
Dmath_Vector3.ipp48 mag = 1.0f / ::std::sqrtf(mag);
74 mag = 1.0f / ::std::sqrtf(mag);

123