| /TwlSDK-5.1.0/build/libraries/fx/common/src/ |
| D | fx_trig.c | 49 u64 tmp; in FX_SinFx64c_internal() local 57 tmp = FX64C_ONE - (SDK_SINCOEFF_5 * yy >> 32); in FX_SinFx64c_internal() 58 tmp = FX64C_ONE - ((SDK_SINCOEFF_4 * yy >> 32) * tmp >> 32); in FX_SinFx64c_internal() 59 tmp = FX64C_ONE - ((SDK_SINCOEFF_3 * yy >> 32) * tmp >> 32); in FX_SinFx64c_internal() 60 tmp = SDK_SINCOEFF_1 - ((SDK_SINCOEFF_2 * yy >> 32) * tmp >> 32); in FX_SinFx64c_internal() 62 return tmp * y >> 32; in FX_SinFx64c_internal() 68 u64 tmp; in FX_CosFx64c_internal() local 76 tmp = FX64C_ONE - (SDK_COSCOEFF_4 * yy >> 32); in FX_CosFx64c_internal() 77 tmp = FX64C_ONE - ((SDK_COSCOEFF_3 * yy >> 32) * tmp >> 32); in FX_CosFx64c_internal() 78 tmp = FX64C_ONE - ((SDK_COSCOEFF_2 * yy >> 32) * tmp >> 32); in FX_CosFx64c_internal() [all …]
|
| D | fx_asinacosidx.c | 46 int tmp = 0; in FX_AsinIdx() local 82 tmp = (mid * 2) * 65536 / SINCOS_TABLE_SIZE; in FX_AsinIdx() 83 return (u16)tmp; in FX_AsinIdx() 101 int tmp = 0; in FX_AcosIdx() local 137 tmp = (mid * 2 + 1) * 65536 / SINCOS_TABLE_SIZE; in FX_AcosIdx() 138 return (u16)tmp; in FX_AcosIdx()
|
| D | fx_mtx22.c | 119 MtxFx22 tmp; in MTX_Inverse22() local 128 p = &tmp; in MTX_Inverse22() 154 if (p == &tmp) in MTX_Inverse22() 156 MI_Copy16B(&tmp, pDst); in MTX_Inverse22() 177 MtxFx22 tmp; in MTX_Concat22() local 188 p = &tmp; in MTX_Concat22() 210 if (p == &tmp) in MTX_Concat22() 212 *ab = tmp; in MTX_Concat22()
|
| D | fx_vec.c | 425 fx64 tmp; in VEC_Distance() local 432 tmp = (fx64)diff *diff; in VEC_Distance() 435 tmp += (fx64)diff *diff; in VEC_Distance() 438 tmp += (fx64)diff *diff; in VEC_Distance() 440 tmp <<= 2; in VEC_Distance() 441 CP_SetSqrt64((u64)tmp); in VEC_Distance() 458 fx64 tmp; in VEC_Fx16Distance() local 465 tmp = diff * diff; in VEC_Fx16Distance() 468 tmp += diff * diff; in VEC_Fx16Distance() 471 tmp += diff * diff; in VEC_Fx16Distance() [all …]
|
| /TwlSDK-5.1.0/build/libraries/math/common/src/ |
| D | qsort.c | 48 #define tmp r2 in MATH_QSort() macro 63 …clz tmp, num // // Allocate from the stack when the work buffer is NUL… in MATH_QSort() 64 rsb tmp, tmp, #32 in MATH_QSort() 65 … mov tmp, tmp, lsl #3 // // The required work size is (ILog2(num) + 1) * 4 * 2 in MATH_QSort() 66 sub sp, sp, tmp in MATH_QSort() 68 str tmp, [sp, #-4]! in MATH_QSort() 78 …clz tmp, width_ // // Calculate ILog2(width)+1 (Use later for reference v… in MATH_QSort() 79 rsb tmp, tmp, #32 in MATH_QSort() 80 str tmp, [sp, #-4]! in MATH_QSort() 89 sub tmp, right, left in MATH_QSort() [all …]
|
| D | dgt_sha1.c | 119 u32 tmp; in MATHi_SHA1ProcessBlock() local 133 tmp = 0x5A827999UL + ((b & c) | (~b & d)); in MATHi_SHA1ProcessBlock() 135 tmp += w_alias(t) + NETRotateLeft32(5, a) + e; in MATHi_SHA1ProcessBlock() 140 a = tmp; in MATHi_SHA1ProcessBlock() 144 tmp = 0x6ED9EBA1UL + (b ^ c ^ d); in MATHi_SHA1ProcessBlock() 146 tmp += w_alias(t) + NETRotateLeft32(5, a) + e; in MATHi_SHA1ProcessBlock() 151 a = tmp; in MATHi_SHA1ProcessBlock() 155 tmp = 0x8F1BBCDCUL + ((b & c) | (b & d) | (c & d)); in MATHi_SHA1ProcessBlock() 157 tmp += w_alias(t) + NETRotateLeft32(5, a) + e; in MATHi_SHA1ProcessBlock() 162 a = tmp; in MATHi_SHA1ProcessBlock() [all …]
|
| /TwlSDK-5.1.0/include/nitro/gx/ |
| D | g2.h | 244 u32 tmp = (reg_GX_DISPCNT & REG_GX_DISPCNT_BGMODE_MASK) >> REG_GX_DISPCNT_BGMODE_SHIFT; in G2_SetBG2Offset() local 245 SDK_WARNING((0 == tmp) || (1 == tmp) || (3 == tmp), in G2_SetBG2Offset() 268 u32 tmp = (reg_GX_DISPCNT & REG_GX_DISPCNT_BGMODE_MASK) >> REG_GX_DISPCNT_BGMODE_SHIFT; in G2_SetBG3Offset() local 269 SDK_WARNING(0 == tmp, in G2_SetBG3Offset() 290 u32 tmp; in G2_SetWnd0InsidePlane() local 293 tmp = ((reg_G2_WININ & ~REG_G2_WININ_WIN0IN_MASK) | ((u32)wnd << REG_G2_WININ_WIN0IN_SHIFT)); in G2_SetWnd0InsidePlane() 297 tmp |= (0x20 << REG_G2_WININ_WIN0IN_SHIFT); // EFCT in G2_SetWnd0InsidePlane() 300 reg_G2_WININ = (u16)tmp; in G2_SetWnd0InsidePlane() 331 u32 tmp; in G2_SetWnd1InsidePlane() local 334 tmp = ((reg_G2_WININ & ~REG_G2_WININ_WIN1IN_MASK) | ((u32)wnd << REG_G2_WININ_WIN1IN_SHIFT)); in G2_SetWnd1InsidePlane() [all …]
|
| /TwlSDK-5.1.0/build/demos/mb/multiboot-PowerSave/src/ |
| D | dispfunc.c | 210 char tmp[32 + 1]; in BgPrintf() local 213 (void)OS_VSNPrintf(tmp, sizeof(tmp), str, vlist); in BgPrintf() 215 BgPutString(x, y, pal, tmp, sizeof(tmp)); in BgPrintf() 231 char tmp[32 + 1]; in BgSetMessage() local 234 (void)OS_VSNPrintf(tmp, sizeof(tmp), str, vlist); in BgSetMessage() 239 BgPutString(4, 22, pal, tmp, 28); in BgSetMessage() 253 BgPutString(0, cur_line, pal, tmp, sizeof(tmp)); in BgSetMessage()
|
| /TwlSDK-5.1.0/build/demos/wbt/wbt-1/src/ |
| D | text.c | 72 LINE_BUF *tmp; in alloc_line_buf() local 73 tmp = lb_free_ptr; in alloc_line_buf() 75 unlink_line_buf(tmp); in alloc_line_buf() 76 tmp->last_count = 0; in alloc_line_buf() 77 tmp->cur_count = 0; in alloc_line_buf() 80 tmp->buf[i] = 0x20; in alloc_line_buf() 82 return (tmp); in alloc_line_buf() 212 LINE_BUF *tmp; in m_putchar() local 222 tmp = tb->cur; /* Recalculate the display start buffer */ in m_putchar() 225 if (tmp->prev == NULL) in m_putchar() [all …]
|
| /TwlSDK-5.1.0/build/libraries/dsp/common/src/ |
| D | dsp_byteaccess.c | 142 u16 tmp = DSP_LoadWord(DSP_WORD_TO_DSP(offset)); in DSP_Store8() local 143 tmp = (u16)((tmp & 0xFF00) | ((value << 0) & 0x00FF)); in DSP_Store8() 144 DSP_StoreWord(DSP_WORD_TO_DSP(offset), tmp); in DSP_Store8() 148 u16 tmp = DSP_LoadWord(DSP_WORD_TO_DSP(offset)); in DSP_Store8() local 149 tmp = (u16)((tmp & 0x00FF) | ((value << 8) & 0xFF00)); in DSP_Store8() 150 DSP_StoreWord(DSP_WORD_TO_DSP(offset), tmp); in DSP_Store8()
|
| /TwlSDK-5.1.0/build/demos/fx/test/src/ |
| D | main.c | 83 fx32 tmp; in test_FX_VEC() local 94 tmp = VEC_DotProduct(&a, &b); in test_FX_VEC() 95 SDK_ASSERTMSG(tmp == 52 * FX32_ONE, "VEC_DotProduct %d", tmp); in test_FX_VEC() 101 tmp = VEC_Mag(&a); in test_FX_VEC() 102 SDK_ASSERTMSG(tmp == 15326, "VEC_Mag"); in test_FX_VEC() 120 fx32 tmp = FX_DEG_TO_RAD(180 * FX32_ONE); in test_FX_TRIG() local 121 SDK_ASSERTMSG(tmp == 12868, "FX_DEG_TO_RAD"); in test_FX_TRIG() 125 int tmp = FX_DEG_TO_IDX(180 * FX32_ONE); in test_FX_TRIG() local 126 SDK_ASSERTMSG(tmp == 32768, "FX_DEG_TO_IDX"); in test_FX_TRIG() 130 fx32 tmp = FX_RAD_TO_DEG((fx32)((2 * FX64C_PI + 0x80000LL) >> 20)); in test_FX_TRIG() local [all …]
|
| /TwlSDK-5.1.0/build/demos/gx/UnitTours/DEMOLib/src/ |
| D | DEMOBitmap.c | 489 int tmp; in DEMOiDrawLine() local 493 tmp = sx + 1, sx = tx + 1, tx = tmp; in DEMOiDrawLine() 494 tmp = sy, sy = ty, ty = tmp; in DEMOiDrawLine() 506 tmp = sy + 1, sy = ty + 1, ty = tmp; in DEMOiDrawLine() 614 static char tmp[512]; in DEMODrawText() local 618 (void)OS_VSNPrintf(tmp, sizeof(tmp) - 2, format, va); in DEMODrawText() 623 const char *s = tmp; in DEMODrawText() 624 int n = sizeof(tmp) - 1; in DEMODrawText() 753 char tmp[32 + 1]; in DEMOPutString() local 757 (void)OS_VSNPrintf(tmp + x, sizeof(tmp) - x, format, va); in DEMOPutString() [all …]
|
| /TwlSDK-5.1.0/build/libraries/gx/ARM9/src/ |
| D | g2.c | 164 u16 tmp; in G2x_ChangeBlendBrightness_() local 168 tmp = *((vu16 *)addr + 0); in G2x_ChangeBlendBrightness_() 172 if (G2_BLENDTYPE_FADEIN == (tmp & REG_G2_BLDCNT_EFFECT_MASK)) in G2x_ChangeBlendBrightness_() 175 *((vu16 *)addr + 0) = (u16)((tmp & ~REG_G2_BLDCNT_EFFECT_MASK) | G2_BLENDTYPE_FADEOUT); in G2x_ChangeBlendBrightness_() 182 if (G2_BLENDTYPE_FADEOUT == (tmp & REG_G2_BLDCNT_EFFECT_MASK)) in G2x_ChangeBlendBrightness_() 185 *((vu16 *)addr + 0) = (u16)((tmp & ~REG_G2_BLDCNT_EFFECT_MASK) | G2_BLENDTYPE_FADEIN); in G2x_ChangeBlendBrightness_()
|
| /TwlSDK-5.1.0/ |
| D | setup | 8 tmp=`pwd` 9 export TWLSDK_ROOT=`cygpath -m $tmp`
|
| /TwlSDK-5.1.0/build/libraries/fs/common/src/ |
| D | fs_proc_default.c | 88 static FSFile tmp[1]; in FSi_GetTemporaryFileContext() local 89 FS_InitFile(tmp); in FSi_GetTemporaryFileContext() 90 tmp->arc = arc; in FSi_GetTemporaryFileContext() 91 return tmp; in FSi_GetTemporaryFileContext() 390 FSFile *tmp = FSi_GetTemporaryFileContext(arc); in FSi_GetPathDefault() local 414 FSi_SeekDirDirect(tmp, pos); in FSi_GetPathDefault() 418 num_dir = tmp->prop.dir.parent; in FSi_GetPathDefault() 420 tmp->arg.readdir.p_entry = &entry; in FSi_GetPathDefault() 421 tmp->arg.readdir.skip_string = TRUE; in FSi_GetPathDefault() 422 while (FSi_TranslateCommand(tmp, FS_COMMAND_READDIR, TRUE) == FS_RESULT_SUCCESS) in FSi_GetPathDefault() [all …]
|
| /TwlSDK-5.1.0/build/tools/xml2env/ |
| D | xml2env.pl | 43 my ($src, $tmp, $line, $resource_name, $resource_count); 46 $tmp = $src . '.result.c'; 63 $tmp = $opts{o}; 71 open(FO, ">" . $tmp) or die ("cannot open $tmp to write.");
|
| /TwlSDK-5.1.0/tools/bin/ |
| D | xml2env.pl | 43 my ($src, $tmp, $line, $resource_name, $resource_count); 46 $tmp = $src . '.result.c'; 63 $tmp = $opts{o}; 71 open(FO, ">" . $tmp) or die ("cannot open $tmp to write.");
|
| /TwlSDK-5.1.0/build/demos/crypto/rc4-3/src/ |
| D | prng.c | 84 u8 tmp[MATH_SHA1_DIGEST_SIZE]; in GetRandomBytes() local 92 MATH_SHA1GetHash(&context, tmp); in GetRandomBytes() 96 MI_CpuCopy8(tmp, buffer, n); in GetRandomBytes()
|
| /TwlSDK-5.1.0/build/demos.TWL/dsp/snd-mic/src/ |
| D | main.c | 66 u8 *tmp = (u8 *)dst; in NormalizeRingBuffer() local 88 MI_CpuCopy8(&src[ofs * smp], &tmp[pos * smp], (u32)(n * smp)); in NormalizeRingBuffer() 320 u8 tmp[HW_LCD_HEIGHT * sizeof(u16)]; in TwlMain() local 323 NormalizeRingBuffer(tmp, type, src, dsp - src); in TwlMain() 324 DrawWaveGraph(type, GX_RGB(31, 31, 31), tmp); in TwlMain() 329 u8 tmp[HW_LCD_HEIGHT * sizeof(u16)]; in TwlMain() local 332 NormalizeRingBuffer(tmp, type, src, mic - src); in TwlMain() 333 DrawWaveGraph(type, GX_RGB(31, 31, 0), tmp); in TwlMain()
|
| /TwlSDK-5.1.0/include/nitro/math/ |
| D | qsort.h | 44 int tmp = MATH_ILog2(num); in MATH_QSortStackSize() local 46 if (tmp <= 0) in MATH_QSortStackSize()
|
| /TwlSDK-5.1.0/include/nitro/os/common/ |
| D | systemCall.h | 175 vu##bit tmp = (vu##bit )(data); \ 176 SVC_CpuSet((u8 *)&(tmp), (u8 *)(destp), ( \ 280 vu32 tmp = (vu32 )(data); \ 281 SVC_CpuSetFast((u8 *)&(tmp), (u8 *)(destp), ( \
|
| /TwlSDK-5.1.0/build/demos/mb/multiboot-PowerSave/include/ |
| D | dispfunc.h | 137 const char tmp = (char)c; in BgPutChar() local 138 BgPutString(x, y, pal, &tmp, 1); in BgPutChar()
|
| /TwlSDK-5.1.0/build/demos/os/entropy-1/src/ |
| D | main.c | 180 char tmp[32 + 1]; in NitroMain() local 184 tmp[x] = (char)('0' + ((data[i] >> (31 - x)) & 1)); in NitroMain() 186 tmp[x] = '\0'; in NitroMain() 187 DEMOPutString(0, y, "%s", tmp); in NitroMain()
|
| /TwlSDK-5.1.0/build/libraries/wm/ARM9.TWL/nwm/src/ |
| D | nwm_passphrase.c | 80 u8 tmp[SHA1_MAC_LEN], tmp2[SHA1_MAC_LEN]; in pbkdf2_sha1_f() local 110 SVC_HMACSHA1GetHash( &ctx, (void*)tmp ); in pbkdf2_sha1_f() 112 hmac_sha1_vector((const u8 *) passphrase, passphrase_len, 2, addr, len, tmp); in pbkdf2_sha1_f() 114 MI_CpuCopy8(tmp, digest, SHA1_MAC_LEN); in pbkdf2_sha1_f() 117 addr[0] = (const u8 *)tmp; in pbkdf2_sha1_f() 127 MI_CpuCopy8(tmp2, tmp, SHA1_MAC_LEN); in pbkdf2_sha1_f()
|
| /TwlSDK-5.1.0/build/demos/fs/file-3/src/ |
| D | main.c | 51 void *tmp; in NitroMain() local 52 tmp = OS_InitAlloc(OS_ARENA_MAIN, OS_GetMainArenaLo(), OS_GetMainArenaHi(), 1); in NitroMain() 53 OS_SetArenaLo(OS_ARENA_MAIN, tmp); in NitroMain()
|