Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 55) sorted by relevance

123

/CTR-SDK-4.2.5/include/nn/math/
Dmath_Utility.h119 inline S Max(T a, U b, R c) in Max() argument
121 return (a >= b) ? ((a >= c) ? a: c) : ((b >= c) ? b: c); in Max()
135 inline T Max(T a, T b, T c) in Max() argument
137 return (a >= b) ? ((a >= c) ? a: c) : ((b >= c) ? b: c); in Max()
154 inline S Min(T a, U b, R c) in Min() argument
156 return (a <= b) ? ((a <= c) ? a: c) : ((b <= c) ? b: c); in Min()
170 inline T Min(T a, T b, T c) in Min() argument
172 return (a <= b) ? ((a <= c) ? a: c) : ((b <= c) ? b: c); in Min()
Dmath_Equation.h25 int SolveEquation2(f32* root, f32 a, f32 b, f32 c);
26 int SolveEquation3(f32* root, f32 a, f32 b, f32 c, f32 d);
27 int SolveEquation4(f32* root, f32 a, f32 b, f32 c, f32 d, f32 e);
Dmath_Triangular.h138 NN_MATH_INLINE void SinCosRad(f32* s, f32* c, f32 rad) { SinCosFIdx(s, c, NN_MATH_RAD_TO_FIDX(rad))… in SinCosRad() argument
179 NN_MATH_INLINE void SinCosDeg(f32* s, f32* c, f32 deg) { SinCosFIdx(s, c, NN_MATH_DEG_TO_FIDX(deg))… in SinCosDeg() argument
220 void SinCosIdx(f32* s, f32* c, u16 idx);
/CTR-SDK-4.2.5/sources/libraries/math/
Dmath_Equation.cpp72 SolveEquation2(f32* root, /*f32 a==1,*/ f32 b, f32 c) in SolveEquation2() argument
76 if( c < -EPS ) // c < 0 in SolveEquation2()
78 f32 r_c = FSqrt(-c); in SolveEquation2()
83 else if( c <= EPS ) // c == 0 in SolveEquation2()
96 f32 B = c / spow<2>(A); in SolveEquation2()
134 SolveEquation3(/*f32* root, f32 a==1,*/ f32 b, f32 c, f32 d) in SolveEquation3() argument
136 f32 q = (spow<2>(b) - 3 * c) / 9; in SolveEquation3()
137 f32 r = (2 * spow<3>(b) - 9 * b * c + 27 * d) / 54; in SolveEquation3()
186 SolveEquation2(f32* root, f32 a, f32 b, f32 c) in SolveEquation2() argument
207 f32 B = c / (a * A * A); in SolveEquation2()
[all …]
Dmath_Triangular.cpp603 f32 c; in Atan2FIdx() local
620 c = 0.f; in Atan2FIdx()
628 c = 64.f; in Atan2FIdx()
639 c = 0.f; in Atan2FIdx()
647 c = - 64.f; in Atan2FIdx()
661 c = 128.f; in Atan2FIdx()
669 c = 64.f; in Atan2FIdx()
680 c = - 128.f; in Atan2FIdx()
688 c = - 64.f; in Atan2FIdx()
695 c - AtanFIdx_(b/a): in Atan2FIdx()
[all …]
Dmath_Arithmetic.cpp722 int n, c; in CntLz_() local
725 c = 16; in CntLz_()
727 y = x >> c; in CntLz_()
730 n -= c; x = y; in CntLz_()
732 c >>= 1; in CntLz_()
733 } while(c != 0); in CntLz_()
/CTR-SDK-4.2.5/sources/libraries/tpl/CTR/
Dtpl_crc32.cpp125 int c = (n + m) / 2; in search_crc32_index() local
126 unsigned int k = *(const unsigned int *)(base + (width * c)); in search_crc32_index()
132 while(0 < c) in search_crc32_index()
134 unsigned int kk = *(const unsigned int *)(base + (width * (c - 1))); in search_crc32_index()
136 c--; in search_crc32_index()
138 return c; in search_crc32_index()
146 n = c + 1; in search_crc32_index()
151 m = c - 1; in search_crc32_index()
/CTR-SDK-4.2.5/include/nn/font/
Dfont_ResFontBase.h77 virtual bool SetAlternateChar(CharCode c);
84 virtual int GetCharWidth(CharCode c) const;
87 GetCharWidths(CharCode c) const;
91 CharCode c
94 virtual bool HasGlyph(CharCode c) const;
189 GlyphIndex GetGlyphIndex(CharCode c) const;
199 GlyphIndex FindGlyphIndex(CharCode c) const;
212 CharCode c
Dfont_PairFont.h86 CharCode c ); // New alternate character
98 … CharCode c // Character whose width is to be found
102 … CharCode c // Character whose width is to be found
107 … CharCode c // Character to obtain glyph information for.
110 … CharCode c // Character for which to get whether glyph information is present
Dfont_Font.h262 virtual bool SetAlternateChar(CharCode c) = 0;
276 virtual int GetCharWidth(CharCode c) const = 0;
285 GetCharWidths(CharCode c) const = 0;
294 CharCode c
304 CharCode c
Dfont_PackedFont.h202 bool PreloadSheet(CharCode c);
212 bool LockSheet(CharCode c);
222 CharCode c,
243 CharCode c
408 int GetSheetIndex(CharCode c) const;
/CTR-SDK-4.2.5/include/nn/dbg/CTR/
Ddbg_DirectPrint.h213 void PutChar( const nn::math::VEC2& pos, bool fillBg, char c );
223 void PutChar( const nn::math::VEC2& pos, char c );
235 void SetCharColor( const nn::util::Color8& c ) { m_CharColor = c; }; in SetCharColor() argument
249 void SetBgColor( const nn::util::Color8& c ) { m_BgColor = c; }; in SetBgColor() argument
/CTR-SDK-4.2.5/include/nn/hw/ARM/
Dreg_access.h39 #define HW_INST_MRC(a,b,c,d,e,v) __asm { mrc a,b,v,c,d,e } argument
41 #define HW_INST_MCR(a,b,c,d,e,v) __asm { mcr a,b,v,c,d,e } argument
64 #define HW_GET_CP15_C0(c,o,v) HW_INST_MRC(p15,0,c0,c,o,v) // Opcode_1 is fixed argument
73 #define HW_GET_CP15_C6(c,o,v) HW_INST_MRC(p15,0,c6,c,o,v) // Opcode_1 is fixed
76 #define HW_GET_CP15_C7(c,o,v) HW_INST_MRC(p15,0,c7,c,o,v) // Opcode_1 is fixed argument
77 #define HW_GET_CP15_C8(c,o,v) HW_INST_MRC(p15,0,c8,c,o,v) // Opcode_1 is fixed argument
85 #define HW_GET_CP15_C10(c,o,v) HW_INST_MRC(p15,0,c10,c,o,v) // Opcode_1 is fixed argument
87 #define HW_GET_CP15_C15(o1,c,o2,v) HW_INST_MRC(p15,o1,c15,c,o2,v) // not fixed all argument
89 #define HW_GET_CP15_C15_0(c,o,v) HW_INST_MRC(p15,0,c15,c,o,v) argument
90 #define HW_GET_CP15_C15_1(c,o,v) HW_INST_MRC(p15,1,c15,c,o,v) argument
[all …]
/CTR-SDK-4.2.5/sources/libraries/dbg/CTR/
Ddbg_DirectPrint.cpp160 char c = str[ offset ]; in PutString() local
161 if ( c == '\0' ) in PutString()
165 if ( c != '\n' ) in PutString()
168 PutChar( cursor, fillBg, c ); in PutString()
175 … if ( c == '\n' || ( autoLineFeed && str[ offset ] != '\n' && cursor.x + FONT_WIDTH >= boxWidth ) ) in PutString()
186 void DirectPrint::PutChar( const nn::math::VEC2& pos, char c ) in PutChar() argument
188 PutChar( pos, true, c ); in PutChar()
193 void DirectPrint::PutChar( const nn::math::VEC2& pos, bool fillBg, char c ) in PutChar() argument
206 if ( ( 0 <= c && c <= 0x20 ) || c == 0x7f ) in PutChar()
230 if( printable && FONT_BITMAP[ c - ' ' ][ int( FONT_HEIGHT ) - x - 1 ][ y ] ) in PutChar()
/CTR-SDK-4.2.5/include/nn/crypto/
Dcrypto_CtrEncryptor.h99 virtual void Initialize(const BlockCipher& c, const void* pIv, size_t ivSize) in Initialize() argument
100 { return m_Impl.Initialize(c, pIv, ivSize); } in Initialize()
168 const void* pIv, size_t ivSize, const BlockCipher& c) in Encrypt() argument
171 return e.Encryptor::Encrypt(pDst, dstSize, pSrc, srcSize, pIv, ivSize, c); in Encrypt()
Dcrypto_CtrDecryptor.h99 virtual void Initialize(const BlockCipher& c, const void* pIv, size_t ivSize) in Initialize() argument
100 { return m_Impl.Initialize(c, pIv, ivSize); } in Initialize()
169 const void* pIv, size_t ivSize, const BlockCipher& c) in Decrypt() argument
172 return e.Decryptor::Decrypt(pDst, dstSize, pSrc, srcSize, pIv, ivSize, c); in Decrypt()
Dcrypto_CcmDecryptor.h90 void Initialize(const BlockCipher& c, const void* pIv, size_t ivSize, in Initialize() argument
92 { return m_Impl.Initialize(c, pIv, ivSize, adataSize, cdataSize, macSize); } in Initialize()
222 const void* pMac, size_t macSize, const BlockCipher& c) in DecryptAndVerify() argument
225 e.Initialize(c, pIv, ivSize, adataSize, cdataSize, macSize); in DecryptAndVerify()
Dcrypto_CcmEncryptor.h95 void Initialize(const BlockCipher& c, const void* pIv, size_t ivSize, in Initialize() argument
97 { return m_Impl.Initialize(c, pIv, ivSize, adataSize, pdataSize, macSize); } in Initialize()
228 size_t macSize, const BlockCipher& c) in EncryptAndGenerate() argument
231 e.Initialize(c, pIv, ivSize, adataSize, pdataSize, macSize); in EncryptAndGenerate()
Dcrypto_Encryptor.h64 virtual void Initialize(const BlockCipher& c, const void* pIv, size_t ivSize) = 0;
133 const void* pIv, size_t ivSize, const BlockCipher& c);
Dcrypto_Decryptor.h59 virtual void Initialize(const BlockCipher& c, const void* pIv, size_t ivSize) = 0;
128 const void* pIv, size_t ivSize, const BlockCipher& c);
/CTR-SDK-4.2.5/sources/libraries/gr/CTR/
Dgr_Shader.cpp612 bit32 c = 0; in MakeOutAttrCommand_() local
620 … case 0 : value = 0x00 + c++; if (c == 2) clock |= 1 << 0; break; // Position in MakeOutAttrCommand_()
621 … case 1 : value = 0x04 + c++; clock |= 1 << 24; break; // Quaternion in MakeOutAttrCommand_()
622 … case 2 : value = 0x08 + c++; clock |= 1 << 1; break; // color in MakeOutAttrCommand_()
623 … case 3 : if (c < 2) value = 0x0c + c++; useTex = 1; clock |= 1 << 8; break; // texcoord0 in MakeOutAttrCommand_()
625 … case 5 : if (c < 2) value = 0x0e + c++; useTex = 1; clock |= 1 << 9; break; // texcoord1 in MakeOutAttrCommand_()
626 … case 6 : if (c < 2) value = 0x16 + c++; useTex = 1; clock |= 1 << 10; break; // texcoord2 in MakeOutAttrCommand_()
627 … case 8 : if (c < 3) value = 0x12 + c++; clock |= 1 << 24; break; // view in MakeOutAttrCommand_()
660 u32 c = 0; in MakeOutAttrCommand_() local
668 case 0 : value = 0x00 + c++; break; // Position in MakeOutAttrCommand_()
[all …]
Dgr_ShaderLite.cpp675 bit32 c = 0; in MakeOutAttrCommand_() local
683 … case 0 : value = 0x00 + c++; if (c == 2) clock |= 1 << 0; break; // position in MakeOutAttrCommand_()
684 … case 1 : value = 0x04 + c++; clock |= 1 << 24; break; // quaternion in MakeOutAttrCommand_()
685 … case 2 : value = 0x08 + c++; clock |= 1 << 1; break; // color in MakeOutAttrCommand_()
686 … case 3 : if (c < 2) value = 0x0c + c++; useTex = 1; clock |= 1 << 8; break; // texcoord0 in MakeOutAttrCommand_()
688 … case 5 : if (c < 2) value = 0x0e + c++; useTex = 1; clock |= 1 << 9; break; // texcoord1 in MakeOutAttrCommand_()
689 … case 6 : if (c < 2) value = 0x16 + c++; useTex = 1; clock |= 1 << 10; break; // texcoord2 in MakeOutAttrCommand_()
690 … case 8 : if (c < 3) value = 0x12 + c++; clock |= 1 << 24; break; // view in MakeOutAttrCommand_()
723 u32 c = 0; in MakeOutAttrCommand_() local
731 case 0 : value = 0x00 + c++; break; // position in MakeOutAttrCommand_()
[all …]
/CTR-SDK-4.2.5/include/nn/fslow/
Dfslow_IArchive.h45 Char c[MaxLength + 1]; member
66 m_Data.c[i] = s[i]; in ArchiveName()
109 operator const Char*() const { return m_Data.c; }
111 bool IsValid() const { return m_Data.c[0] != 0; } in IsValid()
/CTR-SDK-4.2.5/include/nn/os/
Dos_LightEvent.h159 const s32 c = *m_Counter; in IsManualReset() local
160 return (c == SIGNALED_MANUAL) || (c == NOT_SIGNALED_MANUAL); in IsManualReset()
/CTR-SDK-4.2.5/include/nn/crypto/detail/
Dcrypto_CtrMode.h42 void Initialize(const BlockCipher& c, const void* pIv, size_t ivSize);
49 int numBlocks, const BlockCipher& c);

123