1 // Copyright 2019 Google LLC 2 // 3 // This source code is licensed under the BSD-style license found in the 4 // LICENSE file in the root directory of this source tree. 5 6 #pragma once 7 8 #include <stddef.h> 9 #include <stdint.h> 10 11 #include <xnnpack/common.h> 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 18 #define DECLARE_PAD_UKERNEL_FUNCTION(fn_name) \ 19 XNN_INTERNAL void fn_name( \ 20 size_t rows, \ 21 size_t channels, \ 22 size_t pre_padding, \ 23 size_t post_padding, \ 24 const void* input, \ 25 size_t input_stride, \ 26 void* output, \ 27 size_t output_stride, \ 28 const uint32_t fill_pattern); 29 30 DECLARE_PAD_UKERNEL_FUNCTION(xnn_xx_pad_ukernel__neon) 31 DECLARE_PAD_UKERNEL_FUNCTION(xnn_xx_pad_ukernel__scalar) 32 DECLARE_PAD_UKERNEL_FUNCTION(xnn_xx_pad_ukernel__sse2) 33 DECLARE_PAD_UKERNEL_FUNCTION(xnn_xx_pad_ukernel__wasmsimd) 34 35 36 #ifdef __cplusplus 37 } // extern "C" 38 #endif 39