Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
vppinfra: add COMPILE_TIME_CONST() macro
[vpp.git]
/
src
/
vppinfra
/
string.h
diff --git
a/src/vppinfra/string.h
b/src/vppinfra/string.h
index
fb46a0c
..
76d345e
100644
(file)
--- a/
src/vppinfra/string.h
+++ b/
src/vppinfra/string.h
@@
-143,7
+143,7
@@
memcpy_s_inline (void *__restrict__ dest, rsize_t dmax,
* Optimize constant-number-of-bytes calls without asking
* "too many questions for someone from New Jersey"
*/
- if (
__builtin_constant_p
(n))
+ if (
COMPILE_TIME_CONST
(n))
{
clib_memcpy_fast (dest, src, n);
return EOK;