Really fix CoreR[FT] version of System.Decimal for big endian (#9828)
commitb49c584b97515f88f35210d56b86d3452913a5e8
authorCalvin <calvin@cmpct.info>
Wed, 1 Aug 2018 14:20:03 +0000 (1 11:20 -0300)
committerMarek Safar <marek.safar@gmail.com>
Wed, 1 Aug 2018 14:20:03 +0000 (1 16:20 +0200)
tree361ccfb1fe75fe0fb3f4b4a37b183cd6bf18f4c8
parent60b95ba08d3373377a24a608ea9983471a7eeb3c
Really fix CoreR[FT] version of System.Decimal for big endian (#9828)

The version imported and attempted to patch didn't work fully. This
preserves the .NET representation while converting if directives to
runtime checks, which CoreCLR inlines.

Testing was done poking some values in the REPL and running some
test suites (System.Json, System.Decimal) that broke as a result.
mcs should also properly handle constants; again, the "bits" inside
are consistent with amd64, and just converted as needed.

Unless I fucked up, should fix #9772.
mcs/class/corlib/corert/Decimal.cs