Bug: 148976166

Clone this repo:
  1. 212fae0 Add OWNERS by Miao Wang · 2 weeks ago master
  2. 0391e51 Add build files and meta data files by Miao Wang · 2 weeks ago
  3. 88c2703 Merge remote-tracking branch 'aosp/upstream-master' into mymerge by Miao Wang · 2 weeks ago
  4. 08a172d Initial empty repository by Inna Palant · 3 weeks ago sdk-release
  5. ba1d31f Bitcasts between double and uint64_t by Marat Dukhan · 6 months ago upstream-master


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.