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