X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=cfg%2Fexternal_fcns.def;h=674c5c6c9c341f195858ac8fd32ab78476fefe2d;hb=083c44074f33f33368f66739afac9c11a51feb08;hp=0bb58f7ad2cd53733e9ea32ab40e381ee9ae2106;hpb=c9783d8ea8b85d810483559e50dbf2297109e349;p=com%2Fgs-lite.git diff --git a/cfg/external_fcns.def b/cfg/external_fcns.def index 0bb58f7..674c5c6 100644 --- a/cfg/external_fcns.def +++ b/cfg/external_fcns.def @@ -19,6 +19,18 @@ IP FUN [LFTA_LEGAL, COST FREE] UMIN (IP,IP); IP FUN [LFTA_LEGAL, COST FREE] UMAX (IP,IP); +/////////////////////////////////////////////////////////// +// conditional functions +/////////////////////////////////////////////////////////// + + uint FUN [LFTA_LEGAL, COST FREE] EQ (uint, uint); + uint FUN [LFTA_LEGAL, COST FREE] EQ (ullong, ullong); + uint FUN [LFTA_LEGAL, COST FREE] GEQ (uint, uint); + uint FUN [LFTA_LEGAL, COST FREE] GEQ (ullong, ullong); + uint FUN [LFTA_LEGAL, COST FREE] LEQ (uint, uint); + uint FUN [LFTA_LEGAL, COST FREE] LEQ (ullong, ullong); + + /////////////////////////////////////////////////////////// // Function for regex matching /////////////////////////////////////////////////////////// @@ -62,6 +74,12 @@ uint FUN [LFTA_LEGAL, COST EXPENSIVE] ullong FUN [LFTA_LEGAL,COST FREE]ULLONG(uint); ullong FUN [LFTA_LEGAL,COST FREE]ULLONG(int); +/////////////////////////////////////////////////////////// +// Numeric functions +/////////////////////////////////////////////////////////// + + float FUN [LFTA_LEGAL, COST LOW] sqrt(float); + /////////////////////////////////////////////////////////// // Convert an IPv4 address @@ -133,6 +151,20 @@ uint FUN [LFTA_LEGAL, COST EXPENSIVE] BOOL SFUN local_count manku_hh_state (UINT); int SFUN current_bucket manku_hh_state (); +/////////////////////////////////////////////////////////// +// Flips approximate quantile +/////////////////////////////////////////////////////////// + + uint EXTR quantile_of quant_udaf_hfta0 extr_quant_hfta0_fcn (uint, float); + uint FUN [COST LOW] extr_quant_hfta0_fcn(string, float); + uint EXTR median_of quant_udaf_hfta0 extr_med_hfta0_fcn (uint); + uint FUN [COST LOW] extr_med_hfta0_fcn(string); + uint EXTR qspace_of quant_udaf_hfta0 extr_quant_hfta0_space (uint); + uint FUN [COST LOW] extr_quant_hfta0_space(string); + string UDAF [SUBAGGR quant_udaf_lfta3, SUPERAGGR quant_udaf_hfta3] quant_udaf_hfta0 fstring8 (uint); + string UDAF quant_udaf_hfta3 fstring16 (string); + string UDAF quant_udaf_lfta3 fstring6600 (uint); + /////////////////////////////////////////////////////////// // FIRST and LAST aggregation funciton // Should be replaced by builtins @@ -180,4 +212,4 @@ uint FUN [LFTA_LEGAL, COST EXPENSIVE] string UDAF [RUNNING, SUBAGGR running_array_aggr_lfta, SUPERAGGR running_array_aggr_hfta] running_array_aggr string (uint); string UDAF [RUNNING] running_array_aggr_hfta string (string); string UDAF [RUNNING] running_array_aggr_lfta fstring17 (uint); - \ No newline at end of file +