Gate F_From_Half change on clang

It seems like gcc doesn't support the _Float16 type, which clang
needs to use to make casting work, so only use
__builtin_convertvector when building with clang.

Bug: chromium:438445382
Change-Id: I8e21289e2a275f7a1273e59ba8988df2dec9e4f3
Reviewed-on: https://skia-review.googlesource.com/c/skcms/+/1040717
Reviewed-by: Florin Malita <fmalita@google.com>
Commit-Queue: Devon Loehr <dloehr@google.com>
Commit-Queue: Florin Malita <fmalita@google.com>
Auto-Submit: Devon Loehr <dloehr@google.com>
1 file changed
tree: 17b1831850a3ae2cce0f4a36e0dd841a36daac7c
  1. bazel/
  2. fuzz/
  3. infra/
  4. ninja/
  5. profiles/
  6. src/
  7. toolchain/
  8. .bazelrc
  9. .bazelversion
  10. .gitignore
  11. BAZEL.md
  12. bench.c
  13. BUILD.bazel
  14. build.ninja
  15. codereview.settings
  16. iccdump.c
  17. LICENSE
  18. msvs.ninja
  19. OWNERS
  20. README.chromium
  21. README.md
  22. skcms.cc
  23. skcms.gni
  24. skcms.h
  25. test_only.c
  26. test_only.h
  27. tests.c
  28. whitespace.txt
  29. WORKSPACE.bazel
README.md

To build with ninja, simply run ninja from the root directory. This will produce a library in /out.

There are also Bazel rules, outlined in BAZEL.md