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 // Prototype BLAS-like interfaces with typed operands.
38 //
39 
40 #undef  GENTPROT
41 #define GENTPROT( ctype, ch, opname ) \
42 \
43 BLIS_EXPORT_BLIS void PASTEMAC2(ch,opname,EX_SUF) \
44      ( \
45        doff_t  diagoffx, \
46        diag_t  diagx, \
47        uplo_t  uplox, \
48        trans_t transx, \
49        dim_t   m, \
50        dim_t   n, \
51        ctype*  x, inc_t rs_x, inc_t cs_x, \
52        ctype*  y, inc_t rs_y, inc_t cs_y  \
53        BLIS_TAPI_EX_PARAMS  \
54      );
55 
56 INSERT_GENTPROT_BASIC0( addm )
57 INSERT_GENTPROT_BASIC0( copym )
58 INSERT_GENTPROT_BASIC0( subm )
59 
60 
61 #undef  GENTPROT
62 #define GENTPROT( ctype, ch, opname ) \
63 \
64 BLIS_EXPORT_BLIS void PASTEMAC2(ch,opname,EX_SUF) \
65      ( \
66        doff_t  diagoffx, \
67        diag_t  diagx, \
68        uplo_t  uplox, \
69        trans_t transx, \
70        dim_t   m, \
71        dim_t   n, \
72        ctype*  alpha, \
73        ctype*  x, inc_t rs_x, inc_t cs_x, \
74        ctype*  y, inc_t rs_y, inc_t cs_y  \
75        BLIS_TAPI_EX_PARAMS  \
76      );
77 
78 INSERT_GENTPROT_BASIC0( axpym )
79 INSERT_GENTPROT_BASIC0( scal2m )
80 
81 
82 #undef  GENTPROT
83 #define GENTPROT( ctype, ch, opname ) \
84 \
85 BLIS_EXPORT_BLIS void PASTEMAC2(ch,opname,EX_SUF) \
86      ( \
87        conj_t  conjalpha, \
88        doff_t  diagoffx, \
89        diag_t  diagx, \
90        uplo_t  uplox, \
91        dim_t   m, \
92        dim_t   n, \
93        ctype*  alpha, \
94        ctype*  x, inc_t rs_x, inc_t cs_x  \
95        BLIS_TAPI_EX_PARAMS  \
96      );
97 
98 INSERT_GENTPROT_BASIC0( scalm )
99 INSERT_GENTPROT_BASIC0( setm )
100 
101 
102 #undef  GENTPROT
103 #define GENTPROT( ctype, ch, opname ) \
104 \
105 BLIS_EXPORT_BLIS void PASTEMAC2(ch,opname,EX_SUF) \
106      ( \
107        doff_t  diagoffx, \
108        diag_t  diagx, \
109        uplo_t  uplox, \
110        trans_t transx, \
111        dim_t   m, \
112        dim_t   n, \
113        ctype*  x, inc_t rs_x, inc_t cs_x, \
114        ctype*  beta, \
115        ctype*  y, inc_t rs_y, inc_t cs_y  \
116        BLIS_TAPI_EX_PARAMS  \
117      );
118 
119 INSERT_GENTPROT_BASIC0( xpbym )
120 
121 
122 #undef  GENTPROT2
123 #define GENTPROT2( ctype_x, ctype_y, chx, chy, opname ) \
124 \
125 BLIS_EXPORT_BLIS void PASTEMAC3(chx,chy,opname,EX_SUF) \
126      ( \
127        doff_t   diagoffx, \
128        diag_t   diagx, \
129        uplo_t   uplox, \
130        trans_t  transx, \
131        dim_t    m, \
132        dim_t    n, \
133        ctype_x* x, inc_t rs_x, inc_t cs_x, \
134        ctype_y* beta, \
135        ctype_y* y, inc_t rs_y, inc_t cs_y  \
136        BLIS_TAPI_EX_PARAMS  \
137      );
138 
139 INSERT_GENTPROT2_BASIC0( xpbym_md )
140 INSERT_GENTPROT2_MIXDP0( xpbym_md )
141 
142