Remove RGBX structure.
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.
This commit is contained in:
parent
cce4d45ba6
commit
bcf16680ae
3 changed files with 65 additions and 44 deletions
5
Makefile
5
Makefile
|
@ -1,10 +1,11 @@
|
|||
CXX = clang++
|
||||
CXXFLAGS = -std=c++11 -W -Wall -O3 -ffast-math -Werror -g
|
||||
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) $< -o $(BUILD_DIR)/rotation
|
||||
$(CXX) $(CXXFLAGS) $(DEFINES) $< -o $(BUILD_DIR)/rotation
|
||||
|
||||
clean:
|
||||
@rm -f *~ *.o .*.swp *.ppm cachegrind.out.*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue