common.h File Reference

A maximal set of system-independent prototypes and definitions widely useful to all of the BeBOP library's sub-modules. More...

#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.


Detailed Description

A maximal set of system-independent prototypes and definitions widely useful to all of the BeBOP library's sub-modules.


Define Documentation

#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,
 )     ((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)


Typedef Documentation

typedef size_t oski_id_t

Integer identification number type.


Generated on Fri Apr 8 22:35:19 2011 for BeBOP Optimized Sparse Kernel Interface Library by  doxygen 1.5.9