liboiltypes

## liboiltypes liboiltypes — Internal Liboil types |

## Synopsis

    enum                OilType;
    int                 oil_type_sizeof                     (OilType type);
    #define             oil_type_is_floating_point          (type)
    const char *        oil_type_name                       (OilType type);
    enum                OilArgType;
    const char *        oil_arg_type_name                   (OilArgType type);
    #define             oil_type_s8
    #define             oil_type_u8
    #define             oil_type_s16
    #define             oil_type_u16
    #define             oil_type_s32
    #define             oil_type_u32
    #define             oil_type_s64
    #define             oil_type_u64
    #define             oil_type_f32
    #define             oil_type_f64
    #define             oil_type_min_s8
    #define             oil_type_min_u8
    #define             oil_type_min_s16
    #define             oil_type_min_u16
    #define             oil_type_min_s32
    #define             oil_type_min_u32
    #define             oil_type_max_s8
    #define             oil_type_max_u8
    #define             oil_type_max_s16
    #define             oil_type_max_u16
    #define             oil_type_max_s32
    #define             oil_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_is_floating_point()

    #define             oil_type_is_floating_point(type)

`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_DEST3,
      OIL_ARG_DSTR3,
      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

### oil_type_s8

    #define oil_type_s8 int8_t

Useful for autogenerated code. Do not use otherwise.

### oil_type_u8

    #define oil_type_u8 uint8_t

Useful for autogenerated code. Do not use otherwise.

### oil_type_s16

    #define oil_type_s16 int16_t

Useful for autogenerated code. Do not use otherwise.

### oil_type_u16

    #define oil_type_u16 uint16_t

Useful for autogenerated code. Do not use otherwise.

### oil_type_s32

    #define oil_type_s32 int32_t

Useful for autogenerated code. Do not use otherwise.

### oil_type_u32

    #define oil_type_u32 uint32_t

Useful for autogenerated code. Do not use otherwise.

### oil_type_s64

    #define oil_type_s64 int64_t

Useful for autogenerated code. Do not use otherwise.

### oil_type_u64

    #define oil_type_u64 uint64_t

Useful for autogenerated code. Do not use otherwise.

### oil_type_f32

    #define oil_type_f32 float

Useful for autogenerated code. Do not use otherwise.

### oil_type_f64

    #define oil_type_f64 double

Useful for autogenerated code. Do not use otherwise.

### oil_type_min_s8

    #define oil_type_min_s8 (-128)

Useful for autogenerated code. Do not use otherwise.

### oil_type_min_u8

    #define oil_type_min_u8 (0)

Useful for autogenerated code. Do not use otherwise.

### oil_type_min_s16

    #define oil_type_min_s16 (-32768)

Useful for autogenerated code. Do not use otherwise.

### oil_type_min_u16

    #define oil_type_min_u16 (0)

Useful for autogenerated code. Do not use otherwise.

### oil_type_min_s32

    #define oil_type_min_s32 (-2147483647 - 1)

Useful for autogenerated code. Do not use otherwise.

### oil_type_min_u32

    #define oil_type_min_u32 (0)

Useful for autogenerated code. Do not use otherwise.

### oil_type_max_s8

    #define oil_type_max_s8 (127)

Useful for autogenerated code. Do not use otherwise.

### oil_type_max_u8

    #define oil_type_max_u8 (255)

Useful for autogenerated code. Do not use otherwise.

### oil_type_max_s16

    #define oil_type_max_s16 (32767)

Useful for autogenerated code. Do not use otherwise.

### oil_type_max_u16

    #define oil_type_max_u16 (65535)

Useful for autogenerated code. Do not use otherwise.

### oil_type_max_s32

    #define oil_type_max_s32 (2147483647)

Useful for autogenerated code. Do not use otherwise.

### oil_type_max_u32

    #define oil_type_max_u32 (4294967295U)

Useful for autogenerated code. Do not use otherwise.