sfendian.h

来自「LastWave」· C头文件 代码 · 共 61 行

H
61
字号
/*** Copyright (C) 1999 Erik de Castro Lopo <erikd@zip.com.au>**  ** This program is free software; you can redistribute it and/or modify** it under the terms of the GNU General Public License as published by** the Free Software Foundation; either version 2 of the License, or** (at your option) any later version.** ** This program is distributed in the hope that it will be useful,** but WITHOUT ANY WARRANTY; without even the implied warranty of** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the** GNU General Public License for more details.** ** You should have received a copy of the GNU General Public License** along with this program; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.*/#define CAN_READ_WRITE_x86_IEEE 0/* * Same definitions as in lastwave.h */ extern char cpuBinaryMode;enum {   BinaryLittleEndian = 1,  BinaryBigEndian};#define IsCPULittleEndian (cpuBinaryMode == BinaryLittleEndian)#define IsCPUBigEndian (cpuBinaryMode == BinaryBigEndian)/* Name of package */#define PACKAGE "libsndfile"/* Version number of package */#define VERSION "0.0.17"#define		ENDSWAP_SHORT(x)			((((x)>>8)&0xFF)|(((x)&0xFF)<<8))#define		ENDSWAP_INT(x)				((((x)>>24)&0xFF)|(((x)>>8)&0xFF00)|(((x)&0xFF00)<<8)|(((x)&0xFF)<<24))#	define	__CPU_IS_LITTLE_ENDIAN__		(IsCPULittleEndian)#	define	__CPU_IS_BIG_ENDIAN__			(IsCPUBigEndian)#	define	H2LE_SHORT(x)				(IsCPULittleEndian ? (x) : ENDSWAP_SHORT(x))#	define	H2LE_INT(x)					(IsCPULittleEndian ? (x) : ENDSWAP_INT(x))#	define	LE2H_SHORT(x)				(IsCPULittleEndian ? (x) : ENDSWAP_SHORT(x))#	define	LE2H_INT(x)					(IsCPULittleEndian ? (x) : ENDSWAP_INT(x))#	define	BE2H_INT(x)					(IsCPULittleEndian ? ENDSWAP_INT(x) : (x))#	define	BE2H_SHORT(x)				(IsCPULittleEndian ? ENDSWAP_SHORT(x) : (x))#	define	H2BE_INT(x)					(IsCPULittleEndian ? ENDSWAP_INT(x) : (x))#	define	H2BE_SHORT(x)				(IsCPULittleEndian ? ENDSWAP_SHORT(x) : (x))

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?