Implement mul_u32_u32() function in the LinuxKPI.

Submitted by:	Johannes Lundberg <johalun0@gmail.com>
MFC after:	1 week
Sponsored by:	Mellanox Technologies
Sponsored by:	Limelight Networks
This commit is contained in:
Hans Petter Selasky 2018-06-05 15:30:36 +00:00
parent f446b7cab4
commit 0d2dce0b78

View File

@ -84,4 +84,11 @@ div_u64(uint64_t dividend, uint32_t divisor)
return (dividend / divisor);
}
static inline uint64_t
mul_u32_u32(uint32_t a, uint32_t b)
{
return ((uint64_t)a * b);
}
#endif /* _LINUX_MATH64_H */