You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

dgemv_t_msa.c 24 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589
  1. /*******************************************************************************
  2. Copyright (c) 2016, The OpenBLAS Project
  3. All rights reserved.
  4. Redistribution and use in source and binary forms, with or without
  5. modification, are permitted provided that the following conditions are
  6. met:
  7. 1. Redistributions of source code must retain the above copyright
  8. notice, this list of conditions and the following disclaimer.
  9. 2. Redistributions in binary form must reproduce the above copyright
  10. notice, this list of conditions and the following disclaimer in
  11. the documentation and/or other materials provided with the
  12. distribution.
  13. 3. Neither the name of the OpenBLAS project nor the names of
  14. its contributors may be used to endorse or promote products
  15. derived from this software without specific prior written permission.
  16. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  17. AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  18. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  19. ARE DISCLAIMED. IN NO EVENT SHALL THE OPENBLAS PROJECT OR CONTRIBUTORS BE
  20. LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  21. DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  22. SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  23. CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  24. OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  25. USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. *******************************************************************************/
  27. #include "common.h"
  28. #include "macros_msa.h"
  29. #define DGEMV_T_8x8() \
  30. { \
  31. LD_DP4(pa0 + k, 2, t0, t1, t2, t3); \
  32. LD_DP4(pa1 + k, 2, t4, t5, t6, t7); \
  33. LD_DP4(pa2 + k, 2, t8, t9, t10, t11); \
  34. LD_DP4(pa3 + k, 2, t12, t13, t14, t15); \
  35. LD_DP4(pa4 + k, 2, t16, t17, t18, t19); \
  36. LD_DP4(pa5 + k, 2, t20, t21, t22, t23); \
  37. LD_DP4(pa6 + k, 2, t24, t25, t26, t27); \
  38. LD_DP4(pa7 + k, 2, t28, t29, t30, t31); \
  39. \
  40. tp0 += x0 * t0; \
  41. tp0 += x1 * t1; \
  42. tp0 += x2 * t2; \
  43. tp0 += x3 * t3; \
  44. \
  45. tp1 += x0 * t4; \
  46. tp1 += x1 * t5; \
  47. tp1 += x2 * t6; \
  48. tp1 += x3 * t7; \
  49. \
  50. tp2 += x0 * t8; \
  51. tp2 += x1 * t9; \
  52. tp2 += x2 * t10; \
  53. tp2 += x3 * t11; \
  54. \
  55. tp3 += x0 * t12; \
  56. tp3 += x1 * t13; \
  57. tp3 += x2 * t14; \
  58. tp3 += x3 * t15; \
  59. \
  60. tp4 += x0 * t16; \
  61. tp4 += x1 * t17; \
  62. tp4 += x2 * t18; \
  63. tp4 += x3 * t19; \
  64. \
  65. tp5 += x0 * t20; \
  66. tp5 += x1 * t21; \
  67. tp5 += x2 * t22; \
  68. tp5 += x3 * t23; \
  69. \
  70. tp6 += x0 * t24; \
  71. tp6 += x1 * t25; \
  72. tp6 += x2 * t26; \
  73. tp6 += x3 * t27; \
  74. \
  75. tp7 += x0 * t28; \
  76. tp7 += x1 * t29; \
  77. tp7 += x2 * t30; \
  78. tp7 += x3 * t31; \
  79. }
  80. #define DGEMV_T_8x4() \
  81. { \
  82. LD_DP2(pa0 + k, 2, t0, t1); \
  83. LD_DP2(pa1 + k, 2, t4, t5); \
  84. LD_DP2(pa2 + k, 2, t8, t9); \
  85. LD_DP2(pa3 + k, 2, t12, t13); \
  86. LD_DP2(pa4 + k, 2, t16, t17); \
  87. LD_DP2(pa5 + k, 2, t20, t21); \
  88. LD_DP2(pa6 + k, 2, t24, t25); \
  89. LD_DP2(pa7 + k, 2, t28, t29); \
  90. \
  91. tp0 += x0 * t0; \
  92. tp0 += x1 * t1; \
  93. \
  94. tp1 += x0 * t4; \
  95. tp1 += x1 * t5; \
  96. \
  97. tp2 += x0 * t8; \
  98. tp2 += x1 * t9; \
  99. \
  100. tp3 += x0 * t12; \
  101. tp3 += x1 * t13; \
  102. \
  103. tp4 += x0 * t16; \
  104. tp4 += x1 * t17; \
  105. \
  106. tp5 += x0 * t20; \
  107. tp5 += x1 * t21; \
  108. \
  109. tp6 += x0 * t24; \
  110. tp6 += x1 * t25; \
  111. \
  112. tp7 += x0 * t28; \
  113. tp7 += x1 * t29; \
  114. }
  115. #define DGEMV_T_8x2() \
  116. { \
  117. t0 = LD_DP(pa0 + k); \
  118. t4 = LD_DP(pa1 + k); \
  119. t8 = LD_DP(pa2 + k); \
  120. t12 = LD_DP(pa3 + k); \
  121. t16 = LD_DP(pa4 + k); \
  122. t20 = LD_DP(pa5 + k); \
  123. t24 = LD_DP(pa6 + k); \
  124. t28 = LD_DP(pa7 + k); \
  125. \
  126. tp0 += x0 * t0; \
  127. tp1 += x0 * t4; \
  128. tp2 += x0 * t8; \
  129. tp3 += x0 * t12; \
  130. tp4 += x0 * t16; \
  131. tp5 += x0 * t20; \
  132. tp6 += x0 * t24; \
  133. tp7 += x0 * t28; \
  134. }
  135. #define DGEMV_T_4x8() \
  136. { \
  137. LD_DP4(pa0 + k, 2, t0, t1, t2, t3); \
  138. LD_DP4(pa1 + k, 2, t4, t5, t6, t7); \
  139. LD_DP4(pa2 + k, 2, t8, t9, t10, t11); \
  140. LD_DP4(pa3 + k, 2, t12, t13, t14, t15); \
  141. \
  142. tp0 += x0 * t0; \
  143. tp0 += x1 * t1; \
  144. tp0 += x2 * t2; \
  145. tp0 += x3 * t3; \
  146. \
  147. tp1 += x0 * t4; \
  148. tp1 += x1 * t5; \
  149. tp1 += x2 * t6; \
  150. tp1 += x3 * t7; \
  151. \
  152. tp2 += x0 * t8; \
  153. tp2 += x1 * t9; \
  154. tp2 += x2 * t10; \
  155. tp2 += x3 * t11; \
  156. \
  157. tp3 += x0 * t12; \
  158. tp3 += x1 * t13; \
  159. tp3 += x2 * t14; \
  160. tp3 += x3 * t15; \
  161. }
  162. #define DGEMV_T_4x4() \
  163. { \
  164. LD_DP2(pa0 + k, 2, t0, t1); \
  165. LD_DP2(pa1 + k, 2, t4, t5); \
  166. LD_DP2(pa2 + k, 2, t8, t9); \
  167. LD_DP2(pa3 + k, 2, t12, t13); \
  168. \
  169. tp0 += x0 * t0; \
  170. tp0 += x1 * t1; \
  171. \
  172. tp1 += x0 * t4; \
  173. tp1 += x1 * t5; \
  174. \
  175. tp2 += x0 * t8; \
  176. tp2 += x1 * t9; \
  177. \
  178. tp3 += x0 * t12; \
  179. tp3 += x1 * t13; \
  180. }
  181. #define DGEMV_T_4x2() \
  182. { \
  183. t0 = LD_DP(pa0 + k); \
  184. t4 = LD_DP(pa1 + k); \
  185. t8 = LD_DP(pa2 + k); \
  186. t12 = LD_DP(pa3 + k); \
  187. \
  188. tp0 += x0 * t0; \
  189. tp1 += x0 * t4; \
  190. tp2 += x0 * t8; \
  191. tp3 += x0 * t12; \
  192. }
  193. #define DGEMV_T_2x8() \
  194. { \
  195. LD_DP4(pa0 + k, 2, t0, t1, t2, t3); \
  196. LD_DP4(pa1 + k, 2, t4, t5, t6, t7); \
  197. \
  198. tp0 += x0 * t0; \
  199. tp0 += x1 * t1; \
  200. tp0 += x2 * t2; \
  201. tp0 += x3 * t3; \
  202. \
  203. tp1 += x0 * t4; \
  204. tp1 += x1 * t5; \
  205. tp1 += x2 * t6; \
  206. tp1 += x3 * t7; \
  207. }
  208. #define DGEMV_T_2x4() \
  209. { \
  210. LD_DP2(pa0 + k, 2, t0, t1); \
  211. LD_DP2(pa1 + k, 2, t4, t5); \
  212. \
  213. tp0 += x0 * t0; \
  214. tp0 += x1 * t1; \
  215. \
  216. tp1 += x0 * t4; \
  217. tp1 += x1 * t5; \
  218. }
  219. #define DGEMV_T_2x2() \
  220. { \
  221. t0 = LD_DP(pa0 + k); \
  222. t4 = LD_DP(pa1 + k); \
  223. \
  224. tp0 += x0 * t0; \
  225. tp1 += x0 * t4; \
  226. }
  227. #define DLOAD_X8_GP() \
  228. x0 = (v2f64) __msa_insert_d((v2i64) tp0, 0, *((long long *)(x + 0 * inc_x))); \
  229. x0 = (v2f64) __msa_insert_d((v2i64) x0, 1, *((long long *)(x + 1 * inc_x))); \
  230. x1 = (v2f64) __msa_insert_d((v2i64) tp0, 0, *((long long *)(x + 2 * inc_x))); \
  231. x1 = (v2f64) __msa_insert_d((v2i64) x1, 1, *((long long *)(x + 3 * inc_x))); \
  232. x2 = (v2f64) __msa_insert_d((v2i64) tp0, 0, *((long long *)(x + 4 * inc_x))); \
  233. x2 = (v2f64) __msa_insert_d((v2i64) x2, 1, *((long long *)(x + 5 * inc_x))); \
  234. x3 = (v2f64) __msa_insert_d((v2i64) tp0, 0, *((long long *)(x + 6 * inc_x))); \
  235. x3 = (v2f64) __msa_insert_d((v2i64) x3, 1, *((long long *)(x + 7 * inc_x))); \
  236. #define DLOAD_X4_GP() \
  237. x0 = (v2f64) __msa_insert_d((v2i64) tp0, 0, *((long long *)(x + 0 * inc_x))); \
  238. x0 = (v2f64) __msa_insert_d((v2i64) x0, 1, *((long long *)(x + 1 * inc_x))); \
  239. x1 = (v2f64) __msa_insert_d((v2i64) tp0, 0, *((long long *)(x + 2 * inc_x))); \
  240. x1 = (v2f64) __msa_insert_d((v2i64) x1, 1, *((long long *)(x + 3 * inc_x))); \
  241. #define DLOAD_X2_GP() \
  242. x0 = (v2f64) __msa_insert_d((v2i64) tp0, 0, *((long long *)(x + 0 * inc_x))); \
  243. x0 = (v2f64) __msa_insert_d((v2i64) x0, 1, *((long long *)(x + 1 * inc_x))); \
  244. #define DLOAD_X8_VECTOR() LD_DP4(x, 2, x0, x1, x2, x3);
  245. #define DLOAD_X4_VECTOR() LD_DP2(x, 2, x0, x1);
  246. #define DLOAD_X2_VECTOR() x0 = LD_DP(x);
  247. #define DGEMV_T_MSA() \
  248. for (j = (n >> 3); j--;) \
  249. { \
  250. tp0 = zero; \
  251. tp1 = zero; \
  252. tp2 = zero; \
  253. tp3 = zero; \
  254. tp4 = zero; \
  255. tp5 = zero; \
  256. tp6 = zero; \
  257. tp7 = zero; \
  258. \
  259. k = 0; \
  260. x = srcx_org; \
  261. \
  262. for (i = (m >> 3); i--;) \
  263. { \
  264. DLOAD_X8(); \
  265. DGEMV_T_8x8(); \
  266. \
  267. x += 8 * inc_x; \
  268. k += 8; \
  269. } \
  270. \
  271. if (m & 4) \
  272. { \
  273. DLOAD_X4(); \
  274. DGEMV_T_8x4(); \
  275. \
  276. x += 4 * inc_x; \
  277. k += 4; \
  278. } \
  279. \
  280. if (m & 2) \
  281. { \
  282. DLOAD_X2(); \
  283. DGEMV_T_8x2(); \
  284. \
  285. x += 2 * inc_x; \
  286. k += 2; \
  287. } \
  288. \
  289. ILVRL_D2_DP(tp1, tp0, t0, t4); \
  290. ILVRL_D2_DP(tp3, tp2, t1, t5); \
  291. ILVRL_D2_DP(tp5, tp4, t2, t6); \
  292. ILVRL_D2_DP(tp7, tp6, t3, t7); \
  293. ADD2(t0, t4, t1, t5, t0, t1); \
  294. ADD2(t2, t6, t3, t7, t2, t3); \
  295. \
  296. temp0 = t0[0]; \
  297. temp1 = t0[1]; \
  298. temp2 = t1[0]; \
  299. temp3 = t1[1]; \
  300. temp4 = t2[0]; \
  301. temp5 = t2[1]; \
  302. temp6 = t3[0]; \
  303. temp7 = t3[1]; \
  304. \
  305. if (m & 1) \
  306. { \
  307. temp0 += pa0[k] * x[0]; \
  308. temp1 += pa1[k] * x[0]; \
  309. temp2 += pa2[k] * x[0]; \
  310. temp3 += pa3[k] * x[0]; \
  311. temp4 += pa4[k] * x[0]; \
  312. temp5 += pa5[k] * x[0]; \
  313. temp6 += pa6[k] * x[0]; \
  314. temp7 += pa7[k] * x[0]; \
  315. \
  316. x += inc_x; \
  317. k++; \
  318. } \
  319. \
  320. res0 = y[0 * inc_y]; \
  321. res1 = y[1 * inc_y]; \
  322. res2 = y[2 * inc_y]; \
  323. res3 = y[3 * inc_y]; \
  324. res4 = y[4 * inc_y]; \
  325. res5 = y[5 * inc_y]; \
  326. res6 = y[6 * inc_y]; \
  327. res7 = y[7 * inc_y]; \
  328. \
  329. res0 += alpha * temp0; \
  330. res1 += alpha * temp1; \
  331. res2 += alpha * temp2; \
  332. res3 += alpha * temp3; \
  333. res4 += alpha * temp4; \
  334. res5 += alpha * temp5; \
  335. res6 += alpha * temp6; \
  336. res7 += alpha * temp7; \
  337. \
  338. y[0 * inc_y] = res0; \
  339. y[1 * inc_y] = res1; \
  340. y[2 * inc_y] = res2; \
  341. y[3 * inc_y] = res3; \
  342. y[4 * inc_y] = res4; \
  343. y[5 * inc_y] = res5; \
  344. y[6 * inc_y] = res6; \
  345. y[7 * inc_y] = res7; \
  346. \
  347. y += 8 * inc_y; \
  348. \
  349. pa0 += 8 * lda; \
  350. pa1 += 8 * lda; \
  351. pa2 += 8 * lda; \
  352. pa3 += 8 * lda; \
  353. pa4 += 8 * lda; \
  354. pa5 += 8 * lda; \
  355. pa6 += 8 * lda; \
  356. pa7 += 8 * lda; \
  357. } \
  358. \
  359. if (n & 4) \
  360. { \
  361. tp0 = zero; \
  362. tp1 = zero; \
  363. tp2 = zero; \
  364. tp3 = zero; \
  365. \
  366. k = 0; \
  367. x = srcx_org; \
  368. \
  369. for (i = (m >> 3); i--;) \
  370. { \
  371. DLOAD_X8(); \
  372. DGEMV_T_4x8(); \
  373. \
  374. x += 8 * inc_x; \
  375. k += 8; \
  376. } \
  377. \
  378. if (m & 4) \
  379. { \
  380. DLOAD_X4(); \
  381. DGEMV_T_4x4(); \
  382. \
  383. x += 4 * inc_x; \
  384. k += 4; \
  385. } \
  386. \
  387. if (m & 2) \
  388. { \
  389. DLOAD_X2(); \
  390. DGEMV_T_4x2(); \
  391. \
  392. x += 2 * inc_x; \
  393. k += 2; \
  394. } \
  395. \
  396. ILVRL_D2_DP(tp1, tp0, t0, t4); \
  397. ILVRL_D2_DP(tp3, tp2, t1, t5); \
  398. ADD2(t0, t4, t1, t5, t0, t1); \
  399. \
  400. temp0 = t0[0]; \
  401. temp1 = t0[1]; \
  402. temp2 = t1[0]; \
  403. temp3 = t1[1]; \
  404. \
  405. if (m & 1) \
  406. { \
  407. temp0 += pa0[k] * x[0]; \
  408. temp1 += pa1[k] * x[0]; \
  409. temp2 += pa2[k] * x[0]; \
  410. temp3 += pa3[k] * x[0]; \
  411. \
  412. x += inc_x; \
  413. k++; \
  414. } \
  415. \
  416. res0 = y[0 * inc_y]; \
  417. res1 = y[1 * inc_y]; \
  418. res2 = y[2 * inc_y]; \
  419. res3 = y[3 * inc_y]; \
  420. \
  421. res0 += alpha * temp0; \
  422. res1 += alpha * temp1; \
  423. res2 += alpha * temp2; \
  424. res3 += alpha * temp3; \
  425. \
  426. y[0 * inc_y] = res0; \
  427. y[1 * inc_y] = res1; \
  428. y[2 * inc_y] = res2; \
  429. y[3 * inc_y] = res3; \
  430. \
  431. y += 4 * inc_y; \
  432. \
  433. pa0 += 4 * lda; \
  434. pa1 += 4 * lda; \
  435. pa2 += 4 * lda; \
  436. pa3 += 4 * lda; \
  437. } \
  438. \
  439. if (n & 2) \
  440. { \
  441. tp0 = zero; \
  442. tp1 = zero; \
  443. \
  444. k = 0; \
  445. x = srcx_org; \
  446. \
  447. for (i = (m >> 3); i--;) \
  448. { \
  449. DLOAD_X8(); \
  450. DGEMV_T_2x8(); \
  451. \
  452. x += 8 * inc_x; \
  453. k += 8; \
  454. } \
  455. \
  456. if (m & 4) \
  457. { \
  458. DLOAD_X4(); \
  459. DGEMV_T_2x4(); \
  460. \
  461. x += 4 * inc_x; \
  462. k += 4; \
  463. } \
  464. \
  465. if (m & 2) \
  466. { \
  467. DLOAD_X2(); \
  468. DGEMV_T_2x2(); \
  469. \
  470. x += 2 * inc_x; \
  471. k += 2; \
  472. } \
  473. \
  474. ILVRL_D2_DP(tp1, tp0, t0, t4); \
  475. \
  476. t0 += t4; \
  477. \
  478. temp0 = t0[0]; \
  479. temp1 = t0[1]; \
  480. \
  481. if (m & 1) \
  482. { \
  483. temp0 += pa0[k] * x[0]; \
  484. temp1 += pa1[k] * x[0]; \
  485. x += inc_x; \
  486. k++; \
  487. } \
  488. \
  489. res0 = y[0 * inc_y]; \
  490. res1 = y[1 * inc_y]; \
  491. \
  492. res0 += alpha * temp0; \
  493. res1 += alpha * temp1; \
  494. \
  495. y[0 * inc_y] = res0; \
  496. y[1 * inc_y] = res1; \
  497. \
  498. y += 2 * inc_y; \
  499. \
  500. pa0 += 2 * lda; \
  501. pa1 += 2 * lda; \
  502. } \
  503. \
  504. if (n & 1) \
  505. { \
  506. temp0 = 0.0; \
  507. \
  508. k = 0; \
  509. x = srcx_org; \
  510. \
  511. for (i = m; i--;) \
  512. { \
  513. temp0 += pa0[k] * x[0]; \
  514. x += inc_x; \
  515. k++; \
  516. } \
  517. \
  518. y[0] += alpha * temp0; \
  519. y += inc_y; \
  520. pa0 += lda; \
  521. }
  522. int CNAME(BLASLONG m, BLASLONG n, BLASLONG dummy1, FLOAT alpha, FLOAT *A,
  523. BLASLONG lda, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y,
  524. FLOAT *buffer)
  525. {
  526. BLASLONG i, j, k;
  527. FLOAT *srcx_org = x;
  528. FLOAT *pa0, *pa1, *pa2, *pa3, *pa4, *pa5, *pa6, *pa7;
  529. FLOAT temp0, temp1, temp2, temp3, temp4, temp5, temp6, temp7;
  530. FLOAT res0, res1, res2, res3, res4, res5, res6, res7;
  531. v2f64 x0, x1, x2, x3;
  532. v2f64 t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15;
  533. v2f64 t16, t17, t18, t19, t20, t21, t22, t23, t24, t25, t26, t27, t28, t29;
  534. v2f64 t30, t31, tp0, tp1, tp2, tp3, tp4, tp5, tp6, tp7;
  535. v2f64 zero = {0};
  536. pa0 = A + 0 * lda;
  537. pa1 = A + 1 * lda;
  538. pa2 = A + 2 * lda;
  539. pa3 = A + 3 * lda;
  540. pa4 = A + 4 * lda;
  541. pa5 = A + 5 * lda;
  542. pa6 = A + 6 * lda;
  543. pa7 = A + 7 * lda;
  544. if (1 == inc_x)
  545. {
  546. #define DLOAD_X8 DLOAD_X8_VECTOR
  547. #define DLOAD_X4 DLOAD_X4_VECTOR
  548. #define DLOAD_X2 DLOAD_X2_VECTOR
  549. DGEMV_T_MSA();
  550. #undef DLOAD_X8
  551. #undef DLOAD_X4
  552. #undef DLOAD_X2
  553. }
  554. else
  555. {
  556. #define DLOAD_X8 DLOAD_X8_GP
  557. #define DLOAD_X4 DLOAD_X4_GP
  558. #define DLOAD_X2 DLOAD_X2_GP
  559. DGEMV_T_MSA();
  560. #undef DLOAD_X8
  561. #undef DLOAD_X4
  562. #undef DLOAD_X2
  563. }
  564. return(0);
  565. }