https://github.com/bentobaux/toupper-simd
Converting lowercase to uppercase using SIMD in x86 Assembly.
https://github.com/bentobaux/toupper-simd
c simd sse toupper vectorization x86 x86-assembly
Last synced: about 2 months ago
JSON representation
Converting lowercase to uppercase using SIMD in x86 Assembly.
- Host: GitHub
- URL: https://github.com/bentobaux/toupper-simd
- Owner: bentoBAUX
- Created: 2024-12-07T11:44:43.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2025-01-05T15:33:08.000Z (5 months ago)
- Last Synced: 2025-02-06T03:39:40.970Z (4 months ago)
- Topics: c, simd, sse, toupper, vectorization, x86, x86-assembly
- Language: Assembly
- Homepage:
- Size: 473 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ToUpper() in SIMD x86 Assembly
Working with SIMD requires a little bit of brain gymnastics. To ease your understanding on this implementation, I have prepared a schematic. The requirements for this is that you already understand how to perform conditional checks using `pcmp` (Packed Compare) commands in x86 Assembly.
## Usage & Example
```cmd
> gcc -o src/simpleTest.c src/toupper.S
> ./
Before: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
After: LOREM IPSUM DOLOR SIT AMET, CONSECTETUR ADIPISCING ELIT, SED DO EIUSMOD TEMPOR INCIDIDUNT UT LABORE ET DOLORE MAGNA ALIQUA.
```
## Schematic
