diff options
author | Jason Ekstrand <[email protected]> | 2016-08-03 09:54:03 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-08-05 09:07:01 -0700 |
commit | c7eb9a75653c1df54e6c36873c8c4ddd142b98d6 (patch) | |
tree | c510310ece0e56fd1f99cdc08d9b226b466393bb /src/util/bitscan.c | |
parent | cda8d9566043a75dbe0bc3eaf75c61e37b65d792 (diff) |
util/rgb9e5: Get rid of the float754 union
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
and the remaining 10% can be done with a sinmple left-shift by 23.
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/util/bitscan.c')
0 files changed, 0 insertions, 0 deletions