mini-llvm 0.1.0
Loading...
Searching...
No Matches
Xor.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2
3#pragma once
4
5namespace mini_llvm::ops {
6
7struct Xor {
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 Xor.h:7
bool operator()(bool x, bool y) const noexcept
Definition Xor.h:13
T operator()(T x, T y) const noexcept
Definition Xor.h:9