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.

common_c.h 25 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702
  1. #ifndef COMMON_C_H
  2. #define COMMON_C_H
  3. #ifndef DYNAMIC_ARCH
  4. #define CAMAX_K camax_k
  5. #define CAMIN_K camin_k
  6. #define CMAX_K cmax_k
  7. #define CMIN_K cmin_k
  8. #define ICAMAX_K icamax_k
  9. #define ICAMIN_K icamin_k
  10. #define ICMAX_K icmax_k
  11. #define ICMIN_K icmin_k
  12. #define CASUM_K casum_k
  13. #define CAXPYU_K caxpy_k
  14. #define CAXPYC_K caxpyc_k
  15. #define CCOPY_K ccopy_k
  16. #define CDOTU_K cdotu_k
  17. #define CDOTC_K cdotc_k
  18. #define CNRM2_K cnrm2_k
  19. #define CSCAL_K cscal_k
  20. #define CSUM_K csum_k
  21. #define CSWAP_K cswap_k
  22. #define CROT_K csrot_k
  23. #define CGEMV_N cgemv_n
  24. #define CGEMV_T cgemv_t
  25. #define CGEMV_R cgemv_r
  26. #define CGEMV_C cgemv_c
  27. #define CGEMV_O cgemv_o
  28. #define CGEMV_U cgemv_u
  29. #define CGEMV_S cgemv_s
  30. #define CGEMV_D cgemv_d
  31. #define CGERU_K cgeru_k
  32. #define CGERC_K cgerc_k
  33. #define CGERV_K cgerv_k
  34. #define CGERD_K cgerd_k
  35. #define CSYMV_U csymv_U
  36. #define CSYMV_L csymv_L
  37. #define CHEMV_U chemv_U
  38. #define CHEMV_L chemv_L
  39. #define CHEMV_V chemv_V
  40. #define CHEMV_M chemv_M
  41. #define CSYMV_THREAD_U csymv_thread_U
  42. #define CSYMV_THREAD_L csymv_thread_L
  43. #define CHEMV_THREAD_U chemv_thread_U
  44. #define CHEMV_THREAD_L chemv_thread_L
  45. #define CHEMV_THREAD_V chemv_thread_V
  46. #define CHEMV_THREAD_M chemv_thread_M
  47. #define CGEMM_ONCOPY cgemm_oncopy
  48. #define CGEMM_OTCOPY cgemm_otcopy
  49. #if CGEMM_DEFAULT_UNROLL_M == CGEMM_DEFAULT_UNROLL_N
  50. #define CGEMM_INCOPY cgemm_oncopy
  51. #define CGEMM_ITCOPY cgemm_otcopy
  52. #else
  53. #define CGEMM_INCOPY cgemm_incopy
  54. #define CGEMM_ITCOPY cgemm_itcopy
  55. #endif
  56. #define CTRMM_OUNUCOPY ctrmm_ounucopy
  57. #define CTRMM_OUNNCOPY ctrmm_ounncopy
  58. #define CTRMM_OUTUCOPY ctrmm_outucopy
  59. #define CTRMM_OUTNCOPY ctrmm_outncopy
  60. #define CTRMM_OLNUCOPY ctrmm_olnucopy
  61. #define CTRMM_OLNNCOPY ctrmm_olnncopy
  62. #define CTRMM_OLTUCOPY ctrmm_oltucopy
  63. #define CTRMM_OLTNCOPY ctrmm_oltncopy
  64. #define CTRSM_OUNUCOPY ctrsm_ounucopy
  65. #define CTRSM_OUNNCOPY ctrsm_ounncopy
  66. #define CTRSM_OUTUCOPY ctrsm_outucopy
  67. #define CTRSM_OUTNCOPY ctrsm_outncopy
  68. #define CTRSM_OLNUCOPY ctrsm_olnucopy
  69. #define CTRSM_OLNNCOPY ctrsm_olnncopy
  70. #define CTRSM_OLTUCOPY ctrsm_oltucopy
  71. #define CTRSM_OLTNCOPY ctrsm_oltncopy
  72. #if CGEMM_DEFAULT_UNROLL_M == CGEMM_DEFAULT_UNROLL_N
  73. #define CTRMM_IUNUCOPY ctrmm_ounucopy
  74. #define CTRMM_IUNNCOPY ctrmm_ounncopy
  75. #define CTRMM_IUTUCOPY ctrmm_outucopy
  76. #define CTRMM_IUTNCOPY ctrmm_outncopy
  77. #define CTRMM_ILNUCOPY ctrmm_olnucopy
  78. #define CTRMM_ILNNCOPY ctrmm_olnncopy
  79. #define CTRMM_ILTUCOPY ctrmm_oltucopy
  80. #define CTRMM_ILTNCOPY ctrmm_oltncopy
  81. #define CTRSM_IUNUCOPY ctrsm_ounucopy
  82. #define CTRSM_IUNNCOPY ctrsm_ounncopy
  83. #define CTRSM_IUTUCOPY ctrsm_outucopy
  84. #define CTRSM_IUTNCOPY ctrsm_outncopy
  85. #define CTRSM_ILNUCOPY ctrsm_olnucopy
  86. #define CTRSM_ILNNCOPY ctrsm_olnncopy
  87. #define CTRSM_ILTUCOPY ctrsm_oltucopy
  88. #define CTRSM_ILTNCOPY ctrsm_oltncopy
  89. #else
  90. #define CTRMM_IUNUCOPY ctrmm_iunucopy
  91. #define CTRMM_IUNNCOPY ctrmm_iunncopy
  92. #define CTRMM_IUTUCOPY ctrmm_iutucopy
  93. #define CTRMM_IUTNCOPY ctrmm_iutncopy
  94. #define CTRMM_ILNUCOPY ctrmm_ilnucopy
  95. #define CTRMM_ILNNCOPY ctrmm_ilnncopy
  96. #define CTRMM_ILTUCOPY ctrmm_iltucopy
  97. #define CTRMM_ILTNCOPY ctrmm_iltncopy
  98. #define CTRSM_IUNUCOPY ctrsm_iunucopy
  99. #define CTRSM_IUNNCOPY ctrsm_iunncopy
  100. #define CTRSM_IUTUCOPY ctrsm_iutucopy
  101. #define CTRSM_IUTNCOPY ctrsm_iutncopy
  102. #define CTRSM_ILNUCOPY ctrsm_ilnucopy
  103. #define CTRSM_ILNNCOPY ctrsm_ilnncopy
  104. #define CTRSM_ILTUCOPY ctrsm_iltucopy
  105. #define CTRSM_ILTNCOPY ctrsm_iltncopy
  106. #endif
  107. #define CGEMM_BETA cgemm_beta
  108. #define CGEMM_KERNEL_N cgemm_kernel_n
  109. #define CGEMM_KERNEL_L cgemm_kernel_l
  110. #define CGEMM_KERNEL_R cgemm_kernel_r
  111. #define CGEMM_KERNEL_B cgemm_kernel_b
  112. #define CTRMM_KERNEL_LN ctrmm_kernel_LN
  113. #define CTRMM_KERNEL_LT ctrmm_kernel_LT
  114. #define CTRMM_KERNEL_LR ctrmm_kernel_LR
  115. #define CTRMM_KERNEL_LC ctrmm_kernel_LC
  116. #define CTRMM_KERNEL_RN ctrmm_kernel_RN
  117. #define CTRMM_KERNEL_RT ctrmm_kernel_RT
  118. #define CTRMM_KERNEL_RR ctrmm_kernel_RR
  119. #define CTRMM_KERNEL_RC ctrmm_kernel_RC
  120. #define CTRSM_KERNEL_LN ctrsm_kernel_LN
  121. #define CTRSM_KERNEL_LT ctrsm_kernel_LT
  122. #define CTRSM_KERNEL_LR ctrsm_kernel_LR
  123. #define CTRSM_KERNEL_LC ctrsm_kernel_LC
  124. #define CTRSM_KERNEL_RN ctrsm_kernel_RN
  125. #define CTRSM_KERNEL_RT ctrsm_kernel_RT
  126. #define CTRSM_KERNEL_RR ctrsm_kernel_RR
  127. #define CTRSM_KERNEL_RC ctrsm_kernel_RC
  128. #define CSYMM_OUTCOPY csymm_outcopy
  129. #define CSYMM_OLTCOPY csymm_oltcopy
  130. #if CGEMM_DEFAULT_UNROLL_M == CGEMM_DEFAULT_UNROLL_N
  131. #define CSYMM_IUTCOPY csymm_outcopy
  132. #define CSYMM_ILTCOPY csymm_oltcopy
  133. #else
  134. #define CSYMM_IUTCOPY csymm_iutcopy
  135. #define CSYMM_ILTCOPY csymm_iltcopy
  136. #endif
  137. #define CHEMM_OUTCOPY chemm_outcopy
  138. #define CHEMM_OLTCOPY chemm_oltcopy
  139. #if CGEMM_DEFAULT_UNROLL_M == CGEMM_DEFAULT_UNROLL_N
  140. #define CHEMM_IUTCOPY chemm_outcopy
  141. #define CHEMM_ILTCOPY chemm_oltcopy
  142. #else
  143. #define CHEMM_IUTCOPY chemm_iutcopy
  144. #define CHEMM_ILTCOPY chemm_iltcopy
  145. #endif
  146. #define CGEMM3M_ONCOPYB cgemm3m_oncopyb
  147. #define CGEMM3M_ONCOPYR cgemm3m_oncopyr
  148. #define CGEMM3M_ONCOPYI cgemm3m_oncopyi
  149. #define CGEMM3M_OTCOPYB cgemm3m_otcopyb
  150. #define CGEMM3M_OTCOPYR cgemm3m_otcopyr
  151. #define CGEMM3M_OTCOPYI cgemm3m_otcopyi
  152. #define CGEMM3M_INCOPYB cgemm3m_incopyb
  153. #define CGEMM3M_INCOPYR cgemm3m_incopyr
  154. #define CGEMM3M_INCOPYI cgemm3m_incopyi
  155. #define CGEMM3M_ITCOPYB cgemm3m_itcopyb
  156. #define CGEMM3M_ITCOPYR cgemm3m_itcopyr
  157. #define CGEMM3M_ITCOPYI cgemm3m_itcopyi
  158. #define CSYMM3M_ILCOPYB csymm3m_ilcopyb
  159. #define CSYMM3M_IUCOPYB csymm3m_iucopyb
  160. #define CSYMM3M_ILCOPYR csymm3m_ilcopyr
  161. #define CSYMM3M_IUCOPYR csymm3m_iucopyr
  162. #define CSYMM3M_ILCOPYI csymm3m_ilcopyi
  163. #define CSYMM3M_IUCOPYI csymm3m_iucopyi
  164. #define CSYMM3M_OLCOPYB csymm3m_olcopyb
  165. #define CSYMM3M_OUCOPYB csymm3m_oucopyb
  166. #define CSYMM3M_OLCOPYR csymm3m_olcopyr
  167. #define CSYMM3M_OUCOPYR csymm3m_oucopyr
  168. #define CSYMM3M_OLCOPYI csymm3m_olcopyi
  169. #define CSYMM3M_OUCOPYI csymm3m_oucopyi
  170. #define CHEMM3M_ILCOPYB chemm3m_ilcopyb
  171. #define CHEMM3M_IUCOPYB chemm3m_iucopyb
  172. #define CHEMM3M_ILCOPYR chemm3m_ilcopyr
  173. #define CHEMM3M_IUCOPYR chemm3m_iucopyr
  174. #define CHEMM3M_ILCOPYI chemm3m_ilcopyi
  175. #define CHEMM3M_IUCOPYI chemm3m_iucopyi
  176. #define CHEMM3M_OLCOPYB chemm3m_olcopyb
  177. #define CHEMM3M_OUCOPYB chemm3m_oucopyb
  178. #define CHEMM3M_OLCOPYR chemm3m_olcopyr
  179. #define CHEMM3M_OUCOPYR chemm3m_oucopyr
  180. #define CHEMM3M_OLCOPYI chemm3m_olcopyi
  181. #define CHEMM3M_OUCOPYI chemm3m_oucopyi
  182. #define CGEMM3M_KERNEL cgemm3m_kernel
  183. #define CNEG_TCOPY cneg_tcopy
  184. #define CLASWP_NCOPY claswp_ncopy
  185. #define CAXPBY_K caxpby_k
  186. #define COMATCOPY_K_CN comatcopy_k_cn
  187. #define COMATCOPY_K_RN comatcopy_k_rn
  188. #define COMATCOPY_K_CT comatcopy_k_ct
  189. #define COMATCOPY_K_RT comatcopy_k_rt
  190. #define COMATCOPY_K_CNC comatcopy_k_cnc
  191. #define COMATCOPY_K_RNC comatcopy_k_rnc
  192. #define COMATCOPY_K_CTC comatcopy_k_ctc
  193. #define COMATCOPY_K_RTC comatcopy_k_rtc
  194. #define CIMATCOPY_K_CN cimatcopy_k_cn
  195. #define CIMATCOPY_K_RN cimatcopy_k_rn
  196. #define CIMATCOPY_K_CT cimatcopy_k_ct
  197. #define CIMATCOPY_K_RT cimatcopy_k_rt
  198. #define CIMATCOPY_K_CNC cimatcopy_k_cnc
  199. #define CIMATCOPY_K_RNC cimatcopy_k_rnc
  200. #define CIMATCOPY_K_CTC cimatcopy_k_ctc
  201. #define CIMATCOPY_K_RTC cimatcopy_k_rtc
  202. #define CGEADD_K cgeadd_k
  203. #define CGEMM_SMALL_MATRIX_PERMIT cgemm_small_matrix_permit
  204. #else
  205. #define CAMAX_K gotoblas -> camax_k
  206. #define CAMIN_K gotoblas -> camin_k
  207. #define CMAX_K gotoblas -> cmax_k
  208. #define CMIN_K gotoblas -> cmin_k
  209. #define ICAMAX_K gotoblas -> icamax_k
  210. #define ICAMIN_K gotoblas -> icamin_k
  211. #define ICMAX_K gotoblas -> icmax_k
  212. #define ICMIN_K gotoblas -> icmin_k
  213. #define CASUM_K gotoblas -> casum_k
  214. #define CAXPYU_K gotoblas -> caxpy_k
  215. #define CAXPYC_K gotoblas -> caxpyc_k
  216. #define CCOPY_K gotoblas -> ccopy_k
  217. #define CDOTU_K gotoblas -> cdotu_k
  218. #define CDOTC_K gotoblas -> cdotc_k
  219. #define CNRM2_K gotoblas -> cnrm2_k
  220. #define CSCAL_K gotoblas -> cscal_k
  221. #define CSUM_K gotoblas -> csum_k
  222. #define CSWAP_K gotoblas -> cswap_k
  223. #define CROT_K gotoblas -> csrot_k
  224. #define CGEMV_N gotoblas -> cgemv_n
  225. #define CGEMV_T gotoblas -> cgemv_t
  226. #define CGEMV_R gotoblas -> cgemv_r
  227. #define CGEMV_C gotoblas -> cgemv_c
  228. #define CGEMV_O gotoblas -> cgemv_o
  229. #define CGEMV_U gotoblas -> cgemv_u
  230. #define CGEMV_S gotoblas -> cgemv_s
  231. #define CGEMV_D gotoblas -> cgemv_d
  232. #define CGERU_K gotoblas -> cgeru_k
  233. #define CGERC_K gotoblas -> cgerc_k
  234. #define CGERV_K gotoblas -> cgerv_k
  235. #define CGERD_K gotoblas -> cgerd_k
  236. #define CSYMV_U gotoblas -> csymv_U
  237. #define CSYMV_L gotoblas -> csymv_L
  238. #define CHEMV_U gotoblas -> chemv_U
  239. #define CHEMV_L gotoblas -> chemv_L
  240. #define CHEMV_V gotoblas -> chemv_V
  241. #define CHEMV_M gotoblas -> chemv_M
  242. #define CSYMV_THREAD_U csymv_thread_U
  243. #define CSYMV_THREAD_L csymv_thread_L
  244. #define CHEMV_THREAD_U chemv_thread_U
  245. #define CHEMV_THREAD_L chemv_thread_L
  246. #define CHEMV_THREAD_V chemv_thread_V
  247. #define CHEMV_THREAD_M chemv_thread_M
  248. #define CGEMM_ONCOPY gotoblas -> cgemm_oncopy
  249. #define CGEMM_OTCOPY gotoblas -> cgemm_otcopy
  250. #define CGEMM_INCOPY gotoblas -> cgemm_incopy
  251. #define CGEMM_ITCOPY gotoblas -> cgemm_itcopy
  252. #define CTRMM_OUNUCOPY gotoblas -> ctrmm_ounucopy
  253. #define CTRMM_OUTUCOPY gotoblas -> ctrmm_outucopy
  254. #define CTRMM_OLNUCOPY gotoblas -> ctrmm_olnucopy
  255. #define CTRMM_OLTUCOPY gotoblas -> ctrmm_oltucopy
  256. #define CTRSM_OUNUCOPY gotoblas -> ctrsm_ounucopy
  257. #define CTRSM_OUTUCOPY gotoblas -> ctrsm_outucopy
  258. #define CTRSM_OLNUCOPY gotoblas -> ctrsm_olnucopy
  259. #define CTRSM_OLTUCOPY gotoblas -> ctrsm_oltucopy
  260. #define CTRMM_IUNUCOPY gotoblas -> ctrmm_iunucopy
  261. #define CTRMM_IUTUCOPY gotoblas -> ctrmm_iutucopy
  262. #define CTRMM_ILNUCOPY gotoblas -> ctrmm_ilnucopy
  263. #define CTRMM_ILTUCOPY gotoblas -> ctrmm_iltucopy
  264. #define CTRSM_IUNUCOPY gotoblas -> ctrsm_iunucopy
  265. #define CTRSM_IUTUCOPY gotoblas -> ctrsm_iutucopy
  266. #define CTRSM_ILNUCOPY gotoblas -> ctrsm_ilnucopy
  267. #define CTRSM_ILTUCOPY gotoblas -> ctrsm_iltucopy
  268. #define CTRMM_OUNNCOPY gotoblas -> ctrmm_ounncopy
  269. #define CTRMM_OUTNCOPY gotoblas -> ctrmm_outncopy
  270. #define CTRMM_OLNNCOPY gotoblas -> ctrmm_olnncopy
  271. #define CTRMM_OLTNCOPY gotoblas -> ctrmm_oltncopy
  272. #define CTRSM_OUNNCOPY gotoblas -> ctrsm_ounncopy
  273. #define CTRSM_OUTNCOPY gotoblas -> ctrsm_outncopy
  274. #define CTRSM_OLNNCOPY gotoblas -> ctrsm_olnncopy
  275. #define CTRSM_OLTNCOPY gotoblas -> ctrsm_oltncopy
  276. #define CTRMM_IUNNCOPY gotoblas -> ctrmm_iunncopy
  277. #define CTRMM_IUTNCOPY gotoblas -> ctrmm_iutncopy
  278. #define CTRMM_ILNNCOPY gotoblas -> ctrmm_ilnncopy
  279. #define CTRMM_ILTNCOPY gotoblas -> ctrmm_iltncopy
  280. #define CTRSM_IUNNCOPY gotoblas -> ctrsm_iunncopy
  281. #define CTRSM_IUTNCOPY gotoblas -> ctrsm_iutncopy
  282. #define CTRSM_ILNNCOPY gotoblas -> ctrsm_ilnncopy
  283. #define CTRSM_ILTNCOPY gotoblas -> ctrsm_iltncopy
  284. #define CGEMM_BETA gotoblas -> cgemm_beta
  285. #define CGEMM_KERNEL_N gotoblas -> cgemm_kernel_n
  286. #define CGEMM_KERNEL_L gotoblas -> cgemm_kernel_l
  287. #define CGEMM_KERNEL_R gotoblas -> cgemm_kernel_r
  288. #define CGEMM_KERNEL_B gotoblas -> cgemm_kernel_b
  289. #define CTRMM_KERNEL_LN gotoblas -> ctrmm_kernel_LN
  290. #define CTRMM_KERNEL_LT gotoblas -> ctrmm_kernel_LT
  291. #define CTRMM_KERNEL_LR gotoblas -> ctrmm_kernel_LR
  292. #define CTRMM_KERNEL_LC gotoblas -> ctrmm_kernel_LC
  293. #define CTRMM_KERNEL_RN gotoblas -> ctrmm_kernel_RN
  294. #define CTRMM_KERNEL_RT gotoblas -> ctrmm_kernel_RT
  295. #define CTRMM_KERNEL_RR gotoblas -> ctrmm_kernel_RR
  296. #define CTRMM_KERNEL_RC gotoblas -> ctrmm_kernel_RC
  297. #define CTRSM_KERNEL_LN gotoblas -> ctrsm_kernel_LN
  298. #define CTRSM_KERNEL_LT gotoblas -> ctrsm_kernel_LT
  299. #define CTRSM_KERNEL_LR gotoblas -> ctrsm_kernel_LR
  300. #define CTRSM_KERNEL_LC gotoblas -> ctrsm_kernel_LC
  301. #define CTRSM_KERNEL_RN gotoblas -> ctrsm_kernel_RN
  302. #define CTRSM_KERNEL_RT gotoblas -> ctrsm_kernel_RT
  303. #define CTRSM_KERNEL_RR gotoblas -> ctrsm_kernel_RR
  304. #define CTRSM_KERNEL_RC gotoblas -> ctrsm_kernel_RC
  305. #define CSYMM_IUTCOPY gotoblas -> csymm_iutcopy
  306. #define CSYMM_ILTCOPY gotoblas -> csymm_iltcopy
  307. #define CSYMM_OUTCOPY gotoblas -> csymm_outcopy
  308. #define CSYMM_OLTCOPY gotoblas -> csymm_oltcopy
  309. #define CHEMM_OUTCOPY gotoblas -> chemm_outcopy
  310. #define CHEMM_OLTCOPY gotoblas -> chemm_oltcopy
  311. #define CHEMM_IUTCOPY gotoblas -> chemm_iutcopy
  312. #define CHEMM_ILTCOPY gotoblas -> chemm_iltcopy
  313. #define CGEMM3M_ONCOPYB gotoblas -> cgemm3m_oncopyb
  314. #define CGEMM3M_ONCOPYR gotoblas -> cgemm3m_oncopyr
  315. #define CGEMM3M_ONCOPYI gotoblas -> cgemm3m_oncopyi
  316. #define CGEMM3M_OTCOPYB gotoblas -> cgemm3m_otcopyb
  317. #define CGEMM3M_OTCOPYR gotoblas -> cgemm3m_otcopyr
  318. #define CGEMM3M_OTCOPYI gotoblas -> cgemm3m_otcopyi
  319. #define CGEMM3M_INCOPYB gotoblas -> cgemm3m_incopyb
  320. #define CGEMM3M_INCOPYR gotoblas -> cgemm3m_incopyr
  321. #define CGEMM3M_INCOPYI gotoblas -> cgemm3m_incopyi
  322. #define CGEMM3M_ITCOPYB gotoblas -> cgemm3m_itcopyb
  323. #define CGEMM3M_ITCOPYR gotoblas -> cgemm3m_itcopyr
  324. #define CGEMM3M_ITCOPYI gotoblas -> cgemm3m_itcopyi
  325. #define CSYMM3M_ILCOPYB gotoblas -> csymm3m_ilcopyb
  326. #define CSYMM3M_IUCOPYB gotoblas -> csymm3m_iucopyb
  327. #define CSYMM3M_ILCOPYR gotoblas -> csymm3m_ilcopyr
  328. #define CSYMM3M_IUCOPYR gotoblas -> csymm3m_iucopyr
  329. #define CSYMM3M_ILCOPYI gotoblas -> csymm3m_ilcopyi
  330. #define CSYMM3M_IUCOPYI gotoblas -> csymm3m_iucopyi
  331. #define CSYMM3M_OLCOPYB gotoblas -> csymm3m_olcopyb
  332. #define CSYMM3M_OUCOPYB gotoblas -> csymm3m_oucopyb
  333. #define CSYMM3M_OLCOPYR gotoblas -> csymm3m_olcopyr
  334. #define CSYMM3M_OUCOPYR gotoblas -> csymm3m_oucopyr
  335. #define CSYMM3M_OLCOPYI gotoblas -> csymm3m_olcopyi
  336. #define CSYMM3M_OUCOPYI gotoblas -> csymm3m_oucopyi
  337. #define CHEMM3M_ILCOPYB gotoblas -> chemm3m_ilcopyb
  338. #define CHEMM3M_IUCOPYB gotoblas -> chemm3m_iucopyb
  339. #define CHEMM3M_ILCOPYR gotoblas -> chemm3m_ilcopyr
  340. #define CHEMM3M_IUCOPYR gotoblas -> chemm3m_iucopyr
  341. #define CHEMM3M_ILCOPYI gotoblas -> chemm3m_ilcopyi
  342. #define CHEMM3M_IUCOPYI gotoblas -> chemm3m_iucopyi
  343. #define CHEMM3M_OLCOPYB gotoblas -> chemm3m_olcopyb
  344. #define CHEMM3M_OUCOPYB gotoblas -> chemm3m_oucopyb
  345. #define CHEMM3M_OLCOPYR gotoblas -> chemm3m_olcopyr
  346. #define CHEMM3M_OUCOPYR gotoblas -> chemm3m_oucopyr
  347. #define CHEMM3M_OLCOPYI gotoblas -> chemm3m_olcopyi
  348. #define CHEMM3M_OUCOPYI gotoblas -> chemm3m_oucopyi
  349. #define CGEMM3M_KERNEL gotoblas -> cgemm3m_kernel
  350. #define CNEG_TCOPY gotoblas -> cneg_tcopy
  351. #define CLASWP_NCOPY gotoblas -> claswp_ncopy
  352. #define CAXPBY_K gotoblas -> caxpby_k
  353. #define COMATCOPY_K_CN gotoblas -> comatcopy_k_cn
  354. #define COMATCOPY_K_RN gotoblas -> comatcopy_k_rn
  355. #define COMATCOPY_K_CT gotoblas -> comatcopy_k_ct
  356. #define COMATCOPY_K_RT gotoblas -> comatcopy_k_rt
  357. #define COMATCOPY_K_CNC gotoblas -> comatcopy_k_cnc
  358. #define COMATCOPY_K_RNC gotoblas -> comatcopy_k_rnc
  359. #define COMATCOPY_K_CTC gotoblas -> comatcopy_k_ctc
  360. #define COMATCOPY_K_RTC gotoblas -> comatcopy_k_rtc
  361. #define CIMATCOPY_K_CN gotoblas -> cimatcopy_k_cn
  362. #define CIMATCOPY_K_RN gotoblas -> cimatcopy_k_rn
  363. #define CIMATCOPY_K_CT gotoblas -> cimatcopy_k_ct
  364. #define CIMATCOPY_K_RT gotoblas -> cimatcopy_k_rt
  365. #define CIMATCOPY_K_CNC gotoblas -> cimatcopy_k_cnc
  366. #define CIMATCOPY_K_RNC gotoblas -> cimatcopy_k_rnc
  367. #define CIMATCOPY_K_CTC gotoblas -> cimatcopy_k_ctc
  368. #define CIMATCOPY_K_RTC gotoblas -> cimatcopy_k_rtc
  369. #define CGEADD_K gotoblas -> cgeadd_k
  370. #define CGEMM_SMALL_MATRIX_PERMIT gotoblas -> cgemm_small_matrix_permit
  371. #endif
  372. #define CGEMM_SMALL_KERNEL_NN FUNC_OFFSET(cgemm_small_kernel_nn)
  373. #define CGEMM_SMALL_KERNEL_NT FUNC_OFFSET(cgemm_small_kernel_nt)
  374. #define CGEMM_SMALL_KERNEL_NR FUNC_OFFSET(cgemm_small_kernel_nr)
  375. #define CGEMM_SMALL_KERNEL_NC FUNC_OFFSET(cgemm_small_kernel_nc)
  376. #define CGEMM_SMALL_KERNEL_TN FUNC_OFFSET(cgemm_small_kernel_tn)
  377. #define CGEMM_SMALL_KERNEL_TT FUNC_OFFSET(cgemm_small_kernel_tt)
  378. #define CGEMM_SMALL_KERNEL_TR FUNC_OFFSET(cgemm_small_kernel_tr)
  379. #define CGEMM_SMALL_KERNEL_TC FUNC_OFFSET(cgemm_small_kernel_tc)
  380. #define CGEMM_SMALL_KERNEL_RN FUNC_OFFSET(cgemm_small_kernel_rn)
  381. #define CGEMM_SMALL_KERNEL_RT FUNC_OFFSET(cgemm_small_kernel_rt)
  382. #define CGEMM_SMALL_KERNEL_RR FUNC_OFFSET(cgemm_small_kernel_rr)
  383. #define CGEMM_SMALL_KERNEL_RC FUNC_OFFSET(cgemm_small_kernel_rc)
  384. #define CGEMM_SMALL_KERNEL_CN FUNC_OFFSET(cgemm_small_kernel_cn)
  385. #define CGEMM_SMALL_KERNEL_CT FUNC_OFFSET(cgemm_small_kernel_ct)
  386. #define CGEMM_SMALL_KERNEL_CR FUNC_OFFSET(cgemm_small_kernel_cr)
  387. #define CGEMM_SMALL_KERNEL_CC FUNC_OFFSET(cgemm_small_kernel_cc)
  388. #define CGEMM_SMALL_KERNEL_B0_NN FUNC_OFFSET(cgemm_small_kernel_b0_nn)
  389. #define CGEMM_SMALL_KERNEL_B0_NT FUNC_OFFSET(cgemm_small_kernel_b0_nt)
  390. #define CGEMM_SMALL_KERNEL_B0_NR FUNC_OFFSET(cgemm_small_kernel_b0_nr)
  391. #define CGEMM_SMALL_KERNEL_B0_NC FUNC_OFFSET(cgemm_small_kernel_b0_nc)
  392. #define CGEMM_SMALL_KERNEL_B0_TN FUNC_OFFSET(cgemm_small_kernel_b0_tn)
  393. #define CGEMM_SMALL_KERNEL_B0_TT FUNC_OFFSET(cgemm_small_kernel_b0_tt)
  394. #define CGEMM_SMALL_KERNEL_B0_TR FUNC_OFFSET(cgemm_small_kernel_b0_tr)
  395. #define CGEMM_SMALL_KERNEL_B0_TC FUNC_OFFSET(cgemm_small_kernel_b0_tc)
  396. #define CGEMM_SMALL_KERNEL_B0_RN FUNC_OFFSET(cgemm_small_kernel_b0_rn)
  397. #define CGEMM_SMALL_KERNEL_B0_RT FUNC_OFFSET(cgemm_small_kernel_b0_rt)
  398. #define CGEMM_SMALL_KERNEL_B0_RR FUNC_OFFSET(cgemm_small_kernel_b0_rr)
  399. #define CGEMM_SMALL_KERNEL_B0_RC FUNC_OFFSET(cgemm_small_kernel_b0_rc)
  400. #define CGEMM_SMALL_KERNEL_B0_CN FUNC_OFFSET(cgemm_small_kernel_b0_cn)
  401. #define CGEMM_SMALL_KERNEL_B0_CT FUNC_OFFSET(cgemm_small_kernel_b0_ct)
  402. #define CGEMM_SMALL_KERNEL_B0_CR FUNC_OFFSET(cgemm_small_kernel_b0_cr)
  403. #define CGEMM_SMALL_KERNEL_B0_CC FUNC_OFFSET(cgemm_small_kernel_b0_cc)
  404. #define CGEMM_NN cgemm_nn
  405. #define CGEMM_CN cgemm_cn
  406. #define CGEMM_TN cgemm_tn
  407. #define CGEMM_NC cgemm_nc
  408. #define CGEMM_NT cgemm_nt
  409. #define CGEMM_CC cgemm_cc
  410. #define CGEMM_CT cgemm_ct
  411. #define CGEMM_TC cgemm_tc
  412. #define CGEMM_TT cgemm_tt
  413. #define CGEMM_NR cgemm_nr
  414. #define CGEMM_TR cgemm_tr
  415. #define CGEMM_CR cgemm_cr
  416. #define CGEMM_RN cgemm_rn
  417. #define CGEMM_RT cgemm_rt
  418. #define CGEMM_RC cgemm_rc
  419. #define CGEMM_RR cgemm_rr
  420. #define CSYMM_LU csymm_LU
  421. #define CSYMM_LL csymm_LL
  422. #define CSYMM_RU csymm_RU
  423. #define CSYMM_RL csymm_RL
  424. #define CHEMM_LU chemm_LU
  425. #define CHEMM_LL chemm_LL
  426. #define CHEMM_RU chemm_RU
  427. #define CHEMM_RL chemm_RL
  428. #define CSYRK_UN csyrk_UN
  429. #define CSYRK_UT csyrk_UT
  430. #define CSYRK_LN csyrk_LN
  431. #define CSYRK_LT csyrk_LT
  432. #define CSYRK_UR csyrk_UN
  433. #define CSYRK_UC csyrk_UT
  434. #define CSYRK_LR csyrk_LN
  435. #define CSYRK_LC csyrk_LT
  436. #define CSYRK_KERNEL_U csyrk_kernel_U
  437. #define CSYRK_KERNEL_L csyrk_kernel_L
  438. #define CHERK_UN cherk_UN
  439. #define CHERK_LN cherk_LN
  440. #define CHERK_UC cherk_UC
  441. #define CHERK_LC cherk_LC
  442. #define CHER2K_UN cher2k_UN
  443. #define CHER2K_LN cher2k_LN
  444. #define CHER2K_UC cher2k_UC
  445. #define CHER2K_LC cher2k_LC
  446. #define CSYR2K_UN csyr2k_UN
  447. #define CSYR2K_UT csyr2k_UT
  448. #define CSYR2K_LN csyr2k_LN
  449. #define CSYR2K_LT csyr2k_LT
  450. #define CSYR2K_UR csyr2k_UN
  451. #define CSYR2K_UC csyr2k_UT
  452. #define CSYR2K_LR csyr2k_LN
  453. #define CSYR2K_LC csyr2k_LT
  454. #define CSYR2K_KERNEL_U csyr2k_kernel_U
  455. #define CSYR2K_KERNEL_L csyr2k_kernel_L
  456. #define CTRMM_LNUU ctrmm_LNUU
  457. #define CTRMM_LNUN ctrmm_LNUN
  458. #define CTRMM_LNLU ctrmm_LNLU
  459. #define CTRMM_LNLN ctrmm_LNLN
  460. #define CTRMM_LTUU ctrmm_LTUU
  461. #define CTRMM_LTUN ctrmm_LTUN
  462. #define CTRMM_LTLU ctrmm_LTLU
  463. #define CTRMM_LTLN ctrmm_LTLN
  464. #define CTRMM_LRUU ctrmm_LRUU
  465. #define CTRMM_LRUN ctrmm_LRUN
  466. #define CTRMM_LRLU ctrmm_LRLU
  467. #define CTRMM_LRLN ctrmm_LRLN
  468. #define CTRMM_LCUU ctrmm_LCUU
  469. #define CTRMM_LCUN ctrmm_LCUN
  470. #define CTRMM_LCLU ctrmm_LCLU
  471. #define CTRMM_LCLN ctrmm_LCLN
  472. #define CTRMM_RNUU ctrmm_RNUU
  473. #define CTRMM_RNUN ctrmm_RNUN
  474. #define CTRMM_RNLU ctrmm_RNLU
  475. #define CTRMM_RNLN ctrmm_RNLN
  476. #define CTRMM_RTUU ctrmm_RTUU
  477. #define CTRMM_RTUN ctrmm_RTUN
  478. #define CTRMM_RTLU ctrmm_RTLU
  479. #define CTRMM_RTLN ctrmm_RTLN
  480. #define CTRMM_RRUU ctrmm_RRUU
  481. #define CTRMM_RRUN ctrmm_RRUN
  482. #define CTRMM_RRLU ctrmm_RRLU
  483. #define CTRMM_RRLN ctrmm_RRLN
  484. #define CTRMM_RCUU ctrmm_RCUU
  485. #define CTRMM_RCUN ctrmm_RCUN
  486. #define CTRMM_RCLU ctrmm_RCLU
  487. #define CTRMM_RCLN ctrmm_RCLN
  488. #define CTRSM_LNUU ctrsm_LNUU
  489. #define CTRSM_LNUN ctrsm_LNUN
  490. #define CTRSM_LNLU ctrsm_LNLU
  491. #define CTRSM_LNLN ctrsm_LNLN
  492. #define CTRSM_LTUU ctrsm_LTUU
  493. #define CTRSM_LTUN ctrsm_LTUN
  494. #define CTRSM_LTLU ctrsm_LTLU
  495. #define CTRSM_LTLN ctrsm_LTLN
  496. #define CTRSM_LRUU ctrsm_LRUU
  497. #define CTRSM_LRUN ctrsm_LRUN
  498. #define CTRSM_LRLU ctrsm_LRLU
  499. #define CTRSM_LRLN ctrsm_LRLN
  500. #define CTRSM_LCUU ctrsm_LCUU
  501. #define CTRSM_LCUN ctrsm_LCUN
  502. #define CTRSM_LCLU ctrsm_LCLU
  503. #define CTRSM_LCLN ctrsm_LCLN
  504. #define CTRSM_RNUU ctrsm_RNUU
  505. #define CTRSM_RNUN ctrsm_RNUN
  506. #define CTRSM_RNLU ctrsm_RNLU
  507. #define CTRSM_RNLN ctrsm_RNLN
  508. #define CTRSM_RTUU ctrsm_RTUU
  509. #define CTRSM_RTUN ctrsm_RTUN
  510. #define CTRSM_RTLU ctrsm_RTLU
  511. #define CTRSM_RTLN ctrsm_RTLN
  512. #define CTRSM_RRUU ctrsm_RRUU
  513. #define CTRSM_RRUN ctrsm_RRUN
  514. #define CTRSM_RRLU ctrsm_RRLU
  515. #define CTRSM_RRLN ctrsm_RRLN
  516. #define CTRSM_RCUU ctrsm_RCUU
  517. #define CTRSM_RCUN ctrsm_RCUN
  518. #define CTRSM_RCLU ctrsm_RCLU
  519. #define CTRSM_RCLN ctrsm_RCLN
  520. #define CGEMM_THREAD_NN cgemm_thread_nn
  521. #define CGEMM_THREAD_CN cgemm_thread_cn
  522. #define CGEMM_THREAD_TN cgemm_thread_tn
  523. #define CGEMM_THREAD_NC cgemm_thread_nc
  524. #define CGEMM_THREAD_NT cgemm_thread_nt
  525. #define CGEMM_THREAD_CC cgemm_thread_cc
  526. #define CGEMM_THREAD_CT cgemm_thread_ct
  527. #define CGEMM_THREAD_TC cgemm_thread_tc
  528. #define CGEMM_THREAD_TT cgemm_thread_tt
  529. #define CGEMM_THREAD_NR cgemm_thread_nr
  530. #define CGEMM_THREAD_TR cgemm_thread_tr
  531. #define CGEMM_THREAD_CR cgemm_thread_cr
  532. #define CGEMM_THREAD_RN cgemm_thread_rn
  533. #define CGEMM_THREAD_RT cgemm_thread_rt
  534. #define CGEMM_THREAD_RC cgemm_thread_rc
  535. #define CGEMM_THREAD_RR cgemm_thread_rr
  536. #define CSYMM_THREAD_LU csymm_thread_LU
  537. #define CSYMM_THREAD_LL csymm_thread_LL
  538. #define CSYMM_THREAD_RU csymm_thread_RU
  539. #define CSYMM_THREAD_RL csymm_thread_RL
  540. #define CHEMM_THREAD_LU chemm_thread_LU
  541. #define CHEMM_THREAD_LL chemm_thread_LL
  542. #define CHEMM_THREAD_RU chemm_thread_RU
  543. #define CHEMM_THREAD_RL chemm_thread_RL
  544. #define CSYRK_THREAD_UN csyrk_thread_UN
  545. #define CSYRK_THREAD_UT csyrk_thread_UT
  546. #define CSYRK_THREAD_LN csyrk_thread_LN
  547. #define CSYRK_THREAD_LT csyrk_thread_LT
  548. #define CSYRK_THREAD_UR csyrk_thread_UN
  549. #define CSYRK_THREAD_UC csyrk_thread_UT
  550. #define CSYRK_THREAD_LR csyrk_thread_LN
  551. #define CSYRK_THREAD_LC csyrk_thread_LT
  552. #define CHERK_THREAD_UN cherk_thread_UN
  553. #define CHERK_THREAD_UT cherk_thread_UT
  554. #define CHERK_THREAD_LN cherk_thread_LN
  555. #define CHERK_THREAD_LT cherk_thread_LT
  556. #define CHERK_THREAD_UR cherk_thread_UR
  557. #define CHERK_THREAD_UC cherk_thread_UC
  558. #define CHERK_THREAD_LR cherk_thread_LR
  559. #define CHERK_THREAD_LC cherk_thread_LC
  560. #define CGEMM3M_NN cgemm3m_nn
  561. #define CGEMM3M_CN cgemm3m_cn
  562. #define CGEMM3M_TN cgemm3m_tn
  563. #define CGEMM3M_NC cgemm3m_nc
  564. #define CGEMM3M_NT cgemm3m_nt
  565. #define CGEMM3M_CC cgemm3m_cc
  566. #define CGEMM3M_CT cgemm3m_ct
  567. #define CGEMM3M_TC cgemm3m_tc
  568. #define CGEMM3M_TT cgemm3m_tt
  569. #define CGEMM3M_NR cgemm3m_nr
  570. #define CGEMM3M_TR cgemm3m_tr
  571. #define CGEMM3M_CR cgemm3m_cr
  572. #define CGEMM3M_RN cgemm3m_rn
  573. #define CGEMM3M_RT cgemm3m_rt
  574. #define CGEMM3M_RC cgemm3m_rc
  575. #define CGEMM3M_RR cgemm3m_rr
  576. #define CGEMM3M_THREAD_NN cgemm3m_thread_nn
  577. #define CGEMM3M_THREAD_CN cgemm3m_thread_cn
  578. #define CGEMM3M_THREAD_TN cgemm3m_thread_tn
  579. #define CGEMM3M_THREAD_NC cgemm3m_thread_nc
  580. #define CGEMM3M_THREAD_NT cgemm3m_thread_nt
  581. #define CGEMM3M_THREAD_CC cgemm3m_thread_cc
  582. #define CGEMM3M_THREAD_CT cgemm3m_thread_ct
  583. #define CGEMM3M_THREAD_TC cgemm3m_thread_tc
  584. #define CGEMM3M_THREAD_TT cgemm3m_thread_tt
  585. #define CGEMM3M_THREAD_NR cgemm3m_thread_nr
  586. #define CGEMM3M_THREAD_TR cgemm3m_thread_tr
  587. #define CGEMM3M_THREAD_CR cgemm3m_thread_cr
  588. #define CGEMM3M_THREAD_RN cgemm3m_thread_rn
  589. #define CGEMM3M_THREAD_RT cgemm3m_thread_rt
  590. #define CGEMM3M_THREAD_RC cgemm3m_thread_rc
  591. #define CGEMM3M_THREAD_RR cgemm3m_thread_rr
  592. #define CSYMM3M_LU csymm3m_LU
  593. #define CSYMM3M_LL csymm3m_LL
  594. #define CSYMM3M_RU csymm3m_RU
  595. #define CSYMM3M_RL csymm3m_RL
  596. #define CSYMM3M_THREAD_LU csymm3m_thread_LU
  597. #define CSYMM3M_THREAD_LL csymm3m_thread_LL
  598. #define CSYMM3M_THREAD_RU csymm3m_thread_RU
  599. #define CSYMM3M_THREAD_RL csymm3m_thread_RL
  600. #define CHEMM3M_LU chemm3m_LU
  601. #define CHEMM3M_LL chemm3m_LL
  602. #define CHEMM3M_RU chemm3m_RU
  603. #define CHEMM3M_RL chemm3m_RL
  604. #define CHEMM3M_THREAD_LU chemm3m_thread_LU
  605. #define CHEMM3M_THREAD_LL chemm3m_thread_LL
  606. #define CHEMM3M_THREAD_RU chemm3m_thread_RU
  607. #define CHEMM3M_THREAD_RL chemm3m_thread_RL
  608. #endif