Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenbyteswap.h
Go to the documentation of this file.
00001 /* Copyright (C) 1997 Free Software Foundation, Inc. 00002 This file is part of the GNU C Library. 00003 00004 The GNU C Library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Lesser General Public 00006 License as published by the Free Software Foundation; either 00007 version 2.1 of the License, or (at your option) any later version. 00008 00009 The GNU C Library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Lesser General Public License for more details. 00013 00014 You should have received a copy of the GNU Lesser General Public 00015 License along with the GNU C Library; if not, write to the Free 00016 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 Boston, MA 02110-1301, USA. 00018 */ 00019 00020 #ifndef _BYTESWAP_H 00021 #define _BYTESWAP_H 1 00022 00023 /* Get the machine specific, optimized definitions. */ 00024 #include "byteswap1.h" 00025 00026 00027 /* The following definitions must all be macros since otherwise some 00028 of the possible optimizations are not possible. */ 00029 00030 /* Return a value with all bytes in the 16 bit argument swapped. */ 00031 #define bswap_16(x) __bswap_16 (x) 00032 00033 /* Return a value with all bytes in the 32 bit argument swapped. */ 00034 #define bswap_32(x) __bswap_32 (x) 00035 00036 #if defined __GNUC__ && __GNUC__ >= 2 00037 /* Return a value with all bytes in the 64 bit argument swapped. */ 00038 # define bswap_64(x) __bswap_64 (x) 00039 #endif 00040 00041 #endif /* byteswap.h */ Generated on Sun May 27 2012 04:36:13 for ReactOS by
1.7.6.1
|