@@ -1804,13 +1804,13 @@ specified by <<C99-spec,section 6.3 of the C99 Specification>>.
18041804When converting from a floating-point type to integer type, the behavior is
18051805implementation-defined.
18061806
1807- Conversions to integer type may opt to convert using the optional saturated
1807+ Conversions to integer types may opt to convert using the optional saturated
18081808mode by appending the `_sat` modifier to the conversion function name.
18091809When in saturated mode, values that are outside the representable range
1810- shall clamp to the nearest representable value in the destination format.
1811- ( NaN should be converted to 0) .
1810+ are clamped to the nearest representable value in the destination format,
1811+ and NaN is converted to zero .
18121812
1813- Conversions to floating-point type shall conform to IEEE-754 rounding rules.
1813+ Conversions to floating-point types conform to IEEE-754 rounding rules.
18141814The `_sat` modifier may not be used for conversions to floating-point
18151815formats.
18161816
@@ -1824,7 +1824,7 @@ Example 1:
18241824----------
18251825short4 s;
18261826
1827- // negative values clamped to 0
1827+ // negative values clamped to zero
18281828ushort4 u = convert_ushort4_sat( s );
18291829
18301830// values > CHAR_MAX converted to CHAR_MAX
@@ -1843,7 +1843,7 @@ float4 f;
18431843int4 i = convert_int4( f );
18441844
18451845// values > INT_MAX clamp to INT_MAX, values < INT_MIN clamp
1846- // to INT_MIN. NaN should produce 0.
1846+ // to INT_MIN, and NaN is converted to zero
18471847// The _rtz_ rounding mode is used to produce the integer values.
18481848int4 i2 = convert_int4_sat( f );
18491849
0 commit comments