examples/l3fwd: report error when no vector engine is available
PATCH 1/1 examples/l3fwd: report error when no vector engine is available
If no SSE nor NEON are available the l3fwd should complain loudly to quickly find out the reason.
Signed-off-by Jan Viktorin <[email protected]>
---
It has happened to me once when I've accidently built a GCC without the NEON support. It was confusing as at first I thought it is a bug... It is not, there is just missing an error message telling the reason.
--- examples/l3fwd/l3fwd_em.c | 2 ++ 1 file changed, 2 insertions(+)
examples/l3fwd/l3fwd_em.c +2 -0
@@ -259,6 +259,8 @@ em_mask_key(void *key, xmm_t mask)return vandq_s32 (data, mask); } +#else +#error No vector engine (SSE, NEON) available, check your toolchain#endif static inline uint8_t
Signature · 1 line
2.8.0
Thomas Monjalon
Applied2016-04-26 13:30, Jan Viktorin:
Quoted 4 lines
If no SSE nor NEON are available the l3fwd should complain loudly to quickly find out the reason.
Signed-off-by Jan Viktorin <[email protected]>
Applied, thanks