#CompilerOptimization

2024-02-13

Excited to learn about how KDAB's Shivam Kunwar is tackling the challenge of mapping LLVM values to source-level expressions at #FOSDEM 2024. Discover how this project using #LLVM intrinsic functions can revolutionize code optimization and memory access Thank you, @fosdem! More info: fosdem.org/2024/schedule/event #CompilerOptimization #CodeOptimization #MemoryAccess

Jan :rust: :ferris:janriemer@floss.social
2024-01-20

Did you know that for natural numbers:

{x: >= 0, y = 2ⁿ}

the follow holds true:

x mod y

is equal to

x & (y - 1)

Example:

31882511 mod 1024

is equal to

31882511 & 1023

(where `mod` is the modulo operation and `&` is bitwise-and)

#Math #Algorithms #Programming #CompilerOptimization #Performance #Optimization

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst