Commit f7308e00 authored by Thiago Macieira's avatar Thiago Macieira Committed by The Qt Project
Browse files

Improve the code generation for the Latin1 codec


This change does not modify the actual algorithm implemented. It only
updates the source code so that the code generation is more optimal:
 - change only one variable per loop (the "offset" variable)
 - unroll the tail expansion of the last 15 characters

The Neon code for the toLatin1 codec most likely benefits from the
unrolling of the tail too, but I can't verify that I haven't broken
anything.

Change-Id: I8a92fd3c1aa700e6f8b0c8ebdb1978ade394757f
Reviewed-by: default avatarOlivier Goffart <ogoffart@woboq.com>
parent ab3637dd
Showing with 74 additions and 59 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment