Lines Matching +full:language +full:- +full:cpp

1 /* ----------------------------------------------------------------------
3 * Title: Error.cpp
9 * Target Processor: Cortex-M cores
10 * -------------------------------------------------------------------- */
12 * Copyright (C) 2010-2019 ARM Limited or its affiliates. All rights reserved.
14 * SPDX-License-Identifier: Apache-2.0
20 * www.apache.org/licenses/LICENSE-2.0
25 * See the License for the specific language governing permissions and
54 if (fabs(pa - pb) > threshold) in assert_near_equal()
57 sprintf(details,"diff %g > %g (%g,%g)",fabs(pa - pb) , threshold,pa,pb); in assert_near_equal()
65 if (fabs(pa - pb) > threshold) in assert_near_equal()
68 sprintf(details,"diff %g > %g (%g,%g)",fabs(pa - pb) , threshold, pa, pb); in assert_near_equal()
77 if (fabs(pa - pb) > threshold) in assert_near_equal()
80 sprintf(details,"diff %g > %g (%g,%g)",fabs(pa - pb) , threshold, pa, pb); in assert_near_equal()
89 if (abs(pa - pb) > threshold) in assert_near_equal()
93 sprintf(details,"diff %ld > %ld (0x%016lX,0x%016lX)",abs(pa - pb) , threshold,pa,pb); in assert_near_equal()
95 sprintf(details,"diff %lld > %lld (0x%016llX,0x%016llX)",abs(pa - pb) , threshold,pa,pb); in assert_near_equal()
104 if (abs(pa - pb) > threshold) in assert_near_equal()
107 sprintf(details,"diff %d > %d (0x%08X,0x%08X)",abs(pa - pb) , threshold,pa,pb); in assert_near_equal()
115 if (abs(pa - pb) > threshold) in assert_near_equal()
118 sprintf(details,"diff %d > %d (0x%04X,0x%04X)",abs(pa - pb) , threshold,pa,pb); in assert_near_equal()
126 if (abs(pa - pb) > threshold) in assert_near_equal()
129 sprintf(details,"diff %d > %d (0x%02X,0x%02X)",abs(pa - pb) , threshold,pa,pb); in assert_near_equal()
190 delta=abs(a-b); in assert_relative_error()
210 delta=abs(a-b); in assert_relative_error()
231 delta=abs(a-b); in assert_relative_error()
346 if (abs(val - ref) > (absthreshold + relthreshold * abs(ref))) in assert_close_error()
349 …sprintf(details,"close error %g > %g: (val = %g, ref = %g)",abs(val - ref) , absthreshold + relthr… in assert_close_error()
389 if (abs(val - ref) > (absthreshold + relthreshold * abs(ref))) in assert_close_error()
392 …sprintf(details,"close error %g > %g: (val = %g, ref = %g)",abs(val - ref) , absthreshold + relthr… in assert_close_error()
433 if (abs((float)val - (float)ref) > (absthreshold + relthreshold * abs((float)ref))) in assert_close_error()
436 …sprintf(details,"close error %g > %g: (val = %g, ref = %g)",abs(val - ref) , absthreshold + relthr… in assert_close_error()
500 return(-def); \
519 EnergyError += (pRef[i] - pTest[i]) * (pRef[i] - pTest[i]); in arm_snr_f32()
553 EnergyError += (pRef[i] - pTest[i]) * (pRef[i] - pTest[i]); in arm_snr_f16()
587 EnergyError += (refVal - testVal) * (refVal - testVal); in arm_snr_q63()
620 EnergyError += (refVal - testVal) * (refVal - testVal); in arm_snr_q31()
651 EnergyError += (refVal - testVal) * (refVal - testVal); in arm_snr_q15()
682 EnergyError += (refVal - testVal) * (refVal - testVal); in arm_snr_q7()
711 EnergyError += (pRef[i] - pTest[i]) * (pRef[i] - pTest[i]); in arm_snr_f64()