summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-11-22 10:19:49 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-11-23 21:31:01 +0000
commit597c83492a6de376532c0a5993bdbde56667e802 (patch)
tree8cc8d51e51779d943f6b19734566a88960b967c5 /src/corelib/global
parentf2820e800663f58ae44c78f3da88519f9aae3e52 (diff)
Fix search-replaced broken comment
Also we can't use constructors for multiple reasons now that it is C. Change-Id: I27f3e011cc1f67f5aa134eaf3ab934456cead902 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/global')
-rw-r--r--src/corelib/global/qfloat16_f16c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/global/qfloat16_f16c.c b/src/corelib/global/qfloat16_f16c.c
index 89c85bba8f..ffd35f8ebc 100644
--- a/src/corelib/global/qfloat16_f16c.c
+++ b/src/corelib/global/qfloat16_f16c.c
@@ -62,7 +62,7 @@ void qFloatToFloat16_fast(quint16 *out, const float *in, qssize_t len) Q_DECL_NO
_mm_storel_epi64((__m128i *)(out + i), _mm_cvtps_ph(_mm_loadu_ps(in + i), 0));
i += 4;
}
- // Inlining "quint16::quint16(float f)" to avoid getting the fallback version.
+ // Inlining "qfloat16::qfloat16(float f)":
SIMD_EPILOGUE(i, len, 3)
out[i] = _mm_extract_epi16(_mm_cvtps_ph(_mm_set_ss(in[i]), 0), 0);
}
@@ -76,7 +76,7 @@ void qFloatFromFloat16_fast(float *out, const quint16 *in, qssize_t len) Q_DECL_
_mm_storeu_ps(out + i, _mm_cvtph_ps(_mm_loadl_epi64((const __m128i *)(in + i))));
i += 4;
}
- // Inlining "quint16::operator float()" to avoid getting the fallback version.
+ // Inlining "qfloat16::operator float()":
SIMD_EPILOGUE(i, len, 3)
out[i] = _mm_cvtss_f32(_mm_cvtph_ps(_mm_cvtsi32_si128(in[i])));
}