disk: part: avoid undefined reference to `__udivmoddi4'
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 1 Jun 2019 22:04:50 +0000 (00:04 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 14 Jun 2019 17:18:40 +0000 (19:18 +0200)
commit17416eaff2bee8f81a094fb2805a2f1920c81a5e
tree77faefa00ced38a175cdd36637e5b1946a8901e3
parent3796156a80739031b5c540ded2483dd87fef8083
disk: part: avoid undefined reference to `__udivmoddi4'

When compiling with FTRACE=1 an error

ld.bfd: disk/built-in.o: in function `lba512_muldiv':
disk/part.c:114: undefined reference to `__udivmoddi4

occurred.

Use '>> 11' instead of '/ 2048' to avoid the division.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
disk/part.c