Lines Matching refs:params
50 static const InType* Offset(const RowMajor& params, const InType* source, in Offset() argument
54 offset_stride * params.stride + offset_advance * sizeof(InType)); in Offset()
57 static InType* Offset(const RowMajor& params, InType* source, in Offset() argument
60 offset_stride * params.stride + in Offset()
64 static int Scratch(const RowMajor& params, int lanes_count, int pack_size) { in Scratch() argument
65 return AlignTo<64>(lanes_count * AlignTo(pack_size, params.stride)); in Scratch()
72 static const InType* Offset(const RowMajorWithSum& params, in Offset() argument
77 offset_stride * params.stride + offset_advance * sizeof(InType)); in Offset()
80 static InType* Offset(const RowMajorWithSum& params, InType* source, in Offset() argument
83 offset_stride * params.stride + in Offset()
87 static int Scratch(const RowMajorWithSum& params, int lanes_count, in Scratch() argument
90 AlignTo(pack_size, params.count)); in Scratch()
97 static const InType* Offset(const ColumnMajorWithSum& params, in Offset() argument
102 params.stride * offset_advance + offset_stride * sizeof(InType)); in Offset()
105 static const InType* Offset(const ColumnMajorWithSum& params, InType* source, in Offset() argument
108 params.stride * offset_advance + in Offset()
112 static int Scratch(const ColumnMajorWithSum& params, int lanes_count, in Scratch() argument
115 AlignTo(pack_size, params.count)); in Scratch()
122 static void Pack(const InType* in, const RowMajor& params, InType* out) { in Pack() argument
137 static int UnpackedAdvance(const RowMajor& params) { in UnpackedAdvance() argument
141 static int PackedAdvance(const RowMajor& params) { in PackedAdvance() argument
145 static int UnpackedStride(const RowMajor& params) { in UnpackedStride() argument
146 return lanes_count * params.stride; in UnpackedStride()
149 static int PackedStride(const RowMajor& params) { in PackedStride() argument
150 return AlignTo<32>(lanes_count * AlignTo<pack_size>(params.stride)); in PackedStride()
153 static int Scratch(const RowMajor& params) { return PackedStride(params); } in Scratch() argument
157 static void Debug(const RowMajor& params) { in Debug() argument
161 std::cout << " scratch: " << Scratch(params) << std::endl; in Debug()
162 std::cout << " unpacked advance: " << UnpackedAdvance(params) << std::endl; in Debug()
163 std::cout << " packed advance: " << PackedAdvance(params) << std::endl; in Debug()
164 std::cout << " unpacked stride: " << UnpackedStride(params) << std::endl; in Debug()
165 std::cout << " packed stride: " << PackedStride(params) << std::endl; in Debug()
167 std::cout << " count: " << params.count << std::endl; in Debug()
168 std::cout << " stride: " << params.stride << std::endl; in Debug()
177 static void Pack(const InType* in, const RowMajorWithSum& params, in Pack() argument
193 static int UnpackedAdvance(const RowMajorWithSum& params) { in UnpackedAdvance() argument
197 static int PackedAdvance(const RowMajorWithSum& params) { in PackedAdvance() argument
201 static int UnpackedStride(const RowMajorWithSum& params) { in UnpackedStride() argument
202 return sizeof(InType) * lanes_count * params.stride; in UnpackedStride()
205 static int PackedStride(const RowMajorWithSum& params) { in PackedStride() argument
207 AlignTo<pack_size>(params.count)); in PackedStride()
210 static int Scratch(const RowMajorWithSum& params) { in Scratch() argument
211 return PackedStride(params); in Scratch()
216 static void Debug(const RowMajorWithSum& params) { in Debug() argument
221 std::cout << " scratch: " << Scratch(params) << std::endl; in Debug()
222 std::cout << " unpacked advance: " << UnpackedAdvance(params) << std::endl; in Debug()
223 std::cout << " packed advance: " << PackedAdvance(params) << std::endl; in Debug()
224 std::cout << " unpacked stride: " << UnpackedStride(params) << std::endl; in Debug()
225 std::cout << " packed stride: " << PackedStride(params) << std::endl; in Debug()
227 std::cout << " count: " << params.count << std::endl; in Debug()
228 std::cout << " stride: " << params.stride << std::endl; in Debug()
230 << params.multiplicative_sum_offset << std::endl; in Debug()
231 std::cout << " additive_sum_offset: " << params.additive_sum_offset in Debug()
241 static void Pack(const InType* in, const ColumnMajorWithSum& params, in Pack() argument
258 static int UnpackedAdvance(const ColumnMajorWithSum& params) { in UnpackedAdvance() argument
259 return sizeof(InType) * pack_size * params.stride; in UnpackedAdvance()
262 static int PackedAdvance(const ColumnMajorWithSum& params) { in PackedAdvance() argument
266 static int UnpackedStride(const ColumnMajorWithSum& params) { in UnpackedStride() argument
270 static int PackedStride(const ColumnMajorWithSum& params) { in PackedStride() argument
272 AlignTo<pack_size>(params.count)); in PackedStride()
275 static int Scratch(const ColumnMajorWithSum& params) { in Scratch() argument
276 return PackedStride(params); in Scratch()
281 static void Debug(const ColumnMajorWithSum& params) { in Debug() argument
286 std::cout << " scratch: " << Scratch(params) << std::endl; in Debug()
287 std::cout << " unpacked advance: " << UnpackedAdvance(params) << std::endl; in Debug()
288 std::cout << " packed advance: " << PackedAdvance(params) << std::endl; in Debug()
289 std::cout << " unpacked stride: " << UnpackedStride(params) << std::endl; in Debug()
290 std::cout << " packed stride: " << PackedStride(params) << std::endl; in Debug()
292 std::cout << " count: " << params.count << std::endl; in Debug()
293 std::cout << " stride: " << params.stride << std::endl; in Debug()
295 << params.multiplicative_sum_offset << std::endl; in Debug()
296 std::cout << " additive_sum_offset: " << params.additive_sum_offset in Debug()