OSDN Git Service

Minor constant cleanup
authorAlexis Hetu <sugoi@google.com>
Mon, 13 Jun 2016 21:22:08 +0000 (17:22 -0400)
committerAlexis Hétu <sugoi@google.com>
Mon, 13 Jun 2016 23:52:24 +0000 (23:52 +0000)
commit2bc757cf593f4208a85ebb111f0e4da48eb65167
tree02391a57f8487035d582847aca94e72d4af68d70
parent0cff3cbe88eb3e291bb1240cf1040f92296ef3e8
Minor constant cleanup

In order to make the code a bit more readable and a little
less error prone, constants that are the bitwise inverted
version of other constants are computed from those constants
rather than being recomputed from scratch.

Change-Id: I27759d23e9c72b683eeafe4583b76a62e8132f19
Reviewed-on: https://swiftshader-review.googlesource.com/5590
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
src/Shader/Constants.cpp