# HG changeset patch # User Chris Cannam # Date 1445099182 -3600 # Node ID 55f715002fe53993f45c2b256eaf789b876e5e29 # Parent cf59817a5983228644c9ff2291c2b0d248cc6233 iOS stuff diff -r cf59817a5983 -r 55f715002fe5 fft/native/native-fft-test/native-fft-test.xcodeproj/project.pbxproj --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fft/native/native-fft-test/native-fft-test.xcodeproj/project.pbxproj Sat Oct 17 17:26:22 2015 +0100 @@ -0,0 +1,380 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + A8525B8D1BD2A7A6009FCE68 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A8525B8C1BD2A7A6009FCE68 /* main.m */; }; + A8525B901BD2A7A6009FCE68 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A8525B8F1BD2A7A6009FCE68 /* AppDelegate.m */; }; + A8525B961BD2A7A6009FCE68 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A8525B941BD2A7A6009FCE68 /* Main.storyboard */; }; + A8525B981BD2A7A6009FCE68 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A8525B971BD2A7A6009FCE68 /* Images.xcassets */; }; + A8525B9B1BD2A7A6009FCE68 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = A8525B991BD2A7A6009FCE68 /* LaunchScreen.xib */; }; + A8525BA71BD2A7A6009FCE68 /* native_fft_testTests.m in Sources */ = {isa = PBXBuildFile; fileRef = A8525BA61BD2A7A6009FCE68 /* native_fft_testTests.m */; }; + A8525BB11BD2A852009FCE68 /* ViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = A8525BB01BD2A852009FCE68 /* ViewController.mm */; }; + A8525BB31BD2AB50009FCE68 /* FFT.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8525BB21BD2AB50009FCE68 /* FFT.cpp */; }; + A8525BB51BD2AD16009FCE68 /* Accelerate.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A8525BB41BD2AD16009FCE68 /* Accelerate.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + A8525BA11BD2A7A6009FCE68 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = A8525B7F1BD2A7A6009FCE68 /* Project object */; + proxyType = 1; + remoteGlobalIDString = A8525B861BD2A7A6009FCE68; + remoteInfo = "native-fft-test"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + A8525B871BD2A7A6009FCE68 /* native-fft-test.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "native-fft-test.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + A8525B8B1BD2A7A6009FCE68 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + A8525B8C1BD2A7A6009FCE68 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + A8525B8E1BD2A7A6009FCE68 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + A8525B8F1BD2A7A6009FCE68 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + A8525B911BD2A7A6009FCE68 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + A8525B951BD2A7A6009FCE68 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + A8525B971BD2A7A6009FCE68 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + A8525B9A1BD2A7A6009FCE68 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; + A8525BA01BD2A7A6009FCE68 /* native-fft-testTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "native-fft-testTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + A8525BA51BD2A7A6009FCE68 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + A8525BA61BD2A7A6009FCE68 /* native_fft_testTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = native_fft_testTests.m; sourceTree = ""; }; + A8525BB01BD2A852009FCE68 /* ViewController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = ViewController.mm; path = "native-fft-test/ViewController.mm"; sourceTree = ""; }; + A8525BB21BD2AB50009FCE68 /* FFT.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = FFT.cpp; path = ../bqfft/src/FFT.cpp; sourceTree = ""; }; + A8525BB41BD2AD16009FCE68 /* Accelerate.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Accelerate.framework; path = System/Library/Frameworks/Accelerate.framework; sourceTree = SDKROOT; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + A8525B841BD2A7A6009FCE68 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + A8525BB51BD2AD16009FCE68 /* Accelerate.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + A8525B9D1BD2A7A6009FCE68 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + A8525B7E1BD2A7A6009FCE68 = { + isa = PBXGroup; + children = ( + A8525BB41BD2AD16009FCE68 /* Accelerate.framework */, + A8525BB21BD2AB50009FCE68 /* FFT.cpp */, + A8525BB01BD2A852009FCE68 /* ViewController.mm */, + A8525B891BD2A7A6009FCE68 /* native-fft-test */, + A8525BA31BD2A7A6009FCE68 /* native-fft-testTests */, + A8525B881BD2A7A6009FCE68 /* Products */, + ); + sourceTree = ""; + }; + A8525B881BD2A7A6009FCE68 /* Products */ = { + isa = PBXGroup; + children = ( + A8525B871BD2A7A6009FCE68 /* native-fft-test.app */, + A8525BA01BD2A7A6009FCE68 /* native-fft-testTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + A8525B891BD2A7A6009FCE68 /* native-fft-test */ = { + isa = PBXGroup; + children = ( + A8525B8E1BD2A7A6009FCE68 /* AppDelegate.h */, + A8525B8F1BD2A7A6009FCE68 /* AppDelegate.m */, + A8525B911BD2A7A6009FCE68 /* ViewController.h */, + A8525B941BD2A7A6009FCE68 /* Main.storyboard */, + A8525B971BD2A7A6009FCE68 /* Images.xcassets */, + A8525B991BD2A7A6009FCE68 /* LaunchScreen.xib */, + A8525B8A1BD2A7A6009FCE68 /* Supporting Files */, + ); + path = "native-fft-test"; + sourceTree = ""; + }; + A8525B8A1BD2A7A6009FCE68 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + A8525B8B1BD2A7A6009FCE68 /* Info.plist */, + A8525B8C1BD2A7A6009FCE68 /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + A8525BA31BD2A7A6009FCE68 /* native-fft-testTests */ = { + isa = PBXGroup; + children = ( + A8525BA61BD2A7A6009FCE68 /* native_fft_testTests.m */, + A8525BA41BD2A7A6009FCE68 /* Supporting Files */, + ); + path = "native-fft-testTests"; + sourceTree = ""; + }; + A8525BA41BD2A7A6009FCE68 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + A8525BA51BD2A7A6009FCE68 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + A8525B861BD2A7A6009FCE68 /* native-fft-test */ = { + isa = PBXNativeTarget; + buildConfigurationList = A8525BAA1BD2A7A6009FCE68 /* Build configuration list for PBXNativeTarget "native-fft-test" */; + buildPhases = ( + A8525B831BD2A7A6009FCE68 /* Sources */, + A8525B841BD2A7A6009FCE68 /* Frameworks */, + A8525B851BD2A7A6009FCE68 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "native-fft-test"; + productName = "native-fft-test"; + productReference = A8525B871BD2A7A6009FCE68 /* native-fft-test.app */; + productType = "com.apple.product-type.application"; + }; + A8525B9F1BD2A7A6009FCE68 /* native-fft-testTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = A8525BAD1BD2A7A6009FCE68 /* Build configuration list for PBXNativeTarget "native-fft-testTests" */; + buildPhases = ( + A8525B9C1BD2A7A6009FCE68 /* Sources */, + A8525B9D1BD2A7A6009FCE68 /* Frameworks */, + A8525B9E1BD2A7A6009FCE68 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + A8525BA21BD2A7A6009FCE68 /* PBXTargetDependency */, + ); + name = "native-fft-testTests"; + productName = "native-fft-testTests"; + productReference = A8525BA01BD2A7A6009FCE68 /* native-fft-testTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + A8525B7F1BD2A7A6009FCE68 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0610; + ORGANIZATIONNAME = "Chris Cannam"; + TargetAttributes = { + A8525B861BD2A7A6009FCE68 = { + CreatedOnToolsVersion = 6.1.1; + }; + A8525B9F1BD2A7A6009FCE68 = { + CreatedOnToolsVersion = 6.1.1; + TestTargetID = A8525B861BD2A7A6009FCE68; + }; + }; + }; + buildConfigurationList = A8525B821BD2A7A6009FCE68 /* Build configuration list for PBXProject "native-fft-test" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = A8525B7E1BD2A7A6009FCE68; + productRefGroup = A8525B881BD2A7A6009FCE68 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + A8525B861BD2A7A6009FCE68 /* native-fft-test */, + A8525B9F1BD2A7A6009FCE68 /* native-fft-testTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + A8525B851BD2A7A6009FCE68 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + A8525B961BD2A7A6009FCE68 /* Main.storyboard in Resources */, + A8525B9B1BD2A7A6009FCE68 /* LaunchScreen.xib in Resources */, + A8525B981BD2A7A6009FCE68 /* Images.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + A8525B9E1BD2A7A6009FCE68 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + A8525B831BD2A7A6009FCE68 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + A8525BB31BD2AB50009FCE68 /* FFT.cpp in Sources */, + A8525B901BD2A7A6009FCE68 /* AppDelegate.m in Sources */, + A8525B8D1BD2A7A6009FCE68 /* main.m in Sources */, + A8525BB11BD2A852009FCE68 /* ViewController.mm in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + A8525B9C1BD2A7A6009FCE68 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + A8525BA71BD2A7A6009FCE68 /* native_fft_testTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + A8525BA21BD2A7A6009FCE68 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = A8525B861BD2A7A6009FCE68 /* native-fft-test */; + targetProxy = A8525BA11BD2A7A6009FCE68 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + A8525B941BD2A7A6009FCE68 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + A8525B951BD2A7A6009FCE68 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + A8525B991BD2A7A6009FCE68 /* LaunchScreen.xib */ = { + isa = PBXVariantGroup; + children = ( + A8525B9A1BD2A7A6009FCE68 /* Base */, + ); + name = LaunchScreen.xib; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + A8525BA91BD2A7A6009FCE68 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + HEADER_SEARCH_PATHS = ( + "$(inherited)", + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, + "/Users/cannam/code/qm/js-dsp-test/fft/native/bqfft", + "/Users/cannam/code/qm/js-dsp-test/fft/native/bqvec", + ); + "HEADER_SEARCH_PATHS[arch=*]" = ( + "$(inherited)", + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, + ); + IPHONEOS_DEPLOYMENT_TARGET = 8.1; + MTL_ENABLE_DEBUG_INFO = NO; + OTHER_CFLAGS = ( + "-DHAVE_VDSP", + "-DMALLOC_IS_ALIGNED", + ); + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + USER_HEADER_SEARCH_PATHS = ""; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + A8525BAC1BD2A7A6009FCE68 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = "native-fft-test/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; + A8525BAF1BD2A7A6009FCE68 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + ); + INFOPLIST_FILE = "native-fft-testTests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/native-fft-test.app/native-fft-test"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + A8525B821BD2A7A6009FCE68 /* Build configuration list for PBXProject "native-fft-test" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + A8525BA91BD2A7A6009FCE68 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + A8525BAA1BD2A7A6009FCE68 /* Build configuration list for PBXNativeTarget "native-fft-test" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + A8525BAC1BD2A7A6009FCE68 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + A8525BAD1BD2A7A6009FCE68 /* Build configuration list for PBXNativeTarget "native-fft-testTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + A8525BAF1BD2A7A6009FCE68 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = A8525B7F1BD2A7A6009FCE68 /* Project object */; +} diff -r cf59817a5983 -r 55f715002fe5 fft/native/native-fft-test/native-fft-test.xcodeproj/project.xcworkspace/contents.xcworkspacedata --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fft/native/native-fft-test/native-fft-test.xcodeproj/project.xcworkspace/contents.xcworkspacedata Sat Oct 17 17:26:22 2015 +0100 @@ -0,0 +1,7 @@ + + + + + diff -r cf59817a5983 -r 55f715002fe5 fft/native/native-fft-test/native-fft-test.xcodeproj/project.xcworkspace/xcuserdata/cannam.xcuserdatad/UserInterfaceState.xcuserstate Binary file fft/native/native-fft-test/native-fft-test.xcodeproj/project.xcworkspace/xcuserdata/cannam.xcuserdatad/UserInterfaceState.xcuserstate has changed diff -r cf59817a5983 -r 55f715002fe5 fft/native/native-fft-test/native-fft-test.xcodeproj/xcuserdata/cannam.xcuserdatad/xcschemes/native-fft-test.xcscheme --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fft/native/native-fft-test/native-fft-test.xcodeproj/xcuserdata/cannam.xcuserdatad/xcschemes/native-fft-test.xcscheme Sat Oct 17 17:26:22 2015 +0100 @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r cf59817a5983 -r 55f715002fe5 fft/native/native-fft-test/native-fft-test.xcodeproj/xcuserdata/cannam.xcuserdatad/xcschemes/xcschememanagement.plist --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fft/native/native-fft-test/native-fft-test.xcodeproj/xcuserdata/cannam.xcuserdatad/xcschemes/xcschememanagement.plist Sat Oct 17 17:26:22 2015 +0100 @@ -0,0 +1,27 @@ + + + + + SchemeUserState + + native-fft-test.xcscheme + + orderHint + 0 + + + SuppressBuildableAutocreation + + A8525B861BD2A7A6009FCE68 + + primary + + + A8525B9F1BD2A7A6009FCE68 + + primary + + + + + diff -r cf59817a5983 -r 55f715002fe5 fft/native/native-fft-test/native-fft-test/AppDelegate.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fft/native/native-fft-test/native-fft-test/AppDelegate.h Sat Oct 17 17:26:22 2015 +0100 @@ -0,0 +1,17 @@ +// +// AppDelegate.h +// native-fft-test +// +// Created by Chris Cannam on 17/10/2015. +// Copyright (c) 2015 Chris Cannam. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + + +@end + diff -r cf59817a5983 -r 55f715002fe5 fft/native/native-fft-test/native-fft-test/AppDelegate.m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fft/native/native-fft-test/native-fft-test/AppDelegate.m Sat Oct 17 17:26:22 2015 +0100 @@ -0,0 +1,45 @@ +// +// AppDelegate.m +// native-fft-test +// +// Created by Chris Cannam on 17/10/2015. +// Copyright (c) 2015 Chris Cannam. All rights reserved. +// + +#import "AppDelegate.h" + +@interface AppDelegate () + +@end + +@implementation AppDelegate + + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + // Override point for customization after application launch. + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application { + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +} + +- (void)applicationWillTerminate:(UIApplication *)application { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +@end diff -r cf59817a5983 -r 55f715002fe5 fft/native/native-fft-test/native-fft-test/Base.lproj/LaunchScreen.xib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fft/native/native-fft-test/native-fft-test/Base.lproj/LaunchScreen.xib Sat Oct 17 17:26:22 2015 +0100 @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r cf59817a5983 -r 55f715002fe5 fft/native/native-fft-test/native-fft-test/Base.lproj/Main.storyboard --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fft/native/native-fft-test/native-fft-test/Base.lproj/Main.storyboard Sat Oct 17 17:26:22 2015 +0100 @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff -r cf59817a5983 -r 55f715002fe5 fft/native/native-fft-test/native-fft-test/Images.xcassets/AppIcon.appiconset/Contents.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fft/native/native-fft-test/native-fft-test/Images.xcassets/AppIcon.appiconset/Contents.json Sat Oct 17 17:26:22 2015 +0100 @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff -r cf59817a5983 -r 55f715002fe5 fft/native/native-fft-test/native-fft-test/Info.plist --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fft/native/native-fft-test/native-fft-test/Info.plist Sat Oct 17 17:26:22 2015 +0100 @@ -0,0 +1,47 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + com.breakfastquay.$(PRODUCT_NAME:rfc1034identifier) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff -r cf59817a5983 -r 55f715002fe5 fft/native/native-fft-test/native-fft-test/ViewController.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fft/native/native-fft-test/native-fft-test/ViewController.h Sat Oct 17 17:26:22 2015 +0100 @@ -0,0 +1,15 @@ +// +// ViewController.h +// native-fft-test +// +// Created by Chris Cannam on 17/10/2015. +// Copyright (c) 2015 Chris Cannam. All rights reserved. +// + +#import + +@interface ViewController : UIViewController + + +@end + diff -r cf59817a5983 -r 55f715002fe5 fft/native/native-fft-test/native-fft-test/ViewController.mm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fft/native/native-fft-test/native-fft-test/ViewController.mm Sat Oct 17 17:26:22 2015 +0100 @@ -0,0 +1,82 @@ +// +// ViewController.m +// native-fft-test +// +// Created by Chris Cannam on 17/10/2015. +// Copyright (c) 2015 Chris Cannam. All rights reserved. +// + +#import "ViewController.h" + +#include +#include +#include + +#include "bqfft/FFT.h" + +using namespace std; +using namespace breakfastquay; + +@interface ViewController () + +@end + +@implementation ViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + + vector sizes { 512, 2048 }; + + int iterations = 2000; + int times = 100; + + for (auto size: sizes) { + + FFT fft(size); + double total = 0.0; + + auto start = chrono::high_resolution_clock::now(); + + for (int ti = 0; ti < times; ++ti) { + + total = 0.0; + + for (int i = 0; i < iterations; ++i) { + + vector ri(size), ro(size/2+1), io(size/2+1); + for (int j = 0; j < size; ++j) { + ri[j] = (j % 2) / 4.0; + } + + fft.forward(ri.data(), ro.data(), io.data()); + + for (int j = 0; j <= size/2; ++j) { + total += sqrt(ro[j] * ro[j] + io[j] * io[j]); + } + + // synthesise the conjugate half + for (int j = 1; j < size/2; ++j) { + total += sqrt(ro[j] * ro[j] + io[j] * io[j]); + } + } + } + + auto end = chrono::high_resolution_clock::now(); + + double ms = chrono::duration(end - start).count() / times; + + cerr << "for " << iterations << " * size " << size << ": total = " + << total << ", time = " << ms + << " ms (" << (iterations / (ms / 1000.0)) << " itr/sec)" << endl; + } + + // Do any additional setup after loading the view, typically from a nib. +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff -r cf59817a5983 -r 55f715002fe5 fft/native/native-fft-test/native-fft-test/main.m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fft/native/native-fft-test/native-fft-test/main.m Sat Oct 17 17:26:22 2015 +0100 @@ -0,0 +1,16 @@ +// +// main.m +// native-fft-test +// +// Created by Chris Cannam on 17/10/2015. +// Copyright (c) 2015 Chris Cannam. All rights reserved. +// + +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff -r cf59817a5983 -r 55f715002fe5 fft/native/native-fft-test/native-fft-testTests/Info.plist --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fft/native/native-fft-test/native-fft-testTests/Info.plist Sat Oct 17 17:26:22 2015 +0100 @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + com.breakfastquay.$(PRODUCT_NAME:rfc1034identifier) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff -r cf59817a5983 -r 55f715002fe5 fft/native/native-fft-test/native-fft-testTests/native_fft_testTests.m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fft/native/native-fft-test/native-fft-testTests/native_fft_testTests.m Sat Oct 17 17:26:22 2015 +0100 @@ -0,0 +1,40 @@ +// +// native_fft_testTests.m +// native-fft-testTests +// +// Created by Chris Cannam on 17/10/2015. +// Copyright (c) 2015 Chris Cannam. All rights reserved. +// + +#import +#import + +@interface native_fft_testTests : XCTestCase + +@end + +@implementation native_fft_testTests + +- (void)setUp { + [super setUp]; + // Put setup code here. This method is called before the invocation of each test method in the class. +} + +- (void)tearDown { + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample { + // This is an example of a functional test case. + XCTAssert(YES, @"Pass"); +} + +- (void)testPerformanceExample { + // This is an example of a performance test case. + [self measureBlock:^{ + // Put the code you want to measure the time of here. + }]; +} + +@end