AAX SDK 2.8.0
Avid Audio Extensions Development Kit
Loading...
Searching...
No Matches
AAX_PlatformOptimizationConstants.h
Go to the documentation of this file.
1/*================================================================================================*/
2/*
3 * Copyright 2009-2015, 2023-2024 Avid Technology, Inc.
4 * All rights reserved.
5 *
6 * This file is part of the Avid AAX SDK.
7 *
8 * The AAX SDK is subject to commercial or open-source licensing.
9 *
10 * By using the AAX SDK, you agree to the terms of both the Avid AAX SDK License
11 * Agreement and Avid Privacy Policy.
12 *
13 * AAX SDK License: https://developer.avid.com/aax
14 * Privacy Policy: https://www.avid.com/legal/privacy-policy-statement
15 *
16 * Or: You may also use this code under the terms of the GPL v3 (see
17 * www.gnu.org/licenses).
18 *
19 * THE AAX SDK IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
20 * EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
21 * DISCLAIMED.
22 */
23
30/*================================================================================================*/
31#pragma once
32
33#ifndef AAX_PLATFORMOPTIMIZATIONCONSTANTS_H
34#define AAX_PLATFORMOPTIMIZATIONCONSTANTS_H
35
36// Set up our platform-specific optimization defines
37#if USE_PLATFORM_OPTIMIZATION
38 #if defined( WINDOWS_VERSION )
39 #define USE_INTEL_IPP (1) // Windows
40 #define __SSE__ (1) // Manually define the __SSE__ flag
41 #elif defined( MAC_VERSION )
42 #if defined(__ppc__)
43 #define USE_ALTIVEC_VDSP (1) // PPC
44 #elif defined(__i386__) or defined(__x86_64__)
45 #define USE_INTEL_IPP (1) // MacTel
46 #else
47 #error "Unsupported platform for optimizations!"
48 #endif // __i386__ or __ppc__
49 #else
50 #error "Unsupported platform for optimizations!"
51 #endif // WINDOWS_VERSION
52#endif // USE_PLATFORM_OPTIMIZATION
53
54#endif // AAX_PLATFORMOPTIMIZATIONCONSTANTS_H
55