From 6ca07f1e28865070ddb4fb3a91c0ebc88b195da1 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 1 Aug 2017 22:04:58 -0400 Subject: [PATCH] I guess it might end up living somewhere else, but introduced a header with the compiler-specific stuff to allow me to force things inline. --- ClockReceiver/ForceInline.h | 18 ++++++++++++++++++ .../Mac/Clock Signal.xcodeproj/project.pbxproj | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 ClockReceiver/ForceInline.h diff --git a/ClockReceiver/ForceInline.h b/ClockReceiver/ForceInline.h new file mode 100644 index 000000000..786e41c2d --- /dev/null +++ b/ClockReceiver/ForceInline.h @@ -0,0 +1,18 @@ +// +// ForceInline.h +// Clock Signal +// +// Created by Thomas Harte on 01/08/2017. +// Copyright © 2017 Thomas Harte. All rights reserved. +// + +#ifndef ForceInline_h +#define ForceInline_h + +#ifdef __GNUC__ +#define forceinline __attribute__((always_inline)) inline +#elif _MSC_VER +#define forceinline __forceinline +#endif + +#endif /* ForceInline_h */ diff --git a/OSBindings/Mac/Clock Signal.xcodeproj/project.pbxproj b/OSBindings/Mac/Clock Signal.xcodeproj/project.pbxproj index 31873f6f7..ac1236c91 100644 --- a/OSBindings/Mac/Clock Signal.xcodeproj/project.pbxproj +++ b/OSBindings/Mac/Clock Signal.xcodeproj/project.pbxproj @@ -655,6 +655,7 @@ 4BAB62B41D327F7E00DF5BA0 /* G64.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = G64.hpp; sourceTree = ""; }; 4BAB62B61D3302CA00DF5BA0 /* PCMTrack.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PCMTrack.cpp; sourceTree = ""; }; 4BAB62B71D3302CA00DF5BA0 /* PCMTrack.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = PCMTrack.hpp; sourceTree = ""; }; + 4BB06B211F316A3F00600C7A /* ForceInline.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ForceInline.h; sourceTree = ""; }; 4BB17D4C1ED7909F00ABD1E1 /* tests.expected.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = tests.expected.json; path = FUSE/tests.expected.json; sourceTree = ""; }; 4BB17D4D1ED7909F00ABD1E1 /* tests.in.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = tests.in.json; path = FUSE/tests.in.json; sourceTree = ""; }; 4BB297E51B587D8300A49093 /* start */ = {isa = PBXFileReference; lastKnownFileType = file; path = " start"; sourceTree = ""; }; @@ -2219,6 +2220,7 @@ isa = PBXGroup; children = ( 4BF6606A1F281573002CB053 /* ClockReceiver.hpp */, + 4BB06B211F316A3F00600C7A /* ForceInline.h */, ); name = ClockReceiver; path = ../../ClockReceiver;