liboiltypes

liboiltypes — Internal Liboil types

Synopsis




enum        OilType;
int         oil_type_sizeof                 (OilType type);
const char* oil_type_name                   (OilType type);
enum        OilArgType;
const char* oil_arg_type_name               (OilArgType type);
#define     type_s8
#define     type_u8
#define     type_s16
#define     type_u16
#define     type_s32
#define     type_u32
#define     type_f32
#define     type_f64
#define     type_min_s8
#define     type_min_u8
#define     type_min_s16
#define     type_min_u16
#define     type_min_s32
#define     type_min_u32
#define     type_max_s8
#define     type_max_u8
#define     type_max_s16
#define     type_max_u16
#define     type_max_s32
#define     type_max_u32

Description

Details

enum OilType

typedef enum {
  OIL_TYPE_UNKNOWN = 0,
  OIL_TYPE_INT,
  OIL_TYPE_s8,
  OIL_TYPE_u8,
  OIL_TYPE_s16,
  OIL_TYPE_u16,
  OIL_TYPE_s32,
  OIL_TYPE_u32,
  OIL_TYPE_s64,
  OIL_TYPE_u64,
  OIL_TYPE_f32,
  OIL_TYPE_f64,
  OIL_TYPE_s8p,
  OIL_TYPE_u8p,
  OIL_TYPE_s16p,
  OIL_TYPE_u16p,
  OIL_TYPE_s32p,
  OIL_TYPE_u32p,
  OIL_TYPE_s64p,
  OIL_TYPE_u64p,
  OIL_TYPE_f32p,
  OIL_TYPE_f64p,
} OilType;

Enumeration containing the data types understood by Liboil.


oil_type_sizeof ()

int         oil_type_sizeof                 (OilType type);

Looks up the size of the OilType represented by type.

type : the OilType
Returns : the size of type

oil_type_name ()

const char* oil_type_name                   (OilType type);

Looks up the name of the OilType given by type.

type : an OilType
Returns : a string containing the name of the OilType type.

enum OilArgType

typedef enum {
  OIL_ARG_UNKNOWN = 0,
  OIL_ARG_N,
  OIL_ARG_M,
  OIL_ARG_DEST1,
  OIL_ARG_DSTR1,
  OIL_ARG_DEST2,
  OIL_ARG_DSTR2,
  OIL_ARG_SRC1,
  OIL_ARG_SSTR1,
  OIL_ARG_SRC2,
  OIL_ARG_SSTR2,
  OIL_ARG_SRC3,
  OIL_ARG_SSTR3,
  OIL_ARG_SRC4,
  OIL_ARG_SSTR4,
  OIL_ARG_SRC5,
  OIL_ARG_SSTR5,
  OIL_ARG_INPLACE1,
  OIL_ARG_ISTR1,
  OIL_ARG_INPLACE2,
  OIL_ARG_ISTR2,

  OIL_ARG_LAST
} OilArgType;

Enumeration containing the types of parameter types understood by Liboil.


oil_arg_type_name ()

const char* oil_arg_type_name               (OilArgType type);

Looks up the name of the OilArgType specified by type.

type : an OilArgType
Returns : a string containing the name

type_s8

#define type_s8 int8_t

Useful for autogenerated code. Do not use otherwise.


type_u8

#define type_u8 uint8_t

Useful for autogenerated code. Do not use otherwise.


type_s16

#define type_s16 int16_t

Useful for autogenerated code. Do not use otherwise.


type_u16

#define type_u16 uint16_t

Useful for autogenerated code. Do not use otherwise.


type_s32

#define type_s32 int32_t

Useful for autogenerated code. Do not use otherwise.


type_u32

#define type_u32 uint32_t

Useful for autogenerated code. Do not use otherwise.


type_f32

#define type_f32 float

Useful for autogenerated code. Do not use otherwise.


type_f64

#define type_f64 double

Useful for autogenerated code. Do not use otherwise.


type_min_s8

#define type_min_s8 (-128)

Useful for autogenerated code. Do not use otherwise.


type_min_u8

#define type_min_u8 (0)

Useful for autogenerated code. Do not use otherwise.


type_min_s16

#define type_min_s16 (-32768)

Useful for autogenerated code. Do not use otherwise.


type_min_u16

#define type_min_u16 (0)

Useful for autogenerated code. Do not use otherwise.


type_min_s32

#define type_min_s32 (-2147483647 - 1)

Useful for autogenerated code. Do not use otherwise.


type_min_u32

#define type_min_u32 (0)

Useful for autogenerated code. Do not use otherwise.


type_max_s8

#define type_max_s8 (127)

Useful for autogenerated code. Do not use otherwise.


type_max_u8

#define type_max_u8 (255)

Useful for autogenerated code. Do not use otherwise.


type_max_s16

#define type_max_s16 (32767)

Useful for autogenerated code. Do not use otherwise.


type_max_u16

#define type_max_u16 (65535)

Useful for autogenerated code. Do not use otherwise.


type_max_s32

#define type_max_s32 (2147483647)

Useful for autogenerated code. Do not use otherwise.


type_max_u32

#define type_max_u32 (4294967295U)

Useful for autogenerated code. Do not use otherwise.