Home
last modified time | relevance | path

Searched refs:y (Results 1 – 25 of 171) sorted by relevance

1234567

/TwlSDK-5.4/build/libraries/fx/common/src/
Dfx_trig.c42 static u64 FX_SinFx64c_internal(u64 y);
43 static u64 FX_CosFx64c_internal(u64 y);
47 static u64 FX_SinFx64c_internal(u64 y) in FX_SinFx64c_internal() argument
51 if (y == 0x100000000LL) in FX_SinFx64c_internal()
55 yy = y * y >> 32; in FX_SinFx64c_internal()
62 return tmp * y >> 32; in FX_SinFx64c_internal()
66 static u64 FX_CosFx64c_internal(u64 y) in FX_CosFx64c_internal() argument
70 if (y == 0x100000000LL) in FX_CosFx64c_internal()
74 yy = y * y >> 32; in FX_CosFx64c_internal()
98 fx64c y; in FX_SinFx64c() local
[all …]
Dfx_vec.c46 ab->y = a->y + b->y; in VEC_Add()
70 ab->y = a->y - b->y; in VEC_Subtract()
94 ab->y = (fx16)(a->y + b->y); in VEC_Fx16Add()
118 ab->y = (fx16)(a->y - b->y); in VEC_Fx16Subtract()
139 (fx64)a->y * b->y + (fx64)a->z * b->z + (1 << (FX64_SHIFT - 1))) >> FX64_SHIFT); in VEC_DotProduct()
159 tmp1 = (a->x * b->x) + (a->y * b->y); in VEC_Fx16DotProduct()
179 fx32 x, y, z; in VEC_CrossProduct() local
184 x = (fx32)(((fx64)a->y * b->z - (fx64)a->z * b->y + (1 << (FX64_SHIFT - 1))) >> FX64_SHIFT); in VEC_CrossProduct()
186 y = (fx32)(((fx64)a->z * b->x - (fx64)a->x * b->z + (1 << (FX64_SHIFT - 1))) >> FX64_SHIFT); in VEC_CrossProduct()
188 z = (fx32)(((fx64)a->x * b->y - (fx64)a->y * b->x + (1 << (FX64_SHIFT - 1))) >> FX32_SHIFT); in VEC_CrossProduct()
[all …]
Dfx_atan.c217 fx16 FX_Atan2(fx32 y, fx32 x) in FX_Atan2() argument
222 if (y > 0) in FX_Atan2()
226 if (x > y) in FX_Atan2()
228 a = y; in FX_Atan2()
233 else if (x < y) in FX_Atan2()
236 b = y; in FX_Atan2()
248 if (x < y) in FX_Atan2()
251 b = y; in FX_Atan2()
255 else if (x > y) in FX_Atan2()
257 a = y; in FX_Atan2()
[all …]
Dfx_atanidx.c212 u16 FX_Atan2Idx(fx32 y, fx32 x) in FX_Atan2Idx() argument
218 if (y > 0) in FX_Atan2Idx()
222 if (x > y) in FX_Atan2Idx()
224 a = y; in FX_Atan2Idx()
229 else if (x < y) in FX_Atan2Idx()
232 b = y; in FX_Atan2Idx()
244 if (x < y) in FX_Atan2Idx()
247 b = y; in FX_Atan2Idx()
251 else if (x > y) in FX_Atan2Idx()
253 a = y; in FX_Atan2Idx()
[all …]
/TwlSDK-5.4/build/demos/ctrdg/backup-1/src/
Ddraw.c62 static inline RGB555 *GetSurface(int x, int y) in GetSurface() argument
64 return drawi_common.next_surface + x + y * GX_LCD_SIZE_X; in GetSurface()
71 static inline BOOL IsBoundY(DrawiCommon * p, int y) in IsBoundY() argument
73 return (y >= p->clip.o.y) && (y < p->clip.t.y); in IsBoundY()
90 if (p->pos.y >= pc->clip.t.y) in NormalizeRegion()
94 if (p->pos.y - pc->clip.o.y < 0) in NormalizeRegion()
95 p->wid.y += p->pos.y - pc->clip.o.y, p->pos.y = pc->clip.o.y; in NormalizeRegion()
96 if (p->wid.y <= 0) in NormalizeRegion()
98 else if (p->wid.y > pc->clip.t.y - p->pos.y) in NormalizeRegion()
99 p->wid.y = pc->clip.t.y - p->pos.y; in NormalizeRegion()
[all …]
/TwlSDK-5.4/build/libraries/math/common/src/
Dmath.c49 u32 y; in MATH_CountLeadingZerosFunc() local
53 y = x >> 16; in MATH_CountLeadingZerosFunc()
54 if (y != 0) in MATH_CountLeadingZerosFunc()
57 x = y; in MATH_CountLeadingZerosFunc()
59 y = x >> 8; in MATH_CountLeadingZerosFunc()
60 if (y != 0) in MATH_CountLeadingZerosFunc()
63 x = y; in MATH_CountLeadingZerosFunc()
65 y = x >> 4; in MATH_CountLeadingZerosFunc()
66 if (y != 0) in MATH_CountLeadingZerosFunc()
69 x = y; in MATH_CountLeadingZerosFunc()
[all …]
/TwlSDK-5.4/build/demos/ctrdg/backup-1/include/
Ddraw.h43 int y; member
135 void FillRect(int x, int y, int wx, int wy, RGB555 col);
136 void BlitRect(int x, int y, int wx, int wy, RGB555 * src, int stroke);
137 void TransRect(int x, int y, int wx, int wy, RGB555 * src, int stroke);
141 static inline void MoveTo(int x, int y) in MoveTo() argument
143 cur_pt.x = x, cur_pt.y = y; in MoveTo()
146 static inline void LineTo(int x, int y) in LineTo() argument
148 DrawLine(cur_pt.x, cur_pt.y, x, y, col_text); in LineTo()
149 MoveTo(x, y); in LineTo()
152 void DrawTextLen(int x, int y, const char *s, int n);
[all …]
/TwlSDK-5.4/build/demos/mi/dmaCallback-1/src/
Dmain.c27 void DisplayCounter( int objNo, int y, u32 count );
29 void SetObj(int objNo, int x, int y, int charNo, int paletteNo);
133 void DisplayCounter( int objNo, int y, u32 count ) in DisplayCounter() argument
135 SetObj(objNo+0, 50, y, valToChar((int)((count>>28)&0xf)), 2); in DisplayCounter()
136 SetObj(objNo+1, 60, y, valToChar((int)((count>>24)&0xf)), 2); in DisplayCounter()
137 SetObj(objNo+2, 70, y, valToChar((int)((count>>20)&0xf)), 2); in DisplayCounter()
138 SetObj(objNo+3, 80, y, valToChar((int)((count>>16)&0xf)), 2); in DisplayCounter()
139 SetObj(objNo+4, 90, y, valToChar((int)((count>>12)&0xf)), 2); in DisplayCounter()
140 SetObj(objNo+5, 100, y, valToChar((int)((count>> 8)&0xf)), 2); in DisplayCounter()
141 SetObj(objNo+6, 110, y, valToChar((int)((count>> 4)&0xf)), 2); in DisplayCounter()
[all …]
/TwlSDK-5.4/build/demos/gx/UnitTours/DEMOLib/include/
DDEMOBitmap.h40 #define DEMOFillRect(x, y, wx, wy, color) DEMOiFillRect(x, y, wx, wy, DEMOVerifyGXRgb(color)) argument
42 #define DEMODrawFrame(x, y, wx, wy, color) DEMOiDrawFrame(x, y, wx, wy, DEMOVerifyGXRgb(color)) argument
124 void DEMOiFillRect(int x, int y, int wx, int wy, GXRgb color);
140 void DEMOBlitRect(int x, int y, int wx, int wy, const GXRgb *image, int stroke);
156 void DEMOBlitTex16(int x, int y, int wx, int wy, const void *chr, const GXRgb *plt);
186 void DEMOiDrawFrame(int x, int y, int wx, int wy, GXRgb color);
199 void DEMODrawText(int x, int y, const char *format, ...);
223 void DEMOPutString(int x, int y, const char *format, ...);
248 void DEMOSetViewPort(int x, int y, int wx, int wy);
/TwlSDK-5.4/build/demos/wxc/relayStation-2/src/
Ddispfunc.c42 static void BgiPutChar(int x, int y, u8 palette, char c, u8 lcd);
43 static void BgiPutStringN(int x, int y, u8 palette, const char *text, u32 num, u8 lcd);
46 static void BgiPutChar(int x, int y, u8 palette, char c, u8 lcd) in BgiPutChar() argument
50 vscr[((y * 32) + x) % (32 * 32)] = (u16)((palette << 12) | c); in BgiPutChar()
54 vscr_sub[((y * 32) + x) % (32 * 32)] = (u16)((palette << 12) | c); in BgiPutChar()
58 static void BgiPutStringN(int x, int y, u8 palette, const char *text, u32 num, u8 lcd) in BgiPutStringN() argument
69 BgiPutChar((s16)(x + i), y, palette, text[i], lcd); in BgiPutStringN()
122 void BgPrintf(int x, int y, u8 palette, const char *text, ...) in BgPrintf() argument
133 BgPutString(x, y, palette, temp); in BgPrintf()
138 void BgPutString(int x, int y, u8 palette, const char *text) in BgPutString() argument
[all …]
/TwlSDK-5.4/build/demos/mb/multiboot/src/
Ddispfunc.c39 void ObjSet(int objNo, int x, int y, int charNo, int paletteNo) in ObjSet() argument
43 y, in ObjSet()
51 void ObjSetString(int startobjNo, int x, int y, char *string, int paletteNo) in ObjSetString() argument
56 ObjSet(startobjNo + i, x + i * 8, y, (int)string[i], paletteNo); in ObjSetString()
99 static void BgiPutChar(s16 x, s16 y, u8 palette, char c, u8 lcd);
100 static void BgiPutStringN(s16 x, s16 y, u8 palette, char *text, u32 num, u8 lcd);
103 static void BgiPutChar(s16 x, s16 y, u8 palette, char c, u8 lcd) in BgiPutChar() argument
107 vscr[((y * 32) + x) % (32 * 32)] = (u16)((palette << 12) | c); in BgiPutChar()
111 vscr_sub[((y * 32) + x) % (32 * 32)] = (u16)((palette << 12) | c); in BgiPutChar()
115 static void BgiPutStringN(s16 x, s16 y, u8 palette, char *text, u32 num, u8 lcd) in BgiPutStringN() argument
[all …]
/TwlSDK-5.4/include/nitro/gx/
Dg3imm.h59 static void G3_Scale(fx32 x, fx32 y, fx32 z);
60 static void G3_Translate(fx32 x, fx32 y, fx32 z);
62 static void G3_Normal(fx16 x, fx16 y, fx16 z);
64 static void G3_Vtx(fx16 x, fx16 y, fx16 z);
65 static void G3_Vtx10(fx16 x, fx16 y, fx16 z);
66 static void G3_VtxXY(fx16 x, fx16 y);
68 static void G3_VtxYZ(fx16 y, fx16 z);
69 static void G3_VtxDiff(fx16 x, fx16 y, fx16 z);
80 static void G3_LightVector(GXLightId lightID, fx16 x, fx16 y, fx16 z);
88 static void G3_PositionTest(fx16 x, fx16 y, fx16 z);
[all …]
Dg3c.h67 static void G3CS_Scale(GXDLInfo *info, fx32 x, fx32 y, fx32 z);
68 static void G3CS_Translate(GXDLInfo *info, fx32 x, fx32 y, fx32 z);
70 static void G3CS_Normal(GXDLInfo *info, fx16 x, fx16 y, fx16 z);
72 static void G3CS_Vtx(GXDLInfo *info, fx16 x, fx16 y, fx16 z);
73 static void G3CS_Vtx10(GXDLInfo *info, fx16 x, fx16 y, fx16 z);
74 static void G3CS_VtxXY(GXDLInfo *info, fx16 x, fx16 y);
76 static void G3CS_VtxYZ(GXDLInfo *info, fx16 y, fx16 z);
77 static void G3CS_VtxDiff(GXDLInfo *info, fx16 x, fx16 y, fx16 z);
91 static void G3CS_LightVector(GXDLInfo *info, GXLightId lightID, fx16 x, fx16 y, fx16 z);
99 static void G3CS_PositionTest(GXDLInfo *info, fx16 x, fx16 y, fx16 z);
[all …]
/TwlSDK-5.4/build/demos/wxc/simple-2/src/
Ddispfunc.c43 static void BgiPutChar(s16 x, s16 y, u8 palette, char c, u8 lcd);
44 static void BgiPutStringN(s16 x, s16 y, u8 palette, char *text, u32 num, u8 lcd);
47 static void BgiPutChar(s16 x, s16 y, u8 palette, char c, u8 lcd) in BgiPutChar() argument
51 vscr[((y * 32) + x) % (32 * 32)] = (u16)((palette << 12) | c); in BgiPutChar()
55 vscr_sub[((y * 32) + x) % (32 * 32)] = (u16)((palette << 12) | c); in BgiPutChar()
59 static void BgiPutStringN(s16 x, s16 y, u8 palette, char *text, u32 num, u8 lcd) in BgiPutStringN() argument
70 BgiPutChar((s16)(x + i), y, palette, text[i], lcd); in BgiPutStringN()
123 void BgPrintf(s16 x, s16 y, u8 palette, char *text, ...) in BgPrintf() argument
134 BgPutString(x, y, palette, temp); in BgPrintf()
139 void BgPutString(s16 x, s16 y, u8 palette, char *text) in BgPutString() argument
[all …]
/TwlSDK-5.4/build/demos/wxc/relayStation-1/src/
Ddispfunc.c43 static void BgiPutChar(s16 x, s16 y, u8 palette, char c, u8 lcd);
44 static void BgiPutStringN(s16 x, s16 y, u8 palette, char *text, u32 num, u8 lcd);
47 static void BgiPutChar(s16 x, s16 y, u8 palette, char c, u8 lcd) in BgiPutChar() argument
51 vscr[((y * 32) + x) % (32 * 32)] = (u16)((palette << 12) | c); in BgiPutChar()
55 vscr_sub[((y * 32) + x) % (32 * 32)] = (u16)((palette << 12) | c); in BgiPutChar()
59 static void BgiPutStringN(s16 x, s16 y, u8 palette, char *text, u32 num, u8 lcd) in BgiPutStringN() argument
70 BgiPutChar((s16)(x + i), y, palette, text[i], lcd); in BgiPutStringN()
123 void BgPrintf(s16 x, s16 y, u8 palette, char *text, ...) in BgPrintf() argument
134 BgPutString(x, y, palette, temp); in BgPrintf()
139 void BgPutString(s16 x, s16 y, u8 palette, char *text) in BgPutString() argument
[all …]
/TwlSDK-5.4/build/demos/wxc/wxc-pm/src/
Ddispfunc.c43 static void BgiPutChar(s16 x, s16 y, u8 palette, char c, u8 lcd);
44 static void BgiPutStringN(s16 x, s16 y, u8 palette, char *text, u32 num, u8 lcd);
47 static void BgiPutChar(s16 x, s16 y, u8 palette, char c, u8 lcd) in BgiPutChar() argument
51 vscr[((y * 32) + x) % (32 * 32)] = (u16)((palette << 12) | c); in BgiPutChar()
55 vscr_sub[((y * 32) + x) % (32 * 32)] = (u16)((palette << 12) | c); in BgiPutChar()
59 static void BgiPutStringN(s16 x, s16 y, u8 palette, char *text, u32 num, u8 lcd) in BgiPutStringN() argument
70 BgiPutChar((s16)(x + i), y, palette, text[i], lcd); in BgiPutStringN()
123 void BgPrintf(s16 x, s16 y, u8 palette, char *text, ...) in BgPrintf() argument
134 BgPutString(x, y, palette, temp); in BgPrintf()
139 void BgPutString(s16 x, s16 y, u8 palette, char *text) in BgPutString() argument
[all …]
/TwlSDK-5.4/build/demos/mb/multiboot/include/
Ddispfunc.h61 void ObjSet(int objNo, int x, int y, int charNo, int paletteNo);
64 void ObjSetString(int startobjNo, int x, int y, char *string, int paletteNo);
89 void BgPrintf(s16 x, s16 y, u8 palette, char *text, ...);
90 void BgPutString(s16 x, s16 y, u8 palette, char *text);
91 void BgPutStringN(s16 x, s16 y, u8 palette, char *text, u32 num);
92 void BgPutChar(s16 x, s16 y, u8 palette, char c);
96 void BgPrintfSub(s16 x, s16 y, u8 palette, char *text, ...);
97 void BgPutStringSub(s16 x, s16 y, u8 palette, char *text);
98 void BgPutStringNSub(s16 x, s16 y, u8 palette, char *text, u32 num);
99 void BgPutCharSub(s16 x, s16 y, u8 palette, char c);
/TwlSDK-5.4/build/demos/mb/multiboot-wfs/common/src/
Dutil.c222 void PrintString(int x, int y, int palette, const char *text, ...) in PrintString() argument
237 gScreen[((y * 32) + x + i) % (32 * 32)] = (u16)((palette << 12) | d); in PrintString()
253 void ColorString(int x, int y, int length, int palette) in ColorString() argument
258 const int index = ((y * 32) + x + i) % (32 * 32); in ColorString()
288 void PrintLine(int x, int y, const char *text, ...) in PrintLine() argument
292 MI_CpuFill8(recent_output[y], ' ', sizeof(recent_output[y])); in PrintLine()
293 (void)OS_VSNPrintf(&recent_output[y][x], (size_t) (32 - x), text, va); in PrintLine()
308 int y; in FlushLine() local
309 for (y = 0; y < 24; ++y) in FlushLine()
311 PrintString(0, y, COLOR_WHITE, recent_output[y]); in FlushLine()
/TwlSDK-5.4/build/demos/os/timer-1/src/
Dmain.c27 void DisplayCounter( int objNo, int y, u32 count );
29 void SetObj(int objNo, int x, int y, int charNo, int paletteNo);
166 void DisplayCounter( int objNo, int y, u32 count ) in DisplayCounter() argument
168 SetObj(objNo+0, 50, y, valToChar((int)((count>>28)&0xf)), 2); in DisplayCounter()
169 SetObj(objNo+1, 60, y, valToChar((int)((count>>24)&0xf)), 2); in DisplayCounter()
170 SetObj(objNo+2, 70, y, valToChar((int)((count>>20)&0xf)), 2); in DisplayCounter()
171 SetObj(objNo+3, 80, y, valToChar((int)((count>>16)&0xf)), 2); in DisplayCounter()
172 SetObj(objNo+4, 90, y, valToChar((int)((count>>12)&0xf)), 2); in DisplayCounter()
173 SetObj(objNo+5, 100, y, valToChar((int)((count>> 8)&0xf)), 2); in DisplayCounter()
174 SetObj(objNo+6, 110, y, valToChar((int)((count>> 4)&0xf)), 2); in DisplayCounter()
[all …]
/TwlSDK-5.4/build/demos/fs/overlay-staticinit/src/
Dmode_2.c32 static struct Point { int x, y; } bak_pos, cur_pos; member
63 cur_pos.y = input[own_player_id].tp.y; in MyUpdateFrame()
90 DEMOFillRect(cur_pos.x - 2, cur_pos.y - 2, 4, 4, GX_RGBA(0, 31, 0, 1)); in MyDrawFrame()
93 DEMODrawLine(bak_pos.x, bak_pos.y, cur_pos.x, cur_pos.y, GX_RGBA(16, 16, 31, 1)); in MyDrawFrame()
133 cur_pos.y = HW_LCD_HEIGHT / 2; in NitroStaticInit()
/TwlSDK-5.4/include/nitro/prc/
Dcommon.h147 static inline void PRC_AppendPoint(PRCStrokes *strokes, int x, int y) in PRC_AppendPoint() argument
152 strokes->points[strokes->size].y = (s16)y; in PRC_AppendPoint()
228 SDK_ASSERT((point->x != PRC_PEN_UP_MARKER_X) || (point->y == PRC_PEN_UP_MARKER_Y)); in PRC_IsPenUpMarker()
246 (p1->y - p2->y) * (p1->y - p2->y)) << FX32_SHIFT)); in PRCi_CalcDistance()
261 return ((u16)(FX_Atan2Idx(to->y - from->y, to->x - from->x))); in PRCi_CalcAngle()
/TwlSDK-5.4/build/demos/spi/tp-1/src/
Dmain.c167 SetPoint16x16(disp_point.x, disp_point.y); in NitroMain()
172 OS_Printf("( %d, %d ) -> ( %d, %d )\n", raw_point.x, raw_point.y, disp_point.x, in NitroMain()
173 disp_point.y); in NitroMain()
176 OS_Printf("( *%d, %d ) -> ( *%d, %d )\n", raw_point.x, raw_point.y, disp_point.x, in NitroMain()
177 disp_point.y); in NitroMain()
180 OS_Printf("( %d, *%d ) -> ( %d, *%d )\n", raw_point.x, raw_point.y, disp_point.x, in NitroMain()
181 disp_point.y); in NitroMain()
184 OS_Printf("( *%d, *%d ) -> ( *%d, *%d )\n", raw_point.x, raw_point.y, disp_point.x, in NitroMain()
185 disp_point.y); in NitroMain()
/TwlSDK-5.4/build/demos/gx/UnitTours/DEMOLib/src/
DDEMOBitmap.c248 int x, y; in DEMO_DrawFlip() local
249 for (y = 0; y < visible_lines; ++y) in DEMO_DrawFlip()
251 u16 *dst = &context->sub_bg[y * 32]; in DEMO_DrawFlip()
252 const char *src = context->sub_log[(offset + y) % 24]; in DEMO_DrawFlip()
347 void DEMOiFillRect(int x, int y, int wx, int wy, GXRgb color) in DEMOiFillRect() argument
349 if ((x < GX_LCD_SIZE_X) && (y < GX_LCD_SIZE_Y)) in DEMOiFillRect()
355 if (wy > GX_LCD_SIZE_Y - y) in DEMOiFillRect()
357 wy = GX_LCD_SIZE_Y - y; in DEMOiFillRect()
362 GXRgb *dst = &context->bitmap_frame[x + y * GX_LCD_SIZE_X]; in DEMOiFillRect()
387 void DEMOBlitRect(int x, int y, int wx, int wy, const GXRgb *image, int stroke) in DEMOBlitRect() argument
[all …]
/TwlSDK-5.4/build/demos/fx/test/src/
Dfx_append_mtx.c102 static void MTX_Translate43D_(MtxD43 * pDst, fx32 x, fx32 y, fx32 z);
168 register double x, y, z; in MTX_Concat43D_() local
181 y = a._01; in MTX_Concat43D_()
184 ab->_00 = x * b._00 + y * b._10 + z * b._20; in MTX_Concat43D_()
185 ab->_01 = x * b._01 + y * b._11 + z * b._21; in MTX_Concat43D_()
191 ab->_02 = x * xx + y * yy + z * zz; in MTX_Concat43D_()
195 y = a._11; in MTX_Concat43D_()
198 ab->_12 = x * xx + y * yy + z * zz; in MTX_Concat43D_()
199 ab->_11 = x * b._01 + y * b._11 + z * b._21; in MTX_Concat43D_()
205 ab->_10 = x * xx + y * yy + z * zz; in MTX_Concat43D_()
[all …]
/TwlSDK-5.4/build/demos/mb/cloneboot/include/
Ddisp.h68 void ObjSet(s32 objNo, s32 x, s32 y, s32 charNo, s32 paletteNo);
69 void ObjSetString(s32 startobjNo, s32 x, s32 y, const char *string, s32 paletteNo);
73 void BgPutChar(s32 x, s32 y, s32 palette, s8 c);
74 void BgPutStringN(s32 x, s32 y, s32 palette, const char *text, s32 num);
75 void BgPutString(s32 x, s32 y, s32 palette, const char *text);
76 void BgPrintStr(s32 x, s32 y, s32 palette, const char *text, ...);
79 void BgColorString(s16 x, s16 y, s16 length, u8 palette);

1234567