Home
last modified time | relevance | path

Searched refs:fx32 (Results 1 – 25 of 84) sorted by relevance

1234

/TwlSDK-5.4/include/nitro/fx/
Dfx_const.h155 #define FX32_ONE ((fx32) 0x00001000L) // 1.000
156 #define FX32_HALF ((fx32) 0x00000800L) // 0.500
157 #define FX32_SQRT2 ((fx32) 0x000016a1L) // 1.414
158 #define FX32_SQRT1_2 ((fx32) 0x00000b50L) // 0.707
159 #define FX32_SQRT3 ((fx32) 0x00001bb6L) // 1.732
160 #define FX32_SQRT1_3 ((fx32) 0x0000093dL) // 0.577
167 #define FX32_SIN0 ((fx32) 0x00000000L) // 0.000
168 #define FX32_SIN1 ((fx32) 0x00000047L) // 0.017
169 #define FX32_SIN2 ((fx32) 0x0000008fL) // 0.035
170 #define FX32_SIN3 ((fx32) 0x000000d6L) // 0.052
[all …]
Dfx_mtx44.h41 void MTX_TransApply44(const MtxFx44 *pSrc, MtxFx44 *pDst, fx32 x, fx32 y, fx32 z);
42 SDK_DECL_INLINE void MTX_Scale44(MtxFx44 *pDst, fx32 x, fx32 y, fx32 z);
43 void MTX_ScaleApply44(const MtxFx44 *pSrc, MtxFx44 *pDst, fx32 x, fx32 y, fx32 z);
44 SDK_DECL_INLINE void MTX_RotX44(MtxFx44 *pDst, fx32 sinVal, fx32 cosVal);
45 SDK_DECL_INLINE void MTX_RotY44(MtxFx44 *pDst, fx32 sinVal, fx32 cosVal);
46 SDK_DECL_INLINE void MTX_RotZ44(MtxFx44 *pDst, fx32 sinVal, fx32 cosVal);
47 void MTX_RotAxis44(MtxFx44 *pDst, const VecFx32 *vec, fx32 sinVal, fx32 cosVal);
49 void MTX_FrustumW(fx32 t, fx32 b, fx32 l, fx32 r, fx32 n, fx32 f, fx32 scaleW, MtxFx44 *mtx);
50 void MTX_PerspectiveW(fx32 fovySin, fx32 fovyCos, fx32 aspect, fx32 n, fx32 f, fx32 scaleW, MtxF…
51 void MTX_OrthoW(fx32 t, fx32 b, fx32 l, fx32 r, fx32 n, fx32 f, fx32 scaleW, MtxFx44 *mtx);
[all …]
Dfx_cp.h38 fx32 FX_Div(fx32 numer, fx32 denom);
39 fx64c FX_DivFx64c(fx32 numer, fx32 denom);
40 SDK_DECL_INLINE fx32 FX_Mod(fx32 numer, fx32 denom);
41 fx32 FX_Sqrt(fx32 x);
42 fx32 FX_Inv(fx32 denom);
43 fx64c FX_InvFx64c(fx32 denom);
44 fx32 FX_InvSqrt(fx32 x);
46 void FX_DivAsync(fx32 numer, fx32 denom);
47 SDK_DECL_INLINE void FX_DivAsyncImm(fx32 numer, fx32 denom);
49 fx32 FX_GetDivResult(void);
[all …]
Dfx.h40 typedef s32 fx32; typedef
49 #define FX32_MAX ((fx32)0x7fffffff)
50 #define FX32_MIN ((fx32)0x80000000)
56 #define FX_F32_TO_FX32(x) ((fx32)(((x) > 0) ? \
139 fx32 x;
140 fx32 y;
141 fx32 z;
163 fx32 _00, _01, _02, _03;
164 fx32 _10, _11, _12, _13;
165 fx32 _20, _21, _22, _23;
[all …]
Dfx_mtx43.h41 void MTX_TransApply43(const MtxFx43 *pSrc, MtxFx43 *pDst, fx32 x, fx32 y, fx32 z);
42 SDK_DECL_INLINE void MTX_Scale43(MtxFx43 *pDst, fx32 x, fx32 y, fx32 z);
43 void MTX_ScaleApply43(const MtxFx43 *pSrc, MtxFx43 *pDst, fx32 x, fx32 y, fx32 z);
44 SDK_DECL_INLINE void MTX_RotX43(MtxFx43 *pDst, fx32 sinVal, fx32 cosVal);
45 SDK_DECL_INLINE void MTX_RotY43(MtxFx43 *pDst, fx32 sinVal, fx32 cosVal);
46 SDK_DECL_INLINE void MTX_RotZ43(MtxFx43 *pDst, fx32 sinVal, fx32 cosVal);
47 void MTX_RotAxis43(MtxFx43 *pDst, const VecFx32 *vec, fx32 sinVal, fx32 cosVal);
56 void MTX_Scale43_(register MtxFx43 *pDst, register fx32 x, register fx32 y, register fx32 z);
57 void MTX_RotX43_(register MtxFx43 *pDst, register fx32 sinVal, register fx32 cosVal);
58 void MTX_RotY43_(register MtxFx43 *pDst, register fx32 sinVal, register fx32 cosVal);
[all …]
Dfx_mtx33.h42 SDK_DECL_INLINE void MTX_Scale33(MtxFx33 *pDst, fx32 x, fx32 y, fx32 z);
43 void MTX_ScaleApply33(const MtxFx33 *pSrc, MtxFx33 *pDst, fx32 x, fx32 y, fx32 z);
44 SDK_DECL_INLINE void MTX_RotX33(MtxFx33 *pDst, fx32 sinVal, fx32 cosVal);
45 SDK_DECL_INLINE void MTX_RotY33(MtxFx33 *pDst, fx32 sinVal, fx32 cosVal);
46 SDK_DECL_INLINE void MTX_RotZ33(MtxFx33 *pDst, fx32 sinVal, fx32 cosVal);
47 void MTX_RotAxis33(MtxFx33 *pDst, const VecFx32 *vec, fx32 sinVal, fx32 cosVal);
56 void MTX_Scale33_(register MtxFx33 *pDst, register fx32 x, register fx32 y, register fx32 z);
57 void MTX_RotX33_(register MtxFx33 *pDst, register fx32 sinVal, register fx32 cosVal);
58 void MTX_RotY33_(register MtxFx33 *pDst, register fx32 sinVal, register fx32 cosVal);
59 void MTX_RotZ33_(register MtxFx33 *pDst, register fx32 sinVal, register fx32 cosVal);
[all …]
Dfx_trig.h42 #define FX_DEG_TO_RAD(deg) ((fx32)((FX64C_TWOPI_360 * (deg) + 0x80000000LL) >> 32))
46 #define FX_RAD_TO_DEG(rad) ((fx32)((FX64C_360_TWOPI * (rad) + 0x80000000LL) >> 32))
49 #define FX_IDX_TO_RAD(idx) ((fx32)((FX64C_TWOPI_65536 * (idx) + 0x80000LL) >> 20))
50 #define FX_IDX_TO_DEG(idx) ((fx32)((FX64C_360_65536 * (idx) + 0x80000LL) >> 20))
55 u16 FX_AtanIdx(fx32 x);
56 u16 FX_Atan2Idx(fx32 y, fx32 x);
58 fx16 FX_Atan(fx32 x);
59 fx16 FX_Atan2(fx32 y, fx32 x);
61 u16 FX_AsinIdx(fx32 x);
62 u16 FX_AcosIdx(fx32 x);
[all …]
Dfx_mtx22.h39 SDK_DECL_INLINE void MTX_Rot22(MtxFx22 *pDst, fx32 sinVal, fx32 cosVal);
42 void MTX_ScaleApply22(const MtxFx22 *pSrc, MtxFx22 *pDst, fx32 x, fx32 y);
46 void MTX_Scale22_(register MtxFx22 *pDst, register fx32 x, register fx32 y);
47 void MTX_Rot22_(register MtxFx22 *pDst, register fx32 sinVal, register fx32 cosVal);
115 SDK_INLINE void MTX_Scale22(MtxFx22 *pDst, fx32 x, fx32 y) in MTX_Scale22()
133 SDK_INLINE void MTX_Rot22(MtxFx22 *pDst, fx32 sinVal, fx32 cosVal) in MTX_Rot22()
Dfx_vec.h37 fx32 VEC_DotProduct(const VecFx32 *a, const VecFx32 *b);
39 fx32 VEC_Mag(const VecFx32 *v);
40 fx32 VEC_Distance(const VecFx32 *v1, const VecFx32 *v2);
42 void VEC_MultAdd(fx32 a, const VecFx32 *v1, const VecFx32 *v2, VecFx32 *pDest);
43 void VEC_MultSubtract(fx32 a, const VecFx32 *v1, const VecFx32 *v2, VecFx32 *pDest);
48 fx32 VEC_Fx16DotProduct(const VecFx16 *a, const VecFx16 *b);
50 fx32 VEC_Fx16Mag(const VecFx16 *v);
51 fx32 VEC_Fx16Distance(const VecFx16 *v1, const VecFx16 *v2);
67 SDK_INLINE void VEC_Set(VecFx32 *a, fx32 x, fx32 y, fx32 z) in VEC_Set()
/TwlSDK-5.4/include/nitro/gx/
Dg3_util.h38 void G3i_FrustumW_(fx32 t, fx32 b, fx32 l, fx32 r, fx32 n, fx32 f, fx32 scaleW, BOOL draw,
40 void G3i_PerspectiveW_(fx32 fovySin, fx32 fovyCos, fx32 aspect, fx32 n, fx32 f, fx32 scaleW,
42 void G3i_OrthoW_(fx32 t, fx32 b, fx32 l, fx32 r, fx32 n, fx32 f, fx32 scaleW, BOOL draw,
46 void G3_RotX(fx32 s, fx32 c);
47 void G3_RotY(fx32 s, fx32 c);
48 void G3_RotZ(fx32 s, fx32 c);
81 static inline void G3_Frustum(fx32 t, fx32 b, fx32 l, fx32 r, fx32 n, fx32 f, MtxFx44 *mtx) in G3_Frustum()
105 void G3_Perspective(fx32 fovySin, fx32 fovyCos, fx32 aspect, fx32 n, fx32 f, MtxFx44 *mtx) in G3_Perspective()
128 static inline void G3_Ortho(fx32 t, fx32 b, fx32 l, fx32 r, fx32 n, fx32 f, MtxFx44 *mtx) in G3_Ortho()
152 G3_FrustumW(fx32 t, fx32 b, fx32 l, fx32 r, fx32 n, fx32 f, fx32 scaleW, MtxFx44 *mtx) in G3_FrustumW()
[all …]
/TwlSDK-5.4/build/libraries/fx/common/src/
Dfx_cp.c44 fx32 FX_Div(fx32 numer, fx32 denom) in FX_Div()
62 fx64c FX_DivFx64c(fx32 numer, fx32 denom) in FX_DivFx64c()
77 fx32 FX_Inv(fx32 denom) in FX_Inv()
93 fx64c FX_InvFx64c(fx32 denom) in FX_InvFx64c()
109 fx32 FX_Sqrt(fx32 x) in FX_Sqrt()
134 fx32 FX_InvSqrt(fx32 x) in FX_InvSqrt()
148 return (fx32)((tmp + FX_INVSQRT_1_2) >> FX_INVSQRT_SHIFT); in FX_InvSqrt()
183 fx32 FX_GetDivResult(void) in FX_GetDivResult()
185 return (fx32)((CP_GetDivResult64() + FX_DIV_1_2) >> FX_DIV_SHIFT); in FX_GetDivResult()
199 void FX_InvAsync(fx32 denom) in FX_InvAsync()
[all …]
Dfx_mtx33.c23 inline fx32 mul64(fx64 x, fx32 y) in mul64()
25 return (fx32)((x * y) >> FX32_SHIFT); in mul64()
96 asm void MTX_Scale33_(register MtxFx33* pDst, register fx32 x, register fx32 y, register fx32 z) in MTX_Scale33_()
125 void MTX_ScaleApply33(const MtxFx33 *pSrc, MtxFx33 *pDst, fx32 x, fx32 y, fx32 z) in MTX_ScaleApply33()
149 asm void MTX_RotX33_(register MtxFx33 * pDst, register fx32 sinVal, register fx32 cosVal) in MTX_RotX33_()
170 asm void MTX_RotY33_(register MtxFx33 * pDst, register fx32 sinVal, register fx32 cosVal) in MTX_RotY33_()
191 asm void MTX_RotZ33_(register MtxFx33 * pDst, register fx32 sinVal, register fx32 cosVal) in MTX_RotZ33_()
222 void MTX_RotAxis33(MtxFx33 *pDst, const VecFx32 *vec, fx32 sinVal, fx32 cosVal) in MTX_RotAxis33()
225 fx32 t01; in MTX_RotAxis33()
226 fx32 s2; in MTX_RotAxis33()
[all …]
Dfx_mtx43.c92 void MTX_TransApply43(const MtxFx43 *pSrc, MtxFx43 *pDst, fx32 x, fx32 y, fx32 z) in MTX_TransApply43()
107 pSrc->_30 + (fx32)((xx * pSrc->_00 + yy * pSrc->_10 + zz * pSrc->_20) >> FX32_SHIFT); in MTX_TransApply43()
109 pSrc->_31 + (fx32)((xx * pSrc->_01 + yy * pSrc->_11 + zz * pSrc->_21) >> FX32_SHIFT); in MTX_TransApply43()
111 pSrc->_32 + (fx32)((xx * pSrc->_02 + yy * pSrc->_12 + zz * pSrc->_22) >> FX32_SHIFT); in MTX_TransApply43()
116 asm void MTX_Scale43_(register MtxFx43* pDst, register fx32 x, register fx32 y, register fx32 z) in MTX_Scale43_()
148 void MTX_ScaleApply43(const MtxFx43 *pSrc, MtxFx43 *pDst, fx32 x, fx32 y, fx32 z) in MTX_ScaleApply43()
159 asm void MTX_RotX43_(register MtxFx43 * pDst, register fx32 sinVal, register fx32 cosVal) in MTX_RotX43_()
181 asm void MTX_RotY43_(register MtxFx43 * pDst, register fx32 sinVal, register fx32 cosVal) in MTX_RotY43_()
202 asm void MTX_RotZ43_(register MtxFx43 * pDst, register fx32 sinVal, register fx32 cosVal) in MTX_RotZ43_()
235 void MTX_RotAxis43(MtxFx43 *pDst, const VecFx32 *vec, fx32 sinVal, fx32 cosVal) in MTX_RotAxis43()
[all …]
Dfx_mtx22.c22 inline fx32 mul64(fx64 x, fx32 y) in mul64()
24 return (fx32)((x * y) >> FX32_SHIFT); in mul64()
52 asm void MTX_Scale22_(register MtxFx22* pDst, register fx32 x, register fx32 y) in MTX_Scale22_()
63 asm void MTX_Rot22_(register MtxFx22 * pDst, register fx32 sinVal, register fx32 cosVal) in MTX_Rot22_()
89 void MTX_ScaleApply22(const MtxFx22 *pSrc, MtxFx22 *pDst, fx32 x, fx32 y) in MTX_ScaleApply22()
121 fx32 det; in MTX_Inverse22()
136 det = (fx32)(((fx64)pSrc->_00 * pSrc->_11 - in MTX_Inverse22()
148 p->_00 = (fx32)(((fx64)det * pSrc->_11) >> FX32_SHIFT); in MTX_Inverse22()
149 p->_01 = -(fx32)(((fx64)det * pSrc->_01) >> FX32_SHIFT); in MTX_Inverse22()
151 p->_10 = -(fx32)(((fx64)det * pSrc->_10) >> FX32_SHIFT); in MTX_Inverse22()
[all …]
Dfx_mtx44.c25 inline fx32 mul64(fx64 x, fx32 y) in mul64()
27 return (fx32)((x * y) >> FX32_SHIFT); in mul64()
97 void MTX_TransApply44(const MtxFx44 *pSrc, MtxFx44 *pDst, fx32 x, fx32 y, fx32 z) in MTX_TransApply44()
112 pSrc->_30 + (fx32)((xx * pSrc->_00 + yy * pSrc->_10 + zz * pSrc->_20) >> FX32_SHIFT); in MTX_TransApply44()
114 pSrc->_31 + (fx32)((xx * pSrc->_01 + yy * pSrc->_11 + zz * pSrc->_21) >> FX32_SHIFT); in MTX_TransApply44()
116 pSrc->_32 + (fx32)((xx * pSrc->_02 + yy * pSrc->_12 + zz * pSrc->_22) >> FX32_SHIFT); in MTX_TransApply44()
118 pSrc->_33 + (fx32)((xx * pSrc->_03 + yy * pSrc->_13 + zz * pSrc->_23) >> FX32_SHIFT); in MTX_TransApply44()
145 asm void MTX_Scale44_(register MtxFx44 * pDst, register fx32 x, register fx32 y, register fx32 z) in MTX_Scale44_()
182 void MTX_ScaleApply44(const MtxFx44 *pSrc, MtxFx44 *pDst, fx32 x, fx32 y, fx32 z) in MTX_ScaleApply44()
209 register fx32 t1, t2; in MTX_ScaleApply44()
[all …]
Dfx.c55 SDK_ASSERT(4 == sizeof(fx32)); in FX_Init()
73 fx32 rad; in FX_Init()
79 rad = (fx32)((idx + 0x80000LL) >> 20); in FX_Init()
138 fx32 FX_MulFunc(fx32 v1, fx32 v2) in FX_MulFunc()
154 fx32 FX_Mul32x64cFunc(fx32 v32, fx64c v64c) in FX_Mul32x64cFunc()
172 fx32 FX_Modf(fx32 x, fx32 *iPtr) in FX_Modf()
Dfx_vec.c134 fx32 VEC_DotProduct(const VecFx32 *a, const VecFx32 *b) in VEC_DotProduct()
138 return (fx32)(((fx64)a->x * b->x + in VEC_DotProduct()
153 fx32 VEC_Fx16DotProduct(const VecFx16 *a, const VecFx16 *b) in VEC_Fx16DotProduct()
155 fx32 tmp1, tmp2; in VEC_Fx16DotProduct()
161 return (fx32)(((fx64)tmp1 + tmp2) >> FX64_SHIFT); in VEC_Fx16DotProduct()
179 fx32 x, y, z; in VEC_CrossProduct()
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()
210 fx32 x, y, z; in VEC_Fx16CrossProduct()
[all …]
/TwlSDK-5.4/include/nitro/math/
Dfft.h60 void MATHi_FFT(fx32 *data, u32 nShift, const fx16 *sinTable);
74 void MATHi_IFFT(fx32 *data, u32 nShift, const fx16 *sinTable);
88 void MATH_FFT(fx32 *data, u32 nShift, const fx16 *sinTable);
102 void MATH_IFFT(fx32 *data, u32 nShift, const fx16 *sinTable);
116 void MATH_FFTReal(fx32 *data, u32 nShift, const fx16 *sinTable, const fx16 *sinTable2);
130 void MATH_IFFTReal(fx32 *data, u32 nShift, const fx16 *sinTable, const fx16 *sinTable2);
/TwlSDK-5.4/build/libraries/gx/ARM9/src/
Dg3x.c344 m->_00 = *((fx32 *)REG_CLIPMTX_RESULT_0_ADDR + 0); in G3X_GetClipMtx()
345 m->_01 = *((fx32 *)REG_CLIPMTX_RESULT_0_ADDR + 1); in G3X_GetClipMtx()
346 m->_02 = *((fx32 *)REG_CLIPMTX_RESULT_0_ADDR + 2); in G3X_GetClipMtx()
347 m->_03 = *((fx32 *)REG_CLIPMTX_RESULT_0_ADDR + 3); in G3X_GetClipMtx()
349 m->_10 = *((fx32 *)REG_CLIPMTX_RESULT_0_ADDR + 4); in G3X_GetClipMtx()
350 m->_11 = *((fx32 *)REG_CLIPMTX_RESULT_0_ADDR + 5); in G3X_GetClipMtx()
351 m->_12 = *((fx32 *)REG_CLIPMTX_RESULT_0_ADDR + 6); in G3X_GetClipMtx()
352 m->_13 = *((fx32 *)REG_CLIPMTX_RESULT_0_ADDR + 7); in G3X_GetClipMtx()
354 m->_20 = *((fx32 *)REG_CLIPMTX_RESULT_0_ADDR + 8); in G3X_GetClipMtx()
355 m->_21 = *((fx32 *)REG_CLIPMTX_RESULT_0_ADDR + 9); in G3X_GetClipMtx()
[all …]
Dg3_util.c52 void G3i_FrustumW_(fx32 t, fx32 b, fx32 l, fx32 r, fx32 n, fx32 f, fx32 scaleW, BOOL draw, in G3i_FrustumW_()
87 void G3i_PerspectiveW_(fx32 fovySin, fx32 fovyCos, fx32 aspect, fx32 n, fx32 f, fx32 scaleW, in G3i_PerspectiveW_()
122 void G3i_OrthoW_(fx32 t, fx32 b, fx32 l, fx32 r, fx32 n, fx32 f, fx32 scaleW, BOOL draw, in G3i_OrthoW_()
181 void G3_RotX(fx32 s, fx32 c) in G3_RotX()
210 void G3_RotY(fx32 s, fx32 c) in G3_RotY()
239 void G3_RotZ(fx32 s, fx32 c) in G3_RotZ()
/TwlSDK-5.4/build/libraries/math/common/src/
Dfft.c24 static void MATHi_DFT(fx32 *data, fx32 *ret, u32 nShift, const fx16 *sinTable);
66 #define SWAP_FX32(a, b) {fx32 t; t = (a); (a) = (b); (b) = t;}
67 void MATHi_FFT(fx32 *data, u32 nShift, const fx16 *sinTable) in MATHi_FFT()
114 fx32 xr, xi, yr, yi; in MATHi_FFT()
137 fx32 wr, wi, w1, w2; in MATHi_FFT()
152 fx32 xr, xi, yr, yi; in MATHi_FFT()
163 fx32 t = FX_Mul(wr, xr + xi); in MATHi_FFT()
182 fx32 xr, xi, yr, yi; in MATHi_FFT()
219 void MATHi_IFFT(fx32 *data, u32 nShift, const fx16 *sinTable) in MATHi_IFFT()
266 fx32 xr, xi, yr, yi; in MATHi_IFFT()
[all …]
/TwlSDK-5.4/include/nitro/prc/
Dalgo_common.h93 fx32 *lineSegmentLengthArray;
97 fx32 *strokeLengths;
99 fx32 wholeLength;
115 fx32 *lineSegmentLengthArray;
119 fx32 *strokeLengths;
160 fx32 *lineSegmentLengthArray;
166 fx32 *strokeLengthArray;
180 fx32 *lineSegmentLengthArray;
188 fx32 *strokeLengthArray;
/TwlSDK-5.4/build/demos/gx/UnitTours/3D_BoxTest/src/
Dmain.c121 fx32 pos1_x = -((5 * FX32_ONE) / 2); in TwlMain()
122 fx32 pos1_y = ((5 * FX32_ONE) / 2); in TwlMain()
123 fx32 pos2_x = ((5 * FX32_ONE) / 2); in TwlMain()
124 fx32 pos2_y = -((5 * FX32_ONE) / 2); in TwlMain()
125 fx32 near = (5 * FX32_ONE) / 2; in TwlMain()
126 fx32 far = ((5 * FX32_ONE) / 2) + (5 * FX32_ONE); in TwlMain()
196 fx32 right = FX32_ONE; in TwlMain()
197 fx32 top = FX32_ONE * 3 / 4; in TwlMain()
198 fx32 near = FX32_ONE; in TwlMain()
199 fx32 far = FX32_ONE * 400; in TwlMain()
/TwlSDK-5.4/build/demos/math/fft-1/src/
Dmain.c29 static void PrintFX32(fx32 f);
30 static void PrintRealArray(fx32 *data);
31 static void PrintHalfComplexArray(fx32 *data);
32 static void PrintComplexArray(fx32 *data);
33 static BOOL PrintError(fx32 *orig, fx32 *data);
36 static void FFT(fx32 *data, int nShift);
37 static void IFFT(fx32 *data, int nShift);
51 static fx32 gFFTCos[FFT_N], gFFTSin[FFT_N];
191 static fx32 data[FFT_N * 2]; in FFTTest()
192 static fx32 orig[FFT_N * 2]; in FFTTest()
[all …]
/TwlSDK-5.4/build/demos/gx/UnitTours/2D_CharBg_256_16/src/
Dmain.c96 fx32 scale = FX32_ONE; in TwlMain()
246 fx32 rScale = FX_Inv(scale); in TwlMain()
248 mtx._00 = (fx32)((cosVal * rScale) >> FX32_SHIFT); in TwlMain()
249 mtx._01 = (fx32)((sinVal * rScale) >> FX32_SHIFT); in TwlMain()
250 mtx._10 = -(fx32)((sinVal * rScale) >> FX32_SHIFT); in TwlMain()
251 mtx._11 = (fx32)((cosVal * rScale) >> FX32_SHIFT); in TwlMain()

1234