mini-llvm 0.1.0
Loading...
Searching...
No Matches
And.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2
3#pragma once
4
5namespace mini_llvm::ops {
6
7struct And {
8 template <typename T>
9 T operator()(T x, T y) const noexcept {
10 return x & y;
11 }
12
13 bool operator()(bool x, bool y) const noexcept {
14 return x && y;
15 }
16};
17
18} // namespace mini_llvm::ops
Definition Add.h:9
Definition And.h:7
T operator()(T x, T y) const noexcept
Definition And.h:9
bool operator()(bool x, bool y) const noexcept
Definition And.h:13