AAX SDK  2.4.1
Avid Audio Extensions Development Kit
AAX_PlatformOptimizationConstants.h
Go to the documentation of this file.
1 /*================================================================================================*/
2 /*
3  * Copyright 2009-2015 by Avid Technology, Inc.
4  * All rights reserved.
5  *
6  * CONFIDENTIAL: This document contains confidential information. Do not
7  * read or examine this document unless you are an Avid Technology employee
8  * or have signed a non-disclosure agreement with Avid Technology which protects
9  * the confidentiality of this document. DO NOT DISCLOSE ANY INFORMATION
10  * CONTAINED IN THIS DOCUMENT TO ANY THIRD-PARTY WITHOUT THE PRIOR WRITTEN CONSENT
11  * OF Avid Technology, INC.
12  */
13 
20 /*================================================================================================*/
21 #pragma once
22 
23 #ifndef AAX_PLATFORMOPTIMIZATIONCONSTANTS_H
24 #define AAX_PLATFORMOPTIMIZATIONCONSTANTS_H
25 
26 // Set up our platform-specific optimization defines
27 #if USE_PLATFORM_OPTIMIZATION
28  #if defined( WINDOWS_VERSION )
29  #define USE_INTEL_IPP (1) // Windows
30  #define __SSE__ (1) // Manually define the __SSE__ flag
31  #elif defined( MAC_VERSION )
32  #if defined(__ppc__)
33  #define USE_ALTIVEC_VDSP (1) // PPC
34  #elif defined(__i386__) or defined(__x86_64__)
35  #define USE_INTEL_IPP (1) // MacTel
36  #else
37  #error "Unsupported platform for optimizations!"
38  #endif // __i386__ or __ppc__
39  #else
40  #error "Unsupported platform for optimizations!"
41  #endif // WINDOWS_VERSION
42 #endif // USE_PLATFORM_OPTIMIZATION
43 
44 #endif // AAX_PLATFORMOPTIMIZATIONCONSTANTS_H
45