You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Convert packed single-precision (32-bit) floating-point elements in a to packed half-precision (16-bit) floating-point elements, and store the results in dst.\
15049
-
/// Exceptions can be suppressed by passing _MM_FROUND_NO_EXC in the sae parameter.
15049
+
/// Rounding is done according to the rounding\[3:0\] parameter, which can be one of:
15050
+
/// * [`_MM_FROUND_TO_NEAREST_INT`] // round to nearest
15051
+
/// * [`_MM_FROUND_TO_NEG_INF`] // round down
15052
+
/// * [`_MM_FROUND_TO_POS_INF`] // round up
15053
+
/// * [`_MM_FROUND_TO_ZERO`] // truncate
15054
+
/// * [`_MM_FROUND_CUR_DIRECTION`] // use MXCSR.RC; see [`_MM_SET_ROUNDING_MODE`]
15055
+
/// * [`_MM_FROUND_TO_NEAREST_INT`] | [`_MM_FROUND_NO_EXC`] // round to nearest, and suppress exceptions
let r = vcvtps2ph(a, SAE, i16x16::ZERO, 0b11111111_11111111);
15071
+
let r = vcvtps2ph(a, ROUNDING, i16x16::ZERO, 0b11111111_11111111);
15062
15072
transmute(r)
15063
15073
}
15064
15074
}
15065
15075
15066
15076
/// Convert packed single-precision (32-bit) floating-point elements in a to packed half-precision (16-bit) floating-point elements, and store the results in dst using writemask k (elements are copied from src when the corresponding mask bit is not set).\
15067
-
/// Exceptions can be suppressed by passing _MM_FROUND_NO_EXC in the sae parameter.
15077
+
/// Rounding is done according to the rounding\[3:0\] parameter, which can be one of:
15078
+
/// * [`_MM_FROUND_TO_NEAREST_INT`] // round to nearest
15079
+
/// * [`_MM_FROUND_TO_NEG_INF`] // round down
15080
+
/// * [`_MM_FROUND_TO_POS_INF`] // round up
15081
+
/// * [`_MM_FROUND_TO_ZERO`] // truncate
15082
+
/// * [`_MM_FROUND_CUR_DIRECTION`] // use MXCSR.RC; see [`_MM_SET_ROUNDING_MODE`]
15083
+
/// * [`_MM_FROUND_TO_NEAREST_INT`] | [`_MM_FROUND_NO_EXC`] // round to nearest, and suppress exceptions
/// Convert packed single-precision (32-bit) floating-point elements in a to packed half-precision (16-bit) floating-point elements, and store the results in dst using zeromask k (elements are zeroed out when the corresponding mask bit is not set).\
15090
-
/// Exceptions can be suppressed by passing _MM_FROUND_NO_EXC in the sae parameter.
15110
+
/// Rounding is done according to the rounding\[3:0\] parameter, which can be one of:
15111
+
/// * [`_MM_FROUND_TO_NEAREST_INT`] // round to nearest
15112
+
/// * [`_MM_FROUND_TO_NEG_INF`] // round down
15113
+
/// * [`_MM_FROUND_TO_POS_INF`] // round up
15114
+
/// * [`_MM_FROUND_TO_ZERO`] // truncate
15115
+
/// * [`_MM_FROUND_CUR_DIRECTION`] // use MXCSR.RC; see [`_MM_SET_ROUNDING_MODE`]
15116
+
/// * [`_MM_FROUND_TO_NEAREST_INT`] | [`_MM_FROUND_NO_EXC`] // round to nearest, and suppress exceptions
/// Convert packed single-precision (32-bit) floating-point elements in a to packed half-precision (16-bit) floating-point elements, and store the results in dst.\
15206
-
/// Exceptions can be suppressed by passing _MM_FROUND_NO_EXC in the sae parameter.
15236
+
/// Rounding is done according to the rounding\[3:0\] parameter, which can be one of:
15237
+
/// * [`_MM_FROUND_TO_NEAREST_INT`] // round to nearest
15238
+
/// * [`_MM_FROUND_TO_NEG_INF`] // round down
15239
+
/// * [`_MM_FROUND_TO_POS_INF`] // round up
15240
+
/// * [`_MM_FROUND_TO_ZERO`] // truncate
15241
+
/// * [`_MM_FROUND_CUR_DIRECTION`] // use MXCSR.RC; see [`_MM_SET_ROUNDING_MODE`]
15242
+
/// * [`_MM_FROUND_TO_NEAREST_INT`] | [`_MM_FROUND_NO_EXC`] // round to nearest, and suppress exceptions
let r = vcvtps2ph(a, SAE, i16x16::ZERO, 0b11111111_11111111);
15258
+
let r = vcvtps2ph(a, ROUNDING, i16x16::ZERO, 0b11111111_11111111);
15219
15259
transmute(r)
15220
15260
}
15221
15261
}
15222
15262
15223
15263
/// Convert packed single-precision (32-bit) floating-point elements in a to packed half-precision (16-bit) floating-point elements, and store the results in dst using writemask k (elements are copied from src when the corresponding mask bit is not set).\
15224
-
/// Exceptions can be suppressed by passing _MM_FROUND_NO_EXC in the sae parameter.
15264
+
/// Rounding is done according to the rounding\[3:0\] parameter, which can be one of:
15265
+
/// * [`_MM_FROUND_TO_NEAREST_INT`] // round to nearest
15266
+
/// * [`_MM_FROUND_TO_NEG_INF`] // round down
15267
+
/// * [`_MM_FROUND_TO_POS_INF`] // round up
15268
+
/// * [`_MM_FROUND_TO_ZERO`] // truncate
15269
+
/// * [`_MM_FROUND_CUR_DIRECTION`] // use MXCSR.RC; see [`_MM_SET_ROUNDING_MODE`]
15270
+
/// * [`_MM_FROUND_TO_NEAREST_INT`] | [`_MM_FROUND_NO_EXC`] // round to nearest, and suppress exceptions
/// Convert packed single-precision (32-bit) floating-point elements in a to packed half-precision (16-bit) floating-point elements, and store the results in dst using zeromask k (elements are zeroed out when the corresponding mask bit is not set).\
15243
-
/// Exceptions can be suppressed by passing _MM_FROUND_NO_EXC in the sae parameter.
15293
+
/// Rounding is done according to the rounding\[3:0\] parameter, which can be one of:
15294
+
/// * [`_MM_FROUND_TO_NEAREST_INT`] // round to nearest
15295
+
/// * [`_MM_FROUND_TO_NEG_INF`] // round down
15296
+
/// * [`_MM_FROUND_TO_POS_INF`] // round up
15297
+
/// * [`_MM_FROUND_TO_ZERO`] // truncate
15298
+
/// * [`_MM_FROUND_CUR_DIRECTION`] // use MXCSR.RC; see [`_MM_SET_ROUNDING_MODE`]
15299
+
/// * [`_MM_FROUND_TO_NEAREST_INT`] | [`_MM_FROUND_NO_EXC`] // round to nearest, and suppress exceptions
0 commit comments