Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   Turning lowers to uppers without a branch (https://www.delphipraxis.net/215328-turning-lowers-uppers-without-branch.html)

DP News-Robot 14. Jun 2024 07:10

Turning lowers to uppers without a branch
 
In another comment of the Curiouser Case, Arnaud Bouchez pointed to an interesting optimization that is use in mORMot‘s UpperCopy255Buf function: a branchless parallel upper case conversion. At the core of that implementation are the following lines of code c := src[i]; d := c or _80; dest[i] := c - ((d - _61) and…

The post Turning lowers to uppers without a branch first appeared on


Alle Zeitangaben in WEZ +1. Es ist jetzt 15:48 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz