Sha256: b57bbf6eab328e5ac85d52e54fe9c8c12954e684e3edb0229f58bf06f139617a

Contents?: true

Size: 553 Bytes

Versions: 20

Compression:

Stored size: 553 Bytes

Contents

typedef u_int8_t dtype;
typedef u_int8_t rtype;
#define cT  cumo_cUInt8
#define cRT cT

#define m_num_to_data(x) ((dtype)NUM2UINT(x))
#define m_data_to_num(x) UINT2NUM((unsigned int)(x))
#define m_extract(x)     UINT2NUM((unsigned int)*(dtype*)(x))
#define m_sprintf(s,x)   sprintf(s,"%u",(unsigned int)(x))

#ifndef UINT8_MIN
#define UINT8_MIN (0)
#endif

#ifndef UINT8_MAX
#define UINT8_MAX (255)
#endif

#define DATA_MIN UINT8_MIN
#define DATA_MAX UINT8_MAX

#define M_MIN  INT2FIX(0)
#define M_MAX  m_data_to_num(UINT8_MAX)

#include "uint_macro.h"

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
cumo-0.4.3 ext/cumo/include/cumo/types/uint8.h
cumo-0.4.2 ext/cumo/include/cumo/types/uint8.h
cumo-0.4.1 ext/cumo/include/cumo/types/uint8.h
cumo-0.4.0 ext/cumo/include/cumo/types/uint8.h
cumo-0.3.5 ext/cumo/include/cumo/types/uint8.h
cumo-0.3.4 ext/cumo/include/cumo/types/uint8.h
cumo-0.3.3 ext/cumo/include/cumo/types/uint8.h
cumo-0.3.2 ext/cumo/include/cumo/types/uint8.h
cumo-0.3.1 ext/cumo/include/cumo/types/uint8.h
cumo-0.3.0 ext/cumo/include/cumo/types/uint8.h
cumo-0.3.0.pre1 ext/cumo/include/cumo/types/uint8.h
cumo-0.2.5 ext/cumo/include/cumo/types/uint8.h
cumo-0.2.4 ext/cumo/include/cumo/types/uint8.h
cumo-0.2.3 ext/cumo/include/cumo/types/uint8.h
cumo-0.2.2 ext/cumo/include/cumo/types/uint8.h
cumo-0.2.1 ext/cumo/include/cumo/types/uint8.h
cumo-0.2.0 ext/cumo/include/cumo/types/uint8.h
cumo-0.1.2 ext/cumo/include/cumo/types/uint8.h
cumo-0.1.1 ext/cumo/include/cumo/types/uint8.h
cumo-0.1.0 ext/cumo/include/cumo/types/uint8.h