1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00
lvm2/lib/mm/xlate.h

29 lines
407 B
C
Raw Normal View History

2001-10-08 09:45:16 +00:00
/*
* Copyright (C) 2001 Sistina Software (UK) Limited.
*
* This file is released under the GPL.
*
*/
#ifndef _LVM_XLATE_H
#define _LVM_XLATE_H
#include <asm/byteorder.h>
2001-10-08 09:45:16 +00:00
static inline uint16_t xlate16(uint16_t x)
{
return __cpu_to_le16(x);
}
2001-10-08 09:45:16 +00:00
static inline uint32_t xlate32(uint32_t x)
{
return __cpu_to_le32(x);
}
2001-10-08 09:45:16 +00:00
static inline uint64_t xlate64(uint64_t x)
{
return __cpu_to_le64(x);
}
2001-10-08 09:45:16 +00:00
#endif