xref: /DragonOS/kernel/src/common/math.h (revision 406099704eb939ae23b18f0cfb3ed36c534c1c84)
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