sw:vec_iree: fix ukernel breakage
Fix ukernel breakage due to upstream change
https://github.com/iree-org/iree/pull/11987.
Change-Id: Ife0de110e181a38c81bc47e655fd6eaa7b774837
diff --git a/vmvx_ukernel/elementwise_impl.c.inc b/vmvx_ukernel/elementwise_impl.c.inc
index baf1efb..4de26b0 100644
--- a/vmvx_ukernel/elementwise_impl.c.inc
+++ b/vmvx_ukernel/elementwise_impl.c.inc
@@ -73,24 +73,6 @@
#define ASSI32(ptr) *((iree_uk_int32_t*)ptr)
//===----------------------------------------------------------------------===//
-// Math helper functions (extracted from base/internal/math.h and adapted
-// to be able to be used standalone).
-//===----------------------------------------------------------------------===//
-static inline int iree_uk_count_leading_zeros_u32(const iree_uk_uint32_t n) {
-#if defined(__GNUC__) || defined(__clang__)
- // Handle 0 as a special case because __builtin_clz(0) is undefined.
- if (n == 0) return 32;
- // Use __builtin_clz, which uses the following instructions:
- // x86: bsr
- // ARM64: clz
- // PPC: cntlzd
- return (int)__builtin_clz(n);
-#else
-#error No clz for this arch.
-#endif // GCC / CLANG
-}
-
-//===----------------------------------------------------------------------===//
// Implementation macros.
//===----------------------------------------------------------------------===//