Treelite
Functions
typeinfo_ctypes.h File Reference

Look up C symbols corresponding to TypeInfo. More...

#include <treelite/base.h>
#include <string>
Include dependency graph for typeinfo_ctypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::string TypeInfoToCTypeString (TypeInfo type)
 Get string representation of the C type that's equivalent to the given type info. More...
 
std::string CExpForTypeInfo (TypeInfo type)
 Look up the correct variant of exp() in C that should be used with a given type. More...
 
std::string CExp2ForTypeInfo (TypeInfo type)
 Look up the correct variant of exp2() in C that should be used with a given type. More...
 
std::string CCopySignForTypeInfo (TypeInfo type)
 Look up the correct variant of copysign() in C that should be used with a given type. More...
 
std::string CLog1PForTypeInfo (TypeInfo type)
 Look up the correct variant of log1p() in C that should be used with a given type. More...
 

Detailed Description

Look up C symbols corresponding to TypeInfo.

Copyright (c) 2020 by Contributors

Author
Hyunsu Cho

Definition in file typeinfo_ctypes.h.

Function Documentation

◆ CCopySignForTypeInfo()

std::string treelite::compiler::native::CCopySignForTypeInfo ( TypeInfo  type)
inline

Look up the correct variant of copysign() in C that should be used with a given type.

Parameters
infoa type info
Returns
string representation

Definition at line 91 of file typeinfo_ctypes.h.

◆ CExp2ForTypeInfo()

std::string treelite::compiler::native::CExp2ForTypeInfo ( TypeInfo  type)
inline

Look up the correct variant of exp2() in C that should be used with a given type.

Parameters
infoa type info
Returns
string representation

Definition at line 69 of file typeinfo_ctypes.h.

◆ CExpForTypeInfo()

std::string treelite::compiler::native::CExpForTypeInfo ( TypeInfo  type)
inline

Look up the correct variant of exp() in C that should be used with a given type.

Parameters
infoa type info
Returns
string representation

Definition at line 47 of file typeinfo_ctypes.h.

◆ CLog1PForTypeInfo()

std::string treelite::compiler::native::CLog1PForTypeInfo ( TypeInfo  type)
inline

Look up the correct variant of log1p() in C that should be used with a given type.

Parameters
infoa type info
Returns
string representation

Definition at line 113 of file typeinfo_ctypes.h.

◆ TypeInfoToCTypeString()

std::string treelite::compiler::native::TypeInfoToCTypeString ( TypeInfo  type)
inline

Get string representation of the C type that's equivalent to the given type info.

Parameters
infoa type info
Returns
string representation

Definition at line 24 of file typeinfo_ctypes.h.