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 // Define template prototypes for level-1f kernels. 38 // 39 40 #define AXPY2V_KER_PROT( ctype, ch, opname ) \ 41 \ 42 void PASTEMAC(ch,opname) \ 43 ( \ 44 conj_t conjx, \ 45 conj_t conjy, \ 46 dim_t n, \ 47 ctype* restrict alphax, \ 48 ctype* restrict alphay, \ 49 ctype* restrict x, inc_t incx, \ 50 ctype* restrict y, inc_t incy, \ 51 ctype* restrict z, inc_t incz, \ 52 cntx_t* restrict cntx \ 53 ); 54 55 56 #define AXPYF_KER_PROT( ctype, ch, opname ) \ 57 \ 58 void PASTEMAC(ch,opname) \ 59 ( \ 60 conj_t conja, \ 61 conj_t conjx, \ 62 dim_t m, \ 63 dim_t b_n, \ 64 ctype* restrict alpha, \ 65 ctype* restrict a, inc_t inca, inc_t lda, \ 66 ctype* restrict x, inc_t incx, \ 67 ctype* restrict y, inc_t incy, \ 68 cntx_t* restrict cntx \ 69 ); 70 71 72 #define DOTAXPYV_KER_PROT( ctype, ch, opname ) \ 73 \ 74 void PASTEMAC(ch,opname) \ 75 ( \ 76 conj_t conjxt, \ 77 conj_t conjx, \ 78 conj_t conjy, \ 79 dim_t n, \ 80 ctype* restrict alpha, \ 81 ctype* restrict x, inc_t incx, \ 82 ctype* restrict y, inc_t incy, \ 83 ctype* restrict rho, \ 84 ctype* restrict z, inc_t incz, \ 85 cntx_t* restrict cntx \ 86 ); 87 88 89 #define DOTXAXPYF_KER_PROT( ctype, ch, opname ) \ 90 \ 91 void PASTEMAC(ch,opname) \ 92 ( \ 93 conj_t conjat, \ 94 conj_t conja, \ 95 conj_t conjw, \ 96 conj_t conjx, \ 97 dim_t m, \ 98 dim_t b_n, \ 99 ctype* restrict alpha, \ 100 ctype* restrict a, inc_t inca, inc_t lda, \ 101 ctype* restrict w, inc_t incw, \ 102 ctype* restrict x, inc_t incx, \ 103 ctype* restrict beta, \ 104 ctype* restrict y, inc_t incy, \ 105 ctype* restrict z, inc_t incz, \ 106 cntx_t* restrict cntx \ 107 ); 108 109 110 #define DOTXF_KER_PROT( ctype, ch, opname ) \ 111 \ 112 void PASTEMAC(ch,opname) \ 113 ( \ 114 conj_t conjat, \ 115 conj_t conjx, \ 116 dim_t m, \ 117 dim_t b_n, \ 118 ctype* restrict alpha, \ 119 ctype* restrict a, inc_t inca, inc_t lda, \ 120 ctype* restrict x, inc_t incx, \ 121 ctype* restrict beta, \ 122 ctype* restrict y, inc_t incy, \ 123 cntx_t* restrict cntx \ 124 ); 125 126