1 #include "simint/boys/boys.h"
2 #include "simint/ostei/gen/ostei_generated.h"
3 #include "simint/vectorization/vectorization.h"
4 #include <math.h>
5 #include <string.h>
6
7
ostei_k_f_i_h(struct simint_multi_shellpair const P,struct simint_multi_shellpair const Q,double screen_tol,double * const restrict work,double * const restrict INT__k_f_i_h)8 int ostei_k_f_i_h(struct simint_multi_shellpair const P,
9 struct simint_multi_shellpair const Q,
10 double screen_tol,
11 double * const restrict work,
12 double * const restrict INT__k_f_i_h)
13 {
14
15 SIMINT_ASSUME_ALIGN_DBL(work);
16 SIMINT_ASSUME_ALIGN_DBL(INT__k_f_i_h);
17 int ab, cd, abcd;
18 int istart, jstart;
19 int iprimcd, nprim_icd, icd;
20 const int check_screen = (screen_tol > 0.0);
21 int i, j;
22 int n;
23 int not_screened;
24 int real_abcd;
25 int iket;
26 int ibra;
27
28 // partition workspace
29 double * const INT__k_s_i_s = work + (SIMINT_NSHELL_SIMD * 0);
30 double * const INT__k_s_k_s = work + (SIMINT_NSHELL_SIMD * 1008);
31 double * const INT__k_s_l_s = work + (SIMINT_NSHELL_SIMD * 2304);
32 double * const INT__k_s_m_s = work + (SIMINT_NSHELL_SIMD * 3924);
33 double * const INT__k_s_n_s = work + (SIMINT_NSHELL_SIMD * 5904);
34 double * const INT__k_s_o_s = work + (SIMINT_NSHELL_SIMD * 8280);
35 double * const INT__l_s_i_s = work + (SIMINT_NSHELL_SIMD * 11088);
36 double * const INT__l_s_k_s = work + (SIMINT_NSHELL_SIMD * 12348);
37 double * const INT__l_s_l_s = work + (SIMINT_NSHELL_SIMD * 13968);
38 double * const INT__l_s_m_s = work + (SIMINT_NSHELL_SIMD * 15993);
39 double * const INT__l_s_n_s = work + (SIMINT_NSHELL_SIMD * 18468);
40 double * const INT__l_s_o_s = work + (SIMINT_NSHELL_SIMD * 21438);
41 double * const INT__m_s_i_s = work + (SIMINT_NSHELL_SIMD * 24948);
42 double * const INT__m_s_k_s = work + (SIMINT_NSHELL_SIMD * 26488);
43 double * const INT__m_s_l_s = work + (SIMINT_NSHELL_SIMD * 28468);
44 double * const INT__m_s_m_s = work + (SIMINT_NSHELL_SIMD * 30943);
45 double * const INT__m_s_n_s = work + (SIMINT_NSHELL_SIMD * 33968);
46 double * const INT__m_s_o_s = work + (SIMINT_NSHELL_SIMD * 37598);
47 double * const INT__n_s_i_s = work + (SIMINT_NSHELL_SIMD * 41888);
48 double * const INT__n_s_k_s = work + (SIMINT_NSHELL_SIMD * 43736);
49 double * const INT__n_s_l_s = work + (SIMINT_NSHELL_SIMD * 46112);
50 double * const INT__n_s_m_s = work + (SIMINT_NSHELL_SIMD * 49082);
51 double * const INT__n_s_n_s = work + (SIMINT_NSHELL_SIMD * 52712);
52 double * const INT__n_s_o_s = work + (SIMINT_NSHELL_SIMD * 57068);
53 SIMINT_DBLTYPE * const primwork = (SIMINT_DBLTYPE *)(work + SIMINT_NSHELL_SIMD*62216);
54 SIMINT_DBLTYPE * const restrict PRIM_INT__s_s_s_s = primwork + 0;
55 SIMINT_DBLTYPE * const restrict PRIM_INT__s_s_p_s = primwork + 22;
56 SIMINT_DBLTYPE * const restrict PRIM_INT__s_s_d_s = primwork + 85;
57 SIMINT_DBLTYPE * const restrict PRIM_INT__s_s_f_s = primwork + 205;
58 SIMINT_DBLTYPE * const restrict PRIM_INT__s_s_g_s = primwork + 395;
59 SIMINT_DBLTYPE * const restrict PRIM_INT__s_s_h_s = primwork + 665;
60 SIMINT_DBLTYPE * const restrict PRIM_INT__s_s_i_s = primwork + 1022;
61 SIMINT_DBLTYPE * const restrict PRIM_INT__s_s_k_s = primwork + 1470;
62 SIMINT_DBLTYPE * const restrict PRIM_INT__s_s_l_s = primwork + 2010;
63 SIMINT_DBLTYPE * const restrict PRIM_INT__s_s_m_s = primwork + 2640;
64 SIMINT_DBLTYPE * const restrict PRIM_INT__s_s_n_s = primwork + 3355;
65 SIMINT_DBLTYPE * const restrict PRIM_INT__s_s_o_s = primwork + 4147;
66 SIMINT_DBLTYPE * const restrict PRIM_INT__p_s_s_s = primwork + 5005;
67 SIMINT_DBLTYPE * const restrict PRIM_INT__p_s_p_s = primwork + 5035;
68 SIMINT_DBLTYPE * const restrict PRIM_INT__p_s_d_s = primwork + 5125;
69 SIMINT_DBLTYPE * const restrict PRIM_INT__p_s_f_s = primwork + 5305;
70 SIMINT_DBLTYPE * const restrict PRIM_INT__p_s_g_s = primwork + 5605;
71 SIMINT_DBLTYPE * const restrict PRIM_INT__p_s_h_s = primwork + 6055;
72 SIMINT_DBLTYPE * const restrict PRIM_INT__p_s_i_s = primwork + 6685;
73 SIMINT_DBLTYPE * const restrict PRIM_INT__p_s_k_s = primwork + 7525;
74 SIMINT_DBLTYPE * const restrict PRIM_INT__p_s_l_s = primwork + 8605;
75 SIMINT_DBLTYPE * const restrict PRIM_INT__p_s_m_s = primwork + 9955;
76 SIMINT_DBLTYPE * const restrict PRIM_INT__p_s_n_s = primwork + 11605;
77 SIMINT_DBLTYPE * const restrict PRIM_INT__p_s_o_s = primwork + 13585;
78 SIMINT_DBLTYPE * const restrict PRIM_INT__d_s_s_s = primwork + 15925;
79 SIMINT_DBLTYPE * const restrict PRIM_INT__d_s_p_s = primwork + 15979;
80 SIMINT_DBLTYPE * const restrict PRIM_INT__d_s_d_s = primwork + 16141;
81 SIMINT_DBLTYPE * const restrict PRIM_INT__d_s_f_s = primwork + 16465;
82 SIMINT_DBLTYPE * const restrict PRIM_INT__d_s_g_s = primwork + 17005;
83 SIMINT_DBLTYPE * const restrict PRIM_INT__d_s_h_s = primwork + 17815;
84 SIMINT_DBLTYPE * const restrict PRIM_INT__d_s_i_s = primwork + 18949;
85 SIMINT_DBLTYPE * const restrict PRIM_INT__d_s_k_s = primwork + 20461;
86 SIMINT_DBLTYPE * const restrict PRIM_INT__d_s_l_s = primwork + 22405;
87 SIMINT_DBLTYPE * const restrict PRIM_INT__d_s_m_s = primwork + 24835;
88 SIMINT_DBLTYPE * const restrict PRIM_INT__d_s_n_s = primwork + 27805;
89 SIMINT_DBLTYPE * const restrict PRIM_INT__d_s_o_s = primwork + 31369;
90 SIMINT_DBLTYPE * const restrict PRIM_INT__f_s_s_s = primwork + 35581;
91 SIMINT_DBLTYPE * const restrict PRIM_INT__f_s_p_s = primwork + 35661;
92 SIMINT_DBLTYPE * const restrict PRIM_INT__f_s_d_s = primwork + 35901;
93 SIMINT_DBLTYPE * const restrict PRIM_INT__f_s_f_s = primwork + 36381;
94 SIMINT_DBLTYPE * const restrict PRIM_INT__f_s_g_s = primwork + 37181;
95 SIMINT_DBLTYPE * const restrict PRIM_INT__f_s_h_s = primwork + 38381;
96 SIMINT_DBLTYPE * const restrict PRIM_INT__f_s_i_s = primwork + 40061;
97 SIMINT_DBLTYPE * const restrict PRIM_INT__f_s_k_s = primwork + 42301;
98 SIMINT_DBLTYPE * const restrict PRIM_INT__f_s_l_s = primwork + 45181;
99 SIMINT_DBLTYPE * const restrict PRIM_INT__f_s_m_s = primwork + 48781;
100 SIMINT_DBLTYPE * const restrict PRIM_INT__f_s_n_s = primwork + 53181;
101 SIMINT_DBLTYPE * const restrict PRIM_INT__f_s_o_s = primwork + 58461;
102 SIMINT_DBLTYPE * const restrict PRIM_INT__g_s_s_s = primwork + 64701;
103 SIMINT_DBLTYPE * const restrict PRIM_INT__g_s_p_s = primwork + 64806;
104 SIMINT_DBLTYPE * const restrict PRIM_INT__g_s_d_s = primwork + 65121;
105 SIMINT_DBLTYPE * const restrict PRIM_INT__g_s_f_s = primwork + 65751;
106 SIMINT_DBLTYPE * const restrict PRIM_INT__g_s_g_s = primwork + 66801;
107 SIMINT_DBLTYPE * const restrict PRIM_INT__g_s_h_s = primwork + 68376;
108 SIMINT_DBLTYPE * const restrict PRIM_INT__g_s_i_s = primwork + 70581;
109 SIMINT_DBLTYPE * const restrict PRIM_INT__g_s_k_s = primwork + 73521;
110 SIMINT_DBLTYPE * const restrict PRIM_INT__g_s_l_s = primwork + 77301;
111 SIMINT_DBLTYPE * const restrict PRIM_INT__g_s_m_s = primwork + 82026;
112 SIMINT_DBLTYPE * const restrict PRIM_INT__g_s_n_s = primwork + 87801;
113 SIMINT_DBLTYPE * const restrict PRIM_INT__g_s_o_s = primwork + 94731;
114 SIMINT_DBLTYPE * const restrict PRIM_INT__h_s_p_s = primwork + 102921;
115 SIMINT_DBLTYPE * const restrict PRIM_INT__h_s_d_s = primwork + 103299;
116 SIMINT_DBLTYPE * const restrict PRIM_INT__h_s_f_s = primwork + 104055;
117 SIMINT_DBLTYPE * const restrict PRIM_INT__h_s_g_s = primwork + 105315;
118 SIMINT_DBLTYPE * const restrict PRIM_INT__h_s_h_s = primwork + 107205;
119 SIMINT_DBLTYPE * const restrict PRIM_INT__h_s_i_s = primwork + 109851;
120 SIMINT_DBLTYPE * const restrict PRIM_INT__h_s_k_s = primwork + 113379;
121 SIMINT_DBLTYPE * const restrict PRIM_INT__h_s_l_s = primwork + 117915;
122 SIMINT_DBLTYPE * const restrict PRIM_INT__h_s_m_s = primwork + 123585;
123 SIMINT_DBLTYPE * const restrict PRIM_INT__h_s_n_s = primwork + 130515;
124 SIMINT_DBLTYPE * const restrict PRIM_INT__h_s_o_s = primwork + 138831;
125 SIMINT_DBLTYPE * const restrict PRIM_INT__i_s_d_s = primwork + 148659;
126 SIMINT_DBLTYPE * const restrict PRIM_INT__i_s_f_s = primwork + 149499;
127 SIMINT_DBLTYPE * const restrict PRIM_INT__i_s_g_s = primwork + 150899;
128 SIMINT_DBLTYPE * const restrict PRIM_INT__i_s_h_s = primwork + 152999;
129 SIMINT_DBLTYPE * const restrict PRIM_INT__i_s_i_s = primwork + 155939;
130 SIMINT_DBLTYPE * const restrict PRIM_INT__i_s_k_s = primwork + 159859;
131 SIMINT_DBLTYPE * const restrict PRIM_INT__i_s_l_s = primwork + 164899;
132 SIMINT_DBLTYPE * const restrict PRIM_INT__i_s_m_s = primwork + 171199;
133 SIMINT_DBLTYPE * const restrict PRIM_INT__i_s_n_s = primwork + 178899;
134 SIMINT_DBLTYPE * const restrict PRIM_INT__i_s_o_s = primwork + 188139;
135 SIMINT_DBLTYPE * const restrict PRIM_INT__k_s_f_s = primwork + 199059;
136 SIMINT_DBLTYPE * const restrict PRIM_INT__k_s_g_s = primwork + 200499;
137 SIMINT_DBLTYPE * const restrict PRIM_INT__k_s_h_s = primwork + 202659;
138 SIMINT_DBLTYPE * const restrict PRIM_INT__k_s_i_s = primwork + 205683;
139 SIMINT_DBLTYPE * const restrict PRIM_INT__k_s_k_s = primwork + 209715;
140 SIMINT_DBLTYPE * const restrict PRIM_INT__k_s_l_s = primwork + 214899;
141 SIMINT_DBLTYPE * const restrict PRIM_INT__k_s_m_s = primwork + 221379;
142 SIMINT_DBLTYPE * const restrict PRIM_INT__k_s_n_s = primwork + 229299;
143 SIMINT_DBLTYPE * const restrict PRIM_INT__k_s_o_s = primwork + 238803;
144 SIMINT_DBLTYPE * const restrict PRIM_INT__l_s_g_s = primwork + 250035;
145 SIMINT_DBLTYPE * const restrict PRIM_INT__l_s_h_s = primwork + 252060;
146 SIMINT_DBLTYPE * const restrict PRIM_INT__l_s_i_s = primwork + 254895;
147 SIMINT_DBLTYPE * const restrict PRIM_INT__l_s_k_s = primwork + 258675;
148 SIMINT_DBLTYPE * const restrict PRIM_INT__l_s_l_s = primwork + 263535;
149 SIMINT_DBLTYPE * const restrict PRIM_INT__l_s_m_s = primwork + 269610;
150 SIMINT_DBLTYPE * const restrict PRIM_INT__l_s_n_s = primwork + 277035;
151 SIMINT_DBLTYPE * const restrict PRIM_INT__l_s_o_s = primwork + 285945;
152 SIMINT_DBLTYPE * const restrict PRIM_INT__m_s_h_s = primwork + 296475;
153 SIMINT_DBLTYPE * const restrict PRIM_INT__m_s_i_s = primwork + 298785;
154 SIMINT_DBLTYPE * const restrict PRIM_INT__m_s_k_s = primwork + 301865;
155 SIMINT_DBLTYPE * const restrict PRIM_INT__m_s_l_s = primwork + 305825;
156 SIMINT_DBLTYPE * const restrict PRIM_INT__m_s_m_s = primwork + 310775;
157 SIMINT_DBLTYPE * const restrict PRIM_INT__m_s_n_s = primwork + 316825;
158 SIMINT_DBLTYPE * const restrict PRIM_INT__m_s_o_s = primwork + 324085;
159 SIMINT_DBLTYPE * const restrict PRIM_INT__n_s_i_s = primwork + 332665;
160 SIMINT_DBLTYPE * const restrict PRIM_INT__n_s_k_s = primwork + 334513;
161 SIMINT_DBLTYPE * const restrict PRIM_INT__n_s_l_s = primwork + 336889;
162 SIMINT_DBLTYPE * const restrict PRIM_INT__n_s_m_s = primwork + 339859;
163 SIMINT_DBLTYPE * const restrict PRIM_INT__n_s_n_s = primwork + 343489;
164 SIMINT_DBLTYPE * const restrict PRIM_INT__n_s_o_s = primwork + 347845;
165 double * const hrrwork = (double *)(primwork + 352993);
166 double * const HRR_INT__k_p_i_s = hrrwork + 0;
167 double * const HRR_INT__k_p_k_s = hrrwork + 3024;
168 double * const HRR_INT__k_p_l_s = hrrwork + 6912;
169 double * const HRR_INT__k_p_m_s = hrrwork + 11772;
170 double * const HRR_INT__k_p_n_s = hrrwork + 17712;
171 double * const HRR_INT__k_p_o_s = hrrwork + 24840;
172 double * const HRR_INT__k_d_i_s = hrrwork + 33264;
173 double * const HRR_INT__k_d_k_s = hrrwork + 39312;
174 double * const HRR_INT__k_d_l_s = hrrwork + 47088;
175 double * const HRR_INT__k_d_m_s = hrrwork + 56808;
176 double * const HRR_INT__k_d_n_s = hrrwork + 68688;
177 double * const HRR_INT__k_d_o_s = hrrwork + 82944;
178 double * const HRR_INT__k_f_i_s = hrrwork + 99792;
179 double * const HRR_INT__k_f_i_p = hrrwork + 109872;
180 double * const HRR_INT__k_f_i_d = hrrwork + 140112;
181 double * const HRR_INT__k_f_i_f = hrrwork + 200592;
182 double * const HRR_INT__k_f_i_g = hrrwork + 301392;
183 double * const HRR_INT__k_f_k_s = hrrwork + 452592;
184 double * const HRR_INT__k_f_k_p = hrrwork + 465552;
185 double * const HRR_INT__k_f_k_d = hrrwork + 504432;
186 double * const HRR_INT__k_f_k_f = hrrwork + 582192;
187 double * const HRR_INT__k_f_k_g = hrrwork + 711792;
188 double * const HRR_INT__k_f_l_s = hrrwork + 906192;
189 double * const HRR_INT__k_f_l_p = hrrwork + 922392;
190 double * const HRR_INT__k_f_l_d = hrrwork + 970992;
191 double * const HRR_INT__k_f_l_f = hrrwork + 1068192;
192 double * const HRR_INT__k_f_m_s = hrrwork + 1230192;
193 double * const HRR_INT__k_f_m_p = hrrwork + 1249992;
194 double * const HRR_INT__k_f_m_d = hrrwork + 1309392;
195 double * const HRR_INT__k_f_n_s = hrrwork + 1428192;
196 double * const HRR_INT__k_f_n_p = hrrwork + 1451952;
197 double * const HRR_INT__k_f_o_s = hrrwork + 1523232;
198 double * const HRR_INT__l_p_i_s = hrrwork + 1551312;
199 double * const HRR_INT__l_p_k_s = hrrwork + 1555092;
200 double * const HRR_INT__l_p_l_s = hrrwork + 1559952;
201 double * const HRR_INT__l_p_m_s = hrrwork + 1566027;
202 double * const HRR_INT__l_p_n_s = hrrwork + 1573452;
203 double * const HRR_INT__l_p_o_s = hrrwork + 1582362;
204 double * const HRR_INT__l_d_i_s = hrrwork + 1592892;
205 double * const HRR_INT__l_d_k_s = hrrwork + 1600452;
206 double * const HRR_INT__l_d_l_s = hrrwork + 1610172;
207 double * const HRR_INT__l_d_m_s = hrrwork + 1622322;
208 double * const HRR_INT__l_d_n_s = hrrwork + 1637172;
209 double * const HRR_INT__l_d_o_s = hrrwork + 1654992;
210 double * const HRR_INT__m_p_i_s = hrrwork + 1676052;
211 double * const HRR_INT__m_p_k_s = hrrwork + 1680672;
212 double * const HRR_INT__m_p_l_s = hrrwork + 1686612;
213 double * const HRR_INT__m_p_m_s = hrrwork + 1694037;
214 double * const HRR_INT__m_p_n_s = hrrwork + 1703112;
215 double * const HRR_INT__m_p_o_s = hrrwork + 1714002;
216
217
218 // Create constants
219 const SIMINT_DBLTYPE const_1 = SIMINT_DBLSET1(1);
220 const SIMINT_DBLTYPE const_10 = SIMINT_DBLSET1(10);
221 const SIMINT_DBLTYPE const_11 = SIMINT_DBLSET1(11);
222 const SIMINT_DBLTYPE const_2 = SIMINT_DBLSET1(2);
223 const SIMINT_DBLTYPE const_3 = SIMINT_DBLSET1(3);
224 const SIMINT_DBLTYPE const_4 = SIMINT_DBLSET1(4);
225 const SIMINT_DBLTYPE const_5 = SIMINT_DBLSET1(5);
226 const SIMINT_DBLTYPE const_6 = SIMINT_DBLSET1(6);
227 const SIMINT_DBLTYPE const_7 = SIMINT_DBLSET1(7);
228 const SIMINT_DBLTYPE const_8 = SIMINT_DBLSET1(8);
229 const SIMINT_DBLTYPE const_9 = SIMINT_DBLSET1(9);
230 const SIMINT_DBLTYPE one_half = SIMINT_DBLSET1(0.5);
231
232
233 ////////////////////////////////////////
234 // Loop over shells and primitives
235 ////////////////////////////////////////
236
237 real_abcd = 0;
238 istart = 0;
239 for(ab = 0; ab < P.nshell12_clip; ++ab)
240 {
241 const int iend = istart + P.nprim12[ab];
242
243 cd = 0;
244 jstart = 0;
245
246 for(cd = 0; cd < Q.nshell12_clip; cd += SIMINT_NSHELL_SIMD)
247 {
248 const int nshellbatch = ((cd + SIMINT_NSHELL_SIMD) > Q.nshell12_clip) ? Q.nshell12_clip - cd : SIMINT_NSHELL_SIMD;
249 int jend = jstart;
250 for(i = 0; i < nshellbatch; i++)
251 jend += Q.nprim12[cd+i];
252
253 // Clear the beginning of the workspace (where we are accumulating integrals)
254 memset(work, 0, SIMINT_NSHELL_SIMD * 62216 * sizeof(double));
255 abcd = 0;
256
257
258 for(i = istart; i < iend; ++i)
259 {
260 SIMINT_DBLTYPE bra_screen_max; // only used if check_screen
261
262 if(check_screen)
263 {
264 // Skip this whole thing if always insignificant
265 if((P.screen[i] * Q.screen_max) < screen_tol)
266 continue;
267 bra_screen_max = SIMINT_DBLSET1(P.screen[i]);
268 }
269
270 icd = 0;
271 iprimcd = 0;
272 nprim_icd = Q.nprim12[cd];
273 double * restrict PRIM_PTR_INT__k_s_i_s = INT__k_s_i_s + abcd * 1008;
274 double * restrict PRIM_PTR_INT__k_s_k_s = INT__k_s_k_s + abcd * 1296;
275 double * restrict PRIM_PTR_INT__k_s_l_s = INT__k_s_l_s + abcd * 1620;
276 double * restrict PRIM_PTR_INT__k_s_m_s = INT__k_s_m_s + abcd * 1980;
277 double * restrict PRIM_PTR_INT__k_s_n_s = INT__k_s_n_s + abcd * 2376;
278 double * restrict PRIM_PTR_INT__k_s_o_s = INT__k_s_o_s + abcd * 2808;
279 double * restrict PRIM_PTR_INT__l_s_i_s = INT__l_s_i_s + abcd * 1260;
280 double * restrict PRIM_PTR_INT__l_s_k_s = INT__l_s_k_s + abcd * 1620;
281 double * restrict PRIM_PTR_INT__l_s_l_s = INT__l_s_l_s + abcd * 2025;
282 double * restrict PRIM_PTR_INT__l_s_m_s = INT__l_s_m_s + abcd * 2475;
283 double * restrict PRIM_PTR_INT__l_s_n_s = INT__l_s_n_s + abcd * 2970;
284 double * restrict PRIM_PTR_INT__l_s_o_s = INT__l_s_o_s + abcd * 3510;
285 double * restrict PRIM_PTR_INT__m_s_i_s = INT__m_s_i_s + abcd * 1540;
286 double * restrict PRIM_PTR_INT__m_s_k_s = INT__m_s_k_s + abcd * 1980;
287 double * restrict PRIM_PTR_INT__m_s_l_s = INT__m_s_l_s + abcd * 2475;
288 double * restrict PRIM_PTR_INT__m_s_m_s = INT__m_s_m_s + abcd * 3025;
289 double * restrict PRIM_PTR_INT__m_s_n_s = INT__m_s_n_s + abcd * 3630;
290 double * restrict PRIM_PTR_INT__m_s_o_s = INT__m_s_o_s + abcd * 4290;
291 double * restrict PRIM_PTR_INT__n_s_i_s = INT__n_s_i_s + abcd * 1848;
292 double * restrict PRIM_PTR_INT__n_s_k_s = INT__n_s_k_s + abcd * 2376;
293 double * restrict PRIM_PTR_INT__n_s_l_s = INT__n_s_l_s + abcd * 2970;
294 double * restrict PRIM_PTR_INT__n_s_m_s = INT__n_s_m_s + abcd * 3630;
295 double * restrict PRIM_PTR_INT__n_s_n_s = INT__n_s_n_s + abcd * 4356;
296 double * restrict PRIM_PTR_INT__n_s_o_s = INT__n_s_o_s + abcd * 5148;
297
298
299
300 // Load these one per loop over i
301 const SIMINT_DBLTYPE P_alpha = SIMINT_DBLSET1(P.alpha[i]);
302 const SIMINT_DBLTYPE P_prefac = SIMINT_DBLSET1(P.prefac[i]);
303 const SIMINT_DBLTYPE Pxyz[3] = { SIMINT_DBLSET1(P.x[i]), SIMINT_DBLSET1(P.y[i]), SIMINT_DBLSET1(P.z[i]) };
304
305 const SIMINT_DBLTYPE P_PA[3] = { SIMINT_DBLSET1(P.PA_x[i]), SIMINT_DBLSET1(P.PA_y[i]), SIMINT_DBLSET1(P.PA_z[i]) };
306
307 for(j = jstart; j < jend; j += SIMINT_SIMD_LEN)
308 {
309 // calculate the shell offsets
310 // these are the offset from the shell pointed to by cd
311 // for each element
312 int shelloffsets[SIMINT_SIMD_LEN] = {0};
313 int lastoffset = 0;
314 const int nlane = ( ((j + SIMINT_SIMD_LEN) < jend) ? SIMINT_SIMD_LEN : (jend - j));
315
316 if((iprimcd + SIMINT_SIMD_LEN) >= nprim_icd)
317 {
318 // Handle if the first element of the vector is a new shell
319 if(iprimcd >= nprim_icd && ((icd+1) < nshellbatch))
320 {
321 nprim_icd += Q.nprim12[cd + (++icd)];
322 PRIM_PTR_INT__k_s_i_s += 1008;
323 PRIM_PTR_INT__k_s_k_s += 1296;
324 PRIM_PTR_INT__k_s_l_s += 1620;
325 PRIM_PTR_INT__k_s_m_s += 1980;
326 PRIM_PTR_INT__k_s_n_s += 2376;
327 PRIM_PTR_INT__k_s_o_s += 2808;
328 PRIM_PTR_INT__l_s_i_s += 1260;
329 PRIM_PTR_INT__l_s_k_s += 1620;
330 PRIM_PTR_INT__l_s_l_s += 2025;
331 PRIM_PTR_INT__l_s_m_s += 2475;
332 PRIM_PTR_INT__l_s_n_s += 2970;
333 PRIM_PTR_INT__l_s_o_s += 3510;
334 PRIM_PTR_INT__m_s_i_s += 1540;
335 PRIM_PTR_INT__m_s_k_s += 1980;
336 PRIM_PTR_INT__m_s_l_s += 2475;
337 PRIM_PTR_INT__m_s_m_s += 3025;
338 PRIM_PTR_INT__m_s_n_s += 3630;
339 PRIM_PTR_INT__m_s_o_s += 4290;
340 PRIM_PTR_INT__n_s_i_s += 1848;
341 PRIM_PTR_INT__n_s_k_s += 2376;
342 PRIM_PTR_INT__n_s_l_s += 2970;
343 PRIM_PTR_INT__n_s_m_s += 3630;
344 PRIM_PTR_INT__n_s_n_s += 4356;
345 PRIM_PTR_INT__n_s_o_s += 5148;
346 }
347 iprimcd++;
348 for(n = 1; n < SIMINT_SIMD_LEN; ++n)
349 {
350 if(iprimcd >= nprim_icd && ((icd+1) < nshellbatch))
351 {
352 shelloffsets[n] = shelloffsets[n-1] + 1;
353 lastoffset++;
354 nprim_icd += Q.nprim12[cd + (++icd)];
355 }
356 else
357 shelloffsets[n] = shelloffsets[n-1];
358 iprimcd++;
359 }
360 }
361 else
362 iprimcd += SIMINT_SIMD_LEN;
363
364 // Do we have to compute this vector (or has it been screened out)?
365 // (not_screened != 0 means we have to do this vector)
366 if(check_screen)
367 {
368 const double vmax = vector_max(SIMINT_MUL(bra_screen_max, SIMINT_DBLLOAD(Q.screen, j)));
369 if(vmax < screen_tol)
370 {
371 PRIM_PTR_INT__k_s_i_s += lastoffset*1008;
372 PRIM_PTR_INT__k_s_k_s += lastoffset*1296;
373 PRIM_PTR_INT__k_s_l_s += lastoffset*1620;
374 PRIM_PTR_INT__k_s_m_s += lastoffset*1980;
375 PRIM_PTR_INT__k_s_n_s += lastoffset*2376;
376 PRIM_PTR_INT__k_s_o_s += lastoffset*2808;
377 PRIM_PTR_INT__l_s_i_s += lastoffset*1260;
378 PRIM_PTR_INT__l_s_k_s += lastoffset*1620;
379 PRIM_PTR_INT__l_s_l_s += lastoffset*2025;
380 PRIM_PTR_INT__l_s_m_s += lastoffset*2475;
381 PRIM_PTR_INT__l_s_n_s += lastoffset*2970;
382 PRIM_PTR_INT__l_s_o_s += lastoffset*3510;
383 PRIM_PTR_INT__m_s_i_s += lastoffset*1540;
384 PRIM_PTR_INT__m_s_k_s += lastoffset*1980;
385 PRIM_PTR_INT__m_s_l_s += lastoffset*2475;
386 PRIM_PTR_INT__m_s_m_s += lastoffset*3025;
387 PRIM_PTR_INT__m_s_n_s += lastoffset*3630;
388 PRIM_PTR_INT__m_s_o_s += lastoffset*4290;
389 PRIM_PTR_INT__n_s_i_s += lastoffset*1848;
390 PRIM_PTR_INT__n_s_k_s += lastoffset*2376;
391 PRIM_PTR_INT__n_s_l_s += lastoffset*2970;
392 PRIM_PTR_INT__n_s_m_s += lastoffset*3630;
393 PRIM_PTR_INT__n_s_n_s += lastoffset*4356;
394 PRIM_PTR_INT__n_s_o_s += lastoffset*5148;
395 continue;
396 }
397 }
398
399 const SIMINT_DBLTYPE Q_alpha = SIMINT_DBLLOAD(Q.alpha, j);
400 const SIMINT_DBLTYPE PQalpha_mul = SIMINT_MUL(P_alpha, Q_alpha);
401 const SIMINT_DBLTYPE PQalpha_sum = SIMINT_ADD(P_alpha, Q_alpha);
402 const SIMINT_DBLTYPE one_over_PQalpha_sum = SIMINT_DIV(const_1, PQalpha_sum);
403
404
405 /* construct R2 = (Px - Qx)**2 + (Py - Qy)**2 + (Pz -Qz)**2 */
406 SIMINT_DBLTYPE PQ[3];
407 PQ[0] = SIMINT_SUB(Pxyz[0], SIMINT_DBLLOAD(Q.x, j));
408 PQ[1] = SIMINT_SUB(Pxyz[1], SIMINT_DBLLOAD(Q.y, j));
409 PQ[2] = SIMINT_SUB(Pxyz[2], SIMINT_DBLLOAD(Q.z, j));
410 SIMINT_DBLTYPE R2 = SIMINT_MUL(PQ[0], PQ[0]);
411 R2 = SIMINT_FMADD(PQ[1], PQ[1], R2);
412 R2 = SIMINT_FMADD(PQ[2], PQ[2], R2);
413
414 const SIMINT_DBLTYPE alpha = SIMINT_MUL(PQalpha_mul, one_over_PQalpha_sum); // alpha from MEST
415 const SIMINT_DBLTYPE one_over_p = SIMINT_DIV(const_1, P_alpha);
416 const SIMINT_DBLTYPE one_over_q = SIMINT_DIV(const_1, Q_alpha);
417 const SIMINT_DBLTYPE one_over_2p = SIMINT_MUL(one_half, one_over_p);
418 const SIMINT_DBLTYPE one_over_2q = SIMINT_MUL(one_half, one_over_q);
419 const SIMINT_DBLTYPE one_over_2pq = SIMINT_MUL(one_half, one_over_PQalpha_sum);
420 const SIMINT_DBLTYPE Q_PA[3] = { SIMINT_DBLLOAD(Q.PA_x, j), SIMINT_DBLLOAD(Q.PA_y, j), SIMINT_DBLLOAD(Q.PA_z, j) };
421
422 // NOTE: Minus sign!
423 const SIMINT_DBLTYPE a_over_p = SIMINT_MUL(SIMINT_NEG(alpha), one_over_p);
424 SIMINT_DBLTYPE aop_PQ[3];
425 aop_PQ[0] = SIMINT_MUL(a_over_p, PQ[0]);
426 aop_PQ[1] = SIMINT_MUL(a_over_p, PQ[1]);
427 aop_PQ[2] = SIMINT_MUL(a_over_p, PQ[2]);
428
429 SIMINT_DBLTYPE a_over_q = SIMINT_MUL(alpha, one_over_q);
430 SIMINT_DBLTYPE aoq_PQ[3];
431 aoq_PQ[0] = SIMINT_MUL(a_over_q, PQ[0]);
432 aoq_PQ[1] = SIMINT_MUL(a_over_q, PQ[1]);
433 aoq_PQ[2] = SIMINT_MUL(a_over_q, PQ[2]);
434 // Put a minus sign here so we don't have to in RR routines
435 a_over_q = SIMINT_NEG(a_over_q);
436
437
438 //////////////////////////////////////////////
439 // Fjt function section
440 // Maximum v value: 21
441 //////////////////////////////////////////////
442 // The parameter to the Fjt function
443 const SIMINT_DBLTYPE F_x = SIMINT_MUL(R2, alpha);
444
445
446 const SIMINT_DBLTYPE Q_prefac = mask_load(nlane, Q.prefac + j);
447
448
449 boys_F_split(PRIM_INT__s_s_s_s, F_x, 21);
450 SIMINT_DBLTYPE prefac = SIMINT_SQRT(one_over_PQalpha_sum);
451 prefac = SIMINT_MUL(SIMINT_MUL(P_prefac, Q_prefac), prefac);
452 for(n = 0; n <= 21; n++)
453 PRIM_INT__s_s_s_s[n] = SIMINT_MUL(PRIM_INT__s_s_s_s[n], prefac);
454
455 //////////////////////////////////////////////
456 // Primitive integrals: Vertical recurrance
457 //////////////////////////////////////////////
458
459 const SIMINT_DBLTYPE vrr_const_1_over_2p = one_over_2p;
460 const SIMINT_DBLTYPE vrr_const_2_over_2p = SIMINT_MUL(const_2, one_over_2p);
461 const SIMINT_DBLTYPE vrr_const_3_over_2p = SIMINT_MUL(const_3, one_over_2p);
462 const SIMINT_DBLTYPE vrr_const_4_over_2p = SIMINT_MUL(const_4, one_over_2p);
463 const SIMINT_DBLTYPE vrr_const_5_over_2p = SIMINT_MUL(const_5, one_over_2p);
464 const SIMINT_DBLTYPE vrr_const_6_over_2p = SIMINT_MUL(const_6, one_over_2p);
465 const SIMINT_DBLTYPE vrr_const_7_over_2p = SIMINT_MUL(const_7, one_over_2p);
466 const SIMINT_DBLTYPE vrr_const_8_over_2p = SIMINT_MUL(const_8, one_over_2p);
467 const SIMINT_DBLTYPE vrr_const_9_over_2p = SIMINT_MUL(const_9, one_over_2p);
468 const SIMINT_DBLTYPE vrr_const_1_over_2q = one_over_2q;
469 const SIMINT_DBLTYPE vrr_const_2_over_2q = SIMINT_MUL(const_2, one_over_2q);
470 const SIMINT_DBLTYPE vrr_const_3_over_2q = SIMINT_MUL(const_3, one_over_2q);
471 const SIMINT_DBLTYPE vrr_const_4_over_2q = SIMINT_MUL(const_4, one_over_2q);
472 const SIMINT_DBLTYPE vrr_const_5_over_2q = SIMINT_MUL(const_5, one_over_2q);
473 const SIMINT_DBLTYPE vrr_const_6_over_2q = SIMINT_MUL(const_6, one_over_2q);
474 const SIMINT_DBLTYPE vrr_const_7_over_2q = SIMINT_MUL(const_7, one_over_2q);
475 const SIMINT_DBLTYPE vrr_const_8_over_2q = SIMINT_MUL(const_8, one_over_2q);
476 const SIMINT_DBLTYPE vrr_const_9_over_2q = SIMINT_MUL(const_9, one_over_2q);
477 const SIMINT_DBLTYPE vrr_const_10_over_2q = SIMINT_MUL(const_10, one_over_2q);
478 const SIMINT_DBLTYPE vrr_const_1_over_2pq = one_over_2pq;
479 const SIMINT_DBLTYPE vrr_const_2_over_2pq = SIMINT_MUL(const_2, one_over_2pq);
480 const SIMINT_DBLTYPE vrr_const_3_over_2pq = SIMINT_MUL(const_3, one_over_2pq);
481 const SIMINT_DBLTYPE vrr_const_4_over_2pq = SIMINT_MUL(const_4, one_over_2pq);
482 const SIMINT_DBLTYPE vrr_const_5_over_2pq = SIMINT_MUL(const_5, one_over_2pq);
483 const SIMINT_DBLTYPE vrr_const_6_over_2pq = SIMINT_MUL(const_6, one_over_2pq);
484 const SIMINT_DBLTYPE vrr_const_7_over_2pq = SIMINT_MUL(const_7, one_over_2pq);
485 const SIMINT_DBLTYPE vrr_const_8_over_2pq = SIMINT_MUL(const_8, one_over_2pq);
486 const SIMINT_DBLTYPE vrr_const_9_over_2pq = SIMINT_MUL(const_9, one_over_2pq);
487 const SIMINT_DBLTYPE vrr_const_10_over_2pq = SIMINT_MUL(const_10, one_over_2pq);
488 const SIMINT_DBLTYPE vrr_const_11_over_2pq = SIMINT_MUL(const_11, one_over_2pq);
489
490
491
492 // Forming PRIM_INT__s_s_p_s[21 * 3];
493 for(n = 0; n < 21; ++n) // loop over orders of auxiliary function
494 {
495
496 PRIM_INT__s_s_p_s[n * 3 + 0] = SIMINT_MUL(Q_PA[0], PRIM_INT__s_s_s_s[n * 1 + 0]);
497 PRIM_INT__s_s_p_s[n * 3 + 0] = SIMINT_FMADD( aoq_PQ[0], PRIM_INT__s_s_s_s[(n+1) * 1 + 0], PRIM_INT__s_s_p_s[n * 3 + 0]);
498
499 PRIM_INT__s_s_p_s[n * 3 + 1] = SIMINT_MUL(Q_PA[1], PRIM_INT__s_s_s_s[n * 1 + 0]);
500 PRIM_INT__s_s_p_s[n * 3 + 1] = SIMINT_FMADD( aoq_PQ[1], PRIM_INT__s_s_s_s[(n+1) * 1 + 0], PRIM_INT__s_s_p_s[n * 3 + 1]);
501
502 PRIM_INT__s_s_p_s[n * 3 + 2] = SIMINT_MUL(Q_PA[2], PRIM_INT__s_s_s_s[n * 1 + 0]);
503 PRIM_INT__s_s_p_s[n * 3 + 2] = SIMINT_FMADD( aoq_PQ[2], PRIM_INT__s_s_s_s[(n+1) * 1 + 0], PRIM_INT__s_s_p_s[n * 3 + 2]);
504
505 }
506
507
508
509 // Forming PRIM_INT__s_s_d_s[20 * 6];
510 for(n = 0; n < 20; ++n) // loop over orders of auxiliary function
511 {
512
513 PRIM_INT__s_s_d_s[n * 6 + 0] = SIMINT_MUL(Q_PA[0], PRIM_INT__s_s_p_s[n * 3 + 0]);
514 PRIM_INT__s_s_d_s[n * 6 + 0] = SIMINT_FMADD( aoq_PQ[0], PRIM_INT__s_s_p_s[(n+1) * 3 + 0], PRIM_INT__s_s_d_s[n * 6 + 0]);
515 PRIM_INT__s_s_d_s[n * 6 + 0] = SIMINT_FMADD( vrr_const_1_over_2q, SIMINT_FMADD(a_over_q, PRIM_INT__s_s_s_s[(n+1) * 1 + 0], PRIM_INT__s_s_s_s[n * 1 + 0]), PRIM_INT__s_s_d_s[n * 6 + 0]);
516
517 PRIM_INT__s_s_d_s[n * 6 + 1] = SIMINT_MUL(Q_PA[1], PRIM_INT__s_s_p_s[n * 3 + 0]);
518 PRIM_INT__s_s_d_s[n * 6 + 1] = SIMINT_FMADD( aoq_PQ[1], PRIM_INT__s_s_p_s[(n+1) * 3 + 0], PRIM_INT__s_s_d_s[n * 6 + 1]);
519
520 PRIM_INT__s_s_d_s[n * 6 + 2] = SIMINT_MUL(Q_PA[2], PRIM_INT__s_s_p_s[n * 3 + 0]);
521 PRIM_INT__s_s_d_s[n * 6 + 2] = SIMINT_FMADD( aoq_PQ[2], PRIM_INT__s_s_p_s[(n+1) * 3 + 0], PRIM_INT__s_s_d_s[n * 6 + 2]);
522
523 PRIM_INT__s_s_d_s[n * 6 + 3] = SIMINT_MUL(Q_PA[1], PRIM_INT__s_s_p_s[n * 3 + 1]);
524 PRIM_INT__s_s_d_s[n * 6 + 3] = SIMINT_FMADD( aoq_PQ[1], PRIM_INT__s_s_p_s[(n+1) * 3 + 1], PRIM_INT__s_s_d_s[n * 6 + 3]);
525 PRIM_INT__s_s_d_s[n * 6 + 3] = SIMINT_FMADD( vrr_const_1_over_2q, SIMINT_FMADD(a_over_q, PRIM_INT__s_s_s_s[(n+1) * 1 + 0], PRIM_INT__s_s_s_s[n * 1 + 0]), PRIM_INT__s_s_d_s[n * 6 + 3]);
526
527 PRIM_INT__s_s_d_s[n * 6 + 4] = SIMINT_MUL(Q_PA[2], PRIM_INT__s_s_p_s[n * 3 + 1]);
528 PRIM_INT__s_s_d_s[n * 6 + 4] = SIMINT_FMADD( aoq_PQ[2], PRIM_INT__s_s_p_s[(n+1) * 3 + 1], PRIM_INT__s_s_d_s[n * 6 + 4]);
529
530 PRIM_INT__s_s_d_s[n * 6 + 5] = SIMINT_MUL(Q_PA[2], PRIM_INT__s_s_p_s[n * 3 + 2]);
531 PRIM_INT__s_s_d_s[n * 6 + 5] = SIMINT_FMADD( aoq_PQ[2], PRIM_INT__s_s_p_s[(n+1) * 3 + 2], PRIM_INT__s_s_d_s[n * 6 + 5]);
532 PRIM_INT__s_s_d_s[n * 6 + 5] = SIMINT_FMADD( vrr_const_1_over_2q, SIMINT_FMADD(a_over_q, PRIM_INT__s_s_s_s[(n+1) * 1 + 0], PRIM_INT__s_s_s_s[n * 1 + 0]), PRIM_INT__s_s_d_s[n * 6 + 5]);
533
534 }
535
536
537
538 // Forming PRIM_INT__s_s_f_s[19 * 10];
539 for(n = 0; n < 19; ++n) // loop over orders of auxiliary function
540 {
541
542 PRIM_INT__s_s_f_s[n * 10 + 0] = SIMINT_MUL(Q_PA[0], PRIM_INT__s_s_d_s[n * 6 + 0]);
543 PRIM_INT__s_s_f_s[n * 10 + 0] = SIMINT_FMADD( aoq_PQ[0], PRIM_INT__s_s_d_s[(n+1) * 6 + 0], PRIM_INT__s_s_f_s[n * 10 + 0]);
544 PRIM_INT__s_s_f_s[n * 10 + 0] = SIMINT_FMADD( vrr_const_2_over_2q, SIMINT_FMADD(a_over_q, PRIM_INT__s_s_p_s[(n+1) * 3 + 0], PRIM_INT__s_s_p_s[n * 3 + 0]), PRIM_INT__s_s_f_s[n * 10 + 0]);
545
546 PRIM_INT__s_s_f_s[n * 10 + 1] = SIMINT_MUL(Q_PA[1], PRIM_INT__s_s_d_s[n * 6 + 0]);
547 PRIM_INT__s_s_f_s[n * 10 + 1] = SIMINT_FMADD( aoq_PQ[1], PRIM_INT__s_s_d_s[(n+1) * 6 + 0], PRIM_INT__s_s_f_s[n * 10 + 1]);
548
549 PRIM_INT__s_s_f_s[n * 10 + 2] = SIMINT_MUL(Q_PA[2], PRIM_INT__s_s_d_s[n * 6 + 0]);
550 PRIM_INT__s_s_f_s[n * 10 + 2] = SIMINT_FMADD( aoq_PQ[2], PRIM_INT__s_s_d_s[(n+1) * 6 + 0], PRIM_INT__s_s_f_s[n * 10 + 2]);
551
552 PRIM_INT__s_s_f_s[n * 10 + 3] = SIMINT_MUL(Q_PA[0], PRIM_INT__s_s_d_s[n * 6 + 3]);
553 PRIM_INT__s_s_f_s[n * 10 + 3] = SIMINT_FMADD( aoq_PQ[0], PRIM_INT__s_s_d_s[(n+1) * 6 + 3], PRIM_INT__s_s_f_s[n * 10 + 3]);
554
555 PRIM_INT__s_s_f_s[n * 10 + 4] = SIMINT_MUL(Q_PA[2], PRIM_INT__s_s_d_s[n * 6 + 1]);
556 PRIM_INT__s_s_f_s[n * 10 + 4] = SIMINT_FMADD( aoq_PQ[2], PRIM_INT__s_s_d_s[(n+1) * 6 + 1], PRIM_INT__s_s_f_s[n * 10 + 4]);
557
558 PRIM_INT__s_s_f_s[n * 10 + 5] = SIMINT_MUL(Q_PA[0], PRIM_INT__s_s_d_s[n * 6 + 5]);
559 PRIM_INT__s_s_f_s[n * 10 + 5] = SIMINT_FMADD( aoq_PQ[0], PRIM_INT__s_s_d_s[(n+1) * 6 + 5], PRIM_INT__s_s_f_s[n * 10 + 5]);
560
561 PRIM_INT__s_s_f_s[n * 10 + 6] = SIMINT_MUL(Q_PA[1], PRIM_INT__s_s_d_s[n * 6 + 3]);
562 PRIM_INT__s_s_f_s[n * 10 + 6] = SIMINT_FMADD( aoq_PQ[1], PRIM_INT__s_s_d_s[(n+1) * 6 + 3], PRIM_INT__s_s_f_s[n * 10 + 6]);
563 PRIM_INT__s_s_f_s[n * 10 + 6] = SIMINT_FMADD( vrr_const_2_over_2q, SIMINT_FMADD(a_over_q, PRIM_INT__s_s_p_s[(n+1) * 3 + 1], PRIM_INT__s_s_p_s[n * 3 + 1]), PRIM_INT__s_s_f_s[n * 10 + 6]);
564
565 PRIM_INT__s_s_f_s[n * 10 + 7] = SIMINT_MUL(Q_PA[2], PRIM_INT__s_s_d_s[n * 6 + 3]);
566 PRIM_INT__s_s_f_s[n * 10 + 7] = SIMINT_FMADD( aoq_PQ[2], PRIM_INT__s_s_d_s[(n+1) * 6 + 3], PRIM_INT__s_s_f_s[n * 10 + 7]);
567
568 PRIM_INT__s_s_f_s[n * 10 + 8] = SIMINT_MUL(Q_PA[1], PRIM_INT__s_s_d_s[n * 6 + 5]);
569 PRIM_INT__s_s_f_s[n * 10 + 8] = SIMINT_FMADD( aoq_PQ[1], PRIM_INT__s_s_d_s[(n+1) * 6 + 5], PRIM_INT__s_s_f_s[n * 10 + 8]);
570
571 PRIM_INT__s_s_f_s[n * 10 + 9] = SIMINT_MUL(Q_PA[2], PRIM_INT__s_s_d_s[n * 6 + 5]);
572 PRIM_INT__s_s_f_s[n * 10 + 9] = SIMINT_FMADD( aoq_PQ[2], PRIM_INT__s_s_d_s[(n+1) * 6 + 5], PRIM_INT__s_s_f_s[n * 10 + 9]);
573 PRIM_INT__s_s_f_s[n * 10 + 9] = SIMINT_FMADD( vrr_const_2_over_2q, SIMINT_FMADD(a_over_q, PRIM_INT__s_s_p_s[(n+1) * 3 + 2], PRIM_INT__s_s_p_s[n * 3 + 2]), PRIM_INT__s_s_f_s[n * 10 + 9]);
574
575 }
576
577
578 VRR_K_s_s_g_s(
579 PRIM_INT__s_s_g_s,
580 PRIM_INT__s_s_f_s,
581 PRIM_INT__s_s_d_s,
582 Q_PA,
583 a_over_q,
584 aoq_PQ,
585 one_over_2q,
586 18);
587
588
589 VRR_K_s_s_h_s(
590 PRIM_INT__s_s_h_s,
591 PRIM_INT__s_s_g_s,
592 PRIM_INT__s_s_f_s,
593 Q_PA,
594 a_over_q,
595 aoq_PQ,
596 one_over_2q,
597 17);
598
599
600 ostei_general_vrr1_K(6, 16,
601 one_over_2q, a_over_q, aoq_PQ, Q_PA,
602 PRIM_INT__s_s_h_s, PRIM_INT__s_s_g_s, PRIM_INT__s_s_i_s);
603
604
605 ostei_general_vrr_I(1, 0, 6, 0, 10,
606 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
607 PRIM_INT__s_s_i_s, NULL, NULL, PRIM_INT__s_s_h_s, NULL, PRIM_INT__p_s_i_s);
608
609
610 ostei_general_vrr_I(1, 0, 5, 0, 10,
611 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
612 PRIM_INT__s_s_h_s, NULL, NULL, PRIM_INT__s_s_g_s, NULL, PRIM_INT__p_s_h_s);
613
614
615 ostei_general_vrr_I(2, 0, 6, 0, 9,
616 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
617 PRIM_INT__p_s_i_s, PRIM_INT__s_s_i_s, NULL, PRIM_INT__p_s_h_s, NULL, PRIM_INT__d_s_i_s);
618
619
620 VRR_I_p_s_g_s(
621 PRIM_INT__p_s_g_s,
622 PRIM_INT__s_s_g_s,
623 PRIM_INT__s_s_f_s,
624 P_PA,
625 aop_PQ,
626 one_over_2pq,
627 10);
628
629
630 ostei_general_vrr_I(2, 0, 5, 0, 9,
631 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
632 PRIM_INT__p_s_h_s, PRIM_INT__s_s_h_s, NULL, PRIM_INT__p_s_g_s, NULL, PRIM_INT__d_s_h_s);
633
634
635 ostei_general_vrr_I(3, 0, 6, 0, 8,
636 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
637 PRIM_INT__d_s_i_s, PRIM_INT__p_s_i_s, NULL, PRIM_INT__d_s_h_s, NULL, PRIM_INT__f_s_i_s);
638
639
640 VRR_I_p_s_f_s(
641 PRIM_INT__p_s_f_s,
642 PRIM_INT__s_s_f_s,
643 PRIM_INT__s_s_d_s,
644 P_PA,
645 aop_PQ,
646 one_over_2pq,
647 10);
648
649
650 ostei_general_vrr_I(2, 0, 4, 0, 9,
651 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
652 PRIM_INT__p_s_g_s, PRIM_INT__s_s_g_s, NULL, PRIM_INT__p_s_f_s, NULL, PRIM_INT__d_s_g_s);
653
654
655 ostei_general_vrr_I(3, 0, 5, 0, 8,
656 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
657 PRIM_INT__d_s_h_s, PRIM_INT__p_s_h_s, NULL, PRIM_INT__d_s_g_s, NULL, PRIM_INT__f_s_h_s);
658
659
660 ostei_general_vrr_I(4, 0, 6, 0, 7,
661 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
662 PRIM_INT__f_s_i_s, PRIM_INT__d_s_i_s, NULL, PRIM_INT__f_s_h_s, NULL, PRIM_INT__g_s_i_s);
663
664
665
666 // Forming PRIM_INT__p_s_d_s[10 * 18];
667 for(n = 0; n < 10; ++n) // loop over orders of auxiliary function
668 {
669
670 PRIM_INT__p_s_d_s[n * 18 + 0] = SIMINT_MUL(P_PA[0], PRIM_INT__s_s_d_s[n * 6 + 0]);
671 PRIM_INT__p_s_d_s[n * 18 + 0] = SIMINT_FMADD( aop_PQ[0], PRIM_INT__s_s_d_s[(n+1) * 6 + 0], PRIM_INT__p_s_d_s[n * 18 + 0]);
672 PRIM_INT__p_s_d_s[n * 18 + 0] = SIMINT_FMADD( vrr_const_2_over_2pq, PRIM_INT__s_s_p_s[(n+1) * 3 + 0], PRIM_INT__p_s_d_s[n * 18 + 0]);
673
674 PRIM_INT__p_s_d_s[n * 18 + 1] = SIMINT_MUL(P_PA[0], PRIM_INT__s_s_d_s[n * 6 + 1]);
675 PRIM_INT__p_s_d_s[n * 18 + 1] = SIMINT_FMADD( aop_PQ[0], PRIM_INT__s_s_d_s[(n+1) * 6 + 1], PRIM_INT__p_s_d_s[n * 18 + 1]);
676 PRIM_INT__p_s_d_s[n * 18 + 1] = SIMINT_FMADD( vrr_const_1_over_2pq, PRIM_INT__s_s_p_s[(n+1) * 3 + 1], PRIM_INT__p_s_d_s[n * 18 + 1]);
677
678 PRIM_INT__p_s_d_s[n * 18 + 2] = SIMINT_MUL(P_PA[0], PRIM_INT__s_s_d_s[n * 6 + 2]);
679 PRIM_INT__p_s_d_s[n * 18 + 2] = SIMINT_FMADD( aop_PQ[0], PRIM_INT__s_s_d_s[(n+1) * 6 + 2], PRIM_INT__p_s_d_s[n * 18 + 2]);
680 PRIM_INT__p_s_d_s[n * 18 + 2] = SIMINT_FMADD( vrr_const_1_over_2pq, PRIM_INT__s_s_p_s[(n+1) * 3 + 2], PRIM_INT__p_s_d_s[n * 18 + 2]);
681
682 PRIM_INT__p_s_d_s[n * 18 + 3] = SIMINT_MUL(P_PA[0], PRIM_INT__s_s_d_s[n * 6 + 3]);
683 PRIM_INT__p_s_d_s[n * 18 + 3] = SIMINT_FMADD( aop_PQ[0], PRIM_INT__s_s_d_s[(n+1) * 6 + 3], PRIM_INT__p_s_d_s[n * 18 + 3]);
684
685 PRIM_INT__p_s_d_s[n * 18 + 4] = SIMINT_MUL(P_PA[0], PRIM_INT__s_s_d_s[n * 6 + 4]);
686 PRIM_INT__p_s_d_s[n * 18 + 4] = SIMINT_FMADD( aop_PQ[0], PRIM_INT__s_s_d_s[(n+1) * 6 + 4], PRIM_INT__p_s_d_s[n * 18 + 4]);
687
688 PRIM_INT__p_s_d_s[n * 18 + 5] = SIMINT_MUL(P_PA[0], PRIM_INT__s_s_d_s[n * 6 + 5]);
689 PRIM_INT__p_s_d_s[n * 18 + 5] = SIMINT_FMADD( aop_PQ[0], PRIM_INT__s_s_d_s[(n+1) * 6 + 5], PRIM_INT__p_s_d_s[n * 18 + 5]);
690
691 PRIM_INT__p_s_d_s[n * 18 + 6] = SIMINT_MUL(P_PA[1], PRIM_INT__s_s_d_s[n * 6 + 0]);
692 PRIM_INT__p_s_d_s[n * 18 + 6] = SIMINT_FMADD( aop_PQ[1], PRIM_INT__s_s_d_s[(n+1) * 6 + 0], PRIM_INT__p_s_d_s[n * 18 + 6]);
693
694 PRIM_INT__p_s_d_s[n * 18 + 7] = SIMINT_MUL(P_PA[1], PRIM_INT__s_s_d_s[n * 6 + 1]);
695 PRIM_INT__p_s_d_s[n * 18 + 7] = SIMINT_FMADD( aop_PQ[1], PRIM_INT__s_s_d_s[(n+1) * 6 + 1], PRIM_INT__p_s_d_s[n * 18 + 7]);
696 PRIM_INT__p_s_d_s[n * 18 + 7] = SIMINT_FMADD( vrr_const_1_over_2pq, PRIM_INT__s_s_p_s[(n+1) * 3 + 0], PRIM_INT__p_s_d_s[n * 18 + 7]);
697
698 PRIM_INT__p_s_d_s[n * 18 + 8] = SIMINT_MUL(P_PA[1], PRIM_INT__s_s_d_s[n * 6 + 2]);
699 PRIM_INT__p_s_d_s[n * 18 + 8] = SIMINT_FMADD( aop_PQ[1], PRIM_INT__s_s_d_s[(n+1) * 6 + 2], PRIM_INT__p_s_d_s[n * 18 + 8]);
700
701 PRIM_INT__p_s_d_s[n * 18 + 9] = SIMINT_MUL(P_PA[1], PRIM_INT__s_s_d_s[n * 6 + 3]);
702 PRIM_INT__p_s_d_s[n * 18 + 9] = SIMINT_FMADD( aop_PQ[1], PRIM_INT__s_s_d_s[(n+1) * 6 + 3], PRIM_INT__p_s_d_s[n * 18 + 9]);
703 PRIM_INT__p_s_d_s[n * 18 + 9] = SIMINT_FMADD( vrr_const_2_over_2pq, PRIM_INT__s_s_p_s[(n+1) * 3 + 1], PRIM_INT__p_s_d_s[n * 18 + 9]);
704
705 PRIM_INT__p_s_d_s[n * 18 + 10] = SIMINT_MUL(P_PA[1], PRIM_INT__s_s_d_s[n * 6 + 4]);
706 PRIM_INT__p_s_d_s[n * 18 + 10] = SIMINT_FMADD( aop_PQ[1], PRIM_INT__s_s_d_s[(n+1) * 6 + 4], PRIM_INT__p_s_d_s[n * 18 + 10]);
707 PRIM_INT__p_s_d_s[n * 18 + 10] = SIMINT_FMADD( vrr_const_1_over_2pq, PRIM_INT__s_s_p_s[(n+1) * 3 + 2], PRIM_INT__p_s_d_s[n * 18 + 10]);
708
709 PRIM_INT__p_s_d_s[n * 18 + 11] = SIMINT_MUL(P_PA[1], PRIM_INT__s_s_d_s[n * 6 + 5]);
710 PRIM_INT__p_s_d_s[n * 18 + 11] = SIMINT_FMADD( aop_PQ[1], PRIM_INT__s_s_d_s[(n+1) * 6 + 5], PRIM_INT__p_s_d_s[n * 18 + 11]);
711
712 PRIM_INT__p_s_d_s[n * 18 + 12] = SIMINT_MUL(P_PA[2], PRIM_INT__s_s_d_s[n * 6 + 0]);
713 PRIM_INT__p_s_d_s[n * 18 + 12] = SIMINT_FMADD( aop_PQ[2], PRIM_INT__s_s_d_s[(n+1) * 6 + 0], PRIM_INT__p_s_d_s[n * 18 + 12]);
714
715 PRIM_INT__p_s_d_s[n * 18 + 13] = SIMINT_MUL(P_PA[2], PRIM_INT__s_s_d_s[n * 6 + 1]);
716 PRIM_INT__p_s_d_s[n * 18 + 13] = SIMINT_FMADD( aop_PQ[2], PRIM_INT__s_s_d_s[(n+1) * 6 + 1], PRIM_INT__p_s_d_s[n * 18 + 13]);
717
718 PRIM_INT__p_s_d_s[n * 18 + 14] = SIMINT_MUL(P_PA[2], PRIM_INT__s_s_d_s[n * 6 + 2]);
719 PRIM_INT__p_s_d_s[n * 18 + 14] = SIMINT_FMADD( aop_PQ[2], PRIM_INT__s_s_d_s[(n+1) * 6 + 2], PRIM_INT__p_s_d_s[n * 18 + 14]);
720 PRIM_INT__p_s_d_s[n * 18 + 14] = SIMINT_FMADD( vrr_const_1_over_2pq, PRIM_INT__s_s_p_s[(n+1) * 3 + 0], PRIM_INT__p_s_d_s[n * 18 + 14]);
721
722 PRIM_INT__p_s_d_s[n * 18 + 15] = SIMINT_MUL(P_PA[2], PRIM_INT__s_s_d_s[n * 6 + 3]);
723 PRIM_INT__p_s_d_s[n * 18 + 15] = SIMINT_FMADD( aop_PQ[2], PRIM_INT__s_s_d_s[(n+1) * 6 + 3], PRIM_INT__p_s_d_s[n * 18 + 15]);
724
725 PRIM_INT__p_s_d_s[n * 18 + 16] = SIMINT_MUL(P_PA[2], PRIM_INT__s_s_d_s[n * 6 + 4]);
726 PRIM_INT__p_s_d_s[n * 18 + 16] = SIMINT_FMADD( aop_PQ[2], PRIM_INT__s_s_d_s[(n+1) * 6 + 4], PRIM_INT__p_s_d_s[n * 18 + 16]);
727 PRIM_INT__p_s_d_s[n * 18 + 16] = SIMINT_FMADD( vrr_const_1_over_2pq, PRIM_INT__s_s_p_s[(n+1) * 3 + 1], PRIM_INT__p_s_d_s[n * 18 + 16]);
728
729 PRIM_INT__p_s_d_s[n * 18 + 17] = SIMINT_MUL(P_PA[2], PRIM_INT__s_s_d_s[n * 6 + 5]);
730 PRIM_INT__p_s_d_s[n * 18 + 17] = SIMINT_FMADD( aop_PQ[2], PRIM_INT__s_s_d_s[(n+1) * 6 + 5], PRIM_INT__p_s_d_s[n * 18 + 17]);
731 PRIM_INT__p_s_d_s[n * 18 + 17] = SIMINT_FMADD( vrr_const_2_over_2pq, PRIM_INT__s_s_p_s[(n+1) * 3 + 2], PRIM_INT__p_s_d_s[n * 18 + 17]);
732
733 }
734
735
736 VRR_I_d_s_f_s(
737 PRIM_INT__d_s_f_s,
738 PRIM_INT__p_s_f_s,
739 PRIM_INT__s_s_f_s,
740 PRIM_INT__p_s_d_s,
741 P_PA,
742 a_over_p,
743 aop_PQ,
744 one_over_2p,
745 one_over_2pq,
746 9);
747
748
749 ostei_general_vrr_I(3, 0, 4, 0, 8,
750 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
751 PRIM_INT__d_s_g_s, PRIM_INT__p_s_g_s, NULL, PRIM_INT__d_s_f_s, NULL, PRIM_INT__f_s_g_s);
752
753
754 ostei_general_vrr_I(4, 0, 5, 0, 7,
755 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
756 PRIM_INT__f_s_h_s, PRIM_INT__d_s_h_s, NULL, PRIM_INT__f_s_g_s, NULL, PRIM_INT__g_s_h_s);
757
758
759 ostei_general_vrr_I(5, 0, 6, 0, 6,
760 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
761 PRIM_INT__g_s_i_s, PRIM_INT__f_s_i_s, NULL, PRIM_INT__g_s_h_s, NULL, PRIM_INT__h_s_i_s);
762
763
764
765 // Forming PRIM_INT__p_s_p_s[10 * 9];
766 for(n = 0; n < 10; ++n) // loop over orders of auxiliary function
767 {
768
769 PRIM_INT__p_s_p_s[n * 9 + 0] = SIMINT_MUL(P_PA[0], PRIM_INT__s_s_p_s[n * 3 + 0]);
770 PRIM_INT__p_s_p_s[n * 9 + 0] = SIMINT_FMADD( aop_PQ[0], PRIM_INT__s_s_p_s[(n+1) * 3 + 0], PRIM_INT__p_s_p_s[n * 9 + 0]);
771 PRIM_INT__p_s_p_s[n * 9 + 0] = SIMINT_FMADD( vrr_const_1_over_2pq, PRIM_INT__s_s_s_s[(n+1) * 1 + 0], PRIM_INT__p_s_p_s[n * 9 + 0]);
772
773 PRIM_INT__p_s_p_s[n * 9 + 1] = SIMINT_MUL(P_PA[0], PRIM_INT__s_s_p_s[n * 3 + 1]);
774 PRIM_INT__p_s_p_s[n * 9 + 1] = SIMINT_FMADD( aop_PQ[0], PRIM_INT__s_s_p_s[(n+1) * 3 + 1], PRIM_INT__p_s_p_s[n * 9 + 1]);
775
776 PRIM_INT__p_s_p_s[n * 9 + 2] = SIMINT_MUL(P_PA[0], PRIM_INT__s_s_p_s[n * 3 + 2]);
777 PRIM_INT__p_s_p_s[n * 9 + 2] = SIMINT_FMADD( aop_PQ[0], PRIM_INT__s_s_p_s[(n+1) * 3 + 2], PRIM_INT__p_s_p_s[n * 9 + 2]);
778
779 PRIM_INT__p_s_p_s[n * 9 + 3] = SIMINT_MUL(P_PA[1], PRIM_INT__s_s_p_s[n * 3 + 0]);
780 PRIM_INT__p_s_p_s[n * 9 + 3] = SIMINT_FMADD( aop_PQ[1], PRIM_INT__s_s_p_s[(n+1) * 3 + 0], PRIM_INT__p_s_p_s[n * 9 + 3]);
781
782 PRIM_INT__p_s_p_s[n * 9 + 4] = SIMINT_MUL(P_PA[1], PRIM_INT__s_s_p_s[n * 3 + 1]);
783 PRIM_INT__p_s_p_s[n * 9 + 4] = SIMINT_FMADD( aop_PQ[1], PRIM_INT__s_s_p_s[(n+1) * 3 + 1], PRIM_INT__p_s_p_s[n * 9 + 4]);
784 PRIM_INT__p_s_p_s[n * 9 + 4] = SIMINT_FMADD( vrr_const_1_over_2pq, PRIM_INT__s_s_s_s[(n+1) * 1 + 0], PRIM_INT__p_s_p_s[n * 9 + 4]);
785
786 PRIM_INT__p_s_p_s[n * 9 + 5] = SIMINT_MUL(P_PA[1], PRIM_INT__s_s_p_s[n * 3 + 2]);
787 PRIM_INT__p_s_p_s[n * 9 + 5] = SIMINT_FMADD( aop_PQ[1], PRIM_INT__s_s_p_s[(n+1) * 3 + 2], PRIM_INT__p_s_p_s[n * 9 + 5]);
788
789 PRIM_INT__p_s_p_s[n * 9 + 6] = SIMINT_MUL(P_PA[2], PRIM_INT__s_s_p_s[n * 3 + 0]);
790 PRIM_INT__p_s_p_s[n * 9 + 6] = SIMINT_FMADD( aop_PQ[2], PRIM_INT__s_s_p_s[(n+1) * 3 + 0], PRIM_INT__p_s_p_s[n * 9 + 6]);
791
792 PRIM_INT__p_s_p_s[n * 9 + 7] = SIMINT_MUL(P_PA[2], PRIM_INT__s_s_p_s[n * 3 + 1]);
793 PRIM_INT__p_s_p_s[n * 9 + 7] = SIMINT_FMADD( aop_PQ[2], PRIM_INT__s_s_p_s[(n+1) * 3 + 1], PRIM_INT__p_s_p_s[n * 9 + 7]);
794
795 PRIM_INT__p_s_p_s[n * 9 + 8] = SIMINT_MUL(P_PA[2], PRIM_INT__s_s_p_s[n * 3 + 2]);
796 PRIM_INT__p_s_p_s[n * 9 + 8] = SIMINT_FMADD( aop_PQ[2], PRIM_INT__s_s_p_s[(n+1) * 3 + 2], PRIM_INT__p_s_p_s[n * 9 + 8]);
797 PRIM_INT__p_s_p_s[n * 9 + 8] = SIMINT_FMADD( vrr_const_1_over_2pq, PRIM_INT__s_s_s_s[(n+1) * 1 + 0], PRIM_INT__p_s_p_s[n * 9 + 8]);
798
799 }
800
801
802 VRR_I_d_s_d_s(
803 PRIM_INT__d_s_d_s,
804 PRIM_INT__p_s_d_s,
805 PRIM_INT__s_s_d_s,
806 PRIM_INT__p_s_p_s,
807 P_PA,
808 a_over_p,
809 aop_PQ,
810 one_over_2p,
811 one_over_2pq,
812 9);
813
814
815 ostei_general_vrr_I(3, 0, 3, 0, 8,
816 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
817 PRIM_INT__d_s_f_s, PRIM_INT__p_s_f_s, NULL, PRIM_INT__d_s_d_s, NULL, PRIM_INT__f_s_f_s);
818
819
820 ostei_general_vrr_I(4, 0, 4, 0, 7,
821 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
822 PRIM_INT__f_s_g_s, PRIM_INT__d_s_g_s, NULL, PRIM_INT__f_s_f_s, NULL, PRIM_INT__g_s_g_s);
823
824
825 ostei_general_vrr_I(5, 0, 5, 0, 6,
826 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
827 PRIM_INT__g_s_h_s, PRIM_INT__f_s_h_s, NULL, PRIM_INT__g_s_g_s, NULL, PRIM_INT__h_s_h_s);
828
829
830 ostei_general_vrr_I(6, 0, 6, 0, 5,
831 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
832 PRIM_INT__h_s_i_s, PRIM_INT__g_s_i_s, NULL, PRIM_INT__h_s_h_s, NULL, PRIM_INT__i_s_i_s);
833
834
835
836 // Forming PRIM_INT__p_s_s_s[10 * 3];
837 for(n = 0; n < 10; ++n) // loop over orders of auxiliary function
838 {
839
840 PRIM_INT__p_s_s_s[n * 3 + 0] = SIMINT_MUL(P_PA[0], PRIM_INT__s_s_s_s[n * 1 + 0]);
841 PRIM_INT__p_s_s_s[n * 3 + 0] = SIMINT_FMADD( aop_PQ[0], PRIM_INT__s_s_s_s[(n+1) * 1 + 0], PRIM_INT__p_s_s_s[n * 3 + 0]);
842
843 PRIM_INT__p_s_s_s[n * 3 + 1] = SIMINT_MUL(P_PA[1], PRIM_INT__s_s_s_s[n * 1 + 0]);
844 PRIM_INT__p_s_s_s[n * 3 + 1] = SIMINT_FMADD( aop_PQ[1], PRIM_INT__s_s_s_s[(n+1) * 1 + 0], PRIM_INT__p_s_s_s[n * 3 + 1]);
845
846 PRIM_INT__p_s_s_s[n * 3 + 2] = SIMINT_MUL(P_PA[2], PRIM_INT__s_s_s_s[n * 1 + 0]);
847 PRIM_INT__p_s_s_s[n * 3 + 2] = SIMINT_FMADD( aop_PQ[2], PRIM_INT__s_s_s_s[(n+1) * 1 + 0], PRIM_INT__p_s_s_s[n * 3 + 2]);
848
849 }
850
851
852
853 // Forming PRIM_INT__d_s_p_s[9 * 18];
854 for(n = 0; n < 9; ++n) // loop over orders of auxiliary function
855 {
856
857 PRIM_INT__d_s_p_s[n * 18 + 0] = SIMINT_MUL(P_PA[0], PRIM_INT__p_s_p_s[n * 9 + 0]);
858 PRIM_INT__d_s_p_s[n * 18 + 0] = SIMINT_FMADD( aop_PQ[0], PRIM_INT__p_s_p_s[(n+1) * 9 + 0], PRIM_INT__d_s_p_s[n * 18 + 0]);
859 PRIM_INT__d_s_p_s[n * 18 + 0] = SIMINT_FMADD( vrr_const_1_over_2p, SIMINT_FMADD(a_over_p, PRIM_INT__s_s_p_s[(n+1) * 3 + 0], PRIM_INT__s_s_p_s[n * 3 + 0]), PRIM_INT__d_s_p_s[n * 18 + 0]);
860 PRIM_INT__d_s_p_s[n * 18 + 0] = SIMINT_FMADD( vrr_const_1_over_2pq, PRIM_INT__p_s_s_s[(n+1) * 3 + 0], PRIM_INT__d_s_p_s[n * 18 + 0]);
861
862 PRIM_INT__d_s_p_s[n * 18 + 1] = SIMINT_MUL(P_PA[0], PRIM_INT__p_s_p_s[n * 9 + 1]);
863 PRIM_INT__d_s_p_s[n * 18 + 1] = SIMINT_FMADD( aop_PQ[0], PRIM_INT__p_s_p_s[(n+1) * 9 + 1], PRIM_INT__d_s_p_s[n * 18 + 1]);
864 PRIM_INT__d_s_p_s[n * 18 + 1] = SIMINT_FMADD( vrr_const_1_over_2p, SIMINT_FMADD(a_over_p, PRIM_INT__s_s_p_s[(n+1) * 3 + 1], PRIM_INT__s_s_p_s[n * 3 + 1]), PRIM_INT__d_s_p_s[n * 18 + 1]);
865
866 PRIM_INT__d_s_p_s[n * 18 + 2] = SIMINT_MUL(P_PA[0], PRIM_INT__p_s_p_s[n * 9 + 2]);
867 PRIM_INT__d_s_p_s[n * 18 + 2] = SIMINT_FMADD( aop_PQ[0], PRIM_INT__p_s_p_s[(n+1) * 9 + 2], PRIM_INT__d_s_p_s[n * 18 + 2]);
868 PRIM_INT__d_s_p_s[n * 18 + 2] = SIMINT_FMADD( vrr_const_1_over_2p, SIMINT_FMADD(a_over_p, PRIM_INT__s_s_p_s[(n+1) * 3 + 2], PRIM_INT__s_s_p_s[n * 3 + 2]), PRIM_INT__d_s_p_s[n * 18 + 2]);
869
870 PRIM_INT__d_s_p_s[n * 18 + 9] = SIMINT_MUL(P_PA[1], PRIM_INT__p_s_p_s[n * 9 + 3]);
871 PRIM_INT__d_s_p_s[n * 18 + 9] = SIMINT_FMADD( aop_PQ[1], PRIM_INT__p_s_p_s[(n+1) * 9 + 3], PRIM_INT__d_s_p_s[n * 18 + 9]);
872 PRIM_INT__d_s_p_s[n * 18 + 9] = SIMINT_FMADD( vrr_const_1_over_2p, SIMINT_FMADD(a_over_p, PRIM_INT__s_s_p_s[(n+1) * 3 + 0], PRIM_INT__s_s_p_s[n * 3 + 0]), PRIM_INT__d_s_p_s[n * 18 + 9]);
873
874 PRIM_INT__d_s_p_s[n * 18 + 10] = SIMINT_MUL(P_PA[1], PRIM_INT__p_s_p_s[n * 9 + 4]);
875 PRIM_INT__d_s_p_s[n * 18 + 10] = SIMINT_FMADD( aop_PQ[1], PRIM_INT__p_s_p_s[(n+1) * 9 + 4], PRIM_INT__d_s_p_s[n * 18 + 10]);
876 PRIM_INT__d_s_p_s[n * 18 + 10] = SIMINT_FMADD( vrr_const_1_over_2p, SIMINT_FMADD(a_over_p, PRIM_INT__s_s_p_s[(n+1) * 3 + 1], PRIM_INT__s_s_p_s[n * 3 + 1]), PRIM_INT__d_s_p_s[n * 18 + 10]);
877 PRIM_INT__d_s_p_s[n * 18 + 10] = SIMINT_FMADD( vrr_const_1_over_2pq, PRIM_INT__p_s_s_s[(n+1) * 3 + 1], PRIM_INT__d_s_p_s[n * 18 + 10]);
878
879 PRIM_INT__d_s_p_s[n * 18 + 11] = SIMINT_MUL(P_PA[1], PRIM_INT__p_s_p_s[n * 9 + 5]);
880 PRIM_INT__d_s_p_s[n * 18 + 11] = SIMINT_FMADD( aop_PQ[1], PRIM_INT__p_s_p_s[(n+1) * 9 + 5], PRIM_INT__d_s_p_s[n * 18 + 11]);
881 PRIM_INT__d_s_p_s[n * 18 + 11] = SIMINT_FMADD( vrr_const_1_over_2p, SIMINT_FMADD(a_over_p, PRIM_INT__s_s_p_s[(n+1) * 3 + 2], PRIM_INT__s_s_p_s[n * 3 + 2]), PRIM_INT__d_s_p_s[n * 18 + 11]);
882
883 PRIM_INT__d_s_p_s[n * 18 + 15] = SIMINT_MUL(P_PA[2], PRIM_INT__p_s_p_s[n * 9 + 6]);
884 PRIM_INT__d_s_p_s[n * 18 + 15] = SIMINT_FMADD( aop_PQ[2], PRIM_INT__p_s_p_s[(n+1) * 9 + 6], PRIM_INT__d_s_p_s[n * 18 + 15]);
885 PRIM_INT__d_s_p_s[n * 18 + 15] = SIMINT_FMADD( vrr_const_1_over_2p, SIMINT_FMADD(a_over_p, PRIM_INT__s_s_p_s[(n+1) * 3 + 0], PRIM_INT__s_s_p_s[n * 3 + 0]), PRIM_INT__d_s_p_s[n * 18 + 15]);
886
887 PRIM_INT__d_s_p_s[n * 18 + 16] = SIMINT_MUL(P_PA[2], PRIM_INT__p_s_p_s[n * 9 + 7]);
888 PRIM_INT__d_s_p_s[n * 18 + 16] = SIMINT_FMADD( aop_PQ[2], PRIM_INT__p_s_p_s[(n+1) * 9 + 7], PRIM_INT__d_s_p_s[n * 18 + 16]);
889 PRIM_INT__d_s_p_s[n * 18 + 16] = SIMINT_FMADD( vrr_const_1_over_2p, SIMINT_FMADD(a_over_p, PRIM_INT__s_s_p_s[(n+1) * 3 + 1], PRIM_INT__s_s_p_s[n * 3 + 1]), PRIM_INT__d_s_p_s[n * 18 + 16]);
890
891 PRIM_INT__d_s_p_s[n * 18 + 17] = SIMINT_MUL(P_PA[2], PRIM_INT__p_s_p_s[n * 9 + 8]);
892 PRIM_INT__d_s_p_s[n * 18 + 17] = SIMINT_FMADD( aop_PQ[2], PRIM_INT__p_s_p_s[(n+1) * 9 + 8], PRIM_INT__d_s_p_s[n * 18 + 17]);
893 PRIM_INT__d_s_p_s[n * 18 + 17] = SIMINT_FMADD( vrr_const_1_over_2p, SIMINT_FMADD(a_over_p, PRIM_INT__s_s_p_s[(n+1) * 3 + 2], PRIM_INT__s_s_p_s[n * 3 + 2]), PRIM_INT__d_s_p_s[n * 18 + 17]);
894 PRIM_INT__d_s_p_s[n * 18 + 17] = SIMINT_FMADD( vrr_const_1_over_2pq, PRIM_INT__p_s_s_s[(n+1) * 3 + 2], PRIM_INT__d_s_p_s[n * 18 + 17]);
895
896 }
897
898
899 VRR_I_f_s_d_s(
900 PRIM_INT__f_s_d_s,
901 PRIM_INT__d_s_d_s,
902 PRIM_INT__p_s_d_s,
903 PRIM_INT__d_s_p_s,
904 P_PA,
905 a_over_p,
906 aop_PQ,
907 one_over_2p,
908 one_over_2pq,
909 8);
910
911
912 ostei_general_vrr_I(4, 0, 3, 0, 7,
913 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
914 PRIM_INT__f_s_f_s, PRIM_INT__d_s_f_s, NULL, PRIM_INT__f_s_d_s, NULL, PRIM_INT__g_s_f_s);
915
916
917 ostei_general_vrr_I(5, 0, 4, 0, 6,
918 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
919 PRIM_INT__g_s_g_s, PRIM_INT__f_s_g_s, NULL, PRIM_INT__g_s_f_s, NULL, PRIM_INT__h_s_g_s);
920
921
922 ostei_general_vrr_I(6, 0, 5, 0, 5,
923 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
924 PRIM_INT__h_s_h_s, PRIM_INT__g_s_h_s, NULL, PRIM_INT__h_s_g_s, NULL, PRIM_INT__i_s_h_s);
925
926
927 ostei_general_vrr_I(7, 0, 6, 0, 4,
928 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
929 PRIM_INT__i_s_i_s, PRIM_INT__h_s_i_s, NULL, PRIM_INT__i_s_h_s, NULL, PRIM_INT__k_s_i_s);
930
931
932 ostei_general_vrr1_K(7, 15,
933 one_over_2q, a_over_q, aoq_PQ, Q_PA,
934 PRIM_INT__s_s_i_s, PRIM_INT__s_s_h_s, PRIM_INT__s_s_k_s);
935
936
937 ostei_general_vrr_I(1, 0, 7, 0, 10,
938 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
939 PRIM_INT__s_s_k_s, NULL, NULL, PRIM_INT__s_s_i_s, NULL, PRIM_INT__p_s_k_s);
940
941
942 ostei_general_vrr_I(2, 0, 7, 0, 9,
943 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
944 PRIM_INT__p_s_k_s, PRIM_INT__s_s_k_s, NULL, PRIM_INT__p_s_i_s, NULL, PRIM_INT__d_s_k_s);
945
946
947 ostei_general_vrr_I(3, 0, 7, 0, 8,
948 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
949 PRIM_INT__d_s_k_s, PRIM_INT__p_s_k_s, NULL, PRIM_INT__d_s_i_s, NULL, PRIM_INT__f_s_k_s);
950
951
952 ostei_general_vrr_I(4, 0, 7, 0, 7,
953 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
954 PRIM_INT__f_s_k_s, PRIM_INT__d_s_k_s, NULL, PRIM_INT__f_s_i_s, NULL, PRIM_INT__g_s_k_s);
955
956
957 ostei_general_vrr_I(5, 0, 7, 0, 6,
958 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
959 PRIM_INT__g_s_k_s, PRIM_INT__f_s_k_s, NULL, PRIM_INT__g_s_i_s, NULL, PRIM_INT__h_s_k_s);
960
961
962 ostei_general_vrr_I(6, 0, 7, 0, 5,
963 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
964 PRIM_INT__h_s_k_s, PRIM_INT__g_s_k_s, NULL, PRIM_INT__h_s_i_s, NULL, PRIM_INT__i_s_k_s);
965
966
967 ostei_general_vrr_I(7, 0, 7, 0, 4,
968 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
969 PRIM_INT__i_s_k_s, PRIM_INT__h_s_k_s, NULL, PRIM_INT__i_s_i_s, NULL, PRIM_INT__k_s_k_s);
970
971
972
973 // Forming PRIM_INT__d_s_s_s[9 * 6];
974 for(n = 0; n < 9; ++n) // loop over orders of auxiliary function
975 {
976
977 PRIM_INT__d_s_s_s[n * 6 + 0] = SIMINT_MUL(P_PA[0], PRIM_INT__p_s_s_s[n * 3 + 0]);
978 PRIM_INT__d_s_s_s[n * 6 + 0] = SIMINT_FMADD( aop_PQ[0], PRIM_INT__p_s_s_s[(n+1) * 3 + 0], PRIM_INT__d_s_s_s[n * 6 + 0]);
979 PRIM_INT__d_s_s_s[n * 6 + 0] = SIMINT_FMADD( vrr_const_1_over_2p, SIMINT_FMADD(a_over_p, PRIM_INT__s_s_s_s[(n+1) * 1 + 0], PRIM_INT__s_s_s_s[n * 1 + 0]), PRIM_INT__d_s_s_s[n * 6 + 0]);
980
981 PRIM_INT__d_s_s_s[n * 6 + 3] = SIMINT_MUL(P_PA[1], PRIM_INT__p_s_s_s[n * 3 + 1]);
982 PRIM_INT__d_s_s_s[n * 6 + 3] = SIMINT_FMADD( aop_PQ[1], PRIM_INT__p_s_s_s[(n+1) * 3 + 1], PRIM_INT__d_s_s_s[n * 6 + 3]);
983 PRIM_INT__d_s_s_s[n * 6 + 3] = SIMINT_FMADD( vrr_const_1_over_2p, SIMINT_FMADD(a_over_p, PRIM_INT__s_s_s_s[(n+1) * 1 + 0], PRIM_INT__s_s_s_s[n * 1 + 0]), PRIM_INT__d_s_s_s[n * 6 + 3]);
984
985 PRIM_INT__d_s_s_s[n * 6 + 5] = SIMINT_MUL(P_PA[2], PRIM_INT__p_s_s_s[n * 3 + 2]);
986 PRIM_INT__d_s_s_s[n * 6 + 5] = SIMINT_FMADD( aop_PQ[2], PRIM_INT__p_s_s_s[(n+1) * 3 + 2], PRIM_INT__d_s_s_s[n * 6 + 5]);
987 PRIM_INT__d_s_s_s[n * 6 + 5] = SIMINT_FMADD( vrr_const_1_over_2p, SIMINT_FMADD(a_over_p, PRIM_INT__s_s_s_s[(n+1) * 1 + 0], PRIM_INT__s_s_s_s[n * 1 + 0]), PRIM_INT__d_s_s_s[n * 6 + 5]);
988
989 }
990
991
992 VRR_I_f_s_p_s(
993 PRIM_INT__f_s_p_s,
994 PRIM_INT__d_s_p_s,
995 PRIM_INT__p_s_p_s,
996 PRIM_INT__d_s_s_s,
997 P_PA,
998 a_over_p,
999 aop_PQ,
1000 one_over_2p,
1001 one_over_2pq,
1002 8);
1003
1004
1005 ostei_general_vrr_I(4, 0, 2, 0, 7,
1006 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1007 PRIM_INT__f_s_d_s, PRIM_INT__d_s_d_s, NULL, PRIM_INT__f_s_p_s, NULL, PRIM_INT__g_s_d_s);
1008
1009
1010 ostei_general_vrr_I(5, 0, 3, 0, 6,
1011 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1012 PRIM_INT__g_s_f_s, PRIM_INT__f_s_f_s, NULL, PRIM_INT__g_s_d_s, NULL, PRIM_INT__h_s_f_s);
1013
1014
1015 ostei_general_vrr_I(6, 0, 4, 0, 5,
1016 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1017 PRIM_INT__h_s_g_s, PRIM_INT__g_s_g_s, NULL, PRIM_INT__h_s_f_s, NULL, PRIM_INT__i_s_g_s);
1018
1019
1020 ostei_general_vrr_I(7, 0, 5, 0, 4,
1021 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1022 PRIM_INT__i_s_h_s, PRIM_INT__h_s_h_s, NULL, PRIM_INT__i_s_g_s, NULL, PRIM_INT__k_s_h_s);
1023
1024
1025 ostei_general_vrr_I(8, 0, 6, 0, 3,
1026 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1027 PRIM_INT__k_s_i_s, PRIM_INT__i_s_i_s, NULL, PRIM_INT__k_s_h_s, NULL, PRIM_INT__l_s_i_s);
1028
1029
1030 ostei_general_vrr1_K(8, 14,
1031 one_over_2q, a_over_q, aoq_PQ, Q_PA,
1032 PRIM_INT__s_s_k_s, PRIM_INT__s_s_i_s, PRIM_INT__s_s_l_s);
1033
1034
1035 ostei_general_vrr_I(1, 0, 8, 0, 10,
1036 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1037 PRIM_INT__s_s_l_s, NULL, NULL, PRIM_INT__s_s_k_s, NULL, PRIM_INT__p_s_l_s);
1038
1039
1040 ostei_general_vrr_I(2, 0, 8, 0, 9,
1041 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1042 PRIM_INT__p_s_l_s, PRIM_INT__s_s_l_s, NULL, PRIM_INT__p_s_k_s, NULL, PRIM_INT__d_s_l_s);
1043
1044
1045 ostei_general_vrr_I(3, 0, 8, 0, 8,
1046 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1047 PRIM_INT__d_s_l_s, PRIM_INT__p_s_l_s, NULL, PRIM_INT__d_s_k_s, NULL, PRIM_INT__f_s_l_s);
1048
1049
1050 ostei_general_vrr_I(4, 0, 8, 0, 7,
1051 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1052 PRIM_INT__f_s_l_s, PRIM_INT__d_s_l_s, NULL, PRIM_INT__f_s_k_s, NULL, PRIM_INT__g_s_l_s);
1053
1054
1055 ostei_general_vrr_I(5, 0, 8, 0, 6,
1056 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1057 PRIM_INT__g_s_l_s, PRIM_INT__f_s_l_s, NULL, PRIM_INT__g_s_k_s, NULL, PRIM_INT__h_s_l_s);
1058
1059
1060 ostei_general_vrr_I(6, 0, 8, 0, 5,
1061 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1062 PRIM_INT__h_s_l_s, PRIM_INT__g_s_l_s, NULL, PRIM_INT__h_s_k_s, NULL, PRIM_INT__i_s_l_s);
1063
1064
1065 ostei_general_vrr_I(7, 0, 8, 0, 4,
1066 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1067 PRIM_INT__i_s_l_s, PRIM_INT__h_s_l_s, NULL, PRIM_INT__i_s_k_s, NULL, PRIM_INT__k_s_l_s);
1068
1069
1070 ostei_general_vrr_I(8, 0, 7, 0, 3,
1071 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1072 PRIM_INT__k_s_k_s, PRIM_INT__i_s_k_s, NULL, PRIM_INT__k_s_i_s, NULL, PRIM_INT__l_s_k_s);
1073
1074
1075
1076 // Forming PRIM_INT__f_s_s_s[8 * 10];
1077 for(n = 0; n < 8; ++n) // loop over orders of auxiliary function
1078 {
1079
1080 PRIM_INT__f_s_s_s[n * 10 + 0] = SIMINT_MUL(P_PA[0], PRIM_INT__d_s_s_s[n * 6 + 0]);
1081 PRIM_INT__f_s_s_s[n * 10 + 0] = SIMINT_FMADD( aop_PQ[0], PRIM_INT__d_s_s_s[(n+1) * 6 + 0], PRIM_INT__f_s_s_s[n * 10 + 0]);
1082 PRIM_INT__f_s_s_s[n * 10 + 0] = SIMINT_FMADD( vrr_const_2_over_2p, SIMINT_FMADD(a_over_p, PRIM_INT__p_s_s_s[(n+1) * 3 + 0], PRIM_INT__p_s_s_s[n * 3 + 0]), PRIM_INT__f_s_s_s[n * 10 + 0]);
1083
1084 PRIM_INT__f_s_s_s[n * 10 + 6] = SIMINT_MUL(P_PA[1], PRIM_INT__d_s_s_s[n * 6 + 3]);
1085 PRIM_INT__f_s_s_s[n * 10 + 6] = SIMINT_FMADD( aop_PQ[1], PRIM_INT__d_s_s_s[(n+1) * 6 + 3], PRIM_INT__f_s_s_s[n * 10 + 6]);
1086 PRIM_INT__f_s_s_s[n * 10 + 6] = SIMINT_FMADD( vrr_const_2_over_2p, SIMINT_FMADD(a_over_p, PRIM_INT__p_s_s_s[(n+1) * 3 + 1], PRIM_INT__p_s_s_s[n * 3 + 1]), PRIM_INT__f_s_s_s[n * 10 + 6]);
1087
1088 PRIM_INT__f_s_s_s[n * 10 + 9] = SIMINT_MUL(P_PA[2], PRIM_INT__d_s_s_s[n * 6 + 5]);
1089 PRIM_INT__f_s_s_s[n * 10 + 9] = SIMINT_FMADD( aop_PQ[2], PRIM_INT__d_s_s_s[(n+1) * 6 + 5], PRIM_INT__f_s_s_s[n * 10 + 9]);
1090 PRIM_INT__f_s_s_s[n * 10 + 9] = SIMINT_FMADD( vrr_const_2_over_2p, SIMINT_FMADD(a_over_p, PRIM_INT__p_s_s_s[(n+1) * 3 + 2], PRIM_INT__p_s_s_s[n * 3 + 2]), PRIM_INT__f_s_s_s[n * 10 + 9]);
1091
1092 }
1093
1094
1095 VRR_I_g_s_p_s(
1096 PRIM_INT__g_s_p_s,
1097 PRIM_INT__f_s_p_s,
1098 PRIM_INT__d_s_p_s,
1099 PRIM_INT__f_s_s_s,
1100 P_PA,
1101 a_over_p,
1102 aop_PQ,
1103 one_over_2p,
1104 one_over_2pq,
1105 7);
1106
1107
1108 ostei_general_vrr_I(5, 0, 2, 0, 6,
1109 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1110 PRIM_INT__g_s_d_s, PRIM_INT__f_s_d_s, NULL, PRIM_INT__g_s_p_s, NULL, PRIM_INT__h_s_d_s);
1111
1112
1113 ostei_general_vrr_I(6, 0, 3, 0, 5,
1114 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1115 PRIM_INT__h_s_f_s, PRIM_INT__g_s_f_s, NULL, PRIM_INT__h_s_d_s, NULL, PRIM_INT__i_s_f_s);
1116
1117
1118 ostei_general_vrr_I(7, 0, 4, 0, 4,
1119 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1120 PRIM_INT__i_s_g_s, PRIM_INT__h_s_g_s, NULL, PRIM_INT__i_s_f_s, NULL, PRIM_INT__k_s_g_s);
1121
1122
1123 ostei_general_vrr_I(8, 0, 5, 0, 3,
1124 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1125 PRIM_INT__k_s_h_s, PRIM_INT__i_s_h_s, NULL, PRIM_INT__k_s_g_s, NULL, PRIM_INT__l_s_h_s);
1126
1127
1128 ostei_general_vrr_I(9, 0, 6, 0, 2,
1129 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1130 PRIM_INT__l_s_i_s, PRIM_INT__k_s_i_s, NULL, PRIM_INT__l_s_h_s, NULL, PRIM_INT__m_s_i_s);
1131
1132
1133 ostei_general_vrr1_K(9, 13,
1134 one_over_2q, a_over_q, aoq_PQ, Q_PA,
1135 PRIM_INT__s_s_l_s, PRIM_INT__s_s_k_s, PRIM_INT__s_s_m_s);
1136
1137
1138 ostei_general_vrr_I(1, 0, 9, 0, 10,
1139 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1140 PRIM_INT__s_s_m_s, NULL, NULL, PRIM_INT__s_s_l_s, NULL, PRIM_INT__p_s_m_s);
1141
1142
1143 ostei_general_vrr_I(2, 0, 9, 0, 9,
1144 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1145 PRIM_INT__p_s_m_s, PRIM_INT__s_s_m_s, NULL, PRIM_INT__p_s_l_s, NULL, PRIM_INT__d_s_m_s);
1146
1147
1148 ostei_general_vrr_I(3, 0, 9, 0, 8,
1149 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1150 PRIM_INT__d_s_m_s, PRIM_INT__p_s_m_s, NULL, PRIM_INT__d_s_l_s, NULL, PRIM_INT__f_s_m_s);
1151
1152
1153 ostei_general_vrr_I(4, 0, 9, 0, 7,
1154 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1155 PRIM_INT__f_s_m_s, PRIM_INT__d_s_m_s, NULL, PRIM_INT__f_s_l_s, NULL, PRIM_INT__g_s_m_s);
1156
1157
1158 ostei_general_vrr_I(5, 0, 9, 0, 6,
1159 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1160 PRIM_INT__g_s_m_s, PRIM_INT__f_s_m_s, NULL, PRIM_INT__g_s_l_s, NULL, PRIM_INT__h_s_m_s);
1161
1162
1163 ostei_general_vrr_I(6, 0, 9, 0, 5,
1164 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1165 PRIM_INT__h_s_m_s, PRIM_INT__g_s_m_s, NULL, PRIM_INT__h_s_l_s, NULL, PRIM_INT__i_s_m_s);
1166
1167
1168 ostei_general_vrr_I(7, 0, 9, 0, 4,
1169 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1170 PRIM_INT__i_s_m_s, PRIM_INT__h_s_m_s, NULL, PRIM_INT__i_s_l_s, NULL, PRIM_INT__k_s_m_s);
1171
1172
1173 ostei_general_vrr_I(8, 0, 8, 0, 3,
1174 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1175 PRIM_INT__k_s_l_s, PRIM_INT__i_s_l_s, NULL, PRIM_INT__k_s_k_s, NULL, PRIM_INT__l_s_l_s);
1176
1177
1178 ostei_general_vrr_I(9, 0, 7, 0, 2,
1179 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1180 PRIM_INT__l_s_k_s, PRIM_INT__k_s_k_s, NULL, PRIM_INT__l_s_i_s, NULL, PRIM_INT__m_s_k_s);
1181
1182
1183 VRR_I_g_s_s_s(
1184 PRIM_INT__g_s_s_s,
1185 PRIM_INT__f_s_s_s,
1186 PRIM_INT__d_s_s_s,
1187 P_PA,
1188 a_over_p,
1189 aop_PQ,
1190 one_over_2p,
1191 7);
1192
1193
1194 ostei_general_vrr_I(5, 0, 1, 0, 6,
1195 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1196 PRIM_INT__g_s_p_s, PRIM_INT__f_s_p_s, NULL, PRIM_INT__g_s_s_s, NULL, PRIM_INT__h_s_p_s);
1197
1198
1199 ostei_general_vrr_I(6, 0, 2, 0, 5,
1200 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1201 PRIM_INT__h_s_d_s, PRIM_INT__g_s_d_s, NULL, PRIM_INT__h_s_p_s, NULL, PRIM_INT__i_s_d_s);
1202
1203
1204 ostei_general_vrr_I(7, 0, 3, 0, 4,
1205 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1206 PRIM_INT__i_s_f_s, PRIM_INT__h_s_f_s, NULL, PRIM_INT__i_s_d_s, NULL, PRIM_INT__k_s_f_s);
1207
1208
1209 ostei_general_vrr_I(8, 0, 4, 0, 3,
1210 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1211 PRIM_INT__k_s_g_s, PRIM_INT__i_s_g_s, NULL, PRIM_INT__k_s_f_s, NULL, PRIM_INT__l_s_g_s);
1212
1213
1214 ostei_general_vrr_I(9, 0, 5, 0, 2,
1215 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1216 PRIM_INT__l_s_h_s, PRIM_INT__k_s_h_s, NULL, PRIM_INT__l_s_g_s, NULL, PRIM_INT__m_s_h_s);
1217
1218
1219 ostei_general_vrr_I(10, 0, 6, 0, 1,
1220 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1221 PRIM_INT__m_s_i_s, PRIM_INT__l_s_i_s, NULL, PRIM_INT__m_s_h_s, NULL, PRIM_INT__n_s_i_s);
1222
1223
1224 ostei_general_vrr1_K(10, 12,
1225 one_over_2q, a_over_q, aoq_PQ, Q_PA,
1226 PRIM_INT__s_s_m_s, PRIM_INT__s_s_l_s, PRIM_INT__s_s_n_s);
1227
1228
1229 ostei_general_vrr_I(1, 0, 10, 0, 10,
1230 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1231 PRIM_INT__s_s_n_s, NULL, NULL, PRIM_INT__s_s_m_s, NULL, PRIM_INT__p_s_n_s);
1232
1233
1234 ostei_general_vrr_I(2, 0, 10, 0, 9,
1235 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1236 PRIM_INT__p_s_n_s, PRIM_INT__s_s_n_s, NULL, PRIM_INT__p_s_m_s, NULL, PRIM_INT__d_s_n_s);
1237
1238
1239 ostei_general_vrr_I(3, 0, 10, 0, 8,
1240 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1241 PRIM_INT__d_s_n_s, PRIM_INT__p_s_n_s, NULL, PRIM_INT__d_s_m_s, NULL, PRIM_INT__f_s_n_s);
1242
1243
1244 ostei_general_vrr_I(4, 0, 10, 0, 7,
1245 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1246 PRIM_INT__f_s_n_s, PRIM_INT__d_s_n_s, NULL, PRIM_INT__f_s_m_s, NULL, PRIM_INT__g_s_n_s);
1247
1248
1249 ostei_general_vrr_I(5, 0, 10, 0, 6,
1250 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1251 PRIM_INT__g_s_n_s, PRIM_INT__f_s_n_s, NULL, PRIM_INT__g_s_m_s, NULL, PRIM_INT__h_s_n_s);
1252
1253
1254 ostei_general_vrr_I(6, 0, 10, 0, 5,
1255 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1256 PRIM_INT__h_s_n_s, PRIM_INT__g_s_n_s, NULL, PRIM_INT__h_s_m_s, NULL, PRIM_INT__i_s_n_s);
1257
1258
1259 ostei_general_vrr_I(7, 0, 10, 0, 4,
1260 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1261 PRIM_INT__i_s_n_s, PRIM_INT__h_s_n_s, NULL, PRIM_INT__i_s_m_s, NULL, PRIM_INT__k_s_n_s);
1262
1263
1264 ostei_general_vrr_I(8, 0, 9, 0, 3,
1265 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1266 PRIM_INT__k_s_m_s, PRIM_INT__i_s_m_s, NULL, PRIM_INT__k_s_l_s, NULL, PRIM_INT__l_s_m_s);
1267
1268
1269 ostei_general_vrr_I(9, 0, 8, 0, 2,
1270 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1271 PRIM_INT__l_s_l_s, PRIM_INT__k_s_l_s, NULL, PRIM_INT__l_s_k_s, NULL, PRIM_INT__m_s_l_s);
1272
1273
1274 ostei_general_vrr_I(10, 0, 7, 0, 1,
1275 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1276 PRIM_INT__m_s_k_s, PRIM_INT__l_s_k_s, NULL, PRIM_INT__m_s_i_s, NULL, PRIM_INT__n_s_k_s);
1277
1278
1279 ostei_general_vrr1_K(11, 11,
1280 one_over_2q, a_over_q, aoq_PQ, Q_PA,
1281 PRIM_INT__s_s_n_s, PRIM_INT__s_s_m_s, PRIM_INT__s_s_o_s);
1282
1283
1284 ostei_general_vrr_I(1, 0, 11, 0, 10,
1285 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1286 PRIM_INT__s_s_o_s, NULL, NULL, PRIM_INT__s_s_n_s, NULL, PRIM_INT__p_s_o_s);
1287
1288
1289 ostei_general_vrr_I(2, 0, 11, 0, 9,
1290 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1291 PRIM_INT__p_s_o_s, PRIM_INT__s_s_o_s, NULL, PRIM_INT__p_s_n_s, NULL, PRIM_INT__d_s_o_s);
1292
1293
1294 ostei_general_vrr_I(3, 0, 11, 0, 8,
1295 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1296 PRIM_INT__d_s_o_s, PRIM_INT__p_s_o_s, NULL, PRIM_INT__d_s_n_s, NULL, PRIM_INT__f_s_o_s);
1297
1298
1299 ostei_general_vrr_I(4, 0, 11, 0, 7,
1300 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1301 PRIM_INT__f_s_o_s, PRIM_INT__d_s_o_s, NULL, PRIM_INT__f_s_n_s, NULL, PRIM_INT__g_s_o_s);
1302
1303
1304 ostei_general_vrr_I(5, 0, 11, 0, 6,
1305 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1306 PRIM_INT__g_s_o_s, PRIM_INT__f_s_o_s, NULL, PRIM_INT__g_s_n_s, NULL, PRIM_INT__h_s_o_s);
1307
1308
1309 ostei_general_vrr_I(6, 0, 11, 0, 5,
1310 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1311 PRIM_INT__h_s_o_s, PRIM_INT__g_s_o_s, NULL, PRIM_INT__h_s_n_s, NULL, PRIM_INT__i_s_o_s);
1312
1313
1314 ostei_general_vrr_I(7, 0, 11, 0, 4,
1315 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1316 PRIM_INT__i_s_o_s, PRIM_INT__h_s_o_s, NULL, PRIM_INT__i_s_n_s, NULL, PRIM_INT__k_s_o_s);
1317
1318
1319 ostei_general_vrr_I(8, 0, 10, 0, 3,
1320 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1321 PRIM_INT__k_s_n_s, PRIM_INT__i_s_n_s, NULL, PRIM_INT__k_s_m_s, NULL, PRIM_INT__l_s_n_s);
1322
1323
1324 ostei_general_vrr_I(9, 0, 9, 0, 2,
1325 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1326 PRIM_INT__l_s_m_s, PRIM_INT__k_s_m_s, NULL, PRIM_INT__l_s_l_s, NULL, PRIM_INT__m_s_m_s);
1327
1328
1329 ostei_general_vrr_I(10, 0, 8, 0, 1,
1330 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1331 PRIM_INT__m_s_l_s, PRIM_INT__l_s_l_s, NULL, PRIM_INT__m_s_k_s, NULL, PRIM_INT__n_s_l_s);
1332
1333
1334 ostei_general_vrr_I(8, 0, 11, 0, 3,
1335 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1336 PRIM_INT__k_s_o_s, PRIM_INT__i_s_o_s, NULL, PRIM_INT__k_s_n_s, NULL, PRIM_INT__l_s_o_s);
1337
1338
1339 ostei_general_vrr_I(9, 0, 10, 0, 2,
1340 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1341 PRIM_INT__l_s_n_s, PRIM_INT__k_s_n_s, NULL, PRIM_INT__l_s_m_s, NULL, PRIM_INT__m_s_n_s);
1342
1343
1344 ostei_general_vrr_I(10, 0, 9, 0, 1,
1345 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1346 PRIM_INT__m_s_m_s, PRIM_INT__l_s_m_s, NULL, PRIM_INT__m_s_l_s, NULL, PRIM_INT__n_s_m_s);
1347
1348
1349 ostei_general_vrr_I(9, 0, 11, 0, 2,
1350 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1351 PRIM_INT__l_s_o_s, PRIM_INT__k_s_o_s, NULL, PRIM_INT__l_s_n_s, NULL, PRIM_INT__m_s_o_s);
1352
1353
1354 ostei_general_vrr_I(10, 0, 10, 0, 1,
1355 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1356 PRIM_INT__m_s_n_s, PRIM_INT__l_s_n_s, NULL, PRIM_INT__m_s_m_s, NULL, PRIM_INT__n_s_n_s);
1357
1358
1359 ostei_general_vrr_I(10, 0, 11, 0, 1,
1360 one_over_2p, a_over_p, one_over_2pq, aop_PQ, P_PA,
1361 PRIM_INT__m_s_o_s, PRIM_INT__l_s_o_s, NULL, PRIM_INT__m_s_n_s, NULL, PRIM_INT__n_s_o_s);
1362
1363
1364
1365
1366 ////////////////////////////////////
1367 // Accumulate contracted integrals
1368 ////////////////////////////////////
1369 if(lastoffset == 0)
1370 {
1371 contract_all(1008, PRIM_INT__k_s_i_s, PRIM_PTR_INT__k_s_i_s);
1372 contract_all(1296, PRIM_INT__k_s_k_s, PRIM_PTR_INT__k_s_k_s);
1373 contract_all(1620, PRIM_INT__k_s_l_s, PRIM_PTR_INT__k_s_l_s);
1374 contract_all(1980, PRIM_INT__k_s_m_s, PRIM_PTR_INT__k_s_m_s);
1375 contract_all(2376, PRIM_INT__k_s_n_s, PRIM_PTR_INT__k_s_n_s);
1376 contract_all(2808, PRIM_INT__k_s_o_s, PRIM_PTR_INT__k_s_o_s);
1377 contract_all(1260, PRIM_INT__l_s_i_s, PRIM_PTR_INT__l_s_i_s);
1378 contract_all(1620, PRIM_INT__l_s_k_s, PRIM_PTR_INT__l_s_k_s);
1379 contract_all(2025, PRIM_INT__l_s_l_s, PRIM_PTR_INT__l_s_l_s);
1380 contract_all(2475, PRIM_INT__l_s_m_s, PRIM_PTR_INT__l_s_m_s);
1381 contract_all(2970, PRIM_INT__l_s_n_s, PRIM_PTR_INT__l_s_n_s);
1382 contract_all(3510, PRIM_INT__l_s_o_s, PRIM_PTR_INT__l_s_o_s);
1383 contract_all(1540, PRIM_INT__m_s_i_s, PRIM_PTR_INT__m_s_i_s);
1384 contract_all(1980, PRIM_INT__m_s_k_s, PRIM_PTR_INT__m_s_k_s);
1385 contract_all(2475, PRIM_INT__m_s_l_s, PRIM_PTR_INT__m_s_l_s);
1386 contract_all(3025, PRIM_INT__m_s_m_s, PRIM_PTR_INT__m_s_m_s);
1387 contract_all(3630, PRIM_INT__m_s_n_s, PRIM_PTR_INT__m_s_n_s);
1388 contract_all(4290, PRIM_INT__m_s_o_s, PRIM_PTR_INT__m_s_o_s);
1389 contract_all(1848, PRIM_INT__n_s_i_s, PRIM_PTR_INT__n_s_i_s);
1390 contract_all(2376, PRIM_INT__n_s_k_s, PRIM_PTR_INT__n_s_k_s);
1391 contract_all(2970, PRIM_INT__n_s_l_s, PRIM_PTR_INT__n_s_l_s);
1392 contract_all(3630, PRIM_INT__n_s_m_s, PRIM_PTR_INT__n_s_m_s);
1393 contract_all(4356, PRIM_INT__n_s_n_s, PRIM_PTR_INT__n_s_n_s);
1394 contract_all(5148, PRIM_INT__n_s_o_s, PRIM_PTR_INT__n_s_o_s);
1395 }
1396 else
1397 {
1398 contract(1008, shelloffsets, PRIM_INT__k_s_i_s, PRIM_PTR_INT__k_s_i_s);
1399 contract(1296, shelloffsets, PRIM_INT__k_s_k_s, PRIM_PTR_INT__k_s_k_s);
1400 contract(1620, shelloffsets, PRIM_INT__k_s_l_s, PRIM_PTR_INT__k_s_l_s);
1401 contract(1980, shelloffsets, PRIM_INT__k_s_m_s, PRIM_PTR_INT__k_s_m_s);
1402 contract(2376, shelloffsets, PRIM_INT__k_s_n_s, PRIM_PTR_INT__k_s_n_s);
1403 contract(2808, shelloffsets, PRIM_INT__k_s_o_s, PRIM_PTR_INT__k_s_o_s);
1404 contract(1260, shelloffsets, PRIM_INT__l_s_i_s, PRIM_PTR_INT__l_s_i_s);
1405 contract(1620, shelloffsets, PRIM_INT__l_s_k_s, PRIM_PTR_INT__l_s_k_s);
1406 contract(2025, shelloffsets, PRIM_INT__l_s_l_s, PRIM_PTR_INT__l_s_l_s);
1407 contract(2475, shelloffsets, PRIM_INT__l_s_m_s, PRIM_PTR_INT__l_s_m_s);
1408 contract(2970, shelloffsets, PRIM_INT__l_s_n_s, PRIM_PTR_INT__l_s_n_s);
1409 contract(3510, shelloffsets, PRIM_INT__l_s_o_s, PRIM_PTR_INT__l_s_o_s);
1410 contract(1540, shelloffsets, PRIM_INT__m_s_i_s, PRIM_PTR_INT__m_s_i_s);
1411 contract(1980, shelloffsets, PRIM_INT__m_s_k_s, PRIM_PTR_INT__m_s_k_s);
1412 contract(2475, shelloffsets, PRIM_INT__m_s_l_s, PRIM_PTR_INT__m_s_l_s);
1413 contract(3025, shelloffsets, PRIM_INT__m_s_m_s, PRIM_PTR_INT__m_s_m_s);
1414 contract(3630, shelloffsets, PRIM_INT__m_s_n_s, PRIM_PTR_INT__m_s_n_s);
1415 contract(4290, shelloffsets, PRIM_INT__m_s_o_s, PRIM_PTR_INT__m_s_o_s);
1416 contract(1848, shelloffsets, PRIM_INT__n_s_i_s, PRIM_PTR_INT__n_s_i_s);
1417 contract(2376, shelloffsets, PRIM_INT__n_s_k_s, PRIM_PTR_INT__n_s_k_s);
1418 contract(2970, shelloffsets, PRIM_INT__n_s_l_s, PRIM_PTR_INT__n_s_l_s);
1419 contract(3630, shelloffsets, PRIM_INT__n_s_m_s, PRIM_PTR_INT__n_s_m_s);
1420 contract(4356, shelloffsets, PRIM_INT__n_s_n_s, PRIM_PTR_INT__n_s_n_s);
1421 contract(5148, shelloffsets, PRIM_INT__n_s_o_s, PRIM_PTR_INT__n_s_o_s);
1422 PRIM_PTR_INT__k_s_i_s += lastoffset*1008;
1423 PRIM_PTR_INT__k_s_k_s += lastoffset*1296;
1424 PRIM_PTR_INT__k_s_l_s += lastoffset*1620;
1425 PRIM_PTR_INT__k_s_m_s += lastoffset*1980;
1426 PRIM_PTR_INT__k_s_n_s += lastoffset*2376;
1427 PRIM_PTR_INT__k_s_o_s += lastoffset*2808;
1428 PRIM_PTR_INT__l_s_i_s += lastoffset*1260;
1429 PRIM_PTR_INT__l_s_k_s += lastoffset*1620;
1430 PRIM_PTR_INT__l_s_l_s += lastoffset*2025;
1431 PRIM_PTR_INT__l_s_m_s += lastoffset*2475;
1432 PRIM_PTR_INT__l_s_n_s += lastoffset*2970;
1433 PRIM_PTR_INT__l_s_o_s += lastoffset*3510;
1434 PRIM_PTR_INT__m_s_i_s += lastoffset*1540;
1435 PRIM_PTR_INT__m_s_k_s += lastoffset*1980;
1436 PRIM_PTR_INT__m_s_l_s += lastoffset*2475;
1437 PRIM_PTR_INT__m_s_m_s += lastoffset*3025;
1438 PRIM_PTR_INT__m_s_n_s += lastoffset*3630;
1439 PRIM_PTR_INT__m_s_o_s += lastoffset*4290;
1440 PRIM_PTR_INT__n_s_i_s += lastoffset*1848;
1441 PRIM_PTR_INT__n_s_k_s += lastoffset*2376;
1442 PRIM_PTR_INT__n_s_l_s += lastoffset*2970;
1443 PRIM_PTR_INT__n_s_m_s += lastoffset*3630;
1444 PRIM_PTR_INT__n_s_n_s += lastoffset*4356;
1445 PRIM_PTR_INT__n_s_o_s += lastoffset*5148;
1446 }
1447
1448 } // close loop over j
1449 } // close loop over i
1450
1451 //Advance to the next batch
1452 jstart = SIMINT_SIMD_ROUND(jend);
1453
1454 //////////////////////////////////////////////
1455 // Contracted integrals: Horizontal recurrance
1456 //////////////////////////////////////////////
1457
1458
1459 const double hAB[3] = { P.AB_x[ab], P.AB_y[ab], P.AB_z[ab] };
1460
1461
1462 for(abcd = 0; abcd < nshellbatch; ++abcd, ++real_abcd)
1463 {
1464 const double hCD[3] = { Q.AB_x[cd+abcd], Q.AB_y[cd+abcd], Q.AB_z[cd+abcd] };
1465
1466 // set up HRR pointers
1467 double const * restrict HRR_INT__k_s_i_s = INT__k_s_i_s + abcd * 1008;
1468 double const * restrict HRR_INT__k_s_k_s = INT__k_s_k_s + abcd * 1296;
1469 double const * restrict HRR_INT__k_s_l_s = INT__k_s_l_s + abcd * 1620;
1470 double const * restrict HRR_INT__k_s_m_s = INT__k_s_m_s + abcd * 1980;
1471 double const * restrict HRR_INT__k_s_n_s = INT__k_s_n_s + abcd * 2376;
1472 double const * restrict HRR_INT__k_s_o_s = INT__k_s_o_s + abcd * 2808;
1473 double const * restrict HRR_INT__l_s_i_s = INT__l_s_i_s + abcd * 1260;
1474 double const * restrict HRR_INT__l_s_k_s = INT__l_s_k_s + abcd * 1620;
1475 double const * restrict HRR_INT__l_s_l_s = INT__l_s_l_s + abcd * 2025;
1476 double const * restrict HRR_INT__l_s_m_s = INT__l_s_m_s + abcd * 2475;
1477 double const * restrict HRR_INT__l_s_n_s = INT__l_s_n_s + abcd * 2970;
1478 double const * restrict HRR_INT__l_s_o_s = INT__l_s_o_s + abcd * 3510;
1479 double const * restrict HRR_INT__m_s_i_s = INT__m_s_i_s + abcd * 1540;
1480 double const * restrict HRR_INT__m_s_k_s = INT__m_s_k_s + abcd * 1980;
1481 double const * restrict HRR_INT__m_s_l_s = INT__m_s_l_s + abcd * 2475;
1482 double const * restrict HRR_INT__m_s_m_s = INT__m_s_m_s + abcd * 3025;
1483 double const * restrict HRR_INT__m_s_n_s = INT__m_s_n_s + abcd * 3630;
1484 double const * restrict HRR_INT__m_s_o_s = INT__m_s_o_s + abcd * 4290;
1485 double const * restrict HRR_INT__n_s_i_s = INT__n_s_i_s + abcd * 1848;
1486 double const * restrict HRR_INT__n_s_k_s = INT__n_s_k_s + abcd * 2376;
1487 double const * restrict HRR_INT__n_s_l_s = INT__n_s_l_s + abcd * 2970;
1488 double const * restrict HRR_INT__n_s_m_s = INT__n_s_m_s + abcd * 3630;
1489 double const * restrict HRR_INT__n_s_n_s = INT__n_s_n_s + abcd * 4356;
1490 double const * restrict HRR_INT__n_s_o_s = INT__n_s_o_s + abcd * 5148;
1491 double * restrict HRR_INT__k_f_i_h = INT__k_f_i_h + real_abcd * 211680;
1492
1493 // form INT__k_p_i_s
1494 ostei_general_hrr_J(7, 1, 6, 0, hAB, HRR_INT__l_s_i_s, HRR_INT__k_s_i_s, HRR_INT__k_p_i_s);
1495
1496 // form INT__k_p_k_s
1497 ostei_general_hrr_J(7, 1, 7, 0, hAB, HRR_INT__l_s_k_s, HRR_INT__k_s_k_s, HRR_INT__k_p_k_s);
1498
1499 // form INT__k_p_l_s
1500 ostei_general_hrr_J(7, 1, 8, 0, hAB, HRR_INT__l_s_l_s, HRR_INT__k_s_l_s, HRR_INT__k_p_l_s);
1501
1502 // form INT__k_p_m_s
1503 ostei_general_hrr_J(7, 1, 9, 0, hAB, HRR_INT__l_s_m_s, HRR_INT__k_s_m_s, HRR_INT__k_p_m_s);
1504
1505 // form INT__k_p_n_s
1506 ostei_general_hrr_J(7, 1, 10, 0, hAB, HRR_INT__l_s_n_s, HRR_INT__k_s_n_s, HRR_INT__k_p_n_s);
1507
1508 // form INT__k_p_o_s
1509 ostei_general_hrr_J(7, 1, 11, 0, hAB, HRR_INT__l_s_o_s, HRR_INT__k_s_o_s, HRR_INT__k_p_o_s);
1510
1511 // form INT__l_p_i_s
1512 ostei_general_hrr_J(8, 1, 6, 0, hAB, HRR_INT__m_s_i_s, HRR_INT__l_s_i_s, HRR_INT__l_p_i_s);
1513
1514 // form INT__l_p_k_s
1515 ostei_general_hrr_J(8, 1, 7, 0, hAB, HRR_INT__m_s_k_s, HRR_INT__l_s_k_s, HRR_INT__l_p_k_s);
1516
1517 // form INT__l_p_l_s
1518 ostei_general_hrr_J(8, 1, 8, 0, hAB, HRR_INT__m_s_l_s, HRR_INT__l_s_l_s, HRR_INT__l_p_l_s);
1519
1520 // form INT__l_p_m_s
1521 ostei_general_hrr_J(8, 1, 9, 0, hAB, HRR_INT__m_s_m_s, HRR_INT__l_s_m_s, HRR_INT__l_p_m_s);
1522
1523 // form INT__l_p_n_s
1524 ostei_general_hrr_J(8, 1, 10, 0, hAB, HRR_INT__m_s_n_s, HRR_INT__l_s_n_s, HRR_INT__l_p_n_s);
1525
1526 // form INT__l_p_o_s
1527 ostei_general_hrr_J(8, 1, 11, 0, hAB, HRR_INT__m_s_o_s, HRR_INT__l_s_o_s, HRR_INT__l_p_o_s);
1528
1529 // form INT__m_p_i_s
1530 ostei_general_hrr_J(9, 1, 6, 0, hAB, HRR_INT__n_s_i_s, HRR_INT__m_s_i_s, HRR_INT__m_p_i_s);
1531
1532 // form INT__m_p_k_s
1533 ostei_general_hrr_J(9, 1, 7, 0, hAB, HRR_INT__n_s_k_s, HRR_INT__m_s_k_s, HRR_INT__m_p_k_s);
1534
1535 // form INT__m_p_l_s
1536 ostei_general_hrr_J(9, 1, 8, 0, hAB, HRR_INT__n_s_l_s, HRR_INT__m_s_l_s, HRR_INT__m_p_l_s);
1537
1538 // form INT__m_p_m_s
1539 ostei_general_hrr_J(9, 1, 9, 0, hAB, HRR_INT__n_s_m_s, HRR_INT__m_s_m_s, HRR_INT__m_p_m_s);
1540
1541 // form INT__m_p_n_s
1542 ostei_general_hrr_J(9, 1, 10, 0, hAB, HRR_INT__n_s_n_s, HRR_INT__m_s_n_s, HRR_INT__m_p_n_s);
1543
1544 // form INT__m_p_o_s
1545 ostei_general_hrr_J(9, 1, 11, 0, hAB, HRR_INT__n_s_o_s, HRR_INT__m_s_o_s, HRR_INT__m_p_o_s);
1546
1547 // form INT__k_d_i_s
1548 ostei_general_hrr_J(7, 2, 6, 0, hAB, HRR_INT__l_p_i_s, HRR_INT__k_p_i_s, HRR_INT__k_d_i_s);
1549
1550 // form INT__k_d_k_s
1551 ostei_general_hrr_J(7, 2, 7, 0, hAB, HRR_INT__l_p_k_s, HRR_INT__k_p_k_s, HRR_INT__k_d_k_s);
1552
1553 // form INT__k_d_l_s
1554 ostei_general_hrr_J(7, 2, 8, 0, hAB, HRR_INT__l_p_l_s, HRR_INT__k_p_l_s, HRR_INT__k_d_l_s);
1555
1556 // form INT__k_d_m_s
1557 ostei_general_hrr_J(7, 2, 9, 0, hAB, HRR_INT__l_p_m_s, HRR_INT__k_p_m_s, HRR_INT__k_d_m_s);
1558
1559 // form INT__k_d_n_s
1560 ostei_general_hrr_J(7, 2, 10, 0, hAB, HRR_INT__l_p_n_s, HRR_INT__k_p_n_s, HRR_INT__k_d_n_s);
1561
1562 // form INT__k_d_o_s
1563 ostei_general_hrr_J(7, 2, 11, 0, hAB, HRR_INT__l_p_o_s, HRR_INT__k_p_o_s, HRR_INT__k_d_o_s);
1564
1565 // form INT__l_d_i_s
1566 ostei_general_hrr_J(8, 2, 6, 0, hAB, HRR_INT__m_p_i_s, HRR_INT__l_p_i_s, HRR_INT__l_d_i_s);
1567
1568 // form INT__l_d_k_s
1569 ostei_general_hrr_J(8, 2, 7, 0, hAB, HRR_INT__m_p_k_s, HRR_INT__l_p_k_s, HRR_INT__l_d_k_s);
1570
1571 // form INT__l_d_l_s
1572 ostei_general_hrr_J(8, 2, 8, 0, hAB, HRR_INT__m_p_l_s, HRR_INT__l_p_l_s, HRR_INT__l_d_l_s);
1573
1574 // form INT__l_d_m_s
1575 ostei_general_hrr_J(8, 2, 9, 0, hAB, HRR_INT__m_p_m_s, HRR_INT__l_p_m_s, HRR_INT__l_d_m_s);
1576
1577 // form INT__l_d_n_s
1578 ostei_general_hrr_J(8, 2, 10, 0, hAB, HRR_INT__m_p_n_s, HRR_INT__l_p_n_s, HRR_INT__l_d_n_s);
1579
1580 // form INT__l_d_o_s
1581 ostei_general_hrr_J(8, 2, 11, 0, hAB, HRR_INT__m_p_o_s, HRR_INT__l_p_o_s, HRR_INT__l_d_o_s);
1582
1583 // form INT__k_f_i_s
1584 ostei_general_hrr_J(7, 3, 6, 0, hAB, HRR_INT__l_d_i_s, HRR_INT__k_d_i_s, HRR_INT__k_f_i_s);
1585
1586 // form INT__k_f_k_s
1587 ostei_general_hrr_J(7, 3, 7, 0, hAB, HRR_INT__l_d_k_s, HRR_INT__k_d_k_s, HRR_INT__k_f_k_s);
1588
1589 // form INT__k_f_l_s
1590 ostei_general_hrr_J(7, 3, 8, 0, hAB, HRR_INT__l_d_l_s, HRR_INT__k_d_l_s, HRR_INT__k_f_l_s);
1591
1592 // form INT__k_f_m_s
1593 ostei_general_hrr_J(7, 3, 9, 0, hAB, HRR_INT__l_d_m_s, HRR_INT__k_d_m_s, HRR_INT__k_f_m_s);
1594
1595 // form INT__k_f_n_s
1596 ostei_general_hrr_J(7, 3, 10, 0, hAB, HRR_INT__l_d_n_s, HRR_INT__k_d_n_s, HRR_INT__k_f_n_s);
1597
1598 // form INT__k_f_o_s
1599 ostei_general_hrr_J(7, 3, 11, 0, hAB, HRR_INT__l_d_o_s, HRR_INT__k_d_o_s, HRR_INT__k_f_o_s);
1600
1601 // form INT__k_f_i_p
1602 ostei_general_hrr_L(7, 3, 6, 1, hCD, HRR_INT__k_f_k_s, HRR_INT__k_f_i_s, HRR_INT__k_f_i_p);
1603
1604 // form INT__k_f_k_p
1605 ostei_general_hrr_L(7, 3, 7, 1, hCD, HRR_INT__k_f_l_s, HRR_INT__k_f_k_s, HRR_INT__k_f_k_p);
1606
1607 // form INT__k_f_l_p
1608 ostei_general_hrr_L(7, 3, 8, 1, hCD, HRR_INT__k_f_m_s, HRR_INT__k_f_l_s, HRR_INT__k_f_l_p);
1609
1610 // form INT__k_f_m_p
1611 ostei_general_hrr_L(7, 3, 9, 1, hCD, HRR_INT__k_f_n_s, HRR_INT__k_f_m_s, HRR_INT__k_f_m_p);
1612
1613 // form INT__k_f_n_p
1614 ostei_general_hrr_L(7, 3, 10, 1, hCD, HRR_INT__k_f_o_s, HRR_INT__k_f_n_s, HRR_INT__k_f_n_p);
1615
1616 // form INT__k_f_i_d
1617 ostei_general_hrr_L(7, 3, 6, 2, hCD, HRR_INT__k_f_k_p, HRR_INT__k_f_i_p, HRR_INT__k_f_i_d);
1618
1619 // form INT__k_f_k_d
1620 ostei_general_hrr_L(7, 3, 7, 2, hCD, HRR_INT__k_f_l_p, HRR_INT__k_f_k_p, HRR_INT__k_f_k_d);
1621
1622 // form INT__k_f_l_d
1623 ostei_general_hrr_L(7, 3, 8, 2, hCD, HRR_INT__k_f_m_p, HRR_INT__k_f_l_p, HRR_INT__k_f_l_d);
1624
1625 // form INT__k_f_m_d
1626 ostei_general_hrr_L(7, 3, 9, 2, hCD, HRR_INT__k_f_n_p, HRR_INT__k_f_m_p, HRR_INT__k_f_m_d);
1627
1628 // form INT__k_f_i_f
1629 ostei_general_hrr_L(7, 3, 6, 3, hCD, HRR_INT__k_f_k_d, HRR_INT__k_f_i_d, HRR_INT__k_f_i_f);
1630
1631 // form INT__k_f_k_f
1632 ostei_general_hrr_L(7, 3, 7, 3, hCD, HRR_INT__k_f_l_d, HRR_INT__k_f_k_d, HRR_INT__k_f_k_f);
1633
1634 // form INT__k_f_l_f
1635 ostei_general_hrr_L(7, 3, 8, 3, hCD, HRR_INT__k_f_m_d, HRR_INT__k_f_l_d, HRR_INT__k_f_l_f);
1636
1637 // form INT__k_f_i_g
1638 ostei_general_hrr_L(7, 3, 6, 4, hCD, HRR_INT__k_f_k_f, HRR_INT__k_f_i_f, HRR_INT__k_f_i_g);
1639
1640 // form INT__k_f_k_g
1641 ostei_general_hrr_L(7, 3, 7, 4, hCD, HRR_INT__k_f_l_f, HRR_INT__k_f_k_f, HRR_INT__k_f_k_g);
1642
1643 // form INT__k_f_i_h
1644 ostei_general_hrr_L(7, 3, 6, 5, hCD, HRR_INT__k_f_k_g, HRR_INT__k_f_i_g, HRR_INT__k_f_i_h);
1645
1646
1647 } // close HRR loop
1648
1649
1650 } // close loop cdbatch
1651
1652 istart = iend;
1653 } // close loop over ab
1654
1655 return P.nshell12_clip * Q.nshell12_clip;
1656 }
1657
ostei_f_k_i_h(struct simint_multi_shellpair const P,struct simint_multi_shellpair const Q,double screen_tol,double * const restrict work,double * const restrict INT__f_k_i_h)1658 int ostei_f_k_i_h(struct simint_multi_shellpair const P,
1659 struct simint_multi_shellpair const Q,
1660 double screen_tol,
1661 double * const restrict work,
1662 double * const restrict INT__f_k_i_h)
1663 {
1664 double P_AB[3*P.nshell12];
1665 struct simint_multi_shellpair P_tmp = P;
1666 P_tmp.PA_x = P.PB_x; P_tmp.PA_y = P.PB_y; P_tmp.PA_z = P.PB_z;
1667 P_tmp.PB_x = P.PA_x; P_tmp.PB_y = P.PA_y; P_tmp.PB_z = P.PA_z;
1668 P_tmp.AB_x = P_AB;
1669 P_tmp.AB_y = P_AB + P.nshell12;
1670 P_tmp.AB_z = P_AB + 2*P.nshell12;
1671
1672 for(int i = 0; i < P.nshell12; i++)
1673 {
1674 P_tmp.AB_x[i] = -P.AB_x[i];
1675 P_tmp.AB_y[i] = -P.AB_y[i];
1676 P_tmp.AB_z[i] = -P.AB_z[i];
1677 }
1678
1679 int ret = ostei_k_f_i_h(P_tmp, Q, screen_tol, work, INT__f_k_i_h);
1680 double buffer[211680] SIMINT_ALIGN_ARRAY_DBL;
1681
1682 for(int q = 0; q < ret; q++)
1683 {
1684 int idx = 0;
1685 for(int a = 0; a < 10; ++a)
1686 for(int b = 0; b < 36; ++b)
1687 for(int c = 0; c < 28; ++c)
1688 for(int d = 0; d < 21; ++d)
1689 buffer[idx++] = INT__f_k_i_h[q*211680+b*5880+a*588+c*21+d];
1690
1691 memcpy(INT__f_k_i_h+q*211680, buffer, 211680*sizeof(double));
1692 }
1693
1694 return ret;
1695 }
1696
ostei_k_f_h_i(struct simint_multi_shellpair const P,struct simint_multi_shellpair const Q,double screen_tol,double * const restrict work,double * const restrict INT__k_f_h_i)1697 int ostei_k_f_h_i(struct simint_multi_shellpair const P,
1698 struct simint_multi_shellpair const Q,
1699 double screen_tol,
1700 double * const restrict work,
1701 double * const restrict INT__k_f_h_i)
1702 {
1703 double Q_AB[3*Q.nshell12];
1704 struct simint_multi_shellpair Q_tmp = Q;
1705 Q_tmp.PA_x = Q.PB_x; Q_tmp.PA_y = Q.PB_y; Q_tmp.PA_z = Q.PB_z;
1706 Q_tmp.PB_x = Q.PA_x; Q_tmp.PB_y = Q.PA_y; Q_tmp.PB_z = Q.PA_z;
1707 Q_tmp.AB_x = Q_AB;
1708 Q_tmp.AB_y = Q_AB + Q.nshell12;
1709 Q_tmp.AB_z = Q_AB + 2*Q.nshell12;
1710
1711 for(int i = 0; i < Q.nshell12; i++)
1712 {
1713 Q_tmp.AB_x[i] = -Q.AB_x[i];
1714 Q_tmp.AB_y[i] = -Q.AB_y[i];
1715 Q_tmp.AB_z[i] = -Q.AB_z[i];
1716 }
1717
1718 int ret = ostei_k_f_i_h(P, Q_tmp, screen_tol, work, INT__k_f_h_i);
1719 double buffer[211680] SIMINT_ALIGN_ARRAY_DBL;
1720
1721 for(int q = 0; q < ret; q++)
1722 {
1723 int idx = 0;
1724 for(int a = 0; a < 36; ++a)
1725 for(int b = 0; b < 10; ++b)
1726 for(int c = 0; c < 21; ++c)
1727 for(int d = 0; d < 28; ++d)
1728 buffer[idx++] = INT__k_f_h_i[q*211680+a*5880+b*588+d*21+c];
1729
1730 memcpy(INT__k_f_h_i+q*211680, buffer, 211680*sizeof(double));
1731 }
1732
1733 return ret;
1734 }
1735
ostei_f_k_h_i(struct simint_multi_shellpair const P,struct simint_multi_shellpair const Q,double screen_tol,double * const restrict work,double * const restrict INT__f_k_h_i)1736 int ostei_f_k_h_i(struct simint_multi_shellpair const P,
1737 struct simint_multi_shellpair const Q,
1738 double screen_tol,
1739 double * const restrict work,
1740 double * const restrict INT__f_k_h_i)
1741 {
1742 double P_AB[3*P.nshell12];
1743 struct simint_multi_shellpair P_tmp = P;
1744 P_tmp.PA_x = P.PB_x; P_tmp.PA_y = P.PB_y; P_tmp.PA_z = P.PB_z;
1745 P_tmp.PB_x = P.PA_x; P_tmp.PB_y = P.PA_y; P_tmp.PB_z = P.PA_z;
1746 P_tmp.AB_x = P_AB;
1747 P_tmp.AB_y = P_AB + P.nshell12;
1748 P_tmp.AB_z = P_AB + 2*P.nshell12;
1749
1750 for(int i = 0; i < P.nshell12; i++)
1751 {
1752 P_tmp.AB_x[i] = -P.AB_x[i];
1753 P_tmp.AB_y[i] = -P.AB_y[i];
1754 P_tmp.AB_z[i] = -P.AB_z[i];
1755 }
1756
1757 double Q_AB[3*Q.nshell12];
1758 struct simint_multi_shellpair Q_tmp = Q;
1759 Q_tmp.PA_x = Q.PB_x; Q_tmp.PA_y = Q.PB_y; Q_tmp.PA_z = Q.PB_z;
1760 Q_tmp.PB_x = Q.PA_x; Q_tmp.PB_y = Q.PA_y; Q_tmp.PB_z = Q.PA_z;
1761 Q_tmp.AB_x = Q_AB;
1762 Q_tmp.AB_y = Q_AB + Q.nshell12;
1763 Q_tmp.AB_z = Q_AB + 2*Q.nshell12;
1764
1765 for(int i = 0; i < Q.nshell12; i++)
1766 {
1767 Q_tmp.AB_x[i] = -Q.AB_x[i];
1768 Q_tmp.AB_y[i] = -Q.AB_y[i];
1769 Q_tmp.AB_z[i] = -Q.AB_z[i];
1770 }
1771
1772 int ret = ostei_k_f_i_h(P_tmp, Q_tmp, screen_tol, work, INT__f_k_h_i);
1773 double buffer[211680] SIMINT_ALIGN_ARRAY_DBL;
1774
1775 for(int q = 0; q < ret; q++)
1776 {
1777 int idx = 0;
1778 for(int a = 0; a < 10; ++a)
1779 for(int b = 0; b < 36; ++b)
1780 for(int c = 0; c < 21; ++c)
1781 for(int d = 0; d < 28; ++d)
1782 buffer[idx++] = INT__f_k_h_i[q*211680+b*5880+a*588+d*21+c];
1783
1784 memcpy(INT__f_k_h_i+q*211680, buffer, 211680*sizeof(double));
1785 }
1786
1787 return ret;
1788 }
1789
1790