Fixes to filter join and gcc 7.x compilation errors
[com/gs-lite.git] / cfg / external_fcns.def
index 0bb58f7..8091c8a 100644 (file)
         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 (int, int);
+       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 (int, int);
+       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 (int, int);
+       uint FUN [LFTA_LEGAL, COST FREE] LEQ (ullong, ullong);
+
+
 ///////////////////////////////////////////////////////////
 //          Function for regex matching
 ///////////////////////////////////////////////////////////
@@ -62,6 +77,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 +154,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 fstring16 (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 +215,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
+