Add float-to-half (binary16) conversion functions.
authorjvanverth <jvanverth@google.com>
Wed, 26 Nov 2014 21:15:59 +0000 (13:15 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 26 Nov 2014 21:15:59 +0000 (13:15 -0800)
commit936799204b34e7a2f20ac6c0868058799ceb851e
treec1dd34971c393de4bf7247aed276a91b123400fd
parent9881d63c57002ffbdf2adf623965ece280279989
Add float-to-half (binary16) conversion functions.

Based on code by Fabian Giesen at
https://fgiesen.wordpress.com/2012/03/28/half-to-float-done-quic/.

These will be needed for creating binary16 textures from floating point data.

BUG=skia:3103

Review URL: https://codereview.chromium.org/760753003
gyp/core.gypi
src/core/SkHalf.cpp [new file with mode: 0644]
src/core/SkHalf.h [new file with mode: 0644]
tests/MathTest.cpp