Skip to content

Commit

Permalink
Remove duplicate prototypes in microparams-init.h
Browse files Browse the repository at this point in the history
- remove duplicate prototypes for xnn_init_qu8_hswish_scalar_params
- add white space in intrinsics-polyfill,h after casting

PiperOrigin-RevId: 665489691
  • Loading branch information
fbarchard authored and xnnpack-bot committed Aug 20, 2024
1 parent 5f7b647 commit 87ee0b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion src/xnnpack/intrinsics-polyfill.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "xnnpack/unaligned.h"

static XNN_INTRINSIC uint32_t broadcast2x_uint16(uint16_t x) {
return (uint32_t)x | ((uint32_t)x) << 16;
return (uint32_t) x | ((uint32_t) x) << 16;
}

#if defined(__SSE2__)
Expand Down
6 changes: 0 additions & 6 deletions src/xnnpack/microparams-init.h
Original file line number Diff line number Diff line change
Expand Up @@ -512,15 +512,9 @@ DECLARE_INIT_QS8_HSWISH_PARAMS_FUNCTION(xnn_init_qs8_hswish_scalar_params)
float output_scale);

DECLARE_INIT_QU8_HSWISH_PARAMS_FUNCTION(xnn_init_qu8_hswish_scalar_params)
#if XNN_ARCH_ARM || XNN_ARCH_ARM64
DECLARE_INIT_QU8_HSWISH_PARAMS_FUNCTION(xnn_init_qu8_hswish_scalar_params)
#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64
#if XNN_ARCH_X86 || XNN_ARCH_X86_64
DECLARE_INIT_QU8_HSWISH_PARAMS_FUNCTION(xnn_init_qu8_hswish_sse2_params)
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64
#if XNN_ARCH_WASMSIMD || XNN_ARCH_WASMRELAXEDSIMD
DECLARE_INIT_QU8_HSWISH_PARAMS_FUNCTION(xnn_init_qu8_hswish_scalar_params)
#endif // XNN_ARCH_WASMSIMD || XNN_ARCH_WASMRELAXEDSIMD


#define DECLARE_INIT_F16_TANH_PARAMS_FUNCTION(fn_name) \
Expand Down

0 comments on commit 87ee0b4

Please sign in to comment.