LCOV - code coverage report
Current view: top level - AP_Math - AP_Math.h (source / functions) Hit Total Coverage
Test: lcov.info Lines: 61 63 96.8 %
Date: 2026-09-09 11:02:08 Functions: 151 156 96.8 %

Function Name Sort by function name Hit count Sort by hit count
hz_to_nsec(unsigned int) 2
hz_to_usec(unsigned int) 3
nsec_to_hz(unsigned int) 2
usec_to_hz(unsigned int) 2
bool is_negative<AP_ParamT<float, (ap_var_type)4> >(AP_ParamT<float, (ap_var_type)4>) 4291183
bool is_negative<float>(float) 5527303155
is_negative(double) 521
bool is_positive<AP_ParamT<float, (ap_var_type)4> >(AP_ParamT<float, (ap_var_type)4>) 2123417346
bool is_positive<float>(float) 8544874425
is_positive(double) 486289343
nsec_to_usec(unsigned int) 2
constrain_int8(signed char, signed char, signed char) 0
constrain_int16(short, short, short) 207334065
constrain_int32(int, int, int) 939513657
constrain_int64(long, long, long) 8004
constrain_double(double, double, double) 1887
constrain_uint16(unsigned short, unsigned short, unsigned short) 1898417
constrain_uint32(unsigned int, unsigned int, unsigned int) 140860547
double sq<AP_ParamT<float, (ap_var_type)4> >(AP_ParamT<float, (ap_var_type)4>) 109474805
double sq<AP_ParamT<float, (ap_var_type)4>, AP_ParamT<float, (ap_var_type)4> >(AP_ParamT<float, (ap_var_type)4>, AP_ParamT<float, (ap_var_type)4> const) 2
double sq<AP_ParamT<float, (ap_var_type)4>, AP_ParamT<float, (ap_var_type)4>, AP_ParamT<float, (ap_var_type)4> >(AP_ParamT<float, (ap_var_type)4>, AP_ParamT<float, (ap_var_type)4> const, AP_ParamT<float, (ap_var_type)4> const) 2
double sq<double>(double) 5132145188
double sq<double, double>(double, double const) 620686967
double sq<double, double, double>(double, double const, double const) 586915922
double sq<int>(int) 158
double sq<int, double>(int, double const) 2
double sq<int, float>(int, float const) 4
double sq<int, int>(int, int const) 14
double sq<int, int, int>(int, int const, int const) 10
double sq<int, int, int, int>(int, int const, int const, int const) 8
double sq<int, int, int, int, int>(int, int const, int const, int const, int const) 8
double sq<int, int, int, int, int, int>(int, int const, int const, int const, int const, int const) 8
double sq<int, int, int, int, int, int, int>(int, int const, int const, int const, int const, int const, int const) 8
double sq<int, int, int, int, int, int, int, int>(int, int const, int const, int const, int const, int const, int const, int const) 8
double sq<int, int, int, int, int, int, int, int, int>(int, int const, int const, int const, int const, int const, int const, int const, int const) 8
double sq<int, int, int, int, int, int, int, int, int, int>(int, int const, int const, int const, int const, int const, int const, int const, int const, int const) 8
double sq<int, int, int, int, int, int, int, int, int, int, int>(int, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const) 8
double sq<int, int, int, int, int, int, int, int, int, int, int, int>(int, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const) 8
double sq<int, int, int, int, int, int, int, int, int, int, int, int, int>(int, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const) 8
double sq<int, int, int, int, int, int, int, int, int, int, int, int, int, int>(int, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const) 8
double sq<int, int, int, int, int, int, int, int, int, int, int, int, int, int, int>(int, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const) 8
double sq<int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int>(int, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const) 4
double sq<long>(long) 6
double sq<short>(short) 720
double sq<short, short>(short, short const) 360
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<AP_ParamT<signed char, (ap_var_type)1>, int>(AP_ParamT<signed char, (ap_var_type)1> const&, int const&) 2
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<AP_ParamT<signed char, (ap_var_type)1>, unsigned short>(AP_ParamT<signed char, (ap_var_type)1> const&, unsigned short const&) 96546
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<AP_ParamT<float, (ap_var_type)4>, double>(AP_ParamT<float, (ap_var_type)4> const&, double const&) 1904
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<AP_ParamT<float, (ap_var_type)4>, float>(AP_ParamT<float, (ap_var_type)4> const&, float const&) 213429477
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<AP_ParamT<int, (ap_var_type)3>, int>(AP_ParamT<int, (ap_var_type)3> const&, int const&) 90395
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<AP_ParamT<short, (ap_var_type)2>, float>(AP_ParamT<short, (ap_var_type)2> const&, float const&) 0
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<AP_ParamT<short, (ap_var_type)2>, int>(AP_ParamT<short, (ap_var_type)2> const&, int const&) 6130306
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<AP_ParamT<short, (ap_var_type)2>, unsigned short>(AP_ParamT<short, (ap_var_type)2> const&, unsigned short const&) 48273
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<AP_BattMonitor::Failsafe, AP_BattMonitor::Failsafe>(AP_BattMonitor::Failsafe const&, AP_BattMonitor::Failsafe const&) 5092
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<unsigned int volatile, unsigned int volatile>(unsigned int volatile const&, unsigned int volatile const&) 30173
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<signed char, signed char>(signed char const&, signed char const&) 7629369
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<signed char, float>(signed char const&, float const&) 0
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<signed char, int>(signed char const&, int const&) 256722
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<bool, int>(bool const&, int const&) 2
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<double, AP_ParamT<float, (ap_var_type)4> >(double const&, AP_ParamT<float, (ap_var_type)4> const&) 3315417
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<double, double>(double const&, double const&) 250057715
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<double, float>(double const&, float const&) 5068859530
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<double, int>(double const&, int const&) 177
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<float, AP_ParamT<float, (ap_var_type)4> >(float const&, AP_ParamT<float, (ap_var_type)4> const&) 238759
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<float, double>(float const&, double const&) 662724549
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<float, float>(float const&, float const&) 4855545425
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<float, unsigned char>(float const&, unsigned char const&) 0
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<float, int>(float const&, int const&) 406358111
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<float, unsigned short>(float const&, unsigned short const&) 0
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<unsigned char, unsigned char>(unsigned char const&, unsigned char const&) 10424906
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<unsigned char, int>(unsigned char const&, int const&) 3183
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<unsigned char, unsigned int>(unsigned char const&, unsigned int const&) 33
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<int, AP_ParamT<signed char, (ap_var_type)1> >(int const&, AP_ParamT<signed char, (ap_var_type)1> const&) 2
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<int, AP_ParamT<float, (ap_var_type)4> >(int const&, AP_ParamT<float, (ap_var_type)4> const&) 184368
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<int, AP_ParamT<short, (ap_var_type)2> >(int const&, AP_ParamT<short, (ap_var_type)2> const&) 302773
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<int, signed char>(int const&, signed char const&) 19519
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<int, double>(int const&, double const&) 939395
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<int, float>(int const&, float const&) 479043015
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<int, unsigned char>(int const&, unsigned char const&) 20
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<int, int>(int const&, int const&) 31269105
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<unsigned int, unsigned int>(unsigned int const&, unsigned int const&) 201418992
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<unsigned long, unsigned int>(unsigned long const&, unsigned int const&) 2430
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<unsigned long, unsigned long>(unsigned long const&, unsigned long const&) 2
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<short, float>(short const&, float const&) 54485052
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<short, int>(short const&, int const&) 794
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<short, short>(short const&, short const&) 31
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<unsigned short, float>(unsigned short const&, float const&) 784
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<unsigned short, int>(unsigned short const&, int const&) 62726
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<unsigned short, unsigned int>(unsigned short const&, unsigned int const&) 32442
decltype ((({parm#1}>{parm#2}))?{parm#1} : {parm#2}) MAX<unsigned short, unsigned short>(unsigned short const&, unsigned short const&) 1422140
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<AP_ParamT<float, (ap_var_type)4>, float>(AP_ParamT<float, (ap_var_type)4> const&, float const&) 5267720
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<AP_ParamT<short, (ap_var_type)2>, AP_ParamT<short, (ap_var_type)2> >(AP_ParamT<short, (ap_var_type)2> const&, AP_ParamT<short, (ap_var_type)2> const&) 809666
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<AP_ParamT<short, (ap_var_type)2>, float>(AP_ParamT<short, (ap_var_type)2> const&, float const&) 334
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<AP_ParamT<short, (ap_var_type)2>, int>(AP_ParamT<short, (ap_var_type)2> const&, int const&) 33735
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<signed char, signed char>(signed char const&, signed char const&) 7338849
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<signed char, int>(signed char const&, int const&) 4
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<bool, int>(bool const&, int const&) 2
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<double, double>(double const&, double const&) 46616
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<double, float>(double const&, float const&) 15264862
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<double, int>(double const&, int const&) 3176402
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<float, AP_ParamT<float, (ap_var_type)4> >(float const&, AP_ParamT<float, (ap_var_type)4> const&) 364662
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<float, AP_ParamT<short, (ap_var_type)2> >(float const&, AP_ParamT<short, (ap_var_type)2> const&) 37088
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<float, double>(float const&, double const&) 93109195
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<float, float>(float const&, float const&) 1216093428
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<float, int>(float const&, int const&) 3602012
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<float, short>(float const&, short const&) 1569399
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<float, unsigned short>(float const&, unsigned short const&) 866777
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<unsigned char, signed char>(unsigned char const&, signed char const&) 87
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<unsigned char, unsigned char>(unsigned char const&, unsigned char const&) 635228
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<unsigned char, int>(unsigned char const&, int const&) 12566981
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<unsigned char, unsigned int>(unsigned char const&, unsigned int const&) 3282
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<unsigned char, unsigned long>(unsigned char const&, unsigned long const&) 74749
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<int, MAV_COMPONENT>(int const&, MAV_COMPONENT const&) 4
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<int, AP_ParamT<signed char, (ap_var_type)1> >(int const&, AP_ParamT<signed char, (ap_var_type)1> const&) 628798
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<int, AP_ParamT<float, (ap_var_type)4> >(int const&, AP_ParamT<float, (ap_var_type)4> const&) 16
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<int, AP_ParamT<short, (ap_var_type)2> >(int const&, AP_ParamT<short, (ap_var_type)2> const&) 35602
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<int, float>(int const&, float const&) 6721074
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<int, unsigned char>(int const&, unsigned char const&) 267494883
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<int, int>(int const&, int const&) 983478
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<int, short>(int const&, short const&) 1569398
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<int, unsigned short>(int const&, unsigned short const&) 1242240366
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<unsigned int, float>(unsigned int const&, float const&) 2
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<unsigned int, unsigned char>(unsigned int const&, unsigned char const&) 2
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<unsigned int, unsigned int>(unsigned int const&, unsigned int const&) 1132250931
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<unsigned int, unsigned long>(unsigned int const&, unsigned long const&) 51843
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<unsigned int, unsigned short>(unsigned int const&, unsigned short const&) 58289
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<long, long>(long const&, long const&) 23912
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<unsigned long, unsigned char>(unsigned long const&, unsigned char const&) 31177
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<unsigned long, unsigned int>(unsigned long const&, unsigned int const&) 1144621
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<unsigned long, unsigned long>(unsigned long const&, unsigned long const&) 507651
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<unsigned long, unsigned short>(unsigned long const&, unsigned short const&) 1310862
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<short, int>(short const&, int const&) 200
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<unsigned short, int>(unsigned short const&, int const&) 5535
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<unsigned short, unsigned int>(unsigned short const&, unsigned int const&) 87051
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<unsigned short, unsigned long>(unsigned short const&, unsigned long const&) 2
decltype (({parm#1}<{parm#2})?{parm#1} : {parm#2}) MIN<unsigned short, unsigned short>(unsigned short const&, unsigned short const&) 129556228
double norm<AP_ParamT<float, (ap_var_type)4>, AP_ParamT<float, (ap_var_type)4>, AP_ParamT<float, (ap_var_type)4> >(AP_ParamT<float, (ap_var_type)4>, AP_ParamT<float, (ap_var_type)4>, AP_ParamT<float, (ap_var_type)4> const) 2
double norm<double, double>(double, double) 33771059
double norm<double, double, double>(double, double, double const) 586915922
double norm<int, double>(int, double) 2
double norm<int, float>(int, float) 4
double norm<int, int>(int, int) 4
double norm<int, int, int>(int, int, int const) 2
double norm<int, int, int, int, int, int, int, int, int, int, int, int, int, int, int>(int, int, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const) 4
double norm<int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int>(int, int, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const, int const) 4
double norm<short, short>(short, short) 360
norm(float, float) 780025472
norm(float, float, float) 2532093869
bool is_zero<AP_ParamT<float, (ap_var_type)4> >(AP_ParamT<float, (ap_var_type)4>) 7629197823
sq(float) 17252041191
degrees(float) 2578853535
radians(double) 4938218780
radians(float) 5928356593
radians(int) 276377922
cd_to_rad(float) 40559072
rad_to_cd(float) 14784731

Generated by: LCOV version 1.14