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