Peano
Loading...
Searching...
No Matches
math.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <concepts>
4
5
#include <
lang/type.h
>
6
7
template
<
typename
T>
requires
std::is_integral_v<T>
8
constexpr
T
pow_constexpr
(T val, T exp) {
9
T res = 1;
10
for
(
u32
i = 0; i < exp; i++) res *= val;
11
return
res;
12
}
pow_constexpr
constexpr T pow_constexpr(T val, T exp)
Definition
math.h:8
type.h
u32
std::uint32_t u32
Definition
type.h:11
benchmarks
other
noh2d-common
spacetree
lang
math.h
Generated on Fri Apr 25 2025 14:58:48 for Peano by
1.10.0