Thread (7 messages) 7 messages, 2 authors, 2015-07-29

Re: [PATCH] Make the thash library arch-independent

flat view

From: Vladimir Medvedkin <hidden>
Date: 2015-07-28 19:08:13

2015-07-28 19:05 GMT+03:00 Thomas Monjalon [off-list ref]:
2015-07-28 18:33, Vladimir Medvedkin:
quoted
2015-07-28 16:47 GMT+03:00 Thomas Monjalon [off-list ref]:
quoted
2015-07-28 09:06, Vladimir Medvedkin:
Please explain how it was broken and how you fixed it.
It would be interesting to know which part is __SSE3__ and __SSE__.
 As mentioned in http://dpdk.org/ml/archives/dev/2015-July/022020.html
compilation fails on non x86 architectures( in that case it was tile).
So I
quoted
add for optimized code, which uses SSE3 intrinsics, non optimized general
version.
I know. I was requesting an updated commit with explanations:
        build is broken because...
        x86 version uses SSE3...
        Some code is enclosed with __SSE__, not __SSE3__ because...
Oh, that's my mistake. Will fix this typo in the next patch.
What happens if it is built with SSE3 support but run on
a CPU without such support?
Please check how it is done for ACL.
quoted
quoted
quoted
+#ifdef __SSE3__
+#include <rte_vect.h>
+#endif /* __SSE3__ */
Comments after short ifdef block are not needed.
Should I delete it?
Yes please.
quoted
quoted
quoted
+#ifndef XMM_SIZE
+#define XMM_SIZE     16
Why is it needed?
 because there is no defines for XMM_SIZE on non X86 architectures
Why XMM_SIZE is needed on non x86 arch?
Ok, I will leave union rte_thash_tuple unaligned for non x86 arch
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help