XNNPACK Team | b455b12 | 2019-09-27 18:10:33 -0700 | [diff] [blame] | 1 | // Copyright (c) Facebook, Inc. and its affiliates. |
| 2 | // All rights reserved. |
| 3 | // |
| 4 | // Copyright 2019 Google LLC |
| 5 | // |
| 6 | // This source code is licensed under the BSD-style license found in the |
| 7 | // LICENSE file in the root directory of this source tree. |
| 8 | |
| 9 | #pragma once |
| 10 | |
| 11 | #include <stddef.h> |
| 12 | #include <stdint.h> |
| 13 | |
| 14 | #include <xnnpack/params.h> |
| 15 | #include <xnnpack/common.h> |
| 16 | |
| 17 | #ifdef __cplusplus |
| 18 | extern "C" { |
| 19 | #endif |
| 20 | |
| 21 | |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 22 | #define DECLARE_Q8_VADD_MINMAX_UKERNEL_FUNCTION(fn_name) \ |
| 23 | XNN_INTERNAL void fn_name( \ |
| 24 | size_t n, \ |
| 25 | const uint8_t* a, \ |
| 26 | const uint8_t* b, \ |
| 27 | uint8_t* y, \ |
XNNPACK Team | b455b12 | 2019-09-27 18:10:33 -0700 | [diff] [blame] | 28 | const union xnn_q8_add_params* params); |
| 29 | |
Marat Dukhan | 9993660 | 2020-04-11 16:47:01 -0700 | [diff] [blame] | 30 | DECLARE_Q8_VADD_MINMAX_UKERNEL_FUNCTION(xnn_q8_vadd_minmax_ukernel__neon) |
| 31 | DECLARE_Q8_VADD_MINMAX_UKERNEL_FUNCTION(xnn_q8_vadd_minmax_ukernel__scalar) |
| 32 | DECLARE_Q8_VADD_MINMAX_UKERNEL_FUNCTION(xnn_q8_vadd_minmax_ukernel__sse2) |
XNNPACK Team | b455b12 | 2019-09-27 18:10:33 -0700 | [diff] [blame] | 33 | |
| 34 | |
| 35 | #ifdef __cplusplus |
Marat Dukhan | 80fc932 | 2019-09-29 21:06:36 -0700 | [diff] [blame] | 36 | } // extern "C" |
XNNPACK Team | b455b12 | 2019-09-27 18:10:33 -0700 | [diff] [blame] | 37 | #endif |