Miao Wang | e941f18 | 2015-07-14 16:18:49 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | // This is a helper file to apply macros to different cblas routines. |
| 18 | // Will be include multiple times. |
| 19 | |
| 20 | #if !defined(RS_APPLY_MACRO_TO) |
| 21 | #error "You must define the macro RS_APPLY_MACRO_TO to include this file" |
| 22 | #endif |
| 23 | |
| 24 | RS_APPLY_MACRO_TO(cblas_sgemv) |
| 25 | RS_APPLY_MACRO_TO(cblas_sgbmv) |
| 26 | RS_APPLY_MACRO_TO(cblas_strmv) |
| 27 | RS_APPLY_MACRO_TO(cblas_stbmv) |
| 28 | RS_APPLY_MACRO_TO(cblas_stpmv) |
| 29 | RS_APPLY_MACRO_TO(cblas_strsv) |
| 30 | RS_APPLY_MACRO_TO(cblas_stbsv) |
| 31 | RS_APPLY_MACRO_TO(cblas_stpsv) |
| 32 | |
| 33 | RS_APPLY_MACRO_TO(cblas_dgemv) |
| 34 | RS_APPLY_MACRO_TO(cblas_dgbmv) |
| 35 | RS_APPLY_MACRO_TO(cblas_dtrmv) |
| 36 | RS_APPLY_MACRO_TO(cblas_dtbmv) |
| 37 | RS_APPLY_MACRO_TO(cblas_dtpmv) |
| 38 | RS_APPLY_MACRO_TO(cblas_dtrsv) |
| 39 | RS_APPLY_MACRO_TO(cblas_dtbsv) |
| 40 | RS_APPLY_MACRO_TO(cblas_dtpsv) |
| 41 | |
| 42 | RS_APPLY_MACRO_TO(cblas_cgemv) |
| 43 | RS_APPLY_MACRO_TO(cblas_cgbmv) |
| 44 | RS_APPLY_MACRO_TO(cblas_ctrmv) |
| 45 | RS_APPLY_MACRO_TO(cblas_ctbmv) |
| 46 | RS_APPLY_MACRO_TO(cblas_ctpmv) |
| 47 | RS_APPLY_MACRO_TO(cblas_ctrsv) |
| 48 | RS_APPLY_MACRO_TO(cblas_ctbsv) |
| 49 | RS_APPLY_MACRO_TO(cblas_ctpsv) |
| 50 | |
| 51 | RS_APPLY_MACRO_TO(cblas_zgemv) |
| 52 | RS_APPLY_MACRO_TO(cblas_zgbmv) |
| 53 | RS_APPLY_MACRO_TO(cblas_ztrmv) |
| 54 | RS_APPLY_MACRO_TO(cblas_ztbmv) |
| 55 | RS_APPLY_MACRO_TO(cblas_ztpmv) |
| 56 | RS_APPLY_MACRO_TO(cblas_ztrsv) |
| 57 | RS_APPLY_MACRO_TO(cblas_ztbsv) |
| 58 | RS_APPLY_MACRO_TO(cblas_ztpsv) |
| 59 | |
| 60 | RS_APPLY_MACRO_TO(cblas_ssymv) |
| 61 | RS_APPLY_MACRO_TO(cblas_ssbmv) |
| 62 | RS_APPLY_MACRO_TO(cblas_sspmv) |
| 63 | RS_APPLY_MACRO_TO(cblas_sger) |
| 64 | RS_APPLY_MACRO_TO(cblas_ssyr) |
| 65 | RS_APPLY_MACRO_TO(cblas_sspr) |
| 66 | RS_APPLY_MACRO_TO(cblas_ssyr2) |
| 67 | RS_APPLY_MACRO_TO(cblas_sspr2) |
| 68 | |
| 69 | RS_APPLY_MACRO_TO(cblas_dsymv) |
| 70 | RS_APPLY_MACRO_TO(cblas_dsbmv) |
| 71 | RS_APPLY_MACRO_TO(cblas_dspmv) |
| 72 | RS_APPLY_MACRO_TO(cblas_dger) |
| 73 | RS_APPLY_MACRO_TO(cblas_dsyr) |
| 74 | RS_APPLY_MACRO_TO(cblas_dspr) |
| 75 | RS_APPLY_MACRO_TO(cblas_dsyr2) |
| 76 | RS_APPLY_MACRO_TO(cblas_dspr2) |
| 77 | |
| 78 | RS_APPLY_MACRO_TO(cblas_chemv) |
| 79 | RS_APPLY_MACRO_TO(cblas_chbmv) |
| 80 | RS_APPLY_MACRO_TO(cblas_chpmv) |
| 81 | RS_APPLY_MACRO_TO(cblas_cgeru) |
| 82 | RS_APPLY_MACRO_TO(cblas_cgerc) |
| 83 | RS_APPLY_MACRO_TO(cblas_cher) |
| 84 | RS_APPLY_MACRO_TO(cblas_chpr) |
| 85 | RS_APPLY_MACRO_TO(cblas_cher2) |
| 86 | RS_APPLY_MACRO_TO(cblas_chpr2) |
| 87 | |
| 88 | RS_APPLY_MACRO_TO(cblas_zhemv) |
| 89 | RS_APPLY_MACRO_TO(cblas_zhbmv) |
| 90 | RS_APPLY_MACRO_TO(cblas_zhpmv) |
| 91 | RS_APPLY_MACRO_TO(cblas_zgeru) |
| 92 | RS_APPLY_MACRO_TO(cblas_zgerc) |
| 93 | RS_APPLY_MACRO_TO(cblas_zher) |
| 94 | RS_APPLY_MACRO_TO(cblas_zhpr) |
| 95 | RS_APPLY_MACRO_TO(cblas_zher2) |
| 96 | RS_APPLY_MACRO_TO(cblas_zhpr2) |
| 97 | |
| 98 | |
| 99 | RS_APPLY_MACRO_TO(cblas_sgemm) |
| 100 | RS_APPLY_MACRO_TO(cblas_ssymm) |
| 101 | RS_APPLY_MACRO_TO(cblas_ssyrk) |
| 102 | RS_APPLY_MACRO_TO(cblas_ssyr2k) |
| 103 | RS_APPLY_MACRO_TO(cblas_strmm) |
| 104 | RS_APPLY_MACRO_TO(cblas_strsm) |
| 105 | |
| 106 | RS_APPLY_MACRO_TO(cblas_dgemm) |
| 107 | RS_APPLY_MACRO_TO(cblas_dsymm) |
| 108 | RS_APPLY_MACRO_TO(cblas_dsyrk) |
| 109 | RS_APPLY_MACRO_TO(cblas_dsyr2k) |
| 110 | RS_APPLY_MACRO_TO(cblas_dtrmm) |
| 111 | RS_APPLY_MACRO_TO(cblas_dtrsm) |
| 112 | |
| 113 | RS_APPLY_MACRO_TO(cblas_cgemm) |
| 114 | RS_APPLY_MACRO_TO(cblas_csymm) |
| 115 | RS_APPLY_MACRO_TO(cblas_csyrk) |
| 116 | RS_APPLY_MACRO_TO(cblas_csyr2k) |
| 117 | RS_APPLY_MACRO_TO(cblas_ctrmm) |
| 118 | RS_APPLY_MACRO_TO(cblas_ctrsm) |
| 119 | |
| 120 | RS_APPLY_MACRO_TO(cblas_zgemm) |
| 121 | RS_APPLY_MACRO_TO(cblas_zsymm) |
| 122 | RS_APPLY_MACRO_TO(cblas_zsyrk) |
| 123 | RS_APPLY_MACRO_TO(cblas_zsyr2k) |
| 124 | RS_APPLY_MACRO_TO(cblas_ztrmm) |
| 125 | RS_APPLY_MACRO_TO(cblas_ztrsm) |
| 126 | |
| 127 | RS_APPLY_MACRO_TO(cblas_chemm) |
| 128 | RS_APPLY_MACRO_TO(cblas_cherk) |
| 129 | RS_APPLY_MACRO_TO(cblas_cher2k) |
| 130 | |
| 131 | RS_APPLY_MACRO_TO(cblas_zhemm) |
| 132 | RS_APPLY_MACRO_TO(cblas_zherk) |
| 133 | RS_APPLY_MACRO_TO(cblas_zher2k) |
| 134 | |
| 135 | // Undefine the macro so that we can include this file multiple times to generate different functionality. |
| 136 | #undef RS_APPLY_MACRO_TO |