SPIRV-Tools/source/util
Steven Perron 72d4e5414b
Change HexFloat to work with gcc8. (#2109)
When we want to set a the value of a HexFloat to inf or nan, we
construct the specific bit pattern in an appropriately sized integer.
That integer is copied to a FloatProxy object through a memcpy.  GCC8
complains about the memcpy because it is overwriting a private member of
the class.

The original solution worked well because the template to the HexFloat
could be anything.  However, we only used some instantiation of FloatProxy,
which has a construction from that takes its uint_type, so I decided to use
that constructor instead of the memcpy.  This puts an extra requirement
on the templace for HexFloat, but it will be fine for us.

Part of #1541.
2018-11-26 15:47:48 -05:00
..
bit_vector.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
bit_vector.h Rewrite include guards (#1793) 2018-08-03 08:05:33 -04:00
bitutils.h Rewrite include guards (#1793) 2018-08-03 08:05:33 -04:00
hex_float.h Change HexFloat to work with gcc8. (#2109) 2018-11-26 15:47:48 -05:00
ilist_node.h Rewrite include guards (#1793) 2018-08-03 08:05:33 -04:00
ilist.h Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
make_unique.h Use MakeUnique. (#1837) 2018-08-14 15:01:50 -04:00
parse_number.cpp Use MakeUnique. (#1837) 2018-08-14 15:01:50 -04:00
parse_number.h Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
small_vector.h Use MakeUnique. (#1837) 2018-08-14 15:01:50 -04:00
string_utils.cpp Add option for the max id bound. (#1870) 2018-09-10 11:49:41 -04:00
string_utils.h Add option for the max id bound. (#1870) 2018-09-10 11:49:41 -04:00
timer.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
timer.h Rewrite include guards (#1793) 2018-08-03 08:05:33 -04:00