Home
last modified time | relevance | path

Searched defs:x (Results 1 – 25 of 142) sorted by relevance

123456

/TwlSDK-5.1.0/include/nitro/math/
Dmath.h80 #define MATH_CLAMP(x, low, high) ( ( (x) > (high) ) ? (high) : ( ( (x) < (low) ) ? (low) : (x) ) ) argument
150 #define MATH_DIVUP(x, base) (((x) + ((base)-1)) / (base)) argument
162 #define MATH_ROUNDUP(x, base) (((x) + ((base)-1)) & ~((base)-1)) argument
174 #define MATH_ROUNDDOWN(x, base) ((x) & ~((base)-1)) argument
185 #define MATH_ROUNDUP32(x) MATH_ROUNDUP(x, 32) argument
196 #define MATH_ROUNDDOWN32(x) MATH_ROUNDDOWN(x, 32) argument
216 SDK_INLINE u32 MATH_CountLeadingZerosInline(u32 x) in MATH_CountLeadingZerosInline()
235 #define MATH_CountLeadingZeros(x) PLATFORM_INTRINSIC_FUNCTION_BIT_CLZ32(x) argument
254 #define MATH_CLZ(x) MATH_CountLeadingZeros(x) argument
266 SDK_INLINE int MATH_ILog2(u32 x) in MATH_ILog2()
[all …]
/TwlSDK-5.1.0/build/libraries/math/common/src/
Dmath.c33 u32 MATH_CountLeadingZerosFunc(u32 x) in MATH_CountLeadingZerosFunc()
47 u32 MATH_CountLeadingZerosFunc(u32 x) in MATH_CountLeadingZerosFunc()
101 u8 MATH_CountPopulation(u32 x) in MATH_CountPopulation()
Ddgt_md5.c41 #define F(x, y, z) (((x) & (y)) | ((~x) & (z))) argument
42 #define G(x, y, z) (((x) & (z)) | ((y) & (~z))) argument
43 #define H(x, y, z) ((x) ^ (y) ^ (z)) argument
44 #define I(x, y, z) ((y) ^ ((x) | (~z))) argument
45 #define ROTL(x, n) (((x) << (n)) | ((x) >> (32-(n)))) argument
49 inline static u32 CalcRound1(u32 a, u32 b, u32 c, u32 d, u32 x, u32 s, u32 t) in CalcRound1()
54 inline static u32 CalcRound2(u32 a, u32 b, u32 c, u32 d, u32 x, u32 s, u32 t) in CalcRound2()
59 inline static u32 CalcRound3(u32 a, u32 b, u32 c, u32 d, u32 x, u32 s, u32 t) in CalcRound3()
64 inline static u32 CalcRound4(u32 a, u32 b, u32 c, u32 d, u32 x, u32 s, u32 t) in CalcRound4()
162 u32 *x; in ProcessBlock() local
Dnet_sha256.c47 #define SHA256_ROTR(r, x) (NETRotateLeft32((32-r),x)) argument
48 #define SHA256_SHR(s, x) (x>>s) argument
50 #define SHA256_CH(x, y, z) (((x)&(y))^((~x)&(z))) argument
51 #define SHA256_MAJ(x, y, z) (((x)&(y))^((x)&(z))^((y)&(z))) argument
53 #define SHA256_LSIGMA_0(x) \ argument
56 #define SHA256_LSIGMA_1(x) \ argument
59 #define SHA256_SSIGMA_0(x) \ argument
62 #define SHA256_SSIGMA_1(x) \ argument
/TwlSDK-5.1.0/build/demos/mb/multiboot/src/
Ddispfunc.c39 void ObjSet(int objNo, int x, int y, int charNo, int paletteNo) in ObjSet()
51 void ObjSetString(int startobjNo, int x, int y, char *string, int paletteNo) in ObjSetString()
103 static void BgiPutChar(s16 x, s16 y, u8 palette, char c, u8 lcd) in BgiPutChar()
115 static void BgiPutStringN(s16 x, s16 y, u8 palette, char *text, u32 num, u8 lcd) in BgiPutStringN()
179 void BgPrintf(s16 x, s16 y, u8 palette, char *text, ...) in BgPrintf()
195 void BgPutString(s16 x, s16 y, u8 palette, char *text) in BgPutString()
201 void BgPutStringN(s16 x, s16 y, u8 palette, char *text, u32 num) in BgPutStringN()
208 void BgPutChar(s16 x, s16 y, u8 palette, char c) in BgPutChar()
224 void BgPrintfSub(s16 x, s16 y, u8 palette, char *text, ...) in BgPrintfSub()
239 void BgPutStringSub(s16 x, s16 y, u8 palette, char *text) in BgPutStringSub()
[all …]
/TwlSDK-5.1.0/build/libraries/fx/common/src/
Dfx_atanidx.c166 u16 FX_AtanIdx(fx32 x) in FX_AtanIdx()
212 u16 FX_Atan2Idx(fx32 y, fx32 x) in FX_Atan2Idx()
Dfx_atan.c171 fx16 FX_Atan(fx32 x) in FX_Atan()
217 fx16 FX_Atan2(fx32 y, fx32 x) in FX_Atan2()
Dfx_mtx22.c22 inline fx32 mul64(fx64 x, fx32 y) in mul64()
52 asm void MTX_Scale22_(register MtxFx22* pDst, register fx32 x, register fx32 y) in MTX_Scale22_()
89 void MTX_ScaleApply22(const MtxFx22 *pSrc, MtxFx22 *pDst, fx32 x, fx32 y) in MTX_ScaleApply22()
180 register fx32 x, y; in MTX_Concat22() local
Dfx_cp.c109 fx32 FX_Sqrt(fx32 x) in FX_Sqrt()
134 fx32 FX_InvSqrt(fx32 x) in FX_InvSqrt()
220 void FX_SqrtAsync(fx32 x) in FX_SqrtAsync()
245 void FX_SqrtAsyncImm(fx32 x) in FX_SqrtAsyncImm()
Dfx_asinacosidx.c40 u16 FX_AsinIdx(fx32 x) in FX_AsinIdx()
95 u16 FX_AcosIdx(fx32 x) in FX_AcosIdx()
/TwlSDK-5.1.0/include/nitro/gx/
Dgx_vramcnt.h70 #define GX_VRAM_LCDC_ASSERT(x) \ argument
106 #define GX_VRAM_BG_ASSERT(x) \ argument
131 #define GX_VRAM_BG_ASSERT_EX_1(x) \ argument
140 #define GX_VRAM_BG_ASSERT_EX_2(x) \ argument
176 #define GX_VRAM_OBJ_ASSERT(x) \ argument
201 #define GX_VRAM_ARM7_ASSERT(x) \ argument
233 #define GX_VRAM_TEX_ASSERT(x) \ argument
266 #define GX_VRAM_CLRIMG_ASSERT(x) \ argument
290 #define GX_VRAM_TEXPLTT_ASSERT(x) \ argument
312 #define GX_VRAM_BGEXTPLTT_ASSERT(x) \ argument
[all …]
Dg3imm.h278 static inline void G3_Scale(fx32 x, fx32 y, fx32 z) in G3_Scale()
297 static inline void G3_Translate(fx32 x, fx32 y, fx32 z) in G3_Translate()
333 static inline void G3_Normal(fx16 x, fx16 y, fx16 z) in G3_Normal()
373 static inline void G3_Vtx(fx16 x, fx16 y, fx16 z) in G3_Vtx()
390 static inline void G3_Vtx10(fx16 x, fx16 y, fx16 z) in G3_Vtx10()
407 static inline void G3_VtxXY(fx16 x, fx16 y) in G3_VtxXY()
424 static inline void G3_VtxXZ(fx16 x, fx16 z) in G3_VtxXZ()
458 static inline void G3_VtxDiff(fx16 x, fx16 y, fx16 z) in G3_VtxDiff()
604 static inline void G3_LightVector(GXLightId lightID, fx16 x, fx16 y, fx16 z) in G3_LightVector()
733 static inline void G3_PositionTest(fx16 x, fx16 y, fx16 z) in G3_PositionTest()
[all …]
Dg3.h131 #define GX_VALID_OPCODE_ASSERT(x) SDK_ASSERT((x == 0xFF) || ((x >= 0) && (x <= 0x72))) argument
145 #define GX_MTXMODE_ASSERT(x) \ argument
153 #define GX_MTX_POP_NUM_ASSERT(x) SDK_MINMAX_ASSERT(x, -30, 31) argument
159 #define GX_MTX_STORE_NUM_ASSERT(x) SDK_MINMAX_ASSERT(x, 0, 30) argument
164 #define GX_MTX_RESTORE_NUM_ASSERT(x) SDK_MINMAX_ASSERT(x, 0, 30) argument
178 #define GX_BEGIN_ASSERT(x) \ argument
191 #define GX_SORTMODE_ASSERT(x) \ argument
201 #define GX_BUFFERMODE_ASSERT(x) \ argument
215 #define GX_POLYGON_ATTR_POLYGONID_ASSERT(x) GX_POLYGONID_ASSERT(x) argument
216 #define GX_POLYGON_ATTR_ALPHA_ASSERT(x) GX_ALPHA_ASSERT(x) argument
[all …]
Dgx_capture.h63 #define GX_CAPTURE_DEST_ASSERT(x) \ argument
76 #define GX_CAPTURE_SIZE_ASSERT(x) \ argument
86 #define GX_CAPTURE_SRCA_ASSERT(x) \ argument
99 #define GX_CAPTURE_SRCB_ASSERT(x) \ argument
114 #define GX_CAPTURE_MODE_ASSERT(x) SDK_MINMAX_ASSERT(x, GX_CAPTURE_MODE_A, GX_CAPTURE_MODE_AB) argument
Dg3c.h307 static inline void G3CS_Scale(GXDLInfo *info, fx32 x, fx32 y, fx32 z) in G3CS_Scale()
326 static inline void G3CS_Translate(GXDLInfo *info, fx32 x, fx32 y, fx32 z) in G3CS_Translate()
362 static inline void G3CS_Normal(GXDLInfo *info, fx16 x, fx16 y, fx16 z) in G3CS_Normal()
404 static inline void G3CS_Vtx(GXDLInfo *info, fx16 x, fx16 y, fx16 z) in G3CS_Vtx()
422 static inline void G3CS_Vtx10(GXDLInfo *info, fx16 x, fx16 y, fx16 z) in G3CS_Vtx10()
440 static inline void G3CS_VtxXY(GXDLInfo *info, fx16 x, fx16 y) in G3CS_VtxXY()
458 static inline void G3CS_VtxXZ(GXDLInfo *info, fx16 x, fx16 z) in G3CS_VtxXZ()
495 static inline void G3CS_VtxDiff(GXDLInfo *info, fx16 x, fx16 y, fx16 z) in G3CS_VtxDiff()
655 static inline void G3CS_LightVector(GXDLInfo *info, GXLightId lightID, fx16 x, fx16 y, fx16 z) in G3CS_LightVector()
807 static inline void G3CS_PositionTest(GXDLInfo *info, fx16 x, fx16 y, fx16 z) in G3CS_PositionTest()
[all …]
Dg3b.h169 #define GXBS_CURR_ALIGNMENT_ASSERT(x) SDK_ASSERT(((u32)x->curr_cmd & 0x03) == 0) argument
410 static inline void G3BS_Scale(GXDLInfo *info, fx32 x, fx32 y, fx32 z) in G3BS_Scale()
429 static inline void G3BS_Translate(GXDLInfo *info, fx32 x, fx32 y, fx32 z) in G3BS_Translate()
464 static inline void G3BS_Normal(GXDLInfo *info, fx16 x, fx16 y, fx16 z) in G3BS_Normal()
506 static inline void G3BS_Vtx(GXDLInfo *info, fx16 x, fx16 y, fx16 z) in G3BS_Vtx()
524 static inline void G3BS_Vtx10(GXDLInfo *info, fx16 x, fx16 y, fx16 z) in G3BS_Vtx10()
542 static inline void G3BS_VtxXY(GXDLInfo *info, fx16 x, fx16 y) in G3BS_VtxXY()
560 static inline void G3BS_VtxXZ(GXDLInfo *info, fx16 x, fx16 z) in G3BS_VtxXZ()
597 static inline void G3BS_VtxDiff(GXDLInfo *info, fx16 x, fx16 y, fx16 z) in G3BS_VtxDiff()
757 static inline void G3BS_LightVector(GXDLInfo *info, GXLightId lightID, fx16 x, fx16 y, fx16 z) in G3BS_LightVector()
[all …]
/TwlSDK-5.1.0/include/nitro/fx/
Dfx_vec.h67 SDK_INLINE void VEC_Set(VecFx32 *a, fx32 x, fx32 y, fx32 z) in VEC_Set()
85 SDK_INLINE void VEC_Fx16Set(VecFx16 *a, fx16 x, fx16 y, fx16 z) in VEC_Fx16Set()
/TwlSDK-5.1.0/build/demos/mb/multiboot-Model/common/src/
Ddisp.c226 void ObjSet(s32 objNo, s32 x, s32 y, s32 charNo, s32 paletteNo) in ObjSet()
246 void ObjSetString(s32 startobjNo, s32 x, s32 y, const char *string, s32 paletteNo) in ObjSetString()
311 void BgPutStringN(s32 x, s32 y, s32 palette, const char *text, s32 num) in BgPutStringN()
338 void BgPutChar(s32 x, s32 y, s32 palette, s8 c) in BgPutChar()
352 void BgPutString(s32 x, s32 y, s32 palette, const char *text) in BgPutString()
366 void BgPrintStr(s32 x, s32 y, s32 palette, const char *text, ...) in BgPrintStr()
426 void BgColorString(s16 x, s16 y, s16 length, u8 palette) in BgColorString()
/TwlSDK-5.1.0/build/demos/wvr/with_mb/common/src/
Ddisp.c226 void ObjSet(s32 objNo, s32 x, s32 y, s32 charNo, s32 paletteNo) in ObjSet()
246 void ObjSetString(s32 startobjNo, s32 x, s32 y, const char *string, s32 paletteNo) in ObjSetString()
311 void BgPutStringN(s32 x, s32 y, s32 palette, const char *text, s32 num) in BgPutStringN()
338 void BgPutChar(s32 x, s32 y, s32 palette, s8 c) in BgPutChar()
352 void BgPutString(s32 x, s32 y, s32 palette, const char *text) in BgPutString()
366 void BgPrintStr(s32 x, s32 y, s32 palette, const char *text, ...) in BgPrintStr()
426 void BgColorString(s16 x, s16 y, s16 length, u8 palette) in BgColorString()
/TwlSDK-5.1.0/build/demos/mb/fake_child/common/src/
Ddisp.c229 void ObjSet(s32 objNo, s32 x, s32 y, s32 charNo, s32 paletteNo) in ObjSet()
249 void ObjSetString(s32 startobjNo, s32 x, s32 y, const char *string, s32 paletteNo) in ObjSetString()
314 void BgPutStringN(s32 x, s32 y, s32 palette, const char *text, s32 num) in BgPutStringN()
341 void BgPutChar(s32 x, s32 y, s32 palette, s8 c) in BgPutChar()
355 void BgPutString(s32 x, s32 y, s32 palette, const char *text) in BgPutString()
369 void BgPrintStr(s32 x, s32 y, s32 palette, const char *text, ...) in BgPrintStr()
429 void BgColorString(s16 x, s16 y, s16 length, u8 palette) in BgColorString()
/TwlSDK-5.1.0/build/demos/mb/cloneboot/src/
Ddisp.c226 void ObjSet(s32 objNo, s32 x, s32 y, s32 charNo, s32 paletteNo) in ObjSet()
246 void ObjSetString(s32 startobjNo, s32 x, s32 y, const char *string, s32 paletteNo) in ObjSetString()
311 void BgPutStringN(s32 x, s32 y, s32 palette, const char *text, s32 num) in BgPutStringN()
338 void BgPutChar(s32 x, s32 y, s32 palette, s8 c) in BgPutChar()
352 void BgPutString(s32 x, s32 y, s32 palette, const char *text) in BgPutString()
366 void BgPrintStr(s32 x, s32 y, s32 palette, const char *text, ...) in BgPrintStr()
426 void BgColorString(s16 x, s16 y, s16 length, u8 palette) in BgColorString()
/TwlSDK-5.1.0/include/nitro/mi/
DexMemory.h165 #define MI_PROCESSOR_ASSERT( x ) SDK_ASSERT( (u32)x <= MI_PROCESSOR_ARM7 ) argument
166 #define MI_PHICLOCK_ASSERT( x ) SDK_ASSERT( (u32)x <= MIi_PHI_CLOCK_16MHZ ) argument
169 #define MI_ROMCYCLE1_ASSERT( x ) SDK_ASSERT( (u32)x <= MI_CTRDG_ROMCYCLE1_18 ) argument
170 #define MI_ROMCYCLE2_ASSERT( x ) SDK_ASSERT( (u32)x <= MI_CTRDG_ROMCYCLE2_4 ) argument
171 #define MI_RAMCYCLE_ASSERT( x ) SDK_ASSERT( (u32)x <= MI_CTRDG_RAMCYCLE_18 ) argument
174 #define MI_WMWAIT0_1_ASSERT( x ) SDK_ASSERT( (u32)x <= MI_WMWAIT0_1_17 ) argument
175 #define MI_WMWAIT0_2_ASSERT( x ) SDK_ASSERT( (u32)x <= MI_WMWAIT0_2_3 ) argument
176 #define MI_WMWAIT1_1_ASSERT( x ) SDK_ASSERT( (u32)x <= MI_WMWAIT1_1_17 ) argument
177 #define MI_WMWAIT1_2_ASSERT( x ) SDK_ASSERT( (u32)x <= MI_WMWAIT1_2_3 ) argument
179 #define MI_PHICONTROL_ASSERT( x ) SDK_ASSERT( (u32)x <= MI_PHI_CLOCK_33MHZ ) argument
/TwlSDK-5.1.0/build/tools/makelcf.TWL/
Dspec.l24 #define RETURN(x) { debug_printf( "%s [%s]\n", #x, spec_yytext ); return(x); } argument
/TwlSDK-5.1.0/build/tools/makelcf/
Dspec.l109 #define RETURN(x) { debug_printf( "%s [%s]\n", #x, spec_yytext ); return(x); } argument
/TwlSDK-5.1.0/build/demos.TWL/mi/wramManager-1/src/
Dmain.c92 int x = MI_FreeWram_B( MI_WRAM_ARM7 ); in NitroMain() local
104 int x = MI_FreeWram_B( MI_WRAM_ARM9 ); in NitroMain() local
116 int x = MI_SwitchWramSlot_B( 2, MI_WRAM_SIZE_64KB, MI_WRAM_ARM9, MI_WRAM_DSP ); in NitroMain() local

123456