| /CTR-SDK-4.2.5/include/nn/gd/CTR/ |
| D | gd_Utils.h | 94 static u8 FloatToUnsignedByte(f32 val); 107 static u8 FloatToUnsignedByteNoClamp(f32 val); 120 static s8 FloatToSignedByte(f32 val); 133 static u16 Float32ToFloat16( f32 val ); 146 static u32 Float32ToFix13Fraction11( f32 val ); 159 static u32 Float32ToUnsignedFix12( f32 val ); 172 static u32 Float32ToFix12( f32 val ); 185 static u32 Float32ToFix12Fraction11( f32 val ); 198 static u32 Float32ToUnsignedFix11( f32 val ); 211 static u8 Float32ToFix8Fraction7( f32 val ); [all …]
|
| /CTR-SDK-4.2.5/include/nn/gr/CTR/ |
| D | gr_Utility.h | 447 f32 val in FloatToUnsignedByte() argument 450 return ( u8 )( 0.5f + ( val < 0.f ? 0.f : ( 1.f < val ? 1.f : val ) ) * ( 0xff ) ); in FloatToUnsignedByte() 463 f32 val in FloatToUnsignedByteNoClamp() argument 466 return ( u8 )( 0.5f + val * 0xff ); in FloatToUnsignedByteNoClamp() 478 inline u16 Float32ToFloat16( f32 val ) in Float32ToFloat16() argument 482 u32 uval_ = *( reinterpret_cast<u32*>( &val ) ); in Float32ToFloat16() 500 inline u32 Float32ToFloat24( f32 val ) in Float32ToFloat24() argument 503 u32 uval_ = *( reinterpret_cast<unsigned*>( &val ) ); in Float32ToFloat24() 518 inline u32 Float32ToFloat20( f32 val ) in Float32ToFloat20() argument 521 u32 uval_ = *( reinterpret_cast<unsigned*>( &val ) ); in Float32ToFloat20() [all …]
|
| /CTR-SDK-4.2.5/include/nn/font/detail/ |
| D | font_BinaryFileFormat.h | 86 static u64 BSwap( u64 val ) 90 val = ( (val & MASK) >> 8 ) | ( (val << 8) & MASK ); 91 val = ( (val & MASK2) >> 16 ) | ( (val << 16) & MASK2 ); 92 return (val >> 32) | (val << 32); 95 static s64 BSwap( s64 val ) 98 data.SInt64 = val; 104 static f64 BSwap( f64 val ) 107 data.Float64 = val; 113 static u32 BSwap( u32 val ) 116 val = ( (val & MASK) >> 8 ) | ( (val << 8) & MASK ); [all …]
|
| /CTR-SDK-4.2.5/sources/libraries/fnd/detail/ |
| D | fnd_DetailHeapCommonImpl.h | 96 #define NNSi_FndSetBitValue(data, st, bits, val) \ argument 100 u32 newVal = (val) & maskBits; /* mask for safety */ \ 128 AddU32ToPtr(void* ptr, u32 val) in AddU32ToPtr() argument 130 return (void*)( NNSiGetUIntPtr(ptr) + val ); in AddU32ToPtr() 134 AddU32ToCPtr(const void* ptr, u32 val) in AddU32ToCPtr() argument 136 return (const void*)( NNSiGetUIntPtr(ptr) + val ); in AddU32ToCPtr() 140 SubU32ToPtr(void* ptr, u32 val) in SubU32ToPtr() argument 142 return (void*)( NNSiGetUIntPtr(ptr) - val ); in SubU32ToPtr() 146 SubU32ToCPtr(const void* ptr, u32 val) in SubU32ToCPtr() argument 148 return (const void*)( NNSiGetUIntPtr(ptr) - val ); in SubU32ToCPtr()
|
| D | fnd_DetailHeapCommon.h | 161 #define SetFillValForHeap(type, val) (0) argument 165 u32 val);
|
| D | fnd_DetailHeapCommon.cpp | 316 u32 val in SetFillValForHeap() argument 323 sFillVals[type] = val; in SetFillValForHeap()
|
| /CTR-SDK-4.2.5/sources/libraries/math/ |
| D | math_Triangular.cpp | 354 f32 val; in AtanFIdx_() local 362 val = sArcTanTbl[idx].atan_val + r * sArcTanTbl[idx].atan_delta; in AtanFIdx_() 364 return val; in AtanFIdx_() 384 f32 val; in SinFIdx() local 400 val = internal::gSinCosTbl[idx].sin_val + r * internal::gSinCosTbl[idx].sin_delta; in SinFIdx() 402 return (fidx < 0.0f) ? -val: val; in SinFIdx() 417 …f32 val = internal::gSinCosTbl[i].sin_val + U16ToF32(d) * (1.f / 256.f) * internal::gSinCosTbl[i].… in SinIdx() local 419 val = (idx >> 31) ? -val : val; in SinIdx() 421 return val; in SinIdx()
|
| /CTR-SDK-4.2.5/sources/libraries/cx/ |
| D | cx_Uncompression.cpp | 528 u16 val; in UncompressLH() local 539 val = *(nodep + offset); in UncompressLH() 550 if ( val < 0x100 ) in UncompressLH() 553 dstp[dstCnt++] = (u8)val; in UncompressLH() 558 u16 length = (u16)( (val & 0xFF) + 3 ); in UncompressLH() 568 val = *(nodep + offset); in UncompressLH() 579 offset_bit = val; in UncompressLH() 580 val = 0; in UncompressLH() 583 val = 1; in UncompressLH() 586 val <<= 1; in UncompressLH() [all …]
|
| D | cx_SecureUncompression.cpp | 966 u16 val; in SecureUncompressLH() local 981 val = *(nodep + offset); in SecureUncompressLH() 992 if ( val < 0x100 ) in SecureUncompressLH() 995 dstp[dstCnt++] = (u8)val; in SecureUncompressLH() 1000 u16 length = (u16)( (val & 0xFF) + 3 ); in SecureUncompressLH() 1015 val = *(nodep + offset); in SecureUncompressLH() 1026 offset_bit = val; in SecureUncompressLH() 1027 val = 0; in SecureUncompressLH() 1030 val = 1; in SecureUncompressLH() 1033 val <<= 1; in SecureUncompressLH() [all …]
|
| D | cx_StreamingUncompression.cpp | 756 s32 val; in ReadUncompLH() local 811 if ( ( val = BitReader_Read( &stream, 16 ) ) < 0 ) in ReadUncompLH() 815 …context->tableSize9 = (internal::ForceConvertEndian16( (u16)val ) + 1) * 4 * 8; // shown with the … in ReadUncompLH() 824 if ( ( val = BitReader_Read( &stream, LENGTH_BITS ) ) < 0 ) in ReadUncompLH() 831 context->huffTable9[ context->tableIdx++ ] = (u16)val; in ReadUncompLH() 840 if ( ( val = BitReader_Read( &stream, (u8)context->tableSize9 ) ) < 0 ) in ReadUncompLH() 857 if ( ( val = BitReader_Read( &stream, (OFFSET_BITS > 8)? 16 : 8 ) ) < 0 ) in ReadUncompLH() 862 context->tableSize12 = (internal::ForceConvertEndian16( (u16)val ) + 1) * 4 * 8; in ReadUncompLH() 864 context->tableSize12 = ((u16)val + 1) * 4 * 8; in ReadUncompLH() 874 if ( ( val = BitReader_Read( &stream, OFFSET_BITS ) ) < 0 ) in ReadUncompLH() [all …]
|
| D | cx_Compression.cpp | 1206 u8 val = srcp[ i ]; in HuffConvertData() local 1209 bitStream = (bitStream << table[ val ].PaDepth) | table[ val ].HuffCode; in HuffConvertData() 1210 streamLength += table[ val ].PaDepth; in HuffConvertData() 1230 srcTmp = (u8)( val >> 4 ); // First four bits come later in HuffConvertData() 1234 …srcTmp = (u8)( val & 0x0F ); // Last four bits come first (because the decoder accesses in a Lit… in HuffConvertData()
|
| /CTR-SDK-4.2.5/sources/libraries/dbg/ |
| D | dbg_Dump.cpp | 77 u8 val = reinterpret_cast<const u8*>(p)[memPos]; in DumpMemory() local 78 bufPos += nstd::TSPrintf(&buffer[bufPos], " %02x", val); in DumpMemory() 79 if (std::isprint(val)) in DumpMemory() 81 bufferString[col] = val; in DumpMemory()
|
| /CTR-SDK-4.2.5/sources/libraries/fnd/ |
| D | fnd_HeapBase.cpp | 55 void HeapBase::SetFillValue(HeapFillType type, u32 val) in SetFillValue() argument 58 (void)detail::SetFillValForHeap(type, val); in SetFillValue() 61 NN_UNUSED_VAR(val); in SetFillValue()
|
| /CTR-SDK-4.2.5/include/nn/fnd/ |
| D | fnd_Allocator.h | 95 void construct(pointer p, const T& val) { new (static_cast<void*>(p)) T(val); } in construct() argument 125 void construct(pointer p, const T& val) { new (static_cast<void*>(p)) T(val); } in construct() argument
|
| D | fnd_HeapBase.h | 91 static void SetFillValue(HeapFillType type, bit32 val);
|
| /CTR-SDK-4.2.5/include/nn/fnd/ARMv6/ |
| D | fnd_Interlocked.h | 34 static int StoreRegEx(T val, volatile T* ptr) { return __strex(val, ptr); } in StoreRegEx() 40 static int StoreRegEx(s64 val, volatile s64* ptr) { return __strexd(val, ptr); }
|
| /CTR-SDK-4.2.5/sources/libraries/rdt/CTR/ |
| D | rdt_Utility.cpp | 111 u_long val = 1; in SetupServerSide() local 112 int ret = ioctlsocket(sock, FIONBIO, &val); in SetupServerSide() 149 u_long val = 1; in SetupClientSide() local 150 int ret = ioctlsocket(sock, FIONBIO, &val); in SetupClientSide()
|
| /CTR-SDK-4.2.5/include/nn/util/ |
| D | util_Color.h | 484 u32 val = *reinterpret_cast<const u32*>(this); in ToU32() local 485 return (u32)( (((val) >> 24UL) & 0x000000FFUL) | in ToU32() 486 (((val) >> 8UL) & 0x0000FF00UL) | in ToU32() 487 (((val) << 8UL) & 0x00FF0000UL) | in ToU32() 488 (((val) << 24UL) & 0xFF000000UL) ); in ToU32() 1063 void operator = (const FloatColor& val) { r = val.r; g = val.g; b = val.b; a = val.a; }
|
| /CTR-SDK-4.2.5/documents/api/nn/fs/briefing/ |
| D | savedata_calc.js | 20 function AdjustAlignment(val, alignment) argument 22 return ((val + (alignment - 1)) & ~(alignment - 1)); 29 function CntLz(val) argument 37 x = val >> c; 41 val = x; 46 return (n - val); 53 function IsPwr2(val) argument 55 return (0 == (val & (val - 1))); 62 function ILog2(val) argument 64 return 31 - CntLz(val);
|
| /CTR-SDK-4.2.5/include/nn/socket/ |
| D | socket_IpcWrapper.h | 50 Result Fcntl( s32* rval, s32 s, s32 cmd, s32 val );
|
| D | socket_User.h | 104 nn::Result Fcntl( s32* rval, s32 s, s32 cmd, s32 val );
|