Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a4511f34 authored by Hans Boehm's avatar Hans Boehm
Browse files

BoundedRational.java cleanup

Bug: 21469726
Bug: 23080519

Reformat to 100 columns.  Reformat simple if-statements and rename
variables for better consistency with coding conventions.

Switch many comments to javadoc style.

Consistently use signum() to compare to zero.  It's more concise and
probably slightly more efficient.

Change the asBigInteger implementation to use a single
divideAndRemainder call instead of relying on gcd. Add tests.

Eliminate redundant test in maybeReduce().

Change-Id: I4c275494e076612d09a05bc317c9972008619cda
parent abe2862b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment