Monero
Loading...
Searching...
No Matches
powerof.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4
5namespace tools
6{
7 template<uint64_t a, uint64_t b>
8 struct PowerOf
9 {
11 {
12 // a^b = a * a^(b-1)
14 };
15 };
16
17 template<uint64_t a>
18 struct PowerOf<a, 0>
19 {
21 {
22 // a^0 = 1
23 Value = 1,
24 };
25 };
26}
cryptonote::block b
Definition block.cpp:40
Various Tools.
Definition apply_permutation.h:40
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1124
unsigned __int64 uint64_t
Definition stdint.h:136
Data
Definition powerof.h:21
@ Value
Definition powerof.h:23
Definition powerof.h:9
Data
Definition powerof.h:11
@ Value
Definition powerof.h:13