915resolution: Replace floating point arithmetics with integer.
commit60e3f37e7ba3aaf5a6f32a08f7f2a8374230c447
authorVladimir Serbinenko <phcoder@gmail.com>
Tue, 21 Jul 2015 21:39:27 +0000 (21 23:39 +0200)
committerVladimir Serbinenko <phcoder@gmail.com>
Tue, 21 Jul 2015 23:25:16 +0000 (22 01:25 +0200)
tree69877e9fcf3c2e7198b9275a1d90ea05bde1b821
parent4a56e2c2cc3d78f12f1788c27669a651071dee49
915resolution: Replace floating point arithmetics with integer.

We don't support floats in GRUB, so make 915resolution use only integers.

Equivalence of both expressions was ensured by a simple program which
compared the results for all sane inputs.
The only differences found were due to missing +EPSILON in original expression
and went away after fixing this precision error in original expression.

Reported by: johnlane
915resolution/915resolution.c