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