Re: [Mesa-dev] [PATCH 4/6] util/rgb9e5: Get rid of the float754 union

2016-08-03 Thread Roland Scheidegger
Am 03.08.2016 um 20:09 schrieb Jason Ekstrand: > There are a number of reasons for this refactor. First, format_rgb9e5.h is > not something that a user would expect to define such a generic union. > Second, defining it requires checking for endianness which is ugly. Third, > 90% of what we were

[Mesa-dev] [PATCH 4/6] util/rgb9e5: Get rid of the float754 union

2016-08-03 Thread Jason Ekstrand
There are a number of reasons for this refactor. First, format_rgb9e5.h is not something that a user would expect to define such a generic union. Second, defining it requires checking for endianness which is ugly. Third, 90% of what we were doing with the union was float <-> uint32_t bitcasts