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 00030 /// \file 00031 /// Simd definitions. 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_VITA ) 00055 00056 #include <AK/SoundEngine/Platforms/Vita/AkSimd.h> 00057 00058 #elif defined( AK_ANDROID ) 00059 00060 #include <AK/SoundEngine/Platforms/Android/AkSimd.h> 00061 00062 #elif defined( AK_PS4 ) 00063 00064 #include <AK/SoundEngine/Platforms/PS4/AkSimd.h> 00065 00066 #elif defined( AK_LINUX ) 00067 00068 #include <AK/SoundEngine/Platforms/Linux/AkSimd.h> 00069 00070 #elif defined( AK_EMSCRIPTEN ) 00071 00072 #include <AK/SoundEngine/Platforms/Emscripten/AkSimd.h> 00073 00074 #elif defined( AK_QNX ) 00075 00076 #include <AK/SoundEngine/Platforms/QNX/AkSimd.h> 00077 00078 #elif defined( AK_NX ) 00079 00080 #include <AK/SoundEngine/Platforms/NX/AkSimd.h> 00081 00082 #else 00083 #error Unsupported platform, or platform-specific SIMD not defined 00084 #endif 00085 00086 #ifndef AKSIMD_ASSERTFLUSHZEROMODE 00087 #define AKSIMD_ASSERTFLUSHZEROMODE 00088 #endif 00089 00090 #ifndef AKSIMD_DECLARE_V4F32_TYPE 00091 #define AKSIMD_DECLARE_V4F32_TYPE AKSIMD_V4F32 00092 #endif 00093 00094 #ifndef AKSIMD_DECLARE_V4I32_TYPE 00095 #define AKSIMD_DECLARE_V4I32_TYPE AKSIMD_V4I32 00096 #endif 00097 00098 #ifndef AKSIMD_DECLARE_V4F32 00099 #define AKSIMD_DECLARE_V4F32( _x, _a, _b, _c, _d ) AKSIMD_DECLARE_V4F32_TYPE _x = { _a, _b, _c, _d } 00100 #endif 00101 00102 #ifndef AKSIMD_DECLARE_V4I32 00103 #define AKSIMD_DECLARE_V4I32( _x, _a, _b, _c, _d ) AKSIMD_DECLARE_V4I32_TYPE _x = { _a, _b, _c, _d } 00104 #endif 00105 00106 #ifndef AKSIMD_SETELEMENT_V4F32 00107 #define AKSIMD_SETELEMENT_V4F32( __vName__, __num__, __value__ ) ( AKSIMD_GETELEMENT_V4F32( __vName__, __num__ ) = (__value__) ) 00108 #endif 00109 00110 #endif //_AK_DATA_TYPES_H_
Questions? Problems? Need more info? Contact us, and we can help!
Visit our Support pageRegister your project and we'll help you get started with no strings attached!
Get started with Wwise