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