BeBOP Optimized Sparse Kernel Interface Library
1.0.1h
|
00001 00008 #if !defined(INC_OSKI_COMMON_H) 00009 00010 #define INC_OSKI_COMMON_H 00011 00019 #if defined(__cplusplus) /* Using a C++ compiler? */ 00020 #if !defined(DECL_C_BEGIN) 00021 00022 #define DECL_C_BEGIN extern "C" { 00023 #endif 00024 00025 #if !defined(DECL_C_END) 00026 00027 #define DECL_C_END } 00028 #endif 00029 #else 00030 00031 #define DECL_C_BEGIN 00032 00033 #define DECL_C_END 00034 #endif 00035 00037 #define MAKE_STRING(x) #x 00038 00040 #define MACRO_TO_STRING(x) MAKE_STRING(x) 00041 00043 #define OSKI_MIN(a, b) ((a) < (b) ? (a) : (b)) 00044 00045 #include <stdlib.h> /* for size_t */ 00046 00047 #include <oski/malloc.h> 00048 #include <oski/memcpy.h> 00049 #include <oski/sprintf.h> 00050 #include <oski/error.h> 00051 #include <oski/debug.h> 00052 00054 typedef size_t oski_id_t; 00055 00057 #define INVALID_ID ((oski_id_t)0) 00058 00063 #define OSKI_MAKENAME_FUNCPT(name) oski_ ## name ## _funcpt 00064 00065 00066 #include <oski/userconst.h> 00067 00068 #include <oski/scalinfo.h> 00069 #include <oski/kerinfo.h> 00070 #include <oski/mattypes.h> 00071 00072 #include <oski/init.h> 00073 00074 #include <oski/structhint.h> 00075 00076 #include <oski/timer.h> 00077 #include <oski/heur.h> 00078 00084 #define INT_CEIL_DIV(a, b) ((a) / (b)) + (((a) % (b)) > 0) 00085 00086 #endif /* !defined(INC_OSKI_COMMON_H) */ 00087 00088 /* eof */