#include <stdlib.h>
#include <oski/malloc.h>
#include <oski/memcpy.h>
#include <oski/sprintf.h>
#include <oski/error.h>
#include <oski/debug.h>
#include <oski/userconst.h>
#include <oski/scalinfo.h>
#include <oski/kerinfo.h>
#include <oski/mattypes.h>
#include <oski/init.h>
#include <oski/structhint.h>
#include <oski/timer.h>
#include <oski/heur.h>
Go to the source code of this file.
Defines | |
#define | INC_OSKI_COMMON_H |
oski/common.h has been included. | |
#define | DECL_C_BEGIN |
Define macros to help prevent name-mangling when using a C++ compiler. | |
#define | DECL_C_END |
End of a region of C symbols. | |
#define | MAKE_STRING(x) #x |
"Stringify" argument | |
#define | MACRO_TO_STRING(x) MAKE_STRING(x) |
Expand argument macro, then stringify. | |
#define | OSKI_MIN(a, b) ((a) < (b) ? (a) : (b)) |
Min of a pair of arguments. | |
#define | INVALID_ID ((oski_id_t)0) |
Invalid id number. | |
#define | OSKI_MAKENAME_FUNCPT(name) oski_ ## name ## _funcpt |
Make a function pointer type name of the form, oski_[name]_funcpt. | |
#define | INT_CEIL_DIV(a, b) ((a) / (b)) + (((a) % (b)) > 0) |
Returns the ceiling of a / b, where a and b are integer types. | |
Typedefs | |
typedef size_t | oski_id_t |
Integer identification number type. |
#define DECL_C_BEGIN |
Define macros to help prevent name-mangling when using a C++ compiler.
A region of code enclosed in DECL_C_BEGIN and DECL_C_END macros are declared to be external C symbols. Start of a region of C symbols.
#define DECL_C_END |
End of a region of C symbols.
#define INC_OSKI_COMMON_H |
oski/common.h has been included.
#define INT_CEIL_DIV | ( | a, | |||
b | ) | ((a) / (b)) + (((a) % (b)) > 0) |
Returns the ceiling of a / b, where a and b are integer types.
This macro doesn't work if a and b are not integers.
Referenced by ConvertFromCSR().
#define INVALID_ID ((oski_id_t)0) |
Invalid id number.
Referenced by ChooseFastest(), ConvertLuaMatToCSR(), CopyMatSpecific(), oski_ApplyMatTransforms(), oski_CreateMatStruct(), oski_DisplayMatTypeInfo(), oski_FindHeurRecord(), oski_FindMatTypeRecord(), oski_FreeInputMatRepr(), oski_GetMatEntry(), oski_GetNumScalarIndexTypes(), oski_GetNumScalarValueTypes(), oski_HeurIsApplicable(), oski_LookupHeurId(), oski_LookupHeurIdByNum(), oski_LookupHeurMethod(), oski_LookupMatTypeId(), oski_LookupMatTypeMethod(), oski_MatchesTraceRecord(), oski_MatMult(), oski_MatMultAndMatTransMult(), oski_MatPowMult(), oski_MatTransMatMult(), oski_MatTrisolve(), oski_PushEmptyLuaMat(), oski_RecordCalls(), oski_RegisterHeur(), oski_RegisterMatType(), oski_ReplaceTunedMatRepr(), oski_TuneMat(), SetMatEntry(), and ToStringLuaMat().
typedef size_t oski_id_t |
Integer identification number type.