xref: /DragonOS/kernel/src/common/math.h (revision a8753f8fffb992e4d3bbd21eda431081b395af6b)
1 #pragma once
2 #include "stddef.h"
3 #include <arch/arch.h>
4 #if ARCH(I386) || ARCH(X86_64)
5 
6 #if ARCH(I386) || ARCH(X86_64)
7 #include <arch/x86_64/math/bitcount.h>
8 #else
9 #error Arch not supported.
10 #endif
11 #endif
12 
13 int64_t pow(int64_t x, int y);
14