only SkHalfToFloat_finite_ftz(uint64_t hs) is called
This just cleans up an unused half->float entry point. Change-Id: I7b869d3fd049d807453745c3cca4eab1162848d8 Reviewed-on: https://skia-review.googlesource.com/19451 Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Mike Klein <mtklein@chromium.org>
This commit is contained in:
parent
5143f2f376
commit
2ee0f42a4b
@ -38,7 +38,8 @@ static inline Sk4h SkFloatToHalf_finite_ftz(const Sk4f&);
|
||||
|
||||
// GCC 4.9 lacks the intrinsics to use ARMv8 f16<->f32 instructions, so we use inline assembly.
|
||||
|
||||
static inline Sk4f SkHalfToFloat_finite_ftz(const Sk4h& hs) {
|
||||
static inline Sk4f SkHalfToFloat_finite_ftz(uint64_t rgba) {
|
||||
Sk4h hs = Sk4h::Load(&rgba);
|
||||
#if !defined(SKNX_NO_SIMD) && defined(SK_CPU_ARM64)
|
||||
float32x4_t fs;
|
||||
asm ("fcvtl %[fs].4s, %[hs].4h \n" // vcvt_f32_f16(...)
|
||||
@ -60,10 +61,6 @@ static inline Sk4f SkHalfToFloat_finite_ftz(const Sk4h& hs) {
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline Sk4f SkHalfToFloat_finite_ftz(uint64_t hs) {
|
||||
return SkHalfToFloat_finite_ftz(Sk4h::Load(&hs));
|
||||
}
|
||||
|
||||
static inline Sk4h SkFloatToHalf_finite_ftz(const Sk4f& fs) {
|
||||
#if !defined(SKNX_NO_SIMD) && defined(SK_CPU_ARM64)
|
||||
float32x4_t vec = fs.fVec;
|
||||
|
Loading…
Reference in New Issue
Block a user