forked from OpenMathLib/OpenBLAS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common_macro.h
2736 lines (2446 loc) · 79.8 KB
/
common_macro.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*********************************************************************/
/* Copyright 2009, 2010 The University of Texas at Austin. */
/* All rights reserved. */
/* */
/* Redistribution and use in source and binary forms, with or */
/* without modification, are permitted provided that the following */
/* conditions are met: */
/* */
/* 1. Redistributions of source code must retain the above */
/* copyright notice, this list of conditions and the following */
/* disclaimer. */
/* */
/* 2. Redistributions in binary form must reproduce the above */
/* copyright notice, this list of conditions and the following */
/* disclaimer in the documentation and/or other materials */
/* provided with the distribution. */
/* */
/* THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY OF TEXAS AT */
/* AUSTIN ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, */
/* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */
/* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */
/* DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OF TEXAS AT */
/* AUSTIN OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, */
/* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES */
/* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE */
/* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR */
/* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */
/* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT */
/* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT */
/* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */
/* POSSIBILITY OF SUCH DAMAGE. */
/* */
/* The views and conclusions contained in the software and */
/* documentation are those of the authors and should not be */
/* interpreted as representing official policies, either expressed */
/* or implied, of The University of Texas at Austin. */
/*********************************************************************/
#ifndef COMMON_MACRO
#define COMMON_MACRO
#include "common_s.h"
#include "common_d.h"
#include "common_q.h"
#include "common_c.h"
#include "common_z.h"
#include "common_x.h"
#ifndef COMPLEX
#ifdef XDOUBLE
#define AMAX_K QAMAX_K
#define AMIN_K QAMIN_K
#define MAX_K QMAX_K
#define MIN_K QMIN_K
#define IAMAX_K IQAMAX_K
#define IAMIN_K IQAMIN_K
#define IMAX_K IQMAX_K
#define IMIN_K IQMIN_K
#define ASUM_K QASUM_K
#define AXPYU_K QAXPYU_K
#define AXPYC_K QAXPYC_K
#define COPY_K QCOPY_K
#define DOTU_K QDOTU_K
#define DOTC_K QDOTC_K
#define NRM2_K QNRM2_K
#define SCAL_K QSCAL_K
#define SWAP_K QSWAP_K
#define ROT_K QROT_K
#define GEMV_N QGEMV_N
#define GEMV_T QGEMV_T
#define GEMV_R QGEMV_R
#define GEMV_C QGEMV_C
#define GEMV_O QGEMV_O
#define GEMV_U QGEMV_U
#define GEMV_S QGEMV_S
#define GEMV_D QGEMV_D
#define GERU_K QGERU_K
#define GERC_K QGERC_K
#define GERV_K QGERV_K
#define GERD_K QGERD_K
#define SYMV_U QSYMV_U
#define SYMV_L QSYMV_L
#define SYMV_THREAD_U QSYMV_THREAD_U
#define SYMV_THREAD_L QSYMV_THREAD_L
#define GEMM_ONCOPY QGEMM_ONCOPY
#define GEMM_OTCOPY QGEMM_OTCOPY
#define GEMM_INCOPY QGEMM_INCOPY
#define GEMM_ITCOPY QGEMM_ITCOPY
#ifdef UNIT
#define TRMM_OUNCOPY QTRMM_OUNUCOPY
#define TRMM_OUTCOPY QTRMM_OUTUCOPY
#define TRMM_OLNCOPY QTRMM_OLNUCOPY
#define TRMM_OLTCOPY QTRMM_OLTUCOPY
#define TRSM_OUNCOPY QTRSM_OUNUCOPY
#define TRSM_OUTCOPY QTRSM_OUTUCOPY
#define TRSM_OLNCOPY QTRSM_OLNUCOPY
#define TRSM_OLTCOPY QTRSM_OLTUCOPY
#define TRMM_IUNCOPY QTRMM_IUNUCOPY
#define TRMM_IUTCOPY QTRMM_IUTUCOPY
#define TRMM_ILNCOPY QTRMM_ILNUCOPY
#define TRMM_ILTCOPY QTRMM_ILTUCOPY
#define TRSM_IUNCOPY QTRSM_IUNUCOPY
#define TRSM_IUTCOPY QTRSM_IUTUCOPY
#define TRSM_ILNCOPY QTRSM_ILNUCOPY
#define TRSM_ILTCOPY QTRSM_ILTUCOPY
#else
#define TRMM_OUNCOPY QTRMM_OUNNCOPY
#define TRMM_OUTCOPY QTRMM_OUTNCOPY
#define TRMM_OLNCOPY QTRMM_OLNNCOPY
#define TRMM_OLTCOPY QTRMM_OLTNCOPY
#define TRSM_OUNCOPY QTRSM_OUNNCOPY
#define TRSM_OUTCOPY QTRSM_OUTNCOPY
#define TRSM_OLNCOPY QTRSM_OLNNCOPY
#define TRSM_OLTCOPY QTRSM_OLTNCOPY
#define TRMM_IUNCOPY QTRMM_IUNNCOPY
#define TRMM_IUTCOPY QTRMM_IUTNCOPY
#define TRMM_ILNCOPY QTRMM_ILNNCOPY
#define TRMM_ILTCOPY QTRMM_ILTNCOPY
#define TRSM_IUNCOPY QTRSM_IUNNCOPY
#define TRSM_IUTCOPY QTRSM_IUTNCOPY
#define TRSM_ILNCOPY QTRSM_ILNNCOPY
#define TRSM_ILTCOPY QTRSM_ILTNCOPY
#endif
#define GEMM_BETA QGEMM_BETA
#define GEMM_KERNEL_N QGEMM_KERNEL
#define GEMM_KERNEL_L QGEMM_KERNEL
#define GEMM_KERNEL_R QGEMM_KERNEL
#define GEMM_KERNEL_B QGEMM_KERNEL
#define TRMM_KERNEL_LN QTRMM_KERNEL_LN
#define TRMM_KERNEL_LT QTRMM_KERNEL_LT
#define TRMM_KERNEL_LR QTRMM_KERNEL_LN
#define TRMM_KERNEL_LC QTRMM_KERNEL_LT
#define TRMM_KERNEL_RN QTRMM_KERNEL_RN
#define TRMM_KERNEL_RT QTRMM_KERNEL_RT
#define TRMM_KERNEL_RR QTRMM_KERNEL_RN
#define TRMM_KERNEL_RC QTRMM_KERNEL_RT
#define TRSM_KERNEL_LN QTRSM_KERNEL_LN
#define TRSM_KERNEL_LT QTRSM_KERNEL_LT
#define TRSM_KERNEL_LR QTRSM_KERNEL_LN
#define TRSM_KERNEL_LC QTRSM_KERNEL_LT
#define TRSM_KERNEL_RN QTRSM_KERNEL_RN
#define TRSM_KERNEL_RT QTRSM_KERNEL_RT
#define TRSM_KERNEL_RR QTRSM_KERNEL_RN
#define TRSM_KERNEL_RC QTRSM_KERNEL_RT
#define SYMM_IUTCOPY QSYMM_IUTCOPY
#define SYMM_ILTCOPY QSYMM_ILTCOPY
#define SYMM_OUTCOPY QSYMM_OUTCOPY
#define SYMM_OLTCOPY QSYMM_OLTCOPY
#define GEMM_NN QGEMM_NN
#define GEMM_CN QGEMM_TN
#define GEMM_TN QGEMM_TN
#define GEMM_NC QGEMM_NT
#define GEMM_NT QGEMM_NT
#define GEMM_CC QGEMM_TT
#define GEMM_CT QGEMM_TT
#define GEMM_TC QGEMM_TT
#define GEMM_TT QGEMM_TT
#define GEMM_NR QGEMM_NN
#define GEMM_TR QGEMM_TN
#define GEMM_CR QGEMM_TN
#define GEMM_RN QGEMM_NN
#define GEMM_RT QGEMM_NT
#define GEMM_RC QGEMM_NT
#define GEMM_RR QGEMM_NN
#define SYMM_LU QSYMM_LU
#define SYMM_LL QSYMM_LL
#define SYMM_RU QSYMM_RU
#define SYMM_RL QSYMM_RL
#define HEMM_LU QHEMM_LU
#define HEMM_LL QHEMM_LL
#define HEMM_RU QHEMM_RU
#define HEMM_RL QHEMM_RL
#define SYRK_UN QSYRK_UN
#define SYRK_UT QSYRK_UT
#define SYRK_LN QSYRK_LN
#define SYRK_LT QSYRK_LT
#define SYRK_UR QSYRK_UN
#define SYRK_UC QSYRK_UT
#define SYRK_LR QSYRK_LN
#define SYRK_LC QSYRK_LT
#define SYRK_KERNEL_U QSYRK_KERNEL_U
#define SYRK_KERNEL_L QSYRK_KERNEL_L
#define HERK_UN QSYRK_UN
#define HERK_LN QSYRK_LN
#define HERK_UC QSYRK_UT
#define HERK_LC QSYRK_LT
#define HER2K_UN QSYR2K_UN
#define HER2K_LN QSYR2K_LN
#define HER2K_UC QSYR2K_UT
#define HER2K_LC QSYR2K_LT
#define SYR2K_UN QSYR2K_UN
#define SYR2K_UT QSYR2K_UT
#define SYR2K_LN QSYR2K_LN
#define SYR2K_LT QSYR2K_LT
#define SYR2K_UR QSYR2K_UN
#define SYR2K_UC QSYR2K_UT
#define SYR2K_LR QSYR2K_LN
#define SYR2K_LC QSYR2K_LT
#define SYR2K_KERNEL_U QSYR2K_KERNEL_U
#define SYR2K_KERNEL_L QSYR2K_KERNEL_L
#define TRMM_LNUU QTRMM_LNUU
#define TRMM_LNUN QTRMM_LNUN
#define TRMM_LNLU QTRMM_LNLU
#define TRMM_LNLN QTRMM_LNLN
#define TRMM_LTUU QTRMM_LTUU
#define TRMM_LTUN QTRMM_LTUN
#define TRMM_LTLU QTRMM_LTLU
#define TRMM_LTLN QTRMM_LTLN
#define TRMM_LRUU QTRMM_LNUU
#define TRMM_LRUN QTRMM_LNUN
#define TRMM_LRLU QTRMM_LNLU
#define TRMM_LRLN QTRMM_LNLN
#define TRMM_LCUU QTRMM_LTUU
#define TRMM_LCUN QTRMM_LTUN
#define TRMM_LCLU QTRMM_LTLU
#define TRMM_LCLN QTRMM_LTLN
#define TRMM_RNUU QTRMM_RNUU
#define TRMM_RNUN QTRMM_RNUN
#define TRMM_RNLU QTRMM_RNLU
#define TRMM_RNLN QTRMM_RNLN
#define TRMM_RTUU QTRMM_RTUU
#define TRMM_RTUN QTRMM_RTUN
#define TRMM_RTLU QTRMM_RTLU
#define TRMM_RTLN QTRMM_RTLN
#define TRMM_RRUU QTRMM_RNUU
#define TRMM_RRUN QTRMM_RNUN
#define TRMM_RRLU QTRMM_RNLU
#define TRMM_RRLN QTRMM_RNLN
#define TRMM_RCUU QTRMM_RTUU
#define TRMM_RCUN QTRMM_RTUN
#define TRMM_RCLU QTRMM_RTLU
#define TRMM_RCLN QTRMM_RTLN
#define TRSM_LNUU QTRSM_LNUU
#define TRSM_LNUN QTRSM_LNUN
#define TRSM_LNLU QTRSM_LNLU
#define TRSM_LNLN QTRSM_LNLN
#define TRSM_LTUU QTRSM_LTUU
#define TRSM_LTUN QTRSM_LTUN
#define TRSM_LTLU QTRSM_LTLU
#define TRSM_LTLN QTRSM_LTLN
#define TRSM_LRUU QTRSM_LNUU
#define TRSM_LRUN QTRSM_LNUN
#define TRSM_LRLU QTRSM_LNLU
#define TRSM_LRLN QTRSM_LNLN
#define TRSM_LCUU QTRSM_LTUU
#define TRSM_LCUN QTRSM_LTUN
#define TRSM_LCLU QTRSM_LTLU
#define TRSM_LCLN QTRSM_LTLN
#define TRSM_RNUU QTRSM_RNUU
#define TRSM_RNUN QTRSM_RNUN
#define TRSM_RNLU QTRSM_RNLU
#define TRSM_RNLN QTRSM_RNLN
#define TRSM_RTUU QTRSM_RTUU
#define TRSM_RTUN QTRSM_RTUN
#define TRSM_RTLU QTRSM_RTLU
#define TRSM_RTLN QTRSM_RTLN
#define TRSM_RRUU QTRSM_RNUU
#define TRSM_RRUN QTRSM_RNUN
#define TRSM_RRLU QTRSM_RNLU
#define TRSM_RRLN QTRSM_RNLN
#define TRSM_RCUU QTRSM_RTUU
#define TRSM_RCUN QTRSM_RTUN
#define TRSM_RCLU QTRSM_RTLU
#define TRSM_RCLN QTRSM_RTLN
#define GEMM_THREAD_NN QGEMM_THREAD_NN
#define GEMM_THREAD_CN QGEMM_THREAD_TN
#define GEMM_THREAD_TN QGEMM_THREAD_TN
#define GEMM_THREAD_NC QGEMM_THREAD_NT
#define GEMM_THREAD_NT QGEMM_THREAD_NT
#define GEMM_THREAD_CC QGEMM_THREAD_TT
#define GEMM_THREAD_CT QGEMM_THREAD_TT
#define GEMM_THREAD_TC QGEMM_THREAD_TT
#define GEMM_THREAD_TT QGEMM_THREAD_TT
#define GEMM_THREAD_NR QGEMM_THREAD_NN
#define GEMM_THREAD_TR QGEMM_THREAD_TN
#define GEMM_THREAD_CR QGEMM_THREAD_TN
#define GEMM_THREAD_RN QGEMM_THREAD_NN
#define GEMM_THREAD_RT QGEMM_THREAD_NT
#define GEMM_THREAD_RC QGEMM_THREAD_NT
#define GEMM_THREAD_RR QGEMM_THREAD_NN
#define SYMM_THREAD_LU QSYMM_THREAD_LU
#define SYMM_THREAD_LL QSYMM_THREAD_LL
#define SYMM_THREAD_RU QSYMM_THREAD_RU
#define SYMM_THREAD_RL QSYMM_THREAD_RL
#define HEMM_THREAD_LU QHEMM_THREAD_LU
#define HEMM_THREAD_LL QHEMM_THREAD_LL
#define HEMM_THREAD_RU QHEMM_THREAD_RU
#define HEMM_THREAD_RL QHEMM_THREAD_RL
#define SYRK_THREAD_UN QSYRK_THREAD_UN
#define SYRK_THREAD_UT QSYRK_THREAD_UT
#define SYRK_THREAD_LN QSYRK_THREAD_LN
#define SYRK_THREAD_LT QSYRK_THREAD_LT
#define SYRK_THREAD_UR QSYRK_THREAD_UR
#define SYRK_THREAD_UC QSYRK_THREAD_UC
#define SYRK_THREAD_LR QSYRK_THREAD_LN
#define SYRK_THREAD_LC QSYRK_THREAD_LT
#define HERK_THREAD_UN QSYRK_THREAD_UN
#define HERK_THREAD_UT QSYRK_THREAD_UT
#define HERK_THREAD_LN QSYRK_THREAD_LN
#define HERK_THREAD_LT QSYRK_THREAD_LT
#define HERK_THREAD_UR QSYRK_THREAD_UR
#define HERK_THREAD_UC QSYRK_THREAD_UC
#define HERK_THREAD_LR QSYRK_THREAD_LN
#define HERK_THREAD_LC QSYRK_THREAD_LT
#elif defined(DOUBLE)
#define AMAX_K DAMAX_K
#define AMIN_K DAMIN_K
#define MAX_K DMAX_K
#define MIN_K DMIN_K
#define IAMAX_K IDAMAX_K
#define IAMIN_K IDAMIN_K
#define IMAX_K IDMAX_K
#define IMIN_K IDMIN_K
#define ASUM_K DASUM_K
#define AXPYU_K DAXPYU_K
#define AXPYC_K DAXPYC_K
#define COPY_K DCOPY_K
#define DOTU_K DDOTU_K
#define DOTC_K DDOTC_K
#define NRM2_K DNRM2_K
#define SCAL_K DSCAL_K
#define SWAP_K DSWAP_K
#define ROT_K DROT_K
#define GEMV_N DGEMV_N
#define GEMV_T DGEMV_T
#define GEMV_R DGEMV_R
#define GEMV_C DGEMV_C
#define GEMV_O DGEMV_O
#define GEMV_U DGEMV_U
#define GEMV_S DGEMV_S
#define GEMV_D DGEMV_D
#define GERU_K DGERU_K
#define GERC_K DGERC_K
#define GERV_K DGERV_K
#define GERD_K DGERD_K
#define SYMV_U DSYMV_U
#define SYMV_L DSYMV_L
#define SYMV_THREAD_U DSYMV_THREAD_U
#define SYMV_THREAD_L DSYMV_THREAD_L
#define GEMM_ONCOPY DGEMM_ONCOPY
#define GEMM_OTCOPY DGEMM_OTCOPY
#define GEMM_INCOPY DGEMM_INCOPY
#define GEMM_ITCOPY DGEMM_ITCOPY
#ifdef UNIT
#define TRMM_OUNCOPY DTRMM_OUNUCOPY
#define TRMM_OUTCOPY DTRMM_OUTUCOPY
#define TRMM_OLNCOPY DTRMM_OLNUCOPY
#define TRMM_OLTCOPY DTRMM_OLTUCOPY
#define TRSM_OUNCOPY DTRSM_OUNUCOPY
#define TRSM_OUTCOPY DTRSM_OUTUCOPY
#define TRSM_OLNCOPY DTRSM_OLNUCOPY
#define TRSM_OLTCOPY DTRSM_OLTUCOPY
#define TRMM_IUNCOPY DTRMM_IUNUCOPY
#define TRMM_IUTCOPY DTRMM_IUTUCOPY
#define TRMM_ILNCOPY DTRMM_ILNUCOPY
#define TRMM_ILTCOPY DTRMM_ILTUCOPY
#define TRSM_IUNCOPY DTRSM_IUNUCOPY
#define TRSM_IUTCOPY DTRSM_IUTUCOPY
#define TRSM_ILNCOPY DTRSM_ILNUCOPY
#define TRSM_ILTCOPY DTRSM_ILTUCOPY
#else
#define TRMM_OUNCOPY DTRMM_OUNNCOPY
#define TRMM_OUTCOPY DTRMM_OUTNCOPY
#define TRMM_OLNCOPY DTRMM_OLNNCOPY
#define TRMM_OLTCOPY DTRMM_OLTNCOPY
#define TRSM_OUNCOPY DTRSM_OUNNCOPY
#define TRSM_OUTCOPY DTRSM_OUTNCOPY
#define TRSM_OLNCOPY DTRSM_OLNNCOPY
#define TRSM_OLTCOPY DTRSM_OLTNCOPY
#define TRMM_IUNCOPY DTRMM_IUNNCOPY
#define TRMM_IUTCOPY DTRMM_IUTNCOPY
#define TRMM_ILNCOPY DTRMM_ILNNCOPY
#define TRMM_ILTCOPY DTRMM_ILTNCOPY
#define TRSM_IUNCOPY DTRSM_IUNNCOPY
#define TRSM_IUTCOPY DTRSM_IUTNCOPY
#define TRSM_ILNCOPY DTRSM_ILNNCOPY
#define TRSM_ILTCOPY DTRSM_ILTNCOPY
#endif
#define GEMM_BETA DGEMM_BETA
#define GEMM_KERNEL_N DGEMM_KERNEL
#define GEMM_KERNEL_L DGEMM_KERNEL
#define GEMM_KERNEL_R DGEMM_KERNEL
#define GEMM_KERNEL_B DGEMM_KERNEL
#define TRMM_KERNEL_LN DTRMM_KERNEL_LN
#define TRMM_KERNEL_LT DTRMM_KERNEL_LT
#define TRMM_KERNEL_LR DTRMM_KERNEL_LN
#define TRMM_KERNEL_LC DTRMM_KERNEL_LT
#define TRMM_KERNEL_RN DTRMM_KERNEL_RN
#define TRMM_KERNEL_RT DTRMM_KERNEL_RT
#define TRMM_KERNEL_RR DTRMM_KERNEL_RN
#define TRMM_KERNEL_RC DTRMM_KERNEL_RT
#define TRSM_KERNEL_LN DTRSM_KERNEL_LN
#define TRSM_KERNEL_LT DTRSM_KERNEL_LT
#define TRSM_KERNEL_LR DTRSM_KERNEL_LN
#define TRSM_KERNEL_LC DTRSM_KERNEL_LT
#define TRSM_KERNEL_RN DTRSM_KERNEL_RN
#define TRSM_KERNEL_RT DTRSM_KERNEL_RT
#define TRSM_KERNEL_RR DTRSM_KERNEL_RN
#define TRSM_KERNEL_RC DTRSM_KERNEL_RT
#define SYMM_IUTCOPY DSYMM_IUTCOPY
#define SYMM_ILTCOPY DSYMM_ILTCOPY
#define SYMM_OUTCOPY DSYMM_OUTCOPY
#define SYMM_OLTCOPY DSYMM_OLTCOPY
#define GEMM_NN DGEMM_NN
#define GEMM_CN DGEMM_TN
#define GEMM_TN DGEMM_TN
#define GEMM_NC DGEMM_NT
#define GEMM_NT DGEMM_NT
#define GEMM_CC DGEMM_TT
#define GEMM_CT DGEMM_TT
#define GEMM_TC DGEMM_TT
#define GEMM_TT DGEMM_TT
#define GEMM_NR DGEMM_NN
#define GEMM_TR DGEMM_TN
#define GEMM_CR DGEMM_TN
#define GEMM_RN DGEMM_NN
#define GEMM_RT DGEMM_NT
#define GEMM_RC DGEMM_NT
#define GEMM_RR DGEMM_NN
#define SYMM_LU DSYMM_LU
#define SYMM_LL DSYMM_LL
#define SYMM_RU DSYMM_RU
#define SYMM_RL DSYMM_RL
#define HEMM_LU DHEMM_LU
#define HEMM_LL DHEMM_LL
#define HEMM_RU DHEMM_RU
#define HEMM_RL DHEMM_RL
#define SYRK_UN DSYRK_UN
#define SYRK_UT DSYRK_UT
#define SYRK_LN DSYRK_LN
#define SYRK_LT DSYRK_LT
#define SYRK_UR DSYRK_UN
#define SYRK_UC DSYRK_UT
#define SYRK_LR DSYRK_LN
#define SYRK_LC DSYRK_LT
#define SYRK_KERNEL_U DSYRK_KERNEL_U
#define SYRK_KERNEL_L DSYRK_KERNEL_L
#define HERK_UN DSYRK_UN
#define HERK_LN DSYRK_LN
#define HERK_UC DSYRK_UT
#define HERK_LC DSYRK_LT
#define HER2K_UN DSYR2K_UN
#define HER2K_LN DSYR2K_LN
#define HER2K_UC DSYR2K_UT
#define HER2K_LC DSYR2K_LT
#define SYR2K_UN DSYR2K_UN
#define SYR2K_UT DSYR2K_UT
#define SYR2K_LN DSYR2K_LN
#define SYR2K_LT DSYR2K_LT
#define SYR2K_UR DSYR2K_UN
#define SYR2K_UC DSYR2K_UT
#define SYR2K_LR DSYR2K_LN
#define SYR2K_LC DSYR2K_LT
#define SYR2K_KERNEL_U DSYR2K_KERNEL_U
#define SYR2K_KERNEL_L DSYR2K_KERNEL_L
#define TRMM_LNUU DTRMM_LNUU
#define TRMM_LNUN DTRMM_LNUN
#define TRMM_LNLU DTRMM_LNLU
#define TRMM_LNLN DTRMM_LNLN
#define TRMM_LTUU DTRMM_LTUU
#define TRMM_LTUN DTRMM_LTUN
#define TRMM_LTLU DTRMM_LTLU
#define TRMM_LTLN DTRMM_LTLN
#define TRMM_LRUU DTRMM_LNUU
#define TRMM_LRUN DTRMM_LNUN
#define TRMM_LRLU DTRMM_LNLU
#define TRMM_LRLN DTRMM_LNLN
#define TRMM_LCUU DTRMM_LTUU
#define TRMM_LCUN DTRMM_LTUN
#define TRMM_LCLU DTRMM_LTLU
#define TRMM_LCLN DTRMM_LTLN
#define TRMM_RNUU DTRMM_RNUU
#define TRMM_RNUN DTRMM_RNUN
#define TRMM_RNLU DTRMM_RNLU
#define TRMM_RNLN DTRMM_RNLN
#define TRMM_RTUU DTRMM_RTUU
#define TRMM_RTUN DTRMM_RTUN
#define TRMM_RTLU DTRMM_RTLU
#define TRMM_RTLN DTRMM_RTLN
#define TRMM_RRUU DTRMM_RNUU
#define TRMM_RRUN DTRMM_RNUN
#define TRMM_RRLU DTRMM_RNLU
#define TRMM_RRLN DTRMM_RNLN
#define TRMM_RCUU DTRMM_RTUU
#define TRMM_RCUN DTRMM_RTUN
#define TRMM_RCLU DTRMM_RTLU
#define TRMM_RCLN DTRMM_RTLN
#define TRSM_LNUU DTRSM_LNUU
#define TRSM_LNUN DTRSM_LNUN
#define TRSM_LNLU DTRSM_LNLU
#define TRSM_LNLN DTRSM_LNLN
#define TRSM_LTUU DTRSM_LTUU
#define TRSM_LTUN DTRSM_LTUN
#define TRSM_LTLU DTRSM_LTLU
#define TRSM_LTLN DTRSM_LTLN
#define TRSM_LRUU DTRSM_LNUU
#define TRSM_LRUN DTRSM_LNUN
#define TRSM_LRLU DTRSM_LNLU
#define TRSM_LRLN DTRSM_LNLN
#define TRSM_LCUU DTRSM_LTUU
#define TRSM_LCUN DTRSM_LTUN
#define TRSM_LCLU DTRSM_LTLU
#define TRSM_LCLN DTRSM_LTLN
#define TRSM_RNUU DTRSM_RNUU
#define TRSM_RNUN DTRSM_RNUN
#define TRSM_RNLU DTRSM_RNLU
#define TRSM_RNLN DTRSM_RNLN
#define TRSM_RTUU DTRSM_RTUU
#define TRSM_RTUN DTRSM_RTUN
#define TRSM_RTLU DTRSM_RTLU
#define TRSM_RTLN DTRSM_RTLN
#define TRSM_RRUU DTRSM_RNUU
#define TRSM_RRUN DTRSM_RNUN
#define TRSM_RRLU DTRSM_RNLU
#define TRSM_RRLN DTRSM_RNLN
#define TRSM_RCUU DTRSM_RTUU
#define TRSM_RCUN DTRSM_RTUN
#define TRSM_RCLU DTRSM_RTLU
#define TRSM_RCLN DTRSM_RTLN
#define GEMM_THREAD_NN DGEMM_THREAD_NN
#define GEMM_THREAD_CN DGEMM_THREAD_TN
#define GEMM_THREAD_TN DGEMM_THREAD_TN
#define GEMM_THREAD_NC DGEMM_THREAD_NT
#define GEMM_THREAD_NT DGEMM_THREAD_NT
#define GEMM_THREAD_CC DGEMM_THREAD_TT
#define GEMM_THREAD_CT DGEMM_THREAD_TT
#define GEMM_THREAD_TC DGEMM_THREAD_TT
#define GEMM_THREAD_TT DGEMM_THREAD_TT
#define GEMM_THREAD_NR DGEMM_THREAD_NN
#define GEMM_THREAD_TR DGEMM_THREAD_TN
#define GEMM_THREAD_CR DGEMM_THREAD_TN
#define GEMM_THREAD_RN DGEMM_THREAD_NN
#define GEMM_THREAD_RT DGEMM_THREAD_NT
#define GEMM_THREAD_RC DGEMM_THREAD_NT
#define GEMM_THREAD_RR DGEMM_THREAD_NN
#define SYMM_THREAD_LU DSYMM_THREAD_LU
#define SYMM_THREAD_LL DSYMM_THREAD_LL
#define SYMM_THREAD_RU DSYMM_THREAD_RU
#define SYMM_THREAD_RL DSYMM_THREAD_RL
#define HEMM_THREAD_LU DHEMM_THREAD_LU
#define HEMM_THREAD_LL DHEMM_THREAD_LL
#define HEMM_THREAD_RU DHEMM_THREAD_RU
#define HEMM_THREAD_RL DHEMM_THREAD_RL
#define SYRK_THREAD_UN DSYRK_THREAD_UN
#define SYRK_THREAD_UT DSYRK_THREAD_UT
#define SYRK_THREAD_LN DSYRK_THREAD_LN
#define SYRK_THREAD_LT DSYRK_THREAD_LT
#define SYRK_THREAD_UR DSYRK_THREAD_UR
#define SYRK_THREAD_UC DSYRK_THREAD_UC
#define SYRK_THREAD_LR DSYRK_THREAD_LN
#define SYRK_THREAD_LC DSYRK_THREAD_LT
#define HERK_THREAD_UN DSYRK_THREAD_UN
#define HERK_THREAD_UT DSYRK_THREAD_UT
#define HERK_THREAD_LN DSYRK_THREAD_LN
#define HERK_THREAD_LT DSYRK_THREAD_LT
#define HERK_THREAD_UR DSYRK_THREAD_UR
#define HERK_THREAD_UC DSYRK_THREAD_UC
#define HERK_THREAD_LR DSYRK_THREAD_LN
#define HERK_THREAD_LC DSYRK_THREAD_LT
#else
#define AMAX_K SAMAX_K
#define AMIN_K SAMIN_K
#define MAX_K SMAX_K
#define MIN_K SMIN_K
#define IAMAX_K ISAMAX_K
#define IAMIN_K ISAMIN_K
#define IMAX_K ISMAX_K
#define IMIN_K ISMIN_K
#define ASUM_K SASUM_K
#define AXPYU_K SAXPYU_K
#define AXPYC_K SAXPYU_K
#define COPY_K SCOPY_K
#define DOTU_K SDOTU_K
#define DOTC_K SDOTC_K
#define NRM2_K SNRM2_K
#define SCAL_K SSCAL_K
#define SWAP_K SSWAP_K
#define ROT_K SROT_K
#define GEMV_N SGEMV_N
#define GEMV_T SGEMV_T
#define GEMV_R SGEMV_R
#define GEMV_C SGEMV_C
#define GEMV_O SGEMV_O
#define GEMV_U SGEMV_U
#define GEMV_S SGEMV_S
#define GEMV_D SGEMV_D
#define GERU_K SGERU_K
#define GERC_K SGERC_K
#define GERV_K SGERV_K
#define GERD_K SGERD_K
#define SYMV_U SSYMV_U
#define SYMV_L SSYMV_L
#define SYMV_THREAD_U SSYMV_THREAD_U
#define SYMV_THREAD_L SSYMV_THREAD_L
#define GEMM_ONCOPY SGEMM_ONCOPY
#define GEMM_OTCOPY SGEMM_OTCOPY
#define GEMM_INCOPY SGEMM_INCOPY
#define GEMM_ITCOPY SGEMM_ITCOPY
#ifdef UNIT
#define TRMM_OUNCOPY STRMM_OUNUCOPY
#define TRMM_OUTCOPY STRMM_OUTUCOPY
#define TRMM_OLNCOPY STRMM_OLNUCOPY
#define TRMM_OLTCOPY STRMM_OLTUCOPY
#define TRSM_OUNCOPY STRSM_OUNUCOPY
#define TRSM_OUTCOPY STRSM_OUTUCOPY
#define TRSM_OLNCOPY STRSM_OLNUCOPY
#define TRSM_OLTCOPY STRSM_OLTUCOPY
#define TRMM_IUNCOPY STRMM_IUNUCOPY
#define TRMM_IUTCOPY STRMM_IUTUCOPY
#define TRMM_ILNCOPY STRMM_ILNUCOPY
#define TRMM_ILTCOPY STRMM_ILTUCOPY
#define TRSM_IUNCOPY STRSM_IUNUCOPY
#define TRSM_IUTCOPY STRSM_IUTUCOPY
#define TRSM_ILNCOPY STRSM_ILNUCOPY
#define TRSM_ILTCOPY STRSM_ILTUCOPY
#else
#define TRMM_OUNCOPY STRMM_OUNNCOPY
#define TRMM_OUTCOPY STRMM_OUTNCOPY
#define TRMM_OLNCOPY STRMM_OLNNCOPY
#define TRMM_OLTCOPY STRMM_OLTNCOPY
#define TRSM_OUNCOPY STRSM_OUNNCOPY
#define TRSM_OUTCOPY STRSM_OUTNCOPY
#define TRSM_OLNCOPY STRSM_OLNNCOPY
#define TRSM_OLTCOPY STRSM_OLTNCOPY
#define TRMM_IUNCOPY STRMM_IUNNCOPY
#define TRMM_IUTCOPY STRMM_IUTNCOPY
#define TRMM_ILNCOPY STRMM_ILNNCOPY
#define TRMM_ILTCOPY STRMM_ILTNCOPY
#define TRSM_IUNCOPY STRSM_IUNNCOPY
#define TRSM_IUTCOPY STRSM_IUTNCOPY
#define TRSM_ILNCOPY STRSM_ILNNCOPY
#define TRSM_ILTCOPY STRSM_ILTNCOPY
#endif
#define GEMM_BETA SGEMM_BETA
#define GEMM_KERNEL_N SGEMM_KERNEL
#define GEMM_KERNEL_L SGEMM_KERNEL
#define GEMM_KERNEL_R SGEMM_KERNEL
#define GEMM_KERNEL_B SGEMM_KERNEL
#define TRMM_KERNEL_LN STRMM_KERNEL_LN
#define TRMM_KERNEL_LT STRMM_KERNEL_LT
#define TRMM_KERNEL_LR STRMM_KERNEL_LN
#define TRMM_KERNEL_LC STRMM_KERNEL_LT
#define TRMM_KERNEL_RN STRMM_KERNEL_RN
#define TRMM_KERNEL_RT STRMM_KERNEL_RT
#define TRMM_KERNEL_RR STRMM_KERNEL_RN
#define TRMM_KERNEL_RC STRMM_KERNEL_RT
#define TRSM_KERNEL_LN STRSM_KERNEL_LN
#define TRSM_KERNEL_LT STRSM_KERNEL_LT
#define TRSM_KERNEL_LR STRSM_KERNEL_LN
#define TRSM_KERNEL_LC STRSM_KERNEL_LT
#define TRSM_KERNEL_RN STRSM_KERNEL_RN
#define TRSM_KERNEL_RT STRSM_KERNEL_RT
#define TRSM_KERNEL_RR STRSM_KERNEL_RN
#define TRSM_KERNEL_RC STRSM_KERNEL_RT
#define SYMM_IUTCOPY SSYMM_IUTCOPY
#define SYMM_ILTCOPY SSYMM_ILTCOPY
#define SYMM_OUTCOPY SSYMM_OUTCOPY
#define SYMM_OLTCOPY SSYMM_OLTCOPY
#define GEMM_NN SGEMM_NN
#define GEMM_CN SGEMM_TN
#define GEMM_TN SGEMM_TN
#define GEMM_NC SGEMM_NT
#define GEMM_NT SGEMM_NT
#define GEMM_CC SGEMM_TT
#define GEMM_CT SGEMM_TT
#define GEMM_TC SGEMM_TT
#define GEMM_TT SGEMM_TT
#define GEMM_NR SGEMM_NN
#define GEMM_TR SGEMM_TN
#define GEMM_CR SGEMM_TN
#define GEMM_RN SGEMM_NN
#define GEMM_RT SGEMM_NT
#define GEMM_RC SGEMM_NT
#define GEMM_RR SGEMM_NN
#define SYMM_LU SSYMM_LU
#define SYMM_LL SSYMM_LL
#define SYMM_RU SSYMM_RU
#define SYMM_RL SSYMM_RL
#define HEMM_LU SHEMM_LU
#define HEMM_LL SHEMM_LL
#define HEMM_RU SHEMM_RU
#define HEMM_RL SHEMM_RL
#define SYRK_UN SSYRK_UN
#define SYRK_UT SSYRK_UT
#define SYRK_LN SSYRK_LN
#define SYRK_LT SSYRK_LT
#define SYRK_UR SSYRK_UN
#define SYRK_UC SSYRK_UT
#define SYRK_LR SSYRK_LN
#define SYRK_LC SSYRK_LT
#define SYRK_KERNEL_U SSYRK_KERNEL_U
#define SYRK_KERNEL_L SSYRK_KERNEL_L
#define HERK_UN SSYRK_UN
#define HERK_LN SSYRK_LN
#define HERK_UC SSYRK_UT
#define HERK_LC SSYRK_LT
#define HER2K_UN SSYR2K_UN
#define HER2K_LN SSYR2K_LN
#define HER2K_UC SSYR2K_UT
#define HER2K_LC SSYR2K_LT
#define SYR2K_UN SSYR2K_UN
#define SYR2K_UT SSYR2K_UT
#define SYR2K_LN SSYR2K_LN
#define SYR2K_LT SSYR2K_LT
#define SYR2K_UR SSYR2K_UN
#define SYR2K_UC SSYR2K_UT
#define SYR2K_LR SSYR2K_LN
#define SYR2K_LC SSYR2K_LT
#define SYR2K_KERNEL_U SSYR2K_KERNEL_U
#define SYR2K_KERNEL_L SSYR2K_KERNEL_L
#define TRMM_LNUU STRMM_LNUU
#define TRMM_LNUN STRMM_LNUN
#define TRMM_LNLU STRMM_LNLU
#define TRMM_LNLN STRMM_LNLN
#define TRMM_LTUU STRMM_LTUU
#define TRMM_LTUN STRMM_LTUN
#define TRMM_LTLU STRMM_LTLU
#define TRMM_LTLN STRMM_LTLN
#define TRMM_LRUU STRMM_LNUU
#define TRMM_LRUN STRMM_LNUN
#define TRMM_LRLU STRMM_LNLU
#define TRMM_LRLN STRMM_LNLN
#define TRMM_LCUU STRMM_LTUU
#define TRMM_LCUN STRMM_LTUN
#define TRMM_LCLU STRMM_LTLU
#define TRMM_LCLN STRMM_LTLN
#define TRMM_RNUU STRMM_RNUU
#define TRMM_RNUN STRMM_RNUN
#define TRMM_RNLU STRMM_RNLU
#define TRMM_RNLN STRMM_RNLN
#define TRMM_RTUU STRMM_RTUU
#define TRMM_RTUN STRMM_RTUN
#define TRMM_RTLU STRMM_RTLU
#define TRMM_RTLN STRMM_RTLN
#define TRMM_RRUU STRMM_RNUU
#define TRMM_RRUN STRMM_RNUN
#define TRMM_RRLU STRMM_RNLU
#define TRMM_RRLN STRMM_RNLN
#define TRMM_RCUU STRMM_RTUU
#define TRMM_RCUN STRMM_RTUN
#define TRMM_RCLU STRMM_RTLU
#define TRMM_RCLN STRMM_RTLN
#define TRSM_LNUU STRSM_LNUU
#define TRSM_LNUN STRSM_LNUN
#define TRSM_LNLU STRSM_LNLU
#define TRSM_LNLN STRSM_LNLN
#define TRSM_LTUU STRSM_LTUU
#define TRSM_LTUN STRSM_LTUN
#define TRSM_LTLU STRSM_LTLU
#define TRSM_LTLN STRSM_LTLN
#define TRSM_LRUU STRSM_LNUU
#define TRSM_LRUN STRSM_LNUN
#define TRSM_LRLU STRSM_LNLU
#define TRSM_LRLN STRSM_LNLN
#define TRSM_LCUU STRSM_LTUU
#define TRSM_LCUN STRSM_LTUN
#define TRSM_LCLU STRSM_LTLU
#define TRSM_LCLN STRSM_LTLN
#define TRSM_RNUU STRSM_RNUU
#define TRSM_RNUN STRSM_RNUN
#define TRSM_RNLU STRSM_RNLU
#define TRSM_RNLN STRSM_RNLN
#define TRSM_RTUU STRSM_RTUU
#define TRSM_RTUN STRSM_RTUN
#define TRSM_RTLU STRSM_RTLU
#define TRSM_RTLN STRSM_RTLN
#define TRSM_RRUU STRSM_RNUU
#define TRSM_RRUN STRSM_RNUN
#define TRSM_RRLU STRSM_RNLU
#define TRSM_RRLN STRSM_RNLN
#define TRSM_RCUU STRSM_RTUU
#define TRSM_RCUN STRSM_RTUN
#define TRSM_RCLU STRSM_RTLU
#define TRSM_RCLN STRSM_RTLN
#define GEMM_THREAD_NN SGEMM_THREAD_NN
#define GEMM_THREAD_CN SGEMM_THREAD_TN
#define GEMM_THREAD_TN SGEMM_THREAD_TN
#define GEMM_THREAD_NC SGEMM_THREAD_NT
#define GEMM_THREAD_NT SGEMM_THREAD_NT
#define GEMM_THREAD_CC SGEMM_THREAD_TT
#define GEMM_THREAD_CT SGEMM_THREAD_TT
#define GEMM_THREAD_TC SGEMM_THREAD_TT
#define GEMM_THREAD_TT SGEMM_THREAD_TT
#define GEMM_THREAD_NR SGEMM_THREAD_NN
#define GEMM_THREAD_TR SGEMM_THREAD_TN
#define GEMM_THREAD_CR SGEMM_THREAD_TN
#define GEMM_THREAD_RN SGEMM_THREAD_NN
#define GEMM_THREAD_RT SGEMM_THREAD_NT
#define GEMM_THREAD_RC SGEMM_THREAD_NT
#define GEMM_THREAD_RR SGEMM_THREAD_NN
#define SYMM_THREAD_LU SSYMM_THREAD_LU
#define SYMM_THREAD_LL SSYMM_THREAD_LL
#define SYMM_THREAD_RU SSYMM_THREAD_RU
#define SYMM_THREAD_RL SSYMM_THREAD_RL
#define HEMM_THREAD_LU SHEMM_THREAD_LU
#define HEMM_THREAD_LL SHEMM_THREAD_LL
#define HEMM_THREAD_RU SHEMM_THREAD_RU
#define HEMM_THREAD_RL SHEMM_THREAD_RL
#define SYRK_THREAD_UN SSYRK_THREAD_UN
#define SYRK_THREAD_UT SSYRK_THREAD_UT
#define SYRK_THREAD_LN SSYRK_THREAD_LN
#define SYRK_THREAD_LT SSYRK_THREAD_LT
#define SYRK_THREAD_UR SSYRK_THREAD_UR
#define SYRK_THREAD_UC SSYRK_THREAD_UC
#define SYRK_THREAD_LR SSYRK_THREAD_LN
#define SYRK_THREAD_LC SSYRK_THREAD_LT
#define HERK_THREAD_UN SSYRK_THREAD_UN
#define HERK_THREAD_UT SSYRK_THREAD_UT
#define HERK_THREAD_LN SSYRK_THREAD_LN
#define HERK_THREAD_LT SSYRK_THREAD_LT
#define HERK_THREAD_UR SSYRK_THREAD_UR
#define HERK_THREAD_UC SSYRK_THREAD_UC
#define HERK_THREAD_LR SSYRK_THREAD_LN
#define HERK_THREAD_LC SSYRK_THREAD_LT
#endif
#else
#ifdef XDOUBLE
#define AMAX_K XAMAX_K
#define AMIN_K XAMIN_K
#define MAX_K XMAX_K
#define MIN_K XMIN_K
#define IAMAX_K IXAMAX_K
#define IAMIN_K IXAMIN_K
#define IMAX_K IXMAX_K
#define IMIN_K IXMIN_K
#define ASUM_K XASUM_K
#define AXPYU_K XAXPYU_K
#define AXPYC_K XAXPYC_K
#define COPY_K XCOPY_K
#define DOTU_K XDOTU_K
#define DOTC_K XDOTC_K
#define NRM2_K XNRM2_K
#define SCAL_K XSCAL_K
#define SWAP_K XSWAP_K
#define ROT_K XROT_K
#define GEMV_N XGEMV_N
#define GEMV_T XGEMV_T
#define GEMV_R XGEMV_R
#define GEMV_C XGEMV_C
#define GEMV_O XGEMV_O
#define GEMV_U XGEMV_U
#define GEMV_S XGEMV_S
#define GEMV_D XGEMV_D
#define GERU_K XGERU_K
#define GERC_K XGERC_K
#define GERV_K XGERV_K
#define GERD_K XGERD_K
#define SYMV_U XSYMV_U
#define SYMV_L XSYMV_L
#define HEMV_U XHEMV_U
#define HEMV_L XHEMV_L
#define HEMV_V XHEMV_V
#define HEMV_M XHEMV_M
#define SYMV_THREAD_U XSYMV_THREAD_U
#define SYMV_THREAD_L XSYMV_THREAD_L
#define HEMV_THREAD_U XHEMV_THREAD_U
#define HEMV_THREAD_L XHEMV_THREAD_L
#define HEMV_THREAD_V XHEMV_THREAD_V
#define HEMV_THREAD_M XHEMV_THREAD_M
#define GEMM_ONCOPY XGEMM_ONCOPY
#define GEMM_OTCOPY XGEMM_OTCOPY
#define GEMM_INCOPY XGEMM_INCOPY
#define GEMM_ITCOPY XGEMM_ITCOPY
#define GEMM3M_ONCOPYB XGEMM3M_ONCOPYB
#define GEMM3M_ONCOPYR XGEMM3M_ONCOPYR
#define GEMM3M_ONCOPYI XGEMM3M_ONCOPYI
#define GEMM3M_OTCOPYB XGEMM3M_OTCOPYB
#define GEMM3M_OTCOPYR XGEMM3M_OTCOPYR
#define GEMM3M_OTCOPYI XGEMM3M_OTCOPYI
#define GEMM3M_INCOPYB XGEMM3M_INCOPYB
#define GEMM3M_INCOPYR XGEMM3M_INCOPYR
#define GEMM3M_INCOPYI XGEMM3M_INCOPYI
#define GEMM3M_ITCOPYB XGEMM3M_ITCOPYB
#define GEMM3M_ITCOPYR XGEMM3M_ITCOPYR
#define GEMM3M_ITCOPYI XGEMM3M_ITCOPYI
#ifdef UNIT
#define TRMM_OUNCOPY XTRMM_OUNUCOPY
#define TRMM_OUTCOPY XTRMM_OUTUCOPY
#define TRMM_OLNCOPY XTRMM_OLNUCOPY
#define TRMM_OLTCOPY XTRMM_OLTUCOPY
#define TRSM_OUNCOPY XTRSM_OUNUCOPY
#define TRSM_OUTCOPY XTRSM_OUTUCOPY
#define TRSM_OLNCOPY XTRSM_OLNUCOPY
#define TRSM_OLTCOPY XTRSM_OLTUCOPY