Home
last modified time | relevance | path

Searched hist:"52 dbac69c27dee67a4c051b1055d93b0ac4e2062" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/lib/
H A Ddisplay_options.c52dbac69c27dee67a4c051b1055d93b0ac4e2062 Tue Apr 13 18:16:02 UTC 2010 Timur Tabi <timur@freescale.com> fix print_size printing fractional gigabyte numbers on 32-bit platforms

In print_size(), the math that calculates the fractional remainder of a number
used the same integer size as a physical address. However, the "10 *" factor
of the algorithm means that a large number (e.g. 1.5GB) can overflow the
integer if we're running on a 32-bit system. Therefore, we need to
disassociate this function from the size of a physical address.

Signed-off-by: Timur Tabi <timur@freescale.com>