Skip to content

Commit

Permalink
pradosoft#904 TBitHelper Utility class for dealing with bits and endian
Browse files Browse the repository at this point in the history
- Bit Mirroring
- endian flipping
- color bit shift
- unsigned right bit shift
- has LongLong
- # bits needed (given a number, how many bits is needed to represent it)
- checking System Endian
- negative zero float checking
   - check for floats as negative including -0.
   - check for -0 specifically.
- converting float to half float and mini float (Fp16, Bf16, Fp8-e5m2, and Fp8-e4m3 are supported directly).  General utility function for taking a float and outputting an arbitrary exponent and mantissa.
  • Loading branch information
belisoful committed Apr 27, 2023
1 parent a3198c1 commit 26bae28
Show file tree
Hide file tree
Showing 2 changed files with 941 additions and 0 deletions.
Loading

0 comments on commit 26bae28

Please sign in to comment.