From cf8155610076e04a3abedbe5e24ce8eabf14aa6e Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Wed, 29 Jun 2022 00:34:47 -0500 Subject: [PATCH] rename --- src/pixie/images.nim | 4 ++-- src/pixie/simd.nim | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pixie/images.nim b/src/pixie/images.nim index 9951365..33119db 100644 --- a/src/pixie/images.nim +++ b/src/pixie/images.nim @@ -418,8 +418,8 @@ proc applyOpacity*(target: Image | Mask, opacity: float32) {.raises: [].} = proc invert*(image: Image) {.raises: [].} = ## Inverts all of the colors and alpha. - when allowSimd and compiles(invertSimd): - invertSimd( + when allowSimd and compiles(invertImageSimd): + invertImageSimd( cast[ptr UncheckedArray[ColorRGBX]](image.data[0].addr), image.data.len ) diff --git a/src/pixie/simd.nim b/src/pixie/simd.nim index 0deb2aa..13453d1 100644 --- a/src/pixie/simd.nim +++ b/src/pixie/simd.nim @@ -231,7 +231,7 @@ when defined(amd64): for i in i ..< len: dst[i] = src[i].a - proc invertSimd*(data: ptr UncheckedArray[ColorRGBX], len: int) = + proc invertImageSimd*(data: ptr UncheckedArray[ColorRGBX], len: int) = var i: int let vec255 = mm_set1_epi8(cast[int8](255)) for _ in 0 ..< len div 16: