Skip to content

Commit f987781

Browse files
committed
Add docs
1 parent 967bba4 commit f987781

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

clang/docs/LanguageExtensions.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,23 @@ of different sizes and signs is forbidden in binary and ternary builtins.
818818
T __builtin_elementwise_fmod(T x, T y) return The floating-point remainder of (x/y) whose sign floating point types
819819
matches the sign of x.
820820
T __builtin_elementwise_max(T x, T y) return x or y, whichever is larger integer and floating point types
821+
For floating point types, follows semantics of maxNum
822+
in IEEE 754-2008. See `LangRef
823+
<http://llvm.org/docs/LangRef.html#llvm-min-intrinsics-comparation>`_
824+
for the comparison.
821825
T __builtin_elementwise_min(T x, T y) return x or y, whichever is smaller integer and floating point types
826+
For floating point types, follows semantics of minNum
827+
in IEEE 754-2008. See `LangRef
828+
<http://llvm.org/docs/LangRef.html#llvm-min-intrinsics-comparation>`_
829+
for the comparison.
830+
T __builtin_elementwise_maxnum(T x, T y) return x or y, whichever is larger. Follows IEEE 754-2008 floating point types
831+
semantics (maxNum) with +0.0>-0.0. See `LangRef
832+
<http://llvm.org/docs/LangRef.html#llvm-min-intrinsics-comparation>`_
833+
for the comparison.
834+
T __builtin_elementwise_minnum(T x, T y) return x or y, whichever is smaller. Follows IEEE 754-2008 floating point types
835+
semantics (minNum) with +0.0>-0.0. See `LangRef
836+
<http://llvm.org/docs/LangRef.html#llvm-min-intrinsics-comparation>`_
837+
for the comparison.
822838
T __builtin_elementwise_add_sat(T x, T y) return the sum of x and y, clamped to the range of integer types
823839
representable values for the signed/unsigned integer type.
824840
T __builtin_elementwise_sub_sat(T x, T y) return the difference of x and y, clamped to the range of integer types

0 commit comments

Comments
 (0)