Home
last modified time | relevance | path

Searched refs:val (Results 1 – 21 of 21) sorted by relevance

/CTR-SDK-4.2.5/include/nn/gd/CTR/
Dgd_Utils.h94 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/
Dgr_Utility.h447 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/
Dfont_BinaryFileFormat.h86 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/
Dfnd_DetailHeapCommonImpl.h96 #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()
Dfnd_DetailHeapCommon.h161 #define SetFillValForHeap(type, val) (0) argument
165 u32 val);
Dfnd_DetailHeapCommon.cpp316 u32 val in SetFillValForHeap() argument
323 sFillVals[type] = val; in SetFillValForHeap()
/CTR-SDK-4.2.5/sources/libraries/math/
Dmath_Triangular.cpp354 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/
Dcx_Uncompression.cpp528 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 …]
Dcx_SecureUncompression.cpp966 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 …]
Dcx_StreamingUncompression.cpp756 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 …]
Dcx_Compression.cpp1206 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/
Ddbg_Dump.cpp77 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/
Dfnd_HeapBase.cpp55 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/
Dfnd_Allocator.h95 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
Dfnd_HeapBase.h91 static void SetFillValue(HeapFillType type, bit32 val);
/CTR-SDK-4.2.5/include/nn/fnd/ARMv6/
Dfnd_Interlocked.h34 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/
Drdt_Utility.cpp111 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/
Dutil_Color.h484 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/
Dsavedata_calc.js20 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/
Dsocket_IpcWrapper.h50 Result Fcntl( s32* rval, s32 s, s32 cmd, s32 val );
Dsocket_User.h104 nn::Result Fcntl( s32* rval, s32 s, s32 cmd, s32 val );