00001 00002 // 00003 // Copyright (c) 2006 Audiokinetic Inc. / All Rights Reserved 00004 // 00006 00007 // AkSimd.h 00008 00011 00012 #ifndef _AK_SIMD_H_ 00013 #define _AK_SIMD_H_ 00014 00015 #include <AK/SoundEngine/Common/AkTypes.h> 00016 00017 // Platform-specific section. 00018 //---------------------------------------------------------------------------------------------------- 00019 00020 #if defined( AK_WIN ) || defined( AK_XBOXONE ) 00021 00022 #include <AK/SoundEngine/Platforms/Windows/AkSimd.h> 00023 00024 #elif defined( AK_APPLE ) 00025 00026 #include <TargetConditionals.h> 00027 #if TARGET_OS_IPHONE 00028 #include <AK/SoundEngine/Platforms/iOS/AkSimd.h> 00029 #else 00030 #include <AK/SoundEngine/Platforms/Mac/AkSimd.h> 00031 #endif 00032 00033 #elif defined( AK_XBOX360 ) 00034 00035 #include <AK/SoundEngine/Platforms/XBox360/AkSimd.h> 00036 00037 #elif defined (AK_PS3) 00038 00039 #include <AK/SoundEngine/Platforms/PS3/AkSimd.h> 00040 #elif defined( AK_WII ) 00041 00042 #include <AK/SoundEngine/Platforms/Generic/AkSimd.h> 00043 00044 #elif defined( AK_VITA ) 00045 00046 #include <AK/SoundEngine/Platforms/Vita/AkSimd.h> 00047 00048 #elif defined( AK_3DS ) 00049 00050 #include <AK/SoundEngine/Platforms/3DS/AkSimd.h> 00051 00052 #elif defined( AK_ANDROID ) 00053 00054 #include <AK/SoundEngine/Platforms/Android/AkSimd.h> 00055 00056 #elif defined( AK_NACL ) 00057 00058 #include <AK/SoundEngine/Platforms/nacl/AkSimd.h> 00059 00060 #elif defined( AK_WIIU ) 00061 00062 #include <AK/SoundEngine/Platforms/WiiFamily/AkSimd.h> 00063 00064 #elif defined( AK_PS4 ) 00065 00066 #include <AK/SoundEngine/Platforms/PS4/AkSimd.h> 00067 00068 #elif defined( AK_LINUX ) 00069 00070 #include <AK/SoundEngine/Platforms/Linux/AkSimd.h> 00071 00072 #elif defined( AK_QNX ) 00073 00074 #include <AK/SoundEngine/Platforms/QNX/AkSimd.h> 00075 00076 #else 00077 #error Unsupported platform, or platform-specific SIMD not defined 00078 #endif 00079 00080 #ifndef AKSIMD_ASSERTFLUSHZEROMODE 00081 #define AKSIMD_ASSERTFLUSHZEROMODE 00082 #endif 00083 00084 #ifndef AKSIMD_DECLARE_V4F32_TYPE 00085 #define AKSIMD_DECLARE_V4F32_TYPE AKSIMD_V4F32 00086 #endif 00087 00088 #ifndef AKSIMD_DECLARE_V4I32_TYPE 00089 #define AKSIMD_DECLARE_V4I32_TYPE AKSIMD_V4I32 00090 #endif 00091 00092 #ifndef AKSIMD_DECLARE_V4F32 00093 #define AKSIMD_DECLARE_V4F32( _x, _a, _b, _c, _d ) AKSIMD_DECLARE_V4F32_TYPE _x = { _a, _b, _c, _d } 00094 #endif 00095 00096 #ifndef AKSIMD_DECLARE_V4I32 00097 #define AKSIMD_DECLARE_V4I32( _x, _a, _b, _c, _d ) AKSIMD_DECLARE_V4I32_TYPE _x = { _a, _b, _c, _d } 00098 #endif 00099 00100 #ifndef AKSIMD_SETELEMENT_V4F32 00101 #define AKSIMD_SETELEMENT_V4F32( __vName__, __num__, __value__ ) ( AKSIMD_GETELEMENT_V4F32( __vName__, __num__ ) = (__value__) ) 00102 #endif 00103 00104 #endif //_AK_DATA_TYPES_H_
프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.
Wwise를 시작해 보세요