Skip to content

Commit

Permalink
Do away with Intrinsics.h
Browse files Browse the repository at this point in the history
  • Loading branch information
revmischa committed Feb 20, 2021
1 parent 3cd8efa commit b3c3282
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 29 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT([projectM], [3.1.11], [[email protected]], [projectM], [https://github.com/projectM-visualizer/projectm/])
AC_INIT([projectM], [3.1.12], [[email protected]], [projectM], [https://github.com/projectM-visualizer/projectm/])
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects tar-pax])

AX_IS_RELEASE([git-directory])
Expand Down
2 changes: 0 additions & 2 deletions src/libprojectM/Common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#include <cstdarg>
#include <cassert>

#include "Intrinsics.h"

#ifdef _MSC_VER
#define strcasecmp(s, t) _strcmpi(s, t)
#endif
Expand Down
16 changes: 0 additions & 16 deletions src/libprojectM/Intrinsics.h

This file was deleted.

2 changes: 1 addition & 1 deletion src/libprojectM/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ libprojectM_la_SOURCES = ConfigFile.cpp Preset.cpp PresetLoader.cpp timer.cpp \
HungarianMethod.hpp Preset.hpp RandomNumberGenerators.hpp\
IdleTextures.hpp PresetChooser.hpp TimeKeeper.hpp\
KeyHandler.hpp PresetFactory.hpp projectM.hpp\
BackgroundWorker.h Intrinsics.h \
BackgroundWorker.h \
PCM.hpp PresetFactoryManager.hpp\
projectM.hpp projectM-opengl.h \
ConfigFile.h \
Expand Down
4 changes: 2 additions & 2 deletions src/libprojectM/MilkdropPresetFactory/MilkdropPreset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#include "PresetFactoryManager.hpp"
#include "MilkdropPresetFactory.hpp"

#ifdef _HAS_SSE2_
#ifdef __SSE2__
#include <immintrin.h>
#endif

Expand Down Expand Up @@ -391,7 +391,7 @@ void MilkdropPreset::evaluateFrame()
}


#ifdef _HAS_SSE2_
#ifdef __SSE2__
inline void init_mesh(float **mesh, const float value, const int gx, const int gy)
{
__m128 mvalue = _mm_set_ps1(value);
Expand Down
2 changes: 1 addition & 1 deletion src/libprojectM/MilkdropPresetFactory/Param.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Preset;
class Test;


#ifdef _HAS_SSE2_
#ifdef __SSE2__
#include <immintrin.h>
#endif

Expand Down
6 changes: 3 additions & 3 deletions src/libprojectM/MilkdropPresetFactory/PresetFrameIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <cmath>
#include "Renderer/BeatDetect.hpp"

#ifdef _HAS_SSE2_
#ifdef __SSE2__
#include <immintrin.h>
#endif

Expand Down Expand Up @@ -235,7 +235,7 @@ void PresetOutputs::PerPixelMath_c(const PipelineContext &context)
}


#ifdef _HAS_SSE2_
#ifdef __SSE2__

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

void PresetOutputs::PerPixelMath(const PipelineContext &context)
{
#ifdef _HAS_SSE2_
#ifdef __SSE2__
PerPixelMath_sse(context);
#else
PerPixelMath_c(context);
Expand Down
2 changes: 1 addition & 1 deletion src/libprojectM/MilkdropPresetFactory/PresetFrameIO.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class PresetOutputs : public Pipeline {

private:
void PerPixelMath_c( const PipelineContext &context);
#ifdef _HAS_SSE2_
#ifdef __SSE2__
void PerPixelMath_sse( const PipelineContext &context);
#endif
};
Expand Down
5 changes: 3 additions & 2 deletions src/projectM-sdl/SDLprojectM.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "-DDATADIR_PATH='\"/usr/local/share/projectM\"'";
OTHER_LDFLAGS = "-lSDL2";
};
name = Debug;
};
Expand Down Expand Up @@ -588,7 +589,9 @@
LIBRARY_SEARCH_PATHS = /usr/local/lib;
MACOSX_DEPLOYMENT_TARGET = 10.9;
MTL_ENABLE_DEBUG_INFO = NO;
ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "-DDATADIR_PATH='\"/usr/local/share/projectM\"'";
OTHER_LDFLAGS = "-lSDL2";
};
name = Release;
};
Expand All @@ -604,7 +607,6 @@
INFOPLIST_FILE = "$(SRCROOT)/projectM-SDL/Info.plist";
LIBRARY_SEARCH_PATHS = /usr/local/lib;
MARKETING_VERSION = 3.1.11;
OTHER_LDFLAGS = "-lSDL2";
PRODUCT_BUNDLE_IDENTIFIER = net.projectm.sdl;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -624,7 +626,6 @@
INFOPLIST_FILE = "$(SRCROOT)/projectM-SDL/Info.plist";
LIBRARY_SEARCH_PATHS = /usr/local/lib;
MARKETING_VERSION = 3.1.11;
OTHER_LDFLAGS = "-lSDL2";
PRODUCT_BUNDLE_IDENTIFIER = net.projectm.sdl;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down

0 comments on commit b3c3282

Please sign in to comment.