Commit 62e50ab
Loop optimization: auto align elf64 loop targets (#72)
* Adding a better version of the C opt loop
* Add missing file
* Using test optimization and compilation for clang gcc
* Adding NOP to try loop aligned
* Update elf64.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Auto align jump targets
* Fix the govulncheck ci error
* Fix the for linter too (mix of C and go in sample/)
* Auto align so we don't need the manually aligned one
* Clean up a bit the code (#73)
* simplify minloop
* lint
* Use constants for nop and rex* and refactor code a bit
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 5d73efc commit 62e50ab
File tree
12 files changed
+293
-176
lines changed- .github/workflows
- asm
- cpu
- cvm
- native
- sample
12 files changed
+293
-176
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
322 | 322 | | |
323 | | - | |
| 323 | + | |
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
423 | 426 | | |
424 | 427 | | |
425 | 428 | | |
| |||
0 commit comments