Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 11 of 11) sorted by relevance

/TwlSDK-5.1.0/build/libraries/fx/common/src/
Dfx_vec.c426 fx32 diff; in VEC_Distance() local
431 diff = v1->x - v2->x; in VEC_Distance()
432 tmp = (fx64)diff *diff; in VEC_Distance()
434 diff = v1->y - v2->y; in VEC_Distance()
435 tmp += (fx64)diff *diff; in VEC_Distance()
437 diff = v1->z - v2->z; in VEC_Distance()
438 tmp += (fx64)diff *diff; in VEC_Distance()
459 fx32 diff; in VEC_Fx16Distance() local
464 diff = v1->x - v2->x; in VEC_Fx16Distance()
465 tmp = diff * diff; in VEC_Fx16Distance()
[all …]
/TwlSDK-5.1.0/build/demos/fx/test/src/
Dfx_append_vec.c624 double diff = 0.0; in Unary_operator_test_() local
630 diff = fabs(FX2D(FX_Sqrt(vf1)) - sqrt(vd1)); in Unary_operator_test_()
631 OutDetail("sqrt( v1 ) Error = %.10f \n", diff); in Unary_operator_test_()
634 diff = fabs(FX2D(FX_InvSqrt(vf1)) - 1.0 / sqrt(vd1)); in Unary_operator_test_()
635 OutDetail("InvSqrt( v1 )Error = %.10f \n", diff); in Unary_operator_test_()
638 diff = fabs(FX2D(FX_Inv(vf1)) - 1.0 / vd1); in Unary_operator_test_()
639 OutDetail("1.0 / v1 Error = %.10f \n", diff); in Unary_operator_test_()
642 diff = fabs(FX64C2D(FX_InvFx64c(vf1)) - 1.0 / vd1); in Unary_operator_test_()
643 OutDetail("1.0 / v1 _64 Error = %.10f \n", diff); in Unary_operator_test_()
656 double diff = 0.0; in Binary_operator_test_() local
[all …]
Dfx_append_mtx.c106 static void GetDifferenceMtx_(const double *a, const double *b, double *diff, int numElement);
391 static void GetDifferenceMtx_(const double *a, const double *b, double *diff, int numElement) in GetDifferenceMtx_() argument
396 SDK_NULL_ASSERT(diff); in GetDifferenceMtx_()
402 diff[i] = fabs(a[i] - b[i]); in GetDifferenceMtx_()
/TwlSDK-5.1.0/build/tools/defval/test/
DMakefile48 @diff result1.txt goodresult1.txt || echo "Error: result1.txt unmatched."
49 @diff result2.txt goodresult2.txt || echo "Error: result2.txt unmatched."
50 @diff result3.txt goodresult3.txt || echo "Error: result3.txt unmatched."
/TwlSDK-5.1.0/build/libraries/prc/common/src/
Dprc_algo_light.c220 int diff; in PRC_GetRecognizedEntriesEx_Light() local
223 diff = (s16)(protoAngle[iProto] - inputAngle[iInput]); in PRC_GetRecognizedEntriesEx_Light()
224 if (diff < 0) in PRC_GetRecognizedEntriesEx_Light()
226 diff = -diff; in PRC_GetRecognizedEntriesEx_Light()
230 score += protoNextRatio * diff; in PRC_GetRecognizedEntriesEx_Light()
237 score += inputNextRatio * diff; in PRC_GetRecognizedEntriesEx_Light()
Dprc_algo_standard.c200 int diff, score; in PRC_GetRecognizedEntriesEx_Standard() local
203 diff = (s16)(protoAngle[iProto] - inputAngle[iInput]); in PRC_GetRecognizedEntriesEx_Standard()
204 if (diff < 0) in PRC_GetRecognizedEntriesEx_Standard()
206 diff = -diff; in PRC_GetRecognizedEntriesEx_Standard()
208 score = ((32768 - diff) / 128); in PRC_GetRecognizedEntriesEx_Standard()
/TwlSDK-5.1.0/build/libraries/wfs/common/src/
Dwfs_format.c38 const u32 diff = origin_b - origin_a; in WFS_LoadTable() local
39 const BOOL mixed = (diff != 0); in WFS_LoadTable()
65 archive->region[WFS_TABLE_REGION_OV9].offset = MI_LoadLE32(&header->main_ovt.offset) + diff; in WFS_LoadTable()
67 archive->region[WFS_TABLE_REGION_OV7].offset = MI_LoadLE32(&header->sub_ovt.offset) + diff; in WFS_LoadTable()
69 origin_b_fat = header->fat.offset + diff; in WFS_LoadTable()
143 MI_StoreLE32(&fat[count].top, MI_LEToH32(entry.top) + diff); in WFS_LoadTable()
144 MI_StoreLE32(&fat[count].bottom, MI_LEToH32(entry.bottom) + diff); in WFS_LoadTable()
/TwlSDK-5.1.0/build/demos/math/qsort/src/
Dmain.c168 s64 diff = (s64)*(u32 *)elem1 - (s64)*(u32 *)elem2; in compare() local
170 return (diff > 0) ? +1 : ((diff < 0) ? -1 : 0); in compare()
/TwlSDK-5.1.0/build/libraries/std/common/src/
Dstd_string.c695 char c, d, diff; in STD_CompareNIString() local
708 diff = (char)(c - d); in STD_CompareNIString()
710 if( diff == 0 ) in STD_CompareNIString()
716 if( diff == 'a' - 'A' ) in STD_CompareNIString()
723 else if( diff == 'A' - 'a' ) in STD_CompareNIString()
/TwlSDK-5.1.0/build/libraries/os/common/src/
Dos_reset.c583 u32 diff = 0x8000 - src_arm9; in OSi_ReloadRomData() local
585 dst_arm9 += diff; in OSi_ReloadRomData()
586 len_arm9 -= diff; in OSi_ReloadRomData()
/TwlSDK-5.1.0/build/libraries/el/common/src/
Dloader_subset.c1306 s32 diff; local
1308 diff = (s32)S - (s32)(P);
1309 if( (diff < threshold)&&( diff > -threshold)) {