blob: 8f34a0b27048316fb9816cd13cf1dd6a0c5551c2 [file] [log] [blame]
XNNPACK Teamb455b122019-09-27 18:10:33 -07001// 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
18extern "C" {
19#endif
20
21
22#define DECLARE_F32_VADD_UKERNEL_FUNCTION(fn_name) \
23 XNN_INTERNAL void fn_name( \
24 size_t n, \
25 const float* a, \
26 const float* b, \
27 float* y, \
28 const union xnn_f32_output_params* params);
29
30DECLARE_F32_VADD_UKERNEL_FUNCTION(xnn_f32_vadd_ukernel__neon)
31DECLARE_F32_VADD_UKERNEL_FUNCTION(xnn_f32_vadd_ukernel__psimd)
32DECLARE_F32_VADD_UKERNEL_FUNCTION(xnn_f32_vadd_ukernel__scalar)
33DECLARE_F32_VADD_UKERNEL_FUNCTION(xnn_f32_vadd_ukernel__sse)
34
35
36#define DECLARE_Q8_VADD_UKERNEL_FUNCTION(fn_name) \
37 XNN_INTERNAL void fn_name( \
38 size_t n, \
39 const uint8_t* a, \
40 const uint8_t* b, \
41 uint8_t* y, \
42 const union xnn_q8_add_params* params);
43
44DECLARE_Q8_VADD_UKERNEL_FUNCTION(xnn_q8_vadd_ukernel__neon)
45DECLARE_Q8_VADD_UKERNEL_FUNCTION(xnn_q8_vadd_ukernel__scalar)
46DECLARE_Q8_VADD_UKERNEL_FUNCTION(xnn_q8_vadd_ukernel__sse2)
47
48
49#ifdef __cplusplus
Marat Dukhan80fc9322019-09-29 21:06:36 -070050} // extern "C"
XNNPACK Teamb455b122019-09-27 18:10:33 -070051#endif