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:
parent
f446b7cab4
commit
0d2dce0b78
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user