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