Skip to content

Commit aa69604

Browse files
committed
Format hlsl_intrinsics.h with clang-format
1 parent f409340 commit aa69604

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

clang/lib/Headers/hlsl/hlsl_intrinsics.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,24 @@ _HLSL_BUILTIN_ALIAS(__builtin_hlsl_and)
290290
bool4 and(bool4 x, bool4 y);
291291
// clang-format on
292292

293+
//===----------------------------------------------------------------------===//
294+
// or builtins
295+
//===----------------------------------------------------------------------===//
296+
297+
/// \fn T or(T x, T y)
298+
/// \brief Returns the bitwise OR of the two input values, \a x and \a y.
299+
/// \param x The first input value and y The second input value.
300+
///
301+
/// \returns The logically OR a vector and retuens bool vector.
302+
303+
_HLSL_BUILTIN_ALIAS(__builtin_hlsl_or)
304+
bool or(bool, bool);
305+
_HLSL_BUILTIN_ALIAS(__builtin_hlsl_or)
306+
bool2 or(bool2, bool2);
307+
_HLSL_BUILTIN_ALIAS(__builtin_hlsl_or)
308+
bool3 or(bool3, bool3);
309+
_HLSL_BUILTIN_ALIAS(__builtin_hlsl_or)
310+
bool4 or(bool4, bool4);
293311
//===----------------------------------------------------------------------===//
294312
// any builtins
295313
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)