]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - dense-linear-algebra-libraries/linalg.git/blob - blis/frame/1m/subm/bli_subm.h
Consolidate all git repos of linalg into one.
[dense-linear-algebra-libraries/linalg.git] / blis / frame / 1m / subm / bli_subm.h
1 /*
3    BLIS    
4    An object-based framework for developing high-performance BLAS-like
5    libraries.
7    Copyright (C) 2014, The University of Texas at Austin
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 of The University of Texas at Austin nor the names
18       of its contributors may be used to endorse or promote products
19       derived from this software without specific prior written permission.
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.
33 */
35 #include "bli_subm_check.h"
36 #include "bli_subm_unb_var1.h"
39 //
40 // Prototype object-based interface.
41 //
42 void bli_subm( obj_t* x,
43                obj_t* y );
46 //
47 // Prototype BLAS-like interfaces with homogeneous-typed operands.
48 //
49 #undef  GENTPROT
50 #define GENTPROT( ctype, ch, opname ) \
51 \
52 void PASTEMAC(ch,opname)( \
53                           doff_t  diagoffx, \
54                           diag_t  diagx, \
55                           uplo_t  uplox, \
56                           trans_t transx, \
57                           dim_t   m, \
58                           dim_t   n, \
59                           ctype*  x, inc_t rs_x, inc_t cs_x, \
60                           ctype*  y, inc_t rs_y, inc_t cs_y \
61                         );
63 INSERT_GENTPROT_BASIC( subm )
66 //
67 // Prototype BLAS-like interfaces with heterogeneous-typed operands.
68 //
69 #undef  GENTPROT2
70 #define GENTPROT2( ctype_x, ctype_y, chx, chy, opname ) \
71 \
72 void PASTEMAC2(chx,chy,opname)( \
73                                 doff_t   diagoffx, \
74                                 diag_t   diagx, \
75                                 uplo_t   uplox, \
76                                 trans_t  transx, \
77                                 dim_t    m, \
78                                 dim_t    n, \
79                                 ctype_x* x, inc_t rs_x, inc_t cs_x, \
80                                 ctype_y* y, inc_t rs_y, inc_t cs_y \
81                               );
83 INSERT_GENTPROT2_BASIC( subm )
85 #ifdef BLIS_ENABLE_MIXED_DOMAIN_SUPPORT
86 INSERT_GENTPROT2_MIX_D( subm )
87 #endif
89 #ifdef BLIS_ENABLE_MIXED_PRECISION_SUPPORT
90 INSERT_GENTPROT2_MIX_P( subm )
91 #endif