Skip to content

Commit dddffbf

Browse files
committed
Update docs of fshl/r
1 parent 777bc01 commit dddffbf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clang/docs/LanguageExtensions.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,12 +875,14 @@ of different sizes and signs is forbidden in binary and ternary builtins.
875875
for the comparison.
876876
T __builtin_elementwise_fshl(T x, T y, T z) perform a funnel shift left. Concatenate x and y (x is the most integer types
877877
significant bits of the wide value), the combined value is shifted
878-
left by z, and the most significant bits are extracted to produce
878+
left by z (modulo the bit width of the original arguments),
879+
and the most significant bits are extracted to produce
879880
a result that is the same size as the original arguments.
880881

881882
T __builtin_elementwise_fshr(T x, T y, T z) perform a funnel shift right. Concatenate x and y (x is the most integer types
882883
significant bits of the wide value), the combined value is shifted
883-
right by z, and the least significant bits are extracted to produce
884+
right by z (modulo the bit width of the original arguments),
885+
and the least significant bits are extracted to produce
884886
a result that is the same size as the original arguments.
885887
T __builtin_elementwise_ctlz(T x[, T y]) return the number of leading 0 bits in the first argument. If integer types
886888
the first argument is 0 and an optional second argument is provided,

0 commit comments

Comments
 (0)