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