We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 43ab8dc + 4578d0b commit e5b732dCopy full SHA for e5b732d
stdlib/public/runtime/Float16Support.cpp
@@ -71,11 +71,11 @@ static _Float16 fromEncoding(unsigned short s) {
71
// but who knows what could go wrong, and they're tiny functions.
72
# include <immintrin.h>
73
74
-SWIFT_RUNTIME_EXPORT float __gnu_h2f_ieee(short h) {
+SWIFT_RUNTIME_EXPORT float __gnu_h2f_ieee(unsigned short h) {
75
return _mm_cvtss_f32(_mm_cvtph_ps(_mm_set_epi64x(0,h)));
76
}
77
78
-SWIFT_RUNTIME_EXPORT short __gnu_f2h_ieee(float f) {
+SWIFT_RUNTIME_EXPORT unsigned short __gnu_f2h_ieee(float f) {
79
return (unsigned short)_mm_cvtsi128_si32(
80
_mm_cvtps_ph(_mm_set_ss(f), _MM_FROUND_CUR_DIRECTION)
81
);
0 commit comments