Skip to content

Commit b3c3282

Browse files
committed
Do away with Intrinsics.h
1 parent 3cd8efa commit b3c3282

File tree

9 files changed

+12
-29
lines changed

9 files changed

+12
-29
lines changed

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AC_INIT([projectM], [3.1.11], [[email protected]], [projectM], [https://github.com/projectM-visualizer/projectm/])
1+
AC_INIT([projectM], [3.1.12], [[email protected]], [projectM], [https://github.com/projectM-visualizer/projectm/])
22
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects tar-pax])
33

44
AX_IS_RELEASE([git-directory])

src/libprojectM/Common.hpp

-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
#include <cstdarg>
3232
#include <cassert>
3333

34-
#include "Intrinsics.h"
35-
3634
#ifdef _MSC_VER
3735
#define strcasecmp(s, t) _strcmpi(s, t)
3836
#endif

src/libprojectM/Intrinsics.h

-16
This file was deleted.

src/libprojectM/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ libprojectM_la_SOURCES = ConfigFile.cpp Preset.cpp PresetLoader.cpp timer.cpp \
2929
HungarianMethod.hpp Preset.hpp RandomNumberGenerators.hpp\
3030
IdleTextures.hpp PresetChooser.hpp TimeKeeper.hpp\
3131
KeyHandler.hpp PresetFactory.hpp projectM.hpp\
32-
BackgroundWorker.h Intrinsics.h \
32+
BackgroundWorker.h \
3333
PCM.hpp PresetFactoryManager.hpp\
3434
projectM.hpp projectM-opengl.h \
3535
ConfigFile.h \

src/libprojectM/MilkdropPresetFactory/MilkdropPreset.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
#include "PresetFactoryManager.hpp"
4545
#include "MilkdropPresetFactory.hpp"
4646

47-
#ifdef _HAS_SSE2_
47+
#ifdef __SSE2__
4848
#include <immintrin.h>
4949
#endif
5050

@@ -391,7 +391,7 @@ void MilkdropPreset::evaluateFrame()
391391
}
392392

393393

394-
#ifdef _HAS_SSE2_
394+
#ifdef __SSE2__
395395
inline void init_mesh(float **mesh, const float value, const int gx, const int gy)
396396
{
397397
__m128 mvalue = _mm_set_ps1(value);

src/libprojectM/MilkdropPresetFactory/Param.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Preset;
6060
class Test;
6161

6262

63-
#ifdef _HAS_SSE2_
63+
#ifdef __SSE2__
6464
#include <immintrin.h>
6565
#endif
6666

src/libprojectM/MilkdropPresetFactory/PresetFrameIO.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <cmath>
77
#include "Renderer/BeatDetect.hpp"
88

9-
#ifdef _HAS_SSE2_
9+
#ifdef __SSE2__
1010
#include <immintrin.h>
1111
#endif
1212

@@ -235,7 +235,7 @@ void PresetOutputs::PerPixelMath_c(const PipelineContext &context)
235235
}
236236

237237

238-
#ifdef _HAS_SSE2_
238+
#ifdef __SSE2__
239239

240240
// is there an SSE way to do this?
241241
inline __m128 _mm_pow(__m128 x, __m128 y)
@@ -448,7 +448,7 @@ void PresetOutputs::PerPixelMath_sse(const PipelineContext &context)
448448

449449
void PresetOutputs::PerPixelMath(const PipelineContext &context)
450450
{
451-
#ifdef _HAS_SSE2_
451+
#ifdef __SSE2__
452452
PerPixelMath_sse(context);
453453
#else
454454
PerPixelMath_c(context);

src/libprojectM/MilkdropPresetFactory/PresetFrameIO.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class PresetOutputs : public Pipeline {
141141

142142
private:
143143
void PerPixelMath_c( const PipelineContext &context);
144-
#ifdef _HAS_SSE2_
144+
#ifdef __SSE2__
145145
void PerPixelMath_sse( const PipelineContext &context);
146146
#endif
147147
};

src/projectM-sdl/SDLprojectM.xcodeproj/project.pbxproj

+3-2
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@
543543
MTL_ENABLE_DEBUG_INFO = YES;
544544
ONLY_ACTIVE_ARCH = YES;
545545
OTHER_CFLAGS = "-DDATADIR_PATH='\"/usr/local/share/projectM\"'";
546+
OTHER_LDFLAGS = "-lSDL2";
546547
};
547548
name = Debug;
548549
};
@@ -588,7 +589,9 @@
588589
LIBRARY_SEARCH_PATHS = /usr/local/lib;
589590
MACOSX_DEPLOYMENT_TARGET = 10.9;
590591
MTL_ENABLE_DEBUG_INFO = NO;
592+
ONLY_ACTIVE_ARCH = YES;
591593
OTHER_CFLAGS = "-DDATADIR_PATH='\"/usr/local/share/projectM\"'";
594+
OTHER_LDFLAGS = "-lSDL2";
592595
};
593596
name = Release;
594597
};
@@ -604,7 +607,6 @@
604607
INFOPLIST_FILE = "$(SRCROOT)/projectM-SDL/Info.plist";
605608
LIBRARY_SEARCH_PATHS = /usr/local/lib;
606609
MARKETING_VERSION = 3.1.11;
607-
OTHER_LDFLAGS = "-lSDL2";
608610
PRODUCT_BUNDLE_IDENTIFIER = net.projectm.sdl;
609611
PRODUCT_NAME = "$(TARGET_NAME)";
610612
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -624,7 +626,6 @@
624626
INFOPLIST_FILE = "$(SRCROOT)/projectM-SDL/Info.plist";
625627
LIBRARY_SEARCH_PATHS = /usr/local/lib;
626628
MARKETING_VERSION = 3.1.11;
627-
OTHER_LDFLAGS = "-lSDL2";
628629
PRODUCT_BUNDLE_IDENTIFIER = net.projectm.sdl;
629630
PRODUCT_NAME = "$(TARGET_NAME)";
630631
PROVISIONING_PROFILE_SPECIFIER = "";

0 commit comments

Comments
 (0)