Clone this repo:


  1. 21fcfff Remove legacy Android NDK config by Marat Dukhan · 6 hours ago master
  2. 5933328 Test gcc with x87 FPU in GitHub Actions CI by Marat Dukhan · 6 hours ago
  3. db33f23 CMake: don't enable CXX unless building tests/benchmarks by James Hilliard · 1 year, 4 months ago
  4. f0bd4b9 Test x87 FPU build in CI by Marat Dukhan · 7 hours ago
  5. 7b7b039 Modernize CMakeLists by Marat Dukhan · 8 hours ago


Header-only library for conversion to/from half-precision floating point formats


  • Supports IEEE and ARM alternative half-precision floating-point format
    • Property converts infinities and NaNs
    • Properly converts denormal numbers, even on systems without denormal support
  • Header-only library, no installation or build required
  • Compatible with C99 and C++11
  • Fully covered with unit tests and microbenchmarks


HPC Garage logo Georgia Tech College of Computing logo

The library is developed by Marat Dukhan of Georgia Tech. FP16 is a research project at Richard Vuduc's HPC Garage lab in the Georgia Institute of Technology, College of Computing, School of Computational Science and Engineering.

This material is based upon work supported by the U.S. National Science Foundation (NSF) Award Number 1339745. Any opinions, findings and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect those of NSF.