AAX SDK 2.6.1
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 Avid Technology, Inc.
4 * All rights reserved.
5 *
6 * CONFIDENTIAL: this document contains confidential information of Avid. Do
7 * not disclose to any third party. Use of the information contained in this
8 * document is subject to an Avid SDK license.
9 */
10
17/*================================================================================================*/
18#pragma once
19
20#ifndef AAX_PLATFORMOPTIMIZATIONCONSTANTS_H
21#define AAX_PLATFORMOPTIMIZATIONCONSTANTS_H
22
23// Set up our platform-specific optimization defines
24#if USE_PLATFORM_OPTIMIZATION
25 #if defined( WINDOWS_VERSION )
26 #define USE_INTEL_IPP (1) // Windows
27 #define __SSE__ (1) // Manually define the __SSE__ flag
28 #elif defined( MAC_VERSION )
29 #if defined(__ppc__)
30 #define USE_ALTIVEC_VDSP (1) // PPC
31 #elif defined(__i386__) or defined(__x86_64__)
32 #define USE_INTEL_IPP (1) // MacTel
33 #else
34 #error "Unsupported platform for optimizations!"
35 #endif // __i386__ or __ppc__
36 #else
37 #error "Unsupported platform for optimizations!"
38 #endif // WINDOWS_VERSION
39#endif // USE_PLATFORM_OPTIMIZATION
40
41#endif // AAX_PLATFORMOPTIMIZATIONCONSTANTS_H
42