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