Skip to content

Commit

Permalink
Merge pull request #7 from awxkee/dev
Browse files Browse the repository at this point in the history
SSE unpremultiply hotfix
  • Loading branch information
awxkee authored Nov 14, 2024
2 parents c114a15 + 8df66b6 commit e155852
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ workspace = { members = ["app", "wasm"] }

[package]
name = "pic-scale"
version = "0.3.2"
version = "0.3.3"
edition = "2021"
description = "High performance image scaling"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion src/sse/alpha_u8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ pub fn sse_unpremultiply_alpha_rgba(
unsafe fn sse_unpremultiply_alpha_rgba_impl_row(in_place: &mut [u8]) {
let mut rem = in_place;
unsafe {
for dst in rem.chunks_exact_mut(8 * 4) {
for dst in rem.chunks_exact_mut(16 * 4) {
let src_ptr = dst.as_ptr();
let rgba0 = _mm_loadu_si128(src_ptr as *const __m128i);
let rgba1 = _mm_loadu_si128(src_ptr.add(16) as *const __m128i);
Expand Down

0 comments on commit e155852

Please sign in to comment.