Skip to content

Commit

Permalink
xnn_table_exp2minus_k_over_16 extern as uint32_t instead of int32_t
Browse files Browse the repository at this point in the history
- table is really floats but declared as uint32_t
- change extern to match usage

PiperOrigin-RevId: 661630768
  • Loading branch information
fbarchard authored and xnnpack-bot committed Aug 12, 2024
1 parent 9166a00 commit dc04e76
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 24 deletions.
9 changes: 3 additions & 6 deletions src/amalgam/gen/avx256vnnigfni.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@
// Auto-generated file. Do not edit!
// Generator: tools/update-microkernels.py -a

#include <assert.h>


#include <immintrin.h>

#include "xnnpack/gemm.h"
#include "xnnpack/intrinsics-polyfill.h"
#include "xnnpack/math.h"
#include "xnnpack/prefetch.h"
#include "xnnpack/unaligned.h"



2 changes: 1 addition & 1 deletion src/amalgam/gen/neon.c
Original file line number Diff line number Diff line change
Expand Up @@ -9591,7 +9591,7 @@ void xnn_f32_vcmul_ukernel__neon_u8(
}
}

extern XNN_INTERNAL const int32_t xnn_table_exp2minus_k_over_16[16];
extern XNN_INTERNAL const uint32_t xnn_table_exp2minus_k_over_16[16];

void xnn_f32_velu_ukernel__neon_rr2_lut16_p3_u8(
size_t batch,
Expand Down
2 changes: 1 addition & 1 deletion src/amalgam/gen/neonfma.c
Original file line number Diff line number Diff line change
Expand Up @@ -4275,7 +4275,7 @@ void xnn_f32_spmm_minmax_ukernel_32x1__neonfma_pipelined(
}
}

extern XNN_INTERNAL const int32_t xnn_table_exp2minus_k_over_16[16];
extern XNN_INTERNAL const uint32_t xnn_table_exp2minus_k_over_16[16];

void xnn_f32_velu_ukernel__neonfma_rr1_lut16_p3_u16(
size_t batch,
Expand Down
10 changes: 7 additions & 3 deletions src/amalgam/gen/rvvfp16arith.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
// Copyright 2024 Google LLC
// Copyright 2021 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
//
// Auto-generated file. Do not edit!
// Generator: tools/update-microkernels.py -a


#include <assert.h>

#include <riscv_vector.h>

#include "xnnpack/vbinary.h"



2 changes: 1 addition & 1 deletion src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u12.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "xnnpack/common.h"


extern XNN_INTERNAL const int32_t xnn_table_exp2minus_k_over_16[16];
extern XNN_INTERNAL const uint32_t xnn_table_exp2minus_k_over_16[16];

void xnn_f32_velu_ukernel__neon_rr2_lut16_p3_u12(
size_t batch,
Expand Down
2 changes: 1 addition & 1 deletion src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u16.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "xnnpack/common.h"


extern XNN_INTERNAL const int32_t xnn_table_exp2minus_k_over_16[16];
extern XNN_INTERNAL const uint32_t xnn_table_exp2minus_k_over_16[16];

void xnn_f32_velu_ukernel__neon_rr2_lut16_p3_u16(
size_t batch,
Expand Down
2 changes: 1 addition & 1 deletion src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u20.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "xnnpack/common.h"


extern XNN_INTERNAL const int32_t xnn_table_exp2minus_k_over_16[16];
extern XNN_INTERNAL const uint32_t xnn_table_exp2minus_k_over_16[16];

void xnn_f32_velu_ukernel__neon_rr2_lut16_p3_u20(
size_t batch,
Expand Down
2 changes: 1 addition & 1 deletion src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u24.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "xnnpack/common.h"


extern XNN_INTERNAL const int32_t xnn_table_exp2minus_k_over_16[16];
extern XNN_INTERNAL const uint32_t xnn_table_exp2minus_k_over_16[16];

void xnn_f32_velu_ukernel__neon_rr2_lut16_p3_u24(
size_t batch,
Expand Down
2 changes: 1 addition & 1 deletion src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u4.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "xnnpack/common.h"


extern XNN_INTERNAL const int32_t xnn_table_exp2minus_k_over_16[16];
extern XNN_INTERNAL const uint32_t xnn_table_exp2minus_k_over_16[16];

void xnn_f32_velu_ukernel__neon_rr2_lut16_p3_u4(
size_t batch,
Expand Down
2 changes: 1 addition & 1 deletion src/f32-velu/gen/f32-velu-neon-rr2-lut16-p3-u8.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "xnnpack/common.h"


extern XNN_INTERNAL const int32_t xnn_table_exp2minus_k_over_16[16];
extern XNN_INTERNAL const uint32_t xnn_table_exp2minus_k_over_16[16];

void xnn_f32_velu_ukernel__neon_rr2_lut16_p3_u8(
size_t batch,
Expand Down
2 changes: 1 addition & 1 deletion src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u12.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "xnnpack/common.h"


extern XNN_INTERNAL const int32_t xnn_table_exp2minus_k_over_16[16];
extern XNN_INTERNAL const uint32_t xnn_table_exp2minus_k_over_16[16];

void xnn_f32_velu_ukernel__neonfma_rr1_lut16_p3_u12(
size_t batch,
Expand Down
2 changes: 1 addition & 1 deletion src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u16.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "xnnpack/common.h"


extern XNN_INTERNAL const int32_t xnn_table_exp2minus_k_over_16[16];
extern XNN_INTERNAL const uint32_t xnn_table_exp2minus_k_over_16[16];

void xnn_f32_velu_ukernel__neonfma_rr1_lut16_p3_u16(
size_t batch,
Expand Down
2 changes: 1 addition & 1 deletion src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u20.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "xnnpack/common.h"


extern XNN_INTERNAL const int32_t xnn_table_exp2minus_k_over_16[16];
extern XNN_INTERNAL const uint32_t xnn_table_exp2minus_k_over_16[16];

void xnn_f32_velu_ukernel__neonfma_rr1_lut16_p3_u20(
size_t batch,
Expand Down
2 changes: 1 addition & 1 deletion src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u24.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "xnnpack/common.h"


extern XNN_INTERNAL const int32_t xnn_table_exp2minus_k_over_16[16];
extern XNN_INTERNAL const uint32_t xnn_table_exp2minus_k_over_16[16];

void xnn_f32_velu_ukernel__neonfma_rr1_lut16_p3_u24(
size_t batch,
Expand Down
2 changes: 1 addition & 1 deletion src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u4.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "xnnpack/common.h"


extern XNN_INTERNAL const int32_t xnn_table_exp2minus_k_over_16[16];
extern XNN_INTERNAL const uint32_t xnn_table_exp2minus_k_over_16[16];

void xnn_f32_velu_ukernel__neonfma_rr1_lut16_p3_u4(
size_t batch,
Expand Down
2 changes: 1 addition & 1 deletion src/f32-velu/gen/f32-velu-neonfma-rr1-lut16-p3-u8.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "xnnpack/common.h"


extern XNN_INTERNAL const int32_t xnn_table_exp2minus_k_over_16[16];
extern XNN_INTERNAL const uint32_t xnn_table_exp2minus_k_over_16[16];

void xnn_f32_velu_ukernel__neonfma_rr1_lut16_p3_u8(
size_t batch,
Expand Down
2 changes: 1 addition & 1 deletion src/f32-velu/neon-lut16-p3.c.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $VMULADDQ_F32 = "vfmaq_f32" if FMA else "vmlaq_f32"
#include "xnnpack/common.h"


extern XNN_INTERNAL const int32_t xnn_table_exp2minus_k_over_16[16];
extern XNN_INTERNAL const uint32_t xnn_table_exp2minus_k_over_16[16];

$PARAMS_STRUCT = "neonfma_rr1_lut16_p3" if FMA else "neon_rr2_lut16_p3"
void xnn_f32_velu_ukernel__${"neonfma" if FMA else "neon"}_rr${1 if FMA else 2}_lut16_p3_u${BATCH_TILE}(
Expand Down

0 comments on commit dc04e76

Please sign in to comment.