Skip to content

Commit 2016cac

Browse files
committed
32-bit
1 parent 8ae5bad commit 2016cac

File tree

8 files changed

+15
-3
lines changed

8 files changed

+15
-3
lines changed

jsrc/viavx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
#include "j.h"
99
#include "vcomp.h"
10-
#include "viavx.h"
1110

1211
// platforms with hardware crc32c
1312
#if C_CRC32C && SY_64
13+
#include "viavx.h"
1414

1515
#if !(C_AVX || EMU_AVX)
1616
#error need avx or emulation to work

jsrc/viavx1-2.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if C_CRC32C && SY_64
12
#define suff
23
#define TH US
34
#include "viavx1.h"
5+
#endif

jsrc/viavx1-4.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if C_CRC32C && SY_64
12
#define suff 2
23
#define TH UI4
34
#include "viavx1.h"
5+
#endif

jsrc/viavx2.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if C_CRC32C && SY_64
12
#include "j.h"
23
#include "viavx.h"
34

@@ -212,3 +213,4 @@ IOFT(D,UI4,jtiod12,HIDMSK(v), TFINDXYT,TFINDY1T,TFINDY1TKEY,*v!=av[hj],
212213
IOFT(A,UI4,jtioa2, cthia(ctmask,1.0,C(*v)),TFINDBX,TFINDBY,TFINDBYKEY,!eqa(n,v,av+n*hj), !eqa(n,v,av+n*hj), D x)
213214
// singleton box
214215
IOFT(A,UI4,jtioa12,cthia(ctmask,1.0,C(*v)),TFINDBX,TFINDBY,TFINDBYKEY,!equ(C(*v),C(av[hj])),!equ(C(*v),C(av[hj])), D x)
216+
#endif

jsrc/viavx3.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if C_CRC32C && SY_64
12
#include "j.h"
23
#include "viavx.h"
34

@@ -160,4 +161,4 @@ IOFSMALLRANGE(jtio12,UC, US) IOFSMALLRANGE(jtio14,UC, UI4) // 1-byte items, us
160161
IOFSMALLRANGE(jtio22,US, US) IOFSMALLRANGE(jtio24,US, UI4) // 2-byte items, using small/large hashtable
161162
IOFSMALLRANGE(jtio42,UI4,US) IOFSMALLRANGE(jtio44,UI4,UI4) // 4-byte items, using small/large hashtable
162163
IOFSMALLRANGE(jtio82,I, US) IOFSMALLRANGE(jtio84,I, UI4) // SZI-byte items, using small/large hashtable
163-
164+
#endif

jsrc/viavx4.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
#if C_CRC32C && SY_64
12
#include "j.h"
23
#include "viavx.h"
34

45
// ******************* i., fourth class: sequential comparison ***************************************
56
// implemented only for i. i: e. u/. - perhaps should revert for other compounds
67

7-
88
// fz=bit0 = commutative, bit1 set if incomplete y must be filled with 0 (to avoid isub oflo), bit2 set if incomplete x must be filled with i (for fdiv NaN),
99
// bit3 set for int-to-float on x, bit4 for int-to-float on y
1010
// bit5 set to suppress loop-unrolling
@@ -164,3 +164,4 @@ A jtiosc(J jt,I mode,I n,I asct,I wsct,I ac,I wc,A a,A w,A z){I j,p,q; void *u,*
164164
}
165165
R z; // return non-error indic, but also where the partition count for IFORKEY is stored
166166
} /* right argument cell is scalar or list; only for modes IIDOT IICO IEPS, and intolerant IFORKEY */
167+
#endif

jsrc/viavx5.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if C_CRC32C && SY_64
12
#include "j.h"
23
#include "viavx.h"
34

@@ -112,3 +113,4 @@ IOF(jtiobs){A*av,*wv,y;B *yb,*zb;C*zc;I acn,*hu,*hv,l,m1,md,s,wcn,*zi,*zv;
112113
}}
113114
R h;
114115
} /* a i.!.0 w on boxed a,w by grading and binary search */
116+
#endif

jsrc/viavx6.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if C_CRC32C && SY_64
12
#include "j.h"
23
#include "viavx.h"
34

@@ -80,3 +81,4 @@ IOFXW(D, UI4,jtiowc012,,hic01((UIL*)v), *v!=wv[hj], 1) // float
8081
IOFXW(Z, UI4,jtiowz012,,hic0(2,(UIL*)v), (v[0].re!=wv[hj].re)||(v[0].im!=wv[hj].im), 1) // complex atom
8182
IOFXW(D, UI4,jtiowc02,, hic0(n,(UIL*)v), fcmp0(v,&wv[n*hj],n), cn) // float array
8283
IOFXW(Z, UI4,jtiowz02,, hic0(2*n,(UIL*)v),fcmp0((D*)v,(D*)&wv[n*hj],2*n), cn) // complex array
84+
#endif

0 commit comments

Comments
 (0)