Files
scoutfs/kmod/src/cmp.h
Zach Brown 3dfe8e10df Add little cmp u64 helper
We have use of this little u64 comparison function in a few more places
so let's make it a proper usable inline function in a header.

Signed-off-by: Zach Brown <zab@versity.com>
2017-04-18 13:44:53 -07:00

12 lines
173 B
C

#ifndef _SCOUTFS_CMP_H_
#define _SCOUTFS_CMP_H_
#include <linux/kernel.h>
static inline int scoutfs_cmp_u64s(u64 a, u64 b)
{
return a < b ? -1 : a > b ? 1 : 0;
}
#endif