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