Sha256: e5162a56f56421b56450e6c8107553559927639863e7e0d3b385ee39622e9953

Contents?: true

Size: 517 Bytes

Versions: 6

Compression:

Stored size: 517 Bytes

Contents

typedef int32_t dtype;
typedef int32_t rtype;
#define cT  numo_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_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

6 entries across 6 versions & 1 rubygems

Version Path
numo-narray-0.9.2.1 ext/numo/narray/numo/types/int32.h
numo-narray-0.9.2.0 ext/numo/narray/numo/types/int32.h
numo-narray-0.9.1.9 ext/numo/narray/numo/types/int32.h
numo-narray-0.9.1.8 ext/numo/narray/numo/types/int32.h
numo-narray-0.9.1.7 ext/numo/narray/numo/types/int32.h
numo-narray-0.9.1.6 ext/numo/narray/numo/types/int32.h