diff options
author | mtklein <mtklein@chromium.org> | 2016-07-13 13:30:49 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-13 13:30:49 -0700 |
commit | 05c73b7ed5b73a55cbecf7f787a35fcc0e84e983 (patch) | |
tree | c717b54ed59ee5e9f742aa546f03cc50c93e3c11 /tests/Float16Test.cpp | |
parent | dda54455a20dcd89de610bdb80e4a8e9137b80a4 (diff) |
Remove bulk float <-> half routines. These are dead code.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2152583002
Review-Url: https://codereview.chromium.org/2152583002
Diffstat (limited to 'tests/Float16Test.cpp')
-rw-r--r-- | tests/Float16Test.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/Float16Test.cpp b/tests/Float16Test.cpp index d80fe29439..cc5efedae6 100644 --- a/tests/Float16Test.cpp +++ b/tests/Float16Test.cpp @@ -55,19 +55,6 @@ DEF_TEST(color_half_float, reporter) { } } -DEF_TEST(float_to_half, reporter) { - const float fs[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0 }; - const uint16_t hs[] = { 0x3c00, 0x4000, 0x4200, 0x4400, 0x4500, 0x4600, 0x4700 }; - - uint16_t hscratch[7]; - SkOpts::float_to_half(hscratch, fs, 7); - REPORTER_ASSERT(reporter, 0 == memcmp(hscratch, hs, sizeof(hs))); - - float fscratch[7]; - SkOpts::half_to_float(fscratch, hs, 7); - REPORTER_ASSERT(reporter, 0 == memcmp(fscratch, fs, sizeof(fs))); -} - static uint32_t u(float f) { uint32_t x; memcpy(&x, &f, 4); |