/root/doris/contrib/openblas/kernel/generic/zger.c
Line | Count | Source |
1 | | /*********************************************************************/ |
2 | | /* Copyright 2009, 2010 The University of Texas at Austin. */ |
3 | | /* All rights reserved. */ |
4 | | /* */ |
5 | | /* Redistribution and use in source and binary forms, with or */ |
6 | | /* without modification, are permitted provided that the following */ |
7 | | /* conditions are met: */ |
8 | | /* */ |
9 | | /* 1. Redistributions of source code must retain the above */ |
10 | | /* copyright notice, this list of conditions and the following */ |
11 | | /* disclaimer. */ |
12 | | /* */ |
13 | | /* 2. Redistributions in binary form must reproduce the above */ |
14 | | /* copyright notice, this list of conditions and the following */ |
15 | | /* disclaimer in the documentation and/or other materials */ |
16 | | /* provided with the distribution. */ |
17 | | /* */ |
18 | | /* THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY OF TEXAS AT */ |
19 | | /* AUSTIN ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, */ |
20 | | /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ |
21 | | /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ |
22 | | /* DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OF TEXAS AT */ |
23 | | /* AUSTIN OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, */ |
24 | | /* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES */ |
25 | | /* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE */ |
26 | | /* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR */ |
27 | | /* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */ |
28 | | /* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT */ |
29 | | /* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT */ |
30 | | /* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ |
31 | | /* POSSIBILITY OF SUCH DAMAGE. */ |
32 | | /* */ |
33 | | /* The views and conclusions contained in the software and */ |
34 | | /* documentation are those of the authors and should not be */ |
35 | | /* interpreted as representing official policies, either expressed */ |
36 | | /* or implied, of The University of Texas at Austin. */ |
37 | | /*********************************************************************/ |
38 | | |
39 | | #include <stdio.h> |
40 | | #include "common.h" |
41 | | |
42 | | |
43 | | int CNAME(BLASLONG m, BLASLONG n, BLASLONG dummy1, FLOAT alpha_r, FLOAT alpha_i, |
44 | | FLOAT *x, BLASLONG incx, |
45 | | FLOAT *y, BLASLONG incy, |
46 | 0 | FLOAT *a, BLASLONG lda, FLOAT *buffer){ |
47 | |
|
48 | 0 | FLOAT *X = x; |
49 | |
|
50 | 0 | if (incx != 1) { |
51 | 0 | X = buffer; |
52 | 0 | COPY_K(m, x, incx, X, 1); |
53 | 0 | } |
54 | |
|
55 | 0 | lda *= 2; |
56 | 0 | incy *= 2; |
57 | |
|
58 | 0 | while (n > 0) { |
59 | 0 | FLOAT beta_r = y[0]; |
60 | 0 | FLOAT beta_i = y[1]; |
61 | |
|
62 | | #ifndef XCONJ |
63 | 0 | AXPYU_K |
64 | | #else |
65 | 0 | AXPYC_K |
66 | | #endif |
67 | 0 | (m, 0, 0, |
68 | | #ifndef CONJ |
69 | | alpha_r * beta_r - alpha_i * beta_i, |
70 | | alpha_r * beta_i + alpha_i * beta_r, |
71 | | #else |
72 | | alpha_r * beta_r + alpha_i * beta_i, |
73 | | -alpha_r * beta_i + alpha_i * beta_r, |
74 | | #endif |
75 | 0 | X, 1, a, 1, NULL, 0); |
76 | |
|
77 | 0 | a += lda; |
78 | 0 | y += incy; |
79 | 0 | n --; |
80 | 0 | } |
81 | |
|
82 | 0 | return 0; |
83 | 0 | } Unexecuted instantiation: cgeru_k_PRESCOTT Unexecuted instantiation: cgerc_k_PRESCOTT Unexecuted instantiation: cgerv_k_PRESCOTT Unexecuted instantiation: cgerd_k_PRESCOTT Unexecuted instantiation: zgeru_k_PRESCOTT Unexecuted instantiation: zgerc_k_PRESCOTT Unexecuted instantiation: zgerv_k_PRESCOTT Unexecuted instantiation: zgerd_k_PRESCOTT Unexecuted instantiation: cgeru_k_CORE2 Unexecuted instantiation: cgerc_k_CORE2 Unexecuted instantiation: cgerv_k_CORE2 Unexecuted instantiation: cgerd_k_CORE2 Unexecuted instantiation: zgeru_k_CORE2 Unexecuted instantiation: zgerc_k_CORE2 Unexecuted instantiation: zgerv_k_CORE2 Unexecuted instantiation: zgerd_k_CORE2 Unexecuted instantiation: cgeru_k_NEHALEM Unexecuted instantiation: cgerc_k_NEHALEM Unexecuted instantiation: cgerv_k_NEHALEM Unexecuted instantiation: cgerd_k_NEHALEM Unexecuted instantiation: zgeru_k_NEHALEM Unexecuted instantiation: zgerc_k_NEHALEM Unexecuted instantiation: zgerv_k_NEHALEM Unexecuted instantiation: zgerd_k_NEHALEM Unexecuted instantiation: cgeru_k_BARCELONA Unexecuted instantiation: cgerc_k_BARCELONA Unexecuted instantiation: cgerv_k_BARCELONA Unexecuted instantiation: cgerd_k_BARCELONA Unexecuted instantiation: zgeru_k_BARCELONA Unexecuted instantiation: zgerc_k_BARCELONA Unexecuted instantiation: zgerv_k_BARCELONA Unexecuted instantiation: zgerd_k_BARCELONA Unexecuted instantiation: cgeru_k_SANDYBRIDGE Unexecuted instantiation: cgerc_k_SANDYBRIDGE Unexecuted instantiation: cgerv_k_SANDYBRIDGE Unexecuted instantiation: cgerd_k_SANDYBRIDGE Unexecuted instantiation: zgeru_k_SANDYBRIDGE Unexecuted instantiation: zgerc_k_SANDYBRIDGE Unexecuted instantiation: zgerv_k_SANDYBRIDGE Unexecuted instantiation: zgerd_k_SANDYBRIDGE Unexecuted instantiation: cgeru_k_BULLDOZER Unexecuted instantiation: cgerc_k_BULLDOZER Unexecuted instantiation: cgerv_k_BULLDOZER Unexecuted instantiation: cgerd_k_BULLDOZER Unexecuted instantiation: zgeru_k_BULLDOZER Unexecuted instantiation: zgerc_k_BULLDOZER Unexecuted instantiation: zgerv_k_BULLDOZER Unexecuted instantiation: zgerd_k_BULLDOZER Unexecuted instantiation: cgeru_k_PILEDRIVER Unexecuted instantiation: cgerc_k_PILEDRIVER Unexecuted instantiation: cgerv_k_PILEDRIVER Unexecuted instantiation: cgerd_k_PILEDRIVER Unexecuted instantiation: zgeru_k_PILEDRIVER Unexecuted instantiation: zgerc_k_PILEDRIVER Unexecuted instantiation: zgerv_k_PILEDRIVER Unexecuted instantiation: zgerd_k_PILEDRIVER Unexecuted instantiation: cgeru_k_STEAMROLLER Unexecuted instantiation: cgerc_k_STEAMROLLER Unexecuted instantiation: cgerv_k_STEAMROLLER Unexecuted instantiation: cgerd_k_STEAMROLLER Unexecuted instantiation: zgeru_k_STEAMROLLER Unexecuted instantiation: zgerc_k_STEAMROLLER Unexecuted instantiation: zgerv_k_STEAMROLLER Unexecuted instantiation: zgerd_k_STEAMROLLER Unexecuted instantiation: cgeru_k_EXCAVATOR Unexecuted instantiation: cgerc_k_EXCAVATOR Unexecuted instantiation: cgerv_k_EXCAVATOR Unexecuted instantiation: cgerd_k_EXCAVATOR Unexecuted instantiation: zgeru_k_EXCAVATOR Unexecuted instantiation: zgerc_k_EXCAVATOR Unexecuted instantiation: zgerv_k_EXCAVATOR Unexecuted instantiation: zgerd_k_EXCAVATOR Unexecuted instantiation: cgeru_k_HASWELL Unexecuted instantiation: cgerc_k_HASWELL Unexecuted instantiation: cgerv_k_HASWELL Unexecuted instantiation: cgerd_k_HASWELL Unexecuted instantiation: zgeru_k_HASWELL Unexecuted instantiation: zgerc_k_HASWELL Unexecuted instantiation: zgerv_k_HASWELL Unexecuted instantiation: zgerd_k_HASWELL Unexecuted instantiation: cgeru_k_ZEN Unexecuted instantiation: cgerc_k_ZEN Unexecuted instantiation: cgerv_k_ZEN Unexecuted instantiation: cgerd_k_ZEN Unexecuted instantiation: zgeru_k_ZEN Unexecuted instantiation: zgerc_k_ZEN Unexecuted instantiation: zgerv_k_ZEN Unexecuted instantiation: zgerd_k_ZEN |
84 | | |