Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
api: clean up use of deprecated flag
[vpp.git]
/
src
/
vppinfra
/
memcpy_avx2.h
diff --git
a/src/vppinfra/memcpy_avx2.h
b/src/vppinfra/memcpy_avx2.h
index
64dff4e
..
f3f0d3f
100644
(file)
--- a/
src/vppinfra/memcpy_avx2.h
+++ b/
src/vppinfra/memcpy_avx2.h
@@
-50,6
+50,11
@@
#include <stdint.h>
#include <x86intrin.h>
#include <stdint.h>
#include <x86intrin.h>
+#include <vppinfra/warnings.h>
+
+/* *INDENT-OFF* */
+WARN_OFF (stringop-overflow)
+/* *INDENT-ON* */
static inline void
clib_mov16 (u8 * dst, const u8 * src)
static inline void
clib_mov16 (u8 * dst, const u8 * src)
@@
-109,7
+114,7
@@
clib_mov128blocks (u8 * dst, const u8 * src, size_t n)
}
static inline void *
}
static inline void *
-
_clib_memcpy
(void *dst, const void *src, size_t n)
+
clib_memcpy_fast
(void *dst, const void *src, size_t n)
{
uword dstu = (uword) dst;
uword srcu = (uword) src;
{
uword dstu = (uword) dst;
uword srcu = (uword) src;
@@
-228,6
+233,9
@@
_clib_memcpy (void *dst, const void *src, size_t n)
goto COPY_BLOCK_128_BACK31;
}
goto COPY_BLOCK_128_BACK31;
}
+/* *INDENT-OFF* */
+WARN_ON (stringop-overflow)
+/* *INDENT-ON* */
#endif /* included_clib_memcpy_avx2_h */
#endif /* included_clib_memcpy_avx2_h */