ext/numo/narray/numo/template.h in numo-narray-0.9.1.8 vs ext/numo/narray/numo/template.h in numo-narray-0.9.1.9
- old
+ new
@@ -34,22 +34,20 @@
es = ((lp)->args[i]).elmsz; \
}
#define INIT_PTR_BIT( lp, i, ad, ps, st ) \
{ \
- ps = ((lp)->args[i].iter[0]).pos; \
- ad = (BIT_DIGIT*)(((lp)->args[i]).ptr) + ps/NB; \
- ps %= NB; \
- st = ((lp)->args[i].iter[0]).step; \
+ ps = ((lp)->args[i].iter[0]).pos; \
+ ad = (BIT_DIGIT*)(((lp)->args[i]).ptr); \
+ st = ((lp)->args[i].iter[0]).step; \
}
#define INIT_PTR_BIT_IDX( lp, i, ad, ps, st, id ) \
{ \
- ps = ((lp)->args[i].iter[0]).pos; \
- ad = (BIT_DIGIT*)(((lp)->args[i]).ptr) + ps/NB; \
- ps %= NB; \
- st = ((lp)->args[i].iter[0]).step; \
- id = ((lp)->args[i].iter[0]).idx; \
+ ps = ((lp)->args[i].iter[0]).pos; \
+ ad = (BIT_DIGIT*)(((lp)->args[i]).ptr); \
+ st = ((lp)->args[i].iter[0]).step; \
+ id = ((lp)->args[i].iter[0]).idx; \
}
#define GET_DATA( ptr, type, val ) \
{ \
val = *(type*)(ptr); \