00001 00006 /* 00007 All original material Copyright (C) 2002-2010 UFO: Alien Invasion. 00008 00009 Copyright (C) 1997-2001 Id Software, Inc. 00010 00011 This program is free software; you can redistribute it and/or 00012 modify it under the terms of the GNU General Public License 00013 as published by the Free Software Foundation; either version 2 00014 of the License, or (at your option) any later version. 00015 00016 This program is distributed in the hope that it will be useful, 00017 but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00019 00020 See the GNU General Public License for more details. 00021 00022 You should have received a copy of the GNU General Public License 00023 along with this program; if not, write to the Free Software 00024 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00025 00026 */ 00027 00028 #ifndef __BYTE_H__ 00029 #define __BYTE_H__ 00030 00031 #include "ufotypes.h" 00032 00033 short BigShort(uint16_t l); 00034 short LittleShort(uint16_t l); 00035 int BigLong(uint32_t l); 00036 int LittleLong(uint32_t l); 00037 float BigFloat(float l); 00038 float LittleFloat(float l); 00039 00040 void Swap_Init(void); 00041 00042 #endif /* __BYTE_H__ */