1 /*
2 
3    BLIS
4    An object-based framework for developing high-performance BLAS-like
5    libraries.
6 
7    Copyright (C) 2014, The University of Texas at Austin
8 
9    Redistribution and use in source and binary forms, with or without
10    modification, are permitted provided that the following conditions are
11    met:
12     - Redistributions of source code must retain the above copyright
13       notice, this list of conditions and the following disclaimer.
14     - Redistributions in binary form must reproduce the above copyright
15       notice, this list of conditions and the following disclaimer in the
16       documentation and/or other materials provided with the distribution.
17     - Neither the name(s) of the copyright holder(s) nor the names of its
18       contributors may be used to endorse or promote products derived
19       from this software without specific prior written permission.
20 
21    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22    "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24    A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25    HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27    LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 
33 */
34 
35 
36 //
37 // -- Level-1v function types --------------------------------------------------
38 //
39 
40 // addm, subm
41 
42 #undef  GENTDEF
43 #define GENTDEF( ctype, ch, opname, tsuf ) \
44 \
45 typedef void (*PASTECH3(ch,opname,EX_SUF,tsuf)) \
46      ( \
47        doff_t  diagoffx, \
48        diag_t  diagx, \
49        uplo_t  uplox, \
50        trans_t transx, \
51        dim_t   m, \
52        dim_t   n, \
53        ctype*  x, inc_t rs_x, inc_t cs_x, \
54        ctype*  y, inc_t rs_y, inc_t cs_y  \
55        BLIS_TAPI_EX_PARAMS  \
56      );
57 
58 INSERT_GENTDEF( addm )
59 INSERT_GENTDEF( subm )
60 
61 // copym
62 
63 #undef  GENTDEF
64 #define GENTDEF( ctype, ch, opname, tsuf ) \
65 \
66 typedef void (*PASTECH3(ch,opname,EX_SUF,tsuf)) \
67      ( \
68        doff_t  diagoffx, \
69        diag_t  diagx, \
70        uplo_t  uplox, \
71        trans_t transx, \
72        dim_t   m, \
73        dim_t   n, \
74        ctype*  x, inc_t rs_x, inc_t cs_x, \
75        ctype*  y, inc_t rs_y, inc_t cs_y  \
76        BLIS_TAPI_EX_PARAMS  \
77      );
78 
79 INSERT_GENTDEF( copym )
80 
81 // axpym
82 
83 #undef  GENTDEF
84 #define GENTDEF( ctype, ch, opname, tsuf ) \
85 \
86 typedef void (*PASTECH3(ch,opname,EX_SUF,tsuf)) \
87      ( \
88        doff_t  diagoffx, \
89        diag_t  diagx, \
90        uplo_t  uplox, \
91        trans_t transx, \
92        dim_t   m, \
93        dim_t   n, \
94        ctype*  alpha, \
95        ctype*  x, inc_t rs_x, inc_t cs_x, \
96        ctype*  y, inc_t rs_y, inc_t cs_y  \
97        BLIS_TAPI_EX_PARAMS  \
98      );
99 
100 INSERT_GENTDEF( axpym )
101 
102 // scal2m
103 
104 #undef  GENTDEF
105 #define GENTDEF( ctype, ch, opname, tsuf ) \
106 \
107 typedef void (*PASTECH3(ch,opname,EX_SUF,tsuf)) \
108      ( \
109        doff_t  diagoffx, \
110        diag_t  diagx, \
111        uplo_t  uplox, \
112        trans_t transx, \
113        dim_t   m, \
114        dim_t   n, \
115        ctype*  alpha, \
116        ctype*  x, inc_t rs_x, inc_t cs_x, \
117        ctype*  y, inc_t rs_y, inc_t cs_y  \
118        BLIS_TAPI_EX_PARAMS  \
119      );
120 
121 INSERT_GENTDEF( scal2m )
122 
123 // scalm, setm
124 
125 #undef  GENTDEF
126 #define GENTDEF( ctype, ch, opname, tsuf ) \
127 \
128 typedef void (*PASTECH3(ch,opname,EX_SUF,tsuf)) \
129      ( \
130        conj_t  conjalpha, \
131        doff_t  diagoffx, \
132        diag_t  diagx, \
133        uplo_t  uplox, \
134        dim_t   m, \
135        dim_t   n, \
136        ctype*  alpha, \
137        ctype*  x, inc_t rs_x, inc_t cs_x  \
138        BLIS_TAPI_EX_PARAMS  \
139      );
140 
141 INSERT_GENTDEF( scalm )
142 INSERT_GENTDEF( setm )
143 
144 // xpbym
145 
146 #undef  GENTDEF
147 #define GENTDEF( ctype, ch, opname, tsuf ) \
148 \
149 typedef void (*PASTECH3(ch,opname,EX_SUF,tsuf)) \
150      ( \
151        doff_t  diagoffx, \
152        diag_t  diagx, \
153        uplo_t  uplox, \
154        trans_t transx, \
155        dim_t   m, \
156        dim_t   n, \
157        ctype*  x, inc_t rs_x, inc_t cs_x, \
158        ctype*  beta, \
159        ctype*  y, inc_t rs_y, inc_t cs_y  \
160        BLIS_TAPI_EX_PARAMS  \
161      );
162 
163 INSERT_GENTDEF( xpbym )
164 INSERT_GENTDEF( xpbym_md )
165 
166