numam-dpdk/lib
Zhihong Wang bb62344cb7 eal/x86: fix build with clang for old AVX
When configuring RTE_MACHINE to "default", rte_memcpy implementation
is the default one (old AVX).
In this code, clang raises a warning thanks to -Wsometimes-uninitialized:

rte_memcpy.h:838:6: error:
variable 'srcofs' is used uninitialized whenever 'if' condition is false
        if (dstofss > 0) {
            ^~~~~~~~~~~
rte_memcpy.h:849:6: note: uninitialized use occurs here
        if (srcofs == 0) {
            ^~~~~~

It is fixed by moving srcofs initialization out of the condition.
Also dstofss calculation is corrected.

Fixes: 1ae817f9f8 ("eal/x86: tune memcpy for platforms without AVX512")

Reported-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Signed-off-by: Zhihong Wang <zhihong.wang@intel.com>
2016-02-04 22:36:02 +01:00
..
librte_acl acl/arm: enable acl for ARMv7 2015-12-08 03:00:42 +01:00
librte_cfgfile cfgfile: increase entry name and value sizes 2015-10-22 18:35:11 +02:00
librte_cmdline lib: remove redundant definition of local symbols 2015-06-29 18:57:32 +02:00
librte_compat compat: remove unneeded macro 2015-06-29 16:41:23 +02:00
librte_cryptodev mbuf_offload: mark experimental state 2015-12-12 00:34:57 +01:00
librte_distributor
librte_eal eal/x86: fix build with clang for old AVX 2016-02-04 22:36:02 +01:00
librte_ether lib: remove keyword extern for functions 2016-01-28 18:40:46 +01:00
librte_hash hash: fix build on IBM POWER and ARM 2015-12-09 22:02:33 +01:00
librte_ip_frag mbuf: move chaining from ip_frag library 2015-10-25 00:00:34 +02:00
librte_ivshmem mem: fix ivshmem freeing 2015-08-09 19:45:25 +02:00
librte_jobstats
librte_kni lib: remove keyword extern for functions 2016-01-28 18:40:46 +01:00
librte_kvargs remove unneeded tests for NULL when freeing 2016-01-27 15:34:48 +01:00
librte_lpm lpm: fix incorrect reuse of already allocated tbl8 2015-11-04 01:18:22 +01:00
librte_mbuf mbuf_offload: introduce library to attach offloads to mbuf 2015-11-25 19:18:04 +01:00
librte_mbuf_offload mbuf_offload: mark experimental state 2015-12-12 00:34:57 +01:00
librte_mempool mempool: fix mlx driver loading 2015-12-06 01:02:51 +01:00
librte_meter doc: fix doxygen warnings in QoS API 2015-06-18 14:53:58 +02:00
librte_net net: fix build with gcc 4.4.7 and strict aliasing 2015-11-25 22:11:37 +01:00
librte_pipeline remove blank lines at end-of-file 2015-12-07 04:57:16 +01:00
librte_port port: fix sink port statistics 2015-12-07 01:03:13 +01:00
librte_power power: remove duplicate definition 2015-12-07 04:57:16 +01:00
librte_reorder reorder: allow random number as starting point 2015-06-22 22:20:12 +02:00
librte_ring eal: introduce SMP memory barriers 2015-11-18 22:44:01 +01:00
librte_sched sched: fix build without SSE4 2015-12-06 01:02:51 +01:00
librte_table table: improve lookup performance with prefetch offset 2015-11-26 00:45:50 +01:00
librte_timer timer: fix race condition 2015-08-03 12:43:01 +02:00
librte_vhost vhost: note the ABI changes 2015-12-14 01:33:14 +01:00
Makefile mbuf_offload: introduce library to attach offloads to mbuf 2015-11-25 19:18:04 +01:00