バージョン
00001 /******************************************************************************* 00002 The content of this file includes portions of the AUDIOKINETIC Wwise Technology 00003 released in source code form as part of the SDK installer package. 00004 00005 Commercial License Usage 00006 00007 Licensees holding valid commercial licenses to the AUDIOKINETIC Wwise Technology 00008 may use this file in accordance with the end user license agreement provided 00009 with the software or, alternatively, in accordance with the terms contained in a 00010 written agreement between you and Audiokinetic Inc. 00011 00012 Apache License Usage 00013 00014 Alternatively, this file may be used under the Apache License, Version 2.0 (the 00015 "Apache License"); you may not use this file except in compliance with the 00016 Apache License. You may obtain a copy of the Apache License at 00017 http://www.apache.org/licenses/LICENSE-2.0. 00018 00019 Unless required by applicable law or agreed to in writing, software distributed 00020 under the Apache License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 00021 OR CONDITIONS OF ANY KIND, either express or implied. See the Apache License for 00022 the specific language governing permissions and limitations under the License. 00023 00024 Version: <VERSION> Build: <BUILDNUMBER> 00025 Copyright (c) <COPYRIGHTYEAR> Audiokinetic Inc. 00026 *******************************************************************************/ 00027 00028 // AkSimd.h 00029 00032 00033 #ifndef _AK_SIMD_H_ 00034 #define _AK_SIMD_H_ 00035 00036 #include <AK/SoundEngine/Common/AkTypes.h> 00037 00038 // Platform-specific section. 00039 //---------------------------------------------------------------------------------------------------- 00040 00041 #if defined( AK_WIN ) || defined( AK_XBOXONE ) 00042 00043 #include <AK/SoundEngine/Platforms/Windows/AkSimd.h> 00044 00045 #elif defined( AK_APPLE ) 00046 00047 #include <TargetConditionals.h> 00048 #if TARGET_OS_IPHONE 00049 #include <AK/SoundEngine/Platforms/iOS/AkSimd.h> 00050 #else 00051 #include <AK/SoundEngine/Platforms/Mac/AkSimd.h> 00052 #endif 00053 00054 #elif defined( AK_XBOX360 ) 00055 00056 #include <AK/SoundEngine/Platforms/XBox360/AkSimd.h> 00057 00058 #elif defined (AK_PS3) 00059 00060 #include <AK/SoundEngine/Platforms/PS3/AkSimd.h> 00061 #elif defined( AK_WII ) 00062 00063 #include <AK/SoundEngine/Platforms/Generic/AkSimd.h> 00064 00065 #elif defined( AK_VITA ) 00066 00067 #include <AK/SoundEngine/Platforms/Vita/AkSimd.h> 00068 00069 #elif defined( AK_3DS ) 00070 00071 #include <AK/SoundEngine/Platforms/3DS/AkSimd.h> 00072 00073 #elif defined( AK_ANDROID ) 00074 00075 #include <AK/SoundEngine/Platforms/Android/AkSimd.h> 00076 00077 #elif defined( AK_NACL ) 00078 00079 #include <AK/SoundEngine/Platforms/nacl/AkSimd.h> 00080 00081 #elif defined( AK_WIIU ) 00082 00083 #include <AK/SoundEngine/Platforms/WiiFamily/AkSimd.h> 00084 00085 #elif defined( AK_PS4 ) 00086 00087 #include <AK/SoundEngine/Platforms/PS4/AkSimd.h> 00088 00089 #elif defined( AK_LINUX ) 00090 00091 #include <AK/SoundEngine/Platforms/Linux/AkSimd.h> 00092 00093 #elif defined( AK_EMSCRIPTEN ) 00094 00095 #include <AK/SoundEngine/Platforms/Emscripten/AkSimd.h> 00096 00097 #elif defined( AK_QNX ) 00098 00099 #include <AK/SoundEngine/Platforms/QNX/AkSimd.h> 00100 00101 #elif defined( AK_NX ) 00102 00103 #include <AK/SoundEngine/Platforms/NX/AkSimd.h> 00104 00105 #else 00106 #error Unsupported platform, or platform-specific SIMD not defined 00107 #endif 00108 00109 #ifndef AKSIMD_ASSERTFLUSHZEROMODE 00110 #define AKSIMD_ASSERTFLUSHZEROMODE 00111 #endif 00112 00113 #ifndef AKSIMD_DECLARE_V4F32_TYPE 00114 #define AKSIMD_DECLARE_V4F32_TYPE AKSIMD_V4F32 00115 #endif 00116 00117 #ifndef AKSIMD_DECLARE_V4I32_TYPE 00118 #define AKSIMD_DECLARE_V4I32_TYPE AKSIMD_V4I32 00119 #endif 00120 00121 #ifndef AKSIMD_DECLARE_V4F32 00122 #define AKSIMD_DECLARE_V4F32( _x, _a, _b, _c, _d ) AKSIMD_DECLARE_V4F32_TYPE _x = { _a, _b, _c, _d } 00123 #endif 00124 00125 #ifndef AKSIMD_DECLARE_V4I32 00126 #define AKSIMD_DECLARE_V4I32( _x, _a, _b, _c, _d ) AKSIMD_DECLARE_V4I32_TYPE _x = { _a, _b, _c, _d } 00127 #endif 00128 00129 #ifndef AKSIMD_SETELEMENT_V4F32 00130 #define AKSIMD_SETELEMENT_V4F32( __vName__, __num__, __value__ ) ( AKSIMD_GETELEMENT_V4F32( __vName__, __num__ ) = (__value__) ) 00131 #endif 00132 00133 #endif //_AK_DATA_TYPES_H_