Lines Matching +full:- +full:g

1 /* ----------------------------------------------------------------------
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
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()
195 //printf("%6.9f %6.9f %6.9f %g %g\n",a,b,rel,delta,average); in assert_relative_error()
198 //printf("rel = %g, threshold %g \n",rel,threshold); in assert_relative_error()
200 sprintf(details,"diff (%g,%g), %g > %g",a,b,rel , threshold); in assert_relative_error()
210 delta=abs(a-b); in assert_relative_error()
215 //printf("%6.9f %6.9f %6.9f %g %g\n",a,b,rel,delta,average); in assert_relative_error()
218 //printf("rel = %g, threshold %g \n",rel,threshold); in assert_relative_error()
220 sprintf(details,"diff (%g,%g), %g > %g",a,b,rel , threshold); in assert_relative_error()
231 delta=abs(a-b); in assert_relative_error()
236 //printf("%6.9f %6.9f %6.9f %g %g\n",a,b,rel,delta,average); in assert_relative_error()
239 //printf("rel = %g, threshold %g \n",rel,threshold); in assert_relative_error()
241 sprintf(details,"diff (%g,%g), %g > %g",a,b,rel , threshold); 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()
749 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
765 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
793 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
811 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
839 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
855 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
883 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
900 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
929 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
945 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
973 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
990 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
1018 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
1035 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()