|
1 | 1 | /******************************************************************************* |
2 | | -* Copyright 2019-2021 Intel Corporation |
| 2 | +* Copyright 2019-2023 Intel Corporation |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
@@ -254,15 +254,12 @@ float fwd_Xnary(unsigned kind, unsigned algorithm, float x, float y, |
254 | 254 | is_burstable; \ |
255 | 255 | }) |
256 | 256 |
|
257 | | -#define BINARY_ARG_IS_SCALAR(idx) ({ false; }) |
258 | | - |
259 | 257 | #define APPLY_PO_BINARY(idx, accumulator, acc_elem_dt, x0, x0_s, x1, x1_s, \ |
260 | 258 | x1_incr, x2, x2_s, x3, x3_s, x4, x4_s, x5, x5_s, is_burst) \ |
261 | 259 | { \ |
262 | | - const unsigned bin_arg_size = BINARY_ARG_IS_SCALAR(idx) \ |
263 | | - ? 1 \ |
264 | | - : sizeof(accumulator) / sizeof(acc_elem_dt); \ |
265 | | - float bin_arg[bin_arg_size]; \ |
| 260 | + const unsigned bin_arg_size \ |
| 261 | + = sizeof(accumulator) / sizeof(acc_elem_dt); \ |
| 262 | + float bin_arg[sizeof(accumulator) / sizeof(acc_elem_dt)]; \ |
266 | 263 | float *bin_arg_ptr = &bin_arg[0]; \ |
267 | 264 | const bool use_burst_read = IS_BURSTABLE(idx, x0, x0_s, x1, x1_s, x2, \ |
268 | 265 | x2_s, x3, x3_s, x4, x4_s, x5, x5_s, is_burst); \ |
|
0 commit comments