Print OpConstant values according to type.
authorDavid Neto <dneto@google.com>
Fri, 6 Nov 2015 16:23:57 +0000 (11:23 -0500)
committerDavid Neto <dneto@google.com>
Tue, 10 Nov 2015 20:57:59 +0000 (15:57 -0500)
commit229b90f6f4e2756748a6dcac2c5f5fb7375210bc
treeb57f0b5f419a81b390f7878e535b2ccb7c8709e7
parent0c00eb2cdf1ccbdfb10b1400a68792945c521388
Print OpConstant values according to type.

Zero and normal floating point values are printed with enough
enough digits to reproduce all the bits exactly.
Other float values (subnormal, infinity, and NaN) are printed
as hex floats.

Fix a binary parse bug: Count partially filled words in a
typed literal number operand.

TODO: Assembler support for hex numbers, and therefore reading
infinities and NaNs.
include/util/hex_float.h
source/binary.cpp
source/disassemble.cpp
test/BinaryToText.cpp
test/HexFloat.cpp
test/TestFixture.h
test/TextToBinary.Constant.cpp
test/TextToBinary.cpp