| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
#include <assert.h> |
| 11 |
|
| 12 |
#include <arm_neon.h> |
| 13 |
|
| 14 |
#include "xnnpack/prefetch.h" |
| 15 |
#include "xnnpack/spmm.h" |
| 16 |
|
| 17 |
|
| 18 |
void xnn_f32_spmm_minmax_ukernel_16x2__aarch64_neonfma( |
| 19 |
size_t mc, |
| 20 |
size_t nc, |
| 21 |
const float* input, |
| 22 |
const float* weights, |
| 23 |
const int32_t* widx_dmap, |
| 24 |
const uint32_t* nidx_nnzmap, |
| 25 |
float* output, |
| 26 |
size_t output_stride, |
| 27 |
const union xnn_f32_minmax_params params[restrict XNN_MIN_ELEMENTS(1)]) |
| 28 |
{ |
| 29 |
assert(mc != 0); |
| 30 |
assert(mc % sizeof(float) == 0); |
| 31 |
assert(nc != 0); |
| 32 |
|
| 33 |
#if XNN_ARCH_ARM64 |
| 34 |
const float32x4x2_t vminmax = vld2q_dup_f32(¶ms->scalar.min); |
| 35 |
const float32x4_t vmin = vminmax.val[0]; |
| 36 |
const float32x4_t vmax = vminmax.val[1]; |
| 37 |
#else |
| 38 |
const float32x2x2_t vminmax = vld2_dup_f32(¶ms->scalar.min); |
| 39 |
const float32x4_t vmin = vcombine_f32(vminmax.val[0], vminmax.val[0]); |
| 40 |
const float32x4_t vmax = vcombine_f32(vminmax.val[1], vminmax.val[1]); |
| 41 |
#endif |
| 42 |
|
| 43 |
size_t output_decrement = output_stride * nc - 16 * sizeof(float); |
| 44 |
while XNN_LIKELY(mc >= 16 * sizeof(float)) { |
| 45 |
const float* w = weights; |
| 46 |
const int32_t* dmap = widx_dmap; |
| 47 |
const uint32_t* nnzmap = nidx_nnzmap; |
| 48 |
size_t n = nc; |
| 49 |
while (n >= 2) { |
| 50 |
uint32_t nnz = *nnzmap++; |
| 51 |
float32x4_t vacc0123n0 = vld1q_dup_f32(w); w += 1; |
| 52 |
float32x4_t vacc4567n0 = vacc0123n0; |
| 53 |
float32x4_t vacc89ABn0 = vacc0123n0; |
| 54 |
float32x4_t vaccCDEFn0 = vacc0123n0; |
| 55 |
float32x4_t vacc0123n1 = vld1q_dup_f32(w); w += 1; |
| 56 |
float32x4_t vacc4567n1 = vacc0123n1; |
| 57 |
float32x4_t vacc89ABn1 = vacc0123n1; |
| 58 |
float32x4_t vaccCDEFn1 = vacc0123n1; |
| 59 |
if XNN_LIKELY(nnz != 0) { |
| 60 |
do { |
| 61 |
const intptr_t diff = *dmap++; |
| 62 |
const float32x4_t vi0123 = vld1q_f32(input); |
| 63 |
const float32x4_t vi4567 = vld1q_f32(input + 4); |
| 64 |
const float32x4_t vi89AB = vld1q_f32(input + 8); |
| 65 |
const float32x4_t viCDEF = vld1q_f32(input + 12); |
| 66 |
input = (const float*) ((uintptr_t) input + (uintptr_t) diff); |
| 67 |
xnn_prefetch_to_l1(input + 16); |
| 68 |
const float32x2_t vw = vld1_f32(w); w += 2; |
| 69 |
xnn_prefetch_to_l1(w + 32); |
| 70 |
vacc0123n0 = vfmaq_lane_f32(vacc0123n0, vi0123, vw, 0); |
| 71 |
vacc4567n0 = vfmaq_lane_f32(vacc4567n0, vi4567, vw, 0); |
| 72 |
vacc89ABn0 = vfmaq_lane_f32(vacc89ABn0, vi89AB, vw, 0); |
| 73 |
vaccCDEFn0 = vfmaq_lane_f32(vaccCDEFn0, viCDEF, vw, 0); |
| 74 |
vacc0123n1 = vfmaq_lane_f32(vacc0123n1, vi0123, vw, 1); |
| 75 |
vacc4567n1 = vfmaq_lane_f32(vacc4567n1, vi4567, vw, 1); |
| 76 |
vacc89ABn1 = vfmaq_lane_f32(vacc89ABn1, vi89AB, vw, 1); |
| 77 |
vaccCDEFn1 = vfmaq_lane_f32(vaccCDEFn1, viCDEF, vw, 1); |
| 78 |
} while (--nnz != 0); |
| 79 |
} |
| 80 |
float32x4_t vout0123n0 = vminq_f32(vacc0123n0, vmax); |
| 81 |
float32x4_t vout4567n0 = vminq_f32(vacc4567n0, vmax); |
| 82 |
float32x4_t vout89ABn0 = vminq_f32(vacc89ABn0, vmax); |
| 83 |
float32x4_t voutCDEFn0 = vminq_f32(vaccCDEFn0, vmax); |
| 84 |
float32x4_t vout0123n1 = vminq_f32(vacc0123n1, vmax); |
| 85 |
float32x4_t vout4567n1 = vminq_f32(vacc4567n1, vmax); |
| 86 |
float32x4_t vout89ABn1 = vminq_f32(vacc89ABn1, vmax); |
| 87 |
float32x4_t voutCDEFn1 = vminq_f32(vaccCDEFn1, vmax); |
| 88 |
|
| 89 |
vout0123n0 = vmaxq_f32(vout0123n0, vmin); |
| 90 |
vout4567n0 = vmaxq_f32(vout4567n0, vmin); |
| 91 |
vout89ABn0 = vmaxq_f32(vout89ABn0, vmin); |
| 92 |
voutCDEFn0 = vmaxq_f32(voutCDEFn0, vmin); |
| 93 |
vout0123n1 = vmaxq_f32(vout0123n1, vmin); |
| 94 |
vout4567n1 = vmaxq_f32(vout4567n1, vmin); |
| 95 |
vout89ABn1 = vmaxq_f32(vout89ABn1, vmin); |
| 96 |
voutCDEFn1 = vmaxq_f32(voutCDEFn1, vmin); |
| 97 |
|
| 98 |
vst1q_f32(output + 0, vout0123n0); |
| 99 |
vst1q_f32(output + 4, vout4567n0); |
| 100 |
vst1q_f32(output + 8, vout89ABn0); |
| 101 |
vst1q_f32(output + 12, voutCDEFn0); |
| 102 |
output = (float*) ((uintptr_t) output + output_stride); |
| 103 |
vst1q_f32(output + 0, vout0123n1); |
| 104 |
vst1q_f32(output + 4, vout4567n1); |
| 105 |
vst1q_f32(output + 8, vout89ABn1); |
| 106 |
vst1q_f32(output + 12, voutCDEFn1); |
| 107 |
output = (float*) ((uintptr_t) output + output_stride); |
| 108 |
n -= 2; |
| 109 |
} |
| 110 |
|
| 111 |
|
| 112 |
if XNN_UNLIKELY(n != 0) { |
| 113 |
do { |
| 114 |
uint32_t nnz = *nnzmap++; |
| 115 |
float32x4_t vacc0123 = vld1q_dup_f32(w); w += 1; |
| 116 |
float32x4_t vacc4567 = vacc0123; |
| 117 |
float32x4_t vacc89AB = vacc0123; |
| 118 |
float32x4_t vaccCDEF = vacc0123; |
| 119 |
if XNN_LIKELY(nnz != 0) { |
| 120 |
do { |
| 121 |
const intptr_t diff = *dmap++; |
| 122 |
const float32x4_t vi0123 = vld1q_f32(input); |
| 123 |
const float32x4_t vi4567 = vld1q_f32(input + 4); |
| 124 |
const float32x4_t vi89AB = vld1q_f32(input + 8); |
| 125 |
const float32x4_t viCDEF = vld1q_f32(input + 12); |
| 126 |
input = (const float*) ((uintptr_t) input + (uintptr_t) diff); |
| 127 |
xnn_prefetch_to_l1(input + 16); |
| 128 |
const float32x4_t vw = vld1q_dup_f32(w); w += 1; |
| 129 |
xnn_prefetch_to_l1(w + 32); |
| 130 |
vacc0123 = vfmaq_f32(vacc0123, vi0123, vw); |
| 131 |
vacc4567 = vfmaq_f32(vacc4567, vi4567, vw); |
| 132 |
vacc89AB = vfmaq_f32(vacc89AB, vi89AB, vw); |
| 133 |
vaccCDEF = vfmaq_f32(vaccCDEF, viCDEF, vw); |
| 134 |
} while (--nnz != 0); |
| 135 |
} |
| 136 |
float32x4_t vout0123 = vminq_f32(vacc0123, vmax); |
| 137 |
float32x4_t vout4567 = vminq_f32(vacc4567, vmax); |
| 138 |
float32x4_t vout89AB = vminq_f32(vacc89AB, vmax); |
| 139 |
float32x4_t voutCDEF = vminq_f32(vaccCDEF, vmax); |
| 140 |
|
| 141 |
vout0123 = vmaxq_f32(vout0123, vmin); |
| 142 |
vout4567 = vmaxq_f32(vout4567, vmin); |
| 143 |
vout89AB = vmaxq_f32(vout89AB, vmin); |
| 144 |
voutCDEF = vmaxq_f32(voutCDEF, vmin); |
| 145 |
|
| 146 |
vst1q_f32(output + 0, vout0123); |
| 147 |
vst1q_f32(output + 4, vout4567); |
| 148 |
vst1q_f32(output + 8, vout89AB); |
| 149 |
vst1q_f32(output + 12, voutCDEF); |
| 150 |
output = (float*) ((uintptr_t) output + output_stride); |
| 151 |
n -= 1; |
| 152 |
} while (n != 0); |
| 153 |
} |
| 154 |
output = (float*) ((uintptr_t) output - output_decrement); |
| 155 |
input += 16; |
| 156 |
mc -= 16 * sizeof(float); |
| 157 |
} |
| 158 |
if XNN_UNLIKELY(mc != 0) { |
| 159 |
output_decrement += 8 * sizeof(float); |
| 160 |
if (mc & (8 * sizeof(float))) { |
| 161 |
const float* w = weights; |
| 162 |
const int32_t* dmap = widx_dmap; |
| 163 |
const uint32_t* nnzmap = nidx_nnzmap; |
| 164 |
size_t n = nc; |
| 165 |
while (n >= 2) { |
| 166 |
uint32_t nnz = *nnzmap++; |
| 167 |
float32x4_t vacc0123n0 = vld1q_dup_f32(w); w += 1; |
| 168 |
float32x4_t vacc4567n0 = vacc0123n0; |
| 169 |
float32x4_t vacc0123n1 = vld1q_dup_f32(w); w += 1; |
| 170 |
float32x4_t vacc4567n1 = vacc0123n1; |
| 171 |
if XNN_LIKELY(nnz != 0) { |
| 172 |
do { |
| 173 |
const intptr_t diff = *dmap++; |
| 174 |
const float32x4_t vi0123 = vld1q_f32(input); |
| 175 |
const float32x4_t vi4567 = vld1q_f32(input + 4); |
| 176 |
input = (const float*) ((uintptr_t) input + (uintptr_t) diff); |
| 177 |
const float32x2_t vw = vld1_f32(w); w += 2; |
| 178 |
|
| 179 |
vacc0123n0 = vfmaq_lane_f32(vacc0123n0, vi0123, vw, 0); |
| 180 |
vacc4567n0 = vfmaq_lane_f32(vacc4567n0, vi4567, vw, 0); |
| 181 |
vacc0123n1 = vfmaq_lane_f32(vacc0123n1, vi0123, vw, 1); |
| 182 |
vacc4567n1 = vfmaq_lane_f32(vacc4567n1, vi4567, vw, 1); |
| 183 |
} while (--nnz != 0); |
| 184 |
} |
| 185 |
float32x4_t vout0123n0 = vminq_f32(vacc0123n0, vmax); |
| 186 |
float32x4_t vout4567n0 = vminq_f32(vacc4567n0, vmax); |
| 187 |
float32x4_t vout0123n1 = vminq_f32(vacc0123n1, vmax); |
| 188 |
float32x4_t vout4567n1 = vminq_f32(vacc4567n1, vmax); |
| 189 |
|
| 190 |
vout0123n0 = vmaxq_f32(vout0123n0, vmin); |
| 191 |
vout4567n0 = vmaxq_f32(vout4567n0, vmin); |
| 192 |
vout0123n1 = vmaxq_f32(vout0123n1, vmin); |
| 193 |
vout4567n1 = vmaxq_f32(vout4567n1, vmin); |
| 194 |
|
| 195 |
vst1q_f32(output + 0, vout0123n0); |
| 196 |
vst1q_f32(output + 4, vout4567n0); |
| 197 |
output = (float*) ((uintptr_t) output + output_stride); |
| 198 |
vst1q_f32(output + 0, vout0123n1); |
| 199 |
vst1q_f32(output + 4, vout4567n1); |
| 200 |
output = (float*) ((uintptr_t) output + output_stride); |
| 201 |
n -= 2; |
| 202 |
} |
| 203 |
|
| 204 |
|
| 205 |
if XNN_UNLIKELY(n != 0) { |
| 206 |
do { |
| 207 |
uint32_t nnz = *nnzmap++; |
| 208 |
float32x4_t vacc0123 = vld1q_dup_f32(w); w += 1; |
| 209 |
float32x4_t vacc4567 = vacc0123; |
| 210 |
if XNN_LIKELY(nnz != 0) { |
| 211 |
do { |
| 212 |
const intptr_t diff = *dmap++; |
| 213 |
const float32x4_t vi0123 = vld1q_f32(input); |
| 214 |
const float32x4_t vi4567 = vld1q_f32(input + 4); |
| 215 |
input = (const float*) ((uintptr_t) input + (uintptr_t) diff); |
| 216 |
const float32x4_t vw = vld1q_dup_f32(w); w += 1; |
| 217 |
vacc0123 = vfmaq_f32(vacc0123, vi0123, vw); |
| 218 |
vacc4567 = vfmaq_f32(vacc4567, vi4567, vw); |
| 219 |
} while (--nnz != 0); |
| 220 |
} |
| 221 |
float32x4_t vout0123 = vminq_f32(vacc0123, vmax); |
| 222 |
float32x4_t vout4567 = vminq_f32(vacc4567, vmax); |
| 223 |
|
| 224 |
vout0123 = vmaxq_f32(vout0123, vmin); |
| 225 |
vout4567 = vmaxq_f32(vout4567, vmin); |
| 226 |
|
| 227 |
vst1q_f32(output + 0, vout0123); |
| 228 |
vst1q_f32(output + 4, vout4567); |
| 229 |
output = (float*) ((uintptr_t) output + output_stride); |
| 230 |
n -= 1; |
| 231 |
} while (n != 0); |
| 232 |
} |
| 233 |
output = (float*) ((uintptr_t) output - output_decrement); |
| 234 |
input += 8; |
| 235 |
} |
| 236 |
output_decrement += 4 * sizeof(float); |
| 237 |
if (mc & (4 * sizeof(float))) { |
| 238 |
const float* w = weights; |
| 239 |
const int32_t* dmap = widx_dmap; |
| 240 |
const uint32_t* nnzmap = nidx_nnzmap; |
| 241 |
size_t n = nc; |
| 242 |
while (n >= 2) { |
| 243 |
uint32_t nnz = *nnzmap++; |
| 244 |
float32x4_t vacc0123n0 = vld1q_dup_f32(w); w += 1; |
| 245 |
float32x4_t vacc0123n1 = vld1q_dup_f32(w); w += 1; |
| 246 |
if XNN_LIKELY(nnz != 0) { |
| 247 |
do { |
| 248 |
const intptr_t diff = *dmap++; |
| 249 |
const float32x4_t vi0123 = vld1q_f32(input); |
| 250 |
input = (const float*) ((uintptr_t) input + (uintptr_t) diff); |
| 251 |
const float32x2_t vw = vld1_f32(w); w += 2; |
| 252 |
|
| 253 |
vacc0123n0 = vfmaq_lane_f32(vacc0123n0, vi0123, vw, 0); |
| 254 |
vacc0123n1 = vfmaq_lane_f32(vacc0123n1, vi0123, vw, 1); |
| 255 |
} while (--nnz != 0); |
| 256 |
} |
| 257 |
float32x4_t vout0123n0 = vminq_f32(vacc0123n0, vmax); |
| 258 |
float32x4_t vout0123n1 = vminq_f32(vacc0123n1, vmax); |
| 259 |
|
| 260 |
vout0123n0 = vmaxq_f32(vout0123n0, vmin); |
| 261 |
vout0123n1 = vmaxq_f32(vout0123n1, vmin); |
| 262 |
|
| 263 |
vst1q_f32(output + 0, vout0123n0); |
| 264 |
output = (float*) ((uintptr_t) output + output_stride); |
| 265 |
vst1q_f32(output + 0, vout0123n1); |
| 266 |
output = (float*) ((uintptr_t) output + output_stride); |
| 267 |
n -= 2; |
| 268 |
} |
| 269 |
|
| 270 |
|
| 271 |
if XNN_UNLIKELY(n != 0) { |
| 272 |
do { |
| 273 |
uint32_t nnz = *nnzmap++; |
| 274 |
float32x4_t vacc0123 = vld1q_dup_f32(w); w += 1; |
| 275 |
if XNN_LIKELY(nnz != 0) { |
| 276 |
do { |
| 277 |
const intptr_t diff = *dmap++; |
| 278 |
const float32x4_t vi0123 = vld1q_f32(input); |
| 279 |
input = (const float*) ((uintptr_t) input + (uintptr_t) diff); |
| 280 |
const float32x4_t vw = vld1q_dup_f32(w); w += 1; |
| 281 |
vacc0123 = vfmaq_f32(vacc0123, vi0123, vw); |
| 282 |
} while (--nnz != 0); |
| 283 |
} |
| 284 |
float32x4_t vout0123 = vminq_f32(vacc0123, vmax); |
| 285 |
|
| 286 |
vout0123 = vmaxq_f32(vout0123, vmin); |
| 287 |
|
| 288 |
vst1q_f32(output + 0, vout0123); |
| 289 |
output = (float*) ((uintptr_t) output + output_stride); |
| 290 |
n -= 1; |
| 291 |
} while (n != 0); |
| 292 |
} |
| 293 |
output = (float*) ((uintptr_t) output - output_decrement); |
| 294 |
input += 4; |
| 295 |
} |
| 296 |
output_decrement += 2 * sizeof(float); |
| 297 |
if (mc & (2 * sizeof(float))) { |
| 298 |
const float* w = weights; |
| 299 |
const int32_t* dmap = widx_dmap; |
| 300 |
const uint32_t* nnzmap = nidx_nnzmap; |
| 301 |
size_t n = nc; |
| 302 |
while (n >= 2) { |
| 303 |
uint32_t nnz = *nnzmap++; |
| 304 |
float32x2_t vacc01n0 = vld1_dup_f32(w); w += 1; |
| 305 |
float32x2_t vacc01n1 = vld1_dup_f32(w); w += 1; |
| 306 |
if XNN_LIKELY(nnz != 0) { |
| 307 |
do { |
| 308 |
const intptr_t diff = *dmap++; |
| 309 |
const float32x2_t vi01 = vld1_f32(input); |
| 310 |
input = (const float*) ((uintptr_t) input + (uintptr_t) diff); |
| 311 |
const float32x2_t vw = vld1_f32(w); w += 2; |
| 312 |
|
| 313 |
vacc01n0 = vfma_lane_f32(vacc01n0, vi01, vw, 0); |
| 314 |
vacc01n1 = vfma_lane_f32(vacc01n1, vi01, vw, 1); |
| 315 |
} while (--nnz != 0); |
| 316 |
} |
| 317 |
float32x2_t vout01n0 = vmin_f32(vacc01n0, vget_low_f32(vmax)); |
| 318 |
float32x2_t vout01n1 = vmin_f32(vacc01n1, vget_low_f32(vmax)); |
| 319 |
|
| 320 |
vout01n0 = vmax_f32(vout01n0, vget_low_f32(vmin)); |
| 321 |
vout01n1 = vmax_f32(vout01n1, vget_low_f32(vmin)); |
| 322 |
|
| 323 |
vst1_f32(output + 0, vout01n0); |
| 324 |
output = (float*) ((uintptr_t) output + output_stride); |
| 325 |
vst1_f32(output + 0, vout01n1); |
| 326 |
output = (float*) ((uintptr_t) output + output_stride); |
| 327 |
n -= 2; |
| 328 |
} |
| 329 |
|
| 330 |
|
| 331 |
if XNN_UNLIKELY(n != 0) { |
| 332 |
do { |
| 333 |
uint32_t nnz = *nnzmap++; |
| 334 |
float32x2_t vacc01 = vld1_dup_f32(w); w += 1; |
| 335 |
if XNN_LIKELY(nnz != 0) { |
| 336 |
do { |
| 337 |
const intptr_t diff = *dmap++; |
| 338 |
const float32x2_t vi01 = vld1_f32(input); |
| 339 |
input = (const float*) ((uintptr_t) input + (uintptr_t) diff); |
| 340 |
const float32x2_t vw = vld1_dup_f32(w); w += 1; |
| 341 |
vacc01 = vfma_f32(vacc01, vi01, vw); |
| 342 |
} while (--nnz != 0); |
| 343 |
} |
| 344 |
float32x2_t vout01 = vmin_f32(vacc01, vget_low_f32(vmax)); |
| 345 |
vout01 = vmax_f32(vout01, vget_low_f32(vmin)); |
| 346 |
|
| 347 |
vst1_f32(output, vout01); |
| 348 |
output = (float*) ((uintptr_t) output + output_stride); |
| 349 |
n -= 1; |
| 350 |
} while (n != 0); |
| 351 |
} |
| 352 |
output = (float*) ((uintptr_t) output - output_decrement); |
| 353 |
input += 2; |
| 354 |
} |
| 355 |
output_decrement += 1 * sizeof(float); |
| 356 |
if (mc & (1 * sizeof(float))) { |
| 357 |
const float* w = weights; |
| 358 |
const int32_t* dmap = widx_dmap; |
| 359 |
const uint32_t* nnzmap = nidx_nnzmap; |
| 360 |
size_t n = nc; |
| 361 |
while (n >= 2) { |
| 362 |
uint32_t nnz = *nnzmap++; |
| 363 |
float32x2_t vacc0n0 = vld1_dup_f32(w); w += 1; |
| 364 |
float32x2_t vacc0n1 = vld1_dup_f32(w); w += 1; |
| 365 |
if XNN_LIKELY(nnz != 0) { |
| 366 |
do { |
| 367 |
const intptr_t diff = *dmap++; |
| 368 |
const float32x2_t vi0 = vld1_dup_f32(input); |
| 369 |
input = (const float*) ((uintptr_t) input + (uintptr_t) diff); |
| 370 |
const float32x2_t vw = vld1_f32(w); w += 2; |
| 371 |
|
| 372 |
vacc0n0 = vfma_lane_f32(vacc0n0, vi0, vw, 0); |
| 373 |
vacc0n1 = vfma_lane_f32(vacc0n1, vi0, vw, 1); |
| 374 |
} while (--nnz != 0); |
| 375 |
} |
| 376 |
float32x2_t vout0n0 = vmin_f32(vacc0n0, vget_low_f32(vmax)); |
| 377 |
float32x2_t vout0n1 = vmin_f32(vacc0n1, vget_low_f32(vmax)); |
| 378 |
|
| 379 |
vout0n0 = vmax_f32(vout0n0, vget_low_f32(vmin)); |
| 380 |
vout0n1 = vmax_f32(vout0n1, vget_low_f32(vmin)); |
| 381 |
|
| 382 |
vst1_lane_f32(output + 0, vout0n0, 0); |
| 383 |
output = (float*) ((uintptr_t) output + output_stride); |
| 384 |
vst1_lane_f32(output + 0, vout0n1, 0); |
| 385 |
output = (float*) ((uintptr_t) output + output_stride); |
| 386 |
n -= 2; |
| 387 |
} |
| 388 |
|
| 389 |
|
| 390 |
if XNN_UNLIKELY(n != 0) { |
| 391 |
do { |
| 392 |
uint32_t nnz = *nnzmap++; |
| 393 |
float32x2_t vacc0 = vld1_dup_f32(w); w += 1; |
| 394 |
if XNN_LIKELY(nnz != 0) { |
| 395 |
do { |
| 396 |
const intptr_t diff = *dmap++; |
| 397 |
const float32x2_t vi0 = vld1_dup_f32(input); |
| 398 |
input = (const float*) ((uintptr_t) input + (uintptr_t) diff); |
| 399 |
const float32x2_t vw = vld1_dup_f32(w); w += 1; |
| 400 |
vacc0 = vfma_f32(vacc0, vi0, vw); |
| 401 |
} while (--nnz != 0); |
| 402 |
} |
| 403 |
float32x2_t vout0 = vmin_f32(vacc0, vget_low_f32(vmax)); |
| 404 |
vout0 = vmax_f32(vout0, vget_low_f32(vmin)); |
| 405 |
|
| 406 |
vst1_lane_f32(output, vout0, 1); |
| 407 |
output = (float*) ((uintptr_t) output + output_stride); |
| 408 |
n -= 1; |
| 409 |
} while (n != 0); |
| 410 |
} |
| 411 |
output = (float*) ((uintptr_t) output - output_decrement); |
| 412 |
input += 1; |
| 413 |
} |
| 414 |
} |
| 415 |
} |