Skip to content

Commit a928cc0

Browse files
committed
Use the 'Wrapping' integer type instead of wrapping methods in IDCT
The IDCT code is full of wrapping integer arithmetic. This commit changes the code to use std::num::Wrapping instead of i32::wrapping_* methods. This is a big commit in term of number of lines changed, but this should have absolutely no impact on the generated machine code. This just makes the IDCT code much easier to read, which should in turn make it easier to optimize.
1 parent 1e54da1 commit a928cc0

File tree

2 files changed

+143
-142
lines changed

2 files changed

+143
-142
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# jpeg-decoder
22

3-
[![Rust CI](https://github.com/image-rs/jpeg-decoder/workflows/Rust%20CI/badge.svg)
3+
[![Rust CI](https://github.com/image-rs/jpeg-decoder/workflows/Rust%20CI/badge.svg)](https://github.com/image-rs/jpeg-decoder/actions)
44
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/k65rrkd0f8yb4o9w/branch/master?svg=true)](https://ci.appveyor.com/project/kaksmet/jpeg-decoder/branch/master)
55
[![Crates.io](https://img.shields.io/crates/v/jpeg-decoder.svg)](https://crates.io/crates/jpeg-decoder)
66

0 commit comments

Comments
 (0)