libpurple/protocols/gg/lib/endian.c

branch
release-2.x.y
changeset 35627
fd11790cc4d6
parent 35617
c9069e0e3c36
equal deleted inserted replaced
35625:783e5cce1a46 35627:fd11790cc4d6
1 /* $Id: libgadu.c 1167 2011-09-04 20:26:43Z wojtekka $ */ 1 /* $Id$ */
2 2
3 /* 3 /*
4 * (C) Copyright 2001-2010 Wojtek Kaniewski <wojtekka@irc.pl> 4 * (C) Copyright 2001-2010 Wojtek Kaniewski <wojtekka@irc.pl>
5 * Robert J. Woźny <speedy@ziew.org> 5 * Robert J. Woźny <speedy@ziew.org>
6 * Arkadiusz Miśkiewicz <arekm@pld-linux.org> 6 * Arkadiusz Miśkiewicz <arekm@pld-linux.org>
7 * Tomasz Chiliński <chilek@chilan.com> 7 * Tomasz Chiliński <chilek@chilan.com>
8 * Adam Wysocki <gophi@ekg.chmurka.net> 8 * Adam Wysocki <gophi@ekg.chmurka.net>
9 * 9 *
10 * This program is free software; you can redistribute it and/or modify 10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU Lesser General Public License Version 11 * it under the terms of the GNU Lesser General Public License Version
12 * 2.1 as published by the Free Software Foundation. 12 * 2.1 as published by the Free Software Foundation.
13 * 13 *
105 return (uint16_t) 105 return (uint16_t)
106 (((x & (uint16_t) 0x00ffU) << 8) | 106 (((x & (uint16_t) 0x00ffU) << 8) |
107 ((x & (uint16_t) 0xff00U) >> 8)); 107 ((x & (uint16_t) 0xff00U) >> 8));
108 #endif 108 #endif
109 } 109 }
110

mercurial