1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 19:05:07 +00:00

AK: Don't compile the 64-bit division helpers in userland builds.

This commit is contained in:
Andreas Kling 2019-03-24 00:53:56 +01:00
parent 31871557e4
commit db6084538f

View file

@ -52,6 +52,8 @@ void* mmx_memcpy(void* dest, const void* src, size_t len)
return dest;
}
#ifdef KERNEL
static inline uint32_t divq(uint64_t n, uint32_t d)
{
uint32_t n1 = n >> 32;
@ -145,4 +147,6 @@ uint64_t __udivmoddi4(uint64_t n, uint64_t d, uint64_t* r)
return q;
}
#endif
}