Re: [U-Boot] [PATCH v2 1/1] efi_loader: replace efi_div10 by do_div

2017-10-05 Thread Alexander Graf
On 05.10.17 16:14, Heinrich Schuchardt wrote: We should use the existing 64bit division instead of reinventing the wheel. Cc: Alexander Graf Signed-off-by: Heinrich Schuchardt Awesome, this version actually even *reduces* code size :). Alex ___

[U-Boot] [PATCH v2 1/1] efi_loader: replace efi_div10 by do_div

2017-10-05 Thread Heinrich Schuchardt
We should use the existing 64bit division instead of reinventing the wheel. Cc: Alexander Graf Signed-off-by: Heinrich Schuchardt --- v2 replace efi_div10 by do_div as suggested by Alex v1 replace efi_div10 by div_u64 --- lib/efi_loader/efi_boottime.c | 36 ++