The pixels are still packed as RGBX in memory but no structure is created, it’s just a contiguous buffer. Interpolation is now done with SIMD on integer values. - Add SIMD define.
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			417 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			417 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
CXX     = clang++
 | 
						|
CXXFLAGS = -std=c++11 -W -Wall -O3 -ffast-math -g -Werror
 | 
						|
DEFINES = -DSIMD
 | 
						|
BUILD_DIR=/tmp
 | 
						|
IMG=img/lena.ppm
 | 
						|
 | 
						|
all: rotation.cpp
 | 
						|
	$(CXX) $(CXXFLAGS) $(DEFINES) $< -o $(BUILD_DIR)/rotation
 | 
						|
 | 
						|
clean:
 | 
						|
	@rm -f *~ *.o .*.swp *.ppm cachegrind.out.*
 | 
						|
 | 
						|
run: all
 | 
						|
	$(BUILD_DIR)/rotation $(IMG)
 | 
						|
 | 
						|
debug: all
 | 
						|
	lldb $(BUILD_DIR)/rotation $(IMG)
 | 
						|
 | 
						|
cachegrind: all
 | 
						|
	valgrind --tool=cachegrind $(BUILD_DIR)/rotation $(IMG)
 |