eal: introduce integer divide through reciprocal
authorPavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Fri, 26 Jan 2018 05:04:49 +0000 (10:34 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 27 Jan 2018 21:34:33 +0000 (22:34 +0100)
commit0b037e8b02b7ced8c18a650b708f2fd6e3364d83
treed316f59344a655f6f0a80f61af4d3c4d8b6d54cb
parentda23f0aa87d83e481295ceb5283a34232c336f36
eal: introduce integer divide through reciprocal

In some use cases of integer division, denominator remains constant and
numerator varies. It is possible to optimize division for such specific
scenarios.

The librte_sched uses rte_reciprocal to optimize division so, moving it to
eal/common would allow other libraries and applications to use it.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
lib/librte_eal/bsdapp/eal/Makefile
lib/librte_eal/common/Makefile
lib/librte_eal/common/include/rte_reciprocal.h [new file with mode: 0644]
lib/librte_eal/common/rte_reciprocal.c [new file with mode: 0644]
lib/librte_eal/linuxapp/eal/Makefile
lib/librte_eal/rte_eal_version.map
lib/librte_sched/Makefile
lib/librte_sched/rte_reciprocal.c [deleted file]
lib/librte_sched/rte_reciprocal.h [deleted file]
lib/librte_sched/rte_sched.c