summaryrefslogtreecommitdiff
path: root/drivers/staging/nmf-cm/cm/engine/utils/inc/swap.h
blob: e4f5acb3010574a50193b88e37b15690cfb68efa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (C) ST-Ericsson SA 2010
 * Author: Jean-Philippe FASSINO <jean-philippe.fassino@stericsson.com> for ST-Ericsson.
 * License terms: GNU General Public License (GPL) version 2.
 */
/*!
 * \internal
 * \brief Swap integer manipulation.
 */
#ifndef H_CM_UTILS_SWAP
#define H_CM_UTILS_SWAP

#include <cm/inc/cm_type.h>

/*
 * Swap methods
 */
t_uint16 swap16(t_uint16 x);
t_uint32 swap32(t_uint32 x);
t_uint64 swap64(t_uint64 x);
t_uint32 noswap32(t_uint32 x);

#endif