Look up C symbols corresponding to TypeInfo.
More...
#include <treelite/base.h>
#include <treelite/error.h>
#include <string>
Go to the source code of this file.
|
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...
|
|
Look up C symbols corresponding to TypeInfo.
Copyright (c) 2020 by Contributors
- Author
- Hyunsu Cho
Definition in file typeinfo_ctypes.h.
◆ 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
-
- Returns
- string representation
Definition at line 89 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
-
- Returns
- string representation
Definition at line 68 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
-
- 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
-
- Returns
- string representation
Definition at line 110 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
-
- Returns
- string representation
Definition at line 25 of file typeinfo_ctypes.h.