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