3131#include "cpu_support.h"
3232#include "oac_types.h"
3333
34- void compute_linear_dotprod (const LinearLayer * linear , float * out , const float * in );
35- void compute_linear_neon (const LinearLayer * linear , float * out , const float * in );
34+ void oaci_compute_linear_dotprod (const LinearLayer * linear , float * out , const float * in );
35+ void oaci_compute_linear_neon (const LinearLayer * linear , float * out , const float * in );
3636
37- void compute_activation_neon (float * output , const float * input , int N , int activation );
38- void compute_activation_dotprod (float * output , const float * input , int N , int activation );
37+ void oaci_compute_activation_neon (float * output , const float * input , int N , int activation );
38+ void oaci_compute_activation_dotprod (float * output , const float * input , int N , int activation );
3939
40- void compute_conv2d_neon (const Conv2dLayer * conv , float * out , float * mem , const float * in , int height , int hstride ,
40+ void oaci_compute_conv2d_neon (const Conv2dLayer * conv , float * out , float * mem , const float * in , int height , int hstride ,
4141 int activation );
42- void compute_conv2d_dotprod (const Conv2dLayer * conv , float * out , float * mem , const float * in , int height , int hstride ,
42+ void oaci_compute_conv2d_dotprod (const Conv2dLayer * conv , float * out , float * mem , const float * in , int height , int hstride ,
4343 int activation );
4444
4545#if defined(OAC_ARM_PRESUME_DOTPROD )
4646
4747# define OVERRIDE_COMPUTE_LINEAR
48- # define compute_linear (linear , out , in , arch ) ((void)(arch), compute_linear_dotprod (linear, out, in))
48+ # define oaci_compute_linear (linear , out , in , arch ) ((void)(arch), oaci_compute_linear_dotprod (linear, out, in))
4949
5050#elif defined(OAC_ARM_PRESUME_NEON_INTR ) && !defined(OAC_ARM_MAY_HAVE_DOTPROD )
5151
5252# define OVERRIDE_COMPUTE_LINEAR
53- # define compute_linear (linear , out , in , arch ) ((void)(arch), compute_linear_neon (linear, out, in))
53+ # define oaci_compute_linear (linear , out , in , arch ) ((void)(arch), oaci_compute_linear_neon (linear, out, in))
5454
5555#elif defined(OAC_HAVE_RTCD ) && (defined(OAC_ARM_MAY_HAVE_DOTPROD ) || defined(OAC_ARM_MAY_HAVE_NEON ))
5656
57- extern void (* const DNN_COMPUTE_LINEAR_IMPL [OAC_ARCHMASK + 1 ])(
57+ extern void (* const oaci_DNN_COMPUTE_LINEAR_IMPL [OAC_ARCHMASK + 1 ])(
5858 const LinearLayer * linear ,
5959 float * out ,
6060 const float * in
6161 );
6262# define OVERRIDE_COMPUTE_LINEAR
63- # define compute_linear (linear , out , in , arch ) \
64- ((*DNN_COMPUTE_LINEAR_IMPL [(arch)&OAC_ARCHMASK])(linear, out, in))
63+ # define oaci_compute_linear (linear , out , in , arch ) \
64+ ((*oaci_DNN_COMPUTE_LINEAR_IMPL [(arch)&OAC_ARCHMASK])(linear, out, in))
6565
6666
6767#endif
6868
6969#if defined(OAC_ARM_PRESUME_NEON )
7070
7171# define OVERRIDE_COMPUTE_ACTIVATION
72- # define compute_activation (output , input , N , activation , arch ) ((void)(arch), \
73- compute_activation_neon (output, input, N, activation))
72+ # define oaci_compute_activation (output , input , N , activation , arch ) ((void)(arch), \
73+ oaci_compute_activation_neon (output, input, N, activation))
7474# define OVERRIDE_COMPUTE_CONV2D
75- # define compute_conv2d (conv , out , mem , in , height , hstride , activation , arch ) ((void)(arch), \
76- compute_conv2d_neon (conv, out, mem, in, \
75+ # define oaci_compute_conv2d (conv , out , mem , in , height , hstride , activation , arch ) ((void)(arch), \
76+ oaci_compute_conv2d_neon (conv, out, mem, in, \
7777 height, hstride, activation))
7878
7979#elif defined(OAC_HAVE_RTCD ) && (defined(OAC_ARM_MAY_HAVE_DOTPROD ) || defined(OAC_ARM_MAY_HAVE_NEON ))
8080
81- extern void (* const DNN_COMPUTE_ACTIVATION_IMPL [OAC_ARCHMASK + 1 ])(
81+ extern void (* const oaci_DNN_COMPUTE_ACTIVATION_IMPL [OAC_ARCHMASK + 1 ])(
8282 float * output ,
8383 const float * input ,
8484 int N ,
8585 int activation
8686 );
8787# define OVERRIDE_COMPUTE_ACTIVATION
88- # define compute_activation (output , input , N , activation , arch ) \
89- ((*DNN_COMPUTE_ACTIVATION_IMPL [(arch)&OAC_ARCHMASK])(output, input, N, activation))
88+ # define oaci_compute_activation (output , input , N , activation , arch ) \
89+ ((*oaci_DNN_COMPUTE_ACTIVATION_IMPL [(arch)&OAC_ARCHMASK])(output, input, N, activation))
9090
9191
92- extern void (* const DNN_COMPUTE_CONV2D_IMPL [OAC_ARCHMASK + 1 ])(
92+ extern void (* const oaci_DNN_COMPUTE_CONV2D_IMPL [OAC_ARCHMASK + 1 ])(
9393 const Conv2dLayer * conv ,
9494 float * out ,
9595 float * mem ,
@@ -99,8 +99,8 @@ extern void (*const DNN_COMPUTE_CONV2D_IMPL[OAC_ARCHMASK + 1])(
9999 int activation
100100 );
101101# define OVERRIDE_COMPUTE_CONV2D
102- # define compute_conv2d (conv , out , mem , in , height , hstride , activation , arch ) \
103- ((*DNN_COMPUTE_CONV2D_IMPL [(arch)&OAC_ARCHMASK])(conv, out, mem, in, height, hstride, activation))
102+ # define oaci_compute_conv2d (conv , out , mem , in , height , hstride , activation , arch ) \
103+ ((*oaci_DNN_COMPUTE_CONV2D_IMPL [(arch)&OAC_ARCHMASK])(conv, out, mem, in, height, hstride, activation))
104104
105105
106106#endif
0 commit comments