Sha256: 083b01da8a515143a11bc83bea45a7eb0639de74d7c2568158a2a2a2605bf3f3

Contents?: true

Size: 595 Bytes

Versions: 47

Compression:

Stored size: 595 Bytes

Contents

typedef int64_t dtype;
typedef int64_t rtype;
#define cT  numo_cInt64
#define cRT cT

#define m_num_to_data(x) ((dtype)NUM2INT64(x))
#define m_data_to_num(x) INT642NUM((int64_t)(x))
#define m_extract(x)     INT642NUM((int64_t)*(dtype*)(x))
#define m_sprintf(s,x)   sprintf(s,"%"PRId64,(int64_t)(x))

#ifndef INT64_MIN
#define INT64_MIN (-9223372036854775807l-1)
#endif
#ifndef INT64_MAX
#define INT64_MAX (9223372036854775807l)
#endif

#define DATA_MIN INT64_MIN
#define DATA_MAX INT64_MAX

#define M_MIN  m_data_to_num(INT64_MIN)
#define M_MAX  m_data_to_num(INT64_MAX)

#include "int_macro.h"

Version data entries

47 entries across 24 versions & 2 rubygems

Version Path
numo-narray-0.9.1.5 ext/numo/narray/numo/types/int64.h
numo-narray-0.9.1.4 ext/numo/narray/numo/types/int64.h
numo-narray-0.9.1.3 ext/numo/narray/numo/types/int64.h
ruby-dnn-0.4.0 lib/dnn/ext/rb_stb_image/numo/types/int64.h
ruby-dnn-0.4.0 lib/dnn/ext/dataset_loader/numo/types/int64.h
ruby-dnn-0.3.2 lib/dnn/ext/image_io/numo/types/int64.h
ruby-dnn-0.3.2 lib/dnn/ext/dataset_loader/numo/types/int64.h
ruby-dnn-0.3.1 lib/dnn/ext/image_io/numo/types/int64.h
ruby-dnn-0.3.1 lib/dnn/ext/dataset_loader/numo/types/int64.h
ruby-dnn-0.3.0 lib/dnn/ext/dataset_loader/numo/types/int64.h
ruby-dnn-0.3.0 lib/dnn/ext/image_io/numo/types/int64.h
ruby-dnn-0.2.2 lib/dnn/ext/image_io/numo/types/int64.h
ruby-dnn-0.2.2 lib/dnn/ext/dataset_loader/numo/types/int64.h
ruby-dnn-0.2.1 lib/dnn/ext/image_io/numo/types/int64.h
ruby-dnn-0.2.1 lib/dnn/ext/dataset_loader/numo/types/int64.h
ruby-dnn-0.2.0 lib/dnn/ext/image_io/numo/types/int64.h
ruby-dnn-0.2.0 lib/dnn/ext/dataset_loader/numo/types/int64.h
ruby-dnn-0.1.8 lib/dnn/ext/image_io/numo/types/int64.h
ruby-dnn-0.1.8 lib/dnn/ext/dataset_loader/numo/types/int64.h
ruby-dnn-0.1.7 lib/dnn/ext/dataset_loader/numo/types/int64.h