• Robert Kimball's avatar
    bfloat16 testing and fixes (#2693) · 667d8f9e
    Robert Kimball authored
    * add test file
    
    * add new float_util files
    
    * Add unit tests for bfloat. Fix bfloat rounding code since it was incorrectly rounding.
    
    * add more tests
    
    * cleanup
    
    * change trucate to be endian agnostic
    
    * prep work for constexpr ctors
    
    * ready for constexpr
    
    * constexpr ctor for bfloat16
    
    * more bfloating
    
    * write constexpr isnan since it is not constexpr on Macos
    
    * remove cast operator
    
    * add benchmark test and cleanup
    
    * use aligned buffers for benchmark tests
    
    * fix numbers printed in benchmark
    
    * remove union and use cast operator
    
    * all tests passing
    
    * cleanup
    667d8f9e
all_close_f.cpp 46.8 KB