mm2 / Little-CMS

A free, open source, CMM engine. It provides fast transforms between ICC profiles.
https://www.littlecms.com
MIT License
549 stars 174 forks source link

Simplify fixed-point to double conversion routines #379

Closed nico closed 1 year ago

nico commented 1 year ago

No behavior change.

I checked that old and new code has the same results: https://godbolt.org/z/Eo3GT7rzP

mm2 commented 1 year ago

It is a nice idea, and it seems to work on all cases I've tried. As soon as I could check a big endian machine I will accept the PR