Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
btable: optimize entry address calculation
The btable uses division and modulo calculations, which are quiet expensive in the most platforms, for the entry address calculations. In case the allocation limit of a btable is power of 2 number, the calculations can be optimized to use simple bit calculations. Optimize the entry address calculations in the aforementioned case. Partial-Bug: #1781402 Change-Id: Idfc56e14a6d499d23a306866cfa463f95eee1151 Signed-off-by: Matan Azrad <matan@mellanox.com>
- Loading branch information
matan
committed
Nov 25, 2018
1 parent
687637e
commit 2d7661a
Showing
2 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters