Sha256: 4ac4729ae471d4914306c0356d88f2f1f7c0ff3e3a4c7734eee5087d600431dd

Contents?: true

Size: 575 Bytes

Versions: 20

Compression:

Stored size: 575 Bytes

Contents

typedef int32_t dtype;
typedef int32_t rtype;
#define cT  cumo_cInt32
#define cRT cT

#define m_num_to_data(x) ((dtype)NUM2INT32(x))
#define m_data_to_num(x) INT322NUM((int32_t)(x))
#define m_extract(x)     INT322NUM((int32_t)*(dtype*)(x))
#define m_sprintf(s,x)   sprintf(s,"%"PRId32,(int32_t)(x))

#ifndef INT32_MIN
#define INT32_MIN (-2147483647-1)
#endif
#ifndef INT32_MAX
#define INT32_MAX (2147483647)
#endif

#define DATA_MIN INT32_MIN
#define DATA_MAX INT32_MAX

#define M_MIN  m_data_to_num(INT32_MIN)
#define M_MAX  m_data_to_num(INT32_MAX)

#include "int_macro.h"

Version data entries

20 entries across 20 versions & 1 rubygems

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