diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-02-18 10:39:00 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-02-19 08:38:58 +0100 |
commit | 74116b64db25d26928c2ec6c03c792b02bd802cc (patch) | |
tree | 4196d8f7c3d61a8809bb9d252ce55cc9da16f250 /lib | |
parent | 09db4f3b59ad06eae514b62c78211db470ecd287 (diff) | |
download | barebox-74116b64db25d26928c2ec6c03c792b02bd802cc.tar.gz barebox-74116b64db25d26928c2ec6c03c792b02bd802cc.tar.xz |
include: asm-generic: don't do 64-bit soft division on 64-bit platforms
barebox implements do_div() as soft division unconditionally, even on
64-bit platforms that could use hardware 64-bit division directly.
Import the whole Linux asm-generic/div64.h header to avoid this.
This also has potential positive effect on 32-bit platforms:
64-bit division with constant divisors can now be optimized into
multiplications and shifts at compile time.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions