Go to the documentation of this file. 8 #ifndef TREELITE_COMPILER_NATIVE_HEADER_TEMPLATE_H_ 9 #define TREELITE_COMPILER_NATIVE_HEADER_TEMPLATE_H_ 15 const char* header_template =
22 #if defined(__clang__) || defined(__GNUC__) 23 #define LIKELY(x) __builtin_expect(!!(x), 1) 24 #define UNLIKELY(x) __builtin_expect(!!(x), 0) 27 #define UNLIKELY(x) (x) 38 unsigned int split_index; 39 {threshold_type} threshold; 44 extern const unsigned char is_categorical[]; 46 {dllexport}{get_num_output_group_function_signature}; 47 {dllexport}{get_num_feature_function_signature}; 48 {dllexport}{get_pred_transform_function_signature}; 49 {dllexport}{get_sigmoid_alpha_function_signature}; 50 {dllexport}{get_global_bias_function_signature}; 51 {dllexport}{predict_function_signature}; 57 #endif // TREELITE_COMPILER_NATIVE_HEADER_TEMPLATE_H_