613
Find yourself (lemmy.ml)
submitted 2 years ago by coja@lemmy.ml to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] Aceticon@lemmy.world 5 points 2 years ago* (last edited 2 years ago)

I was under the impression that modern compilers just inline something like that, and even in older languages (like C) use trickeries are used to inline it (typically MAX is a macro rather than a real function, so its always inlined)

Ultimatelly it depends not just on what you're doing but also the language and compiler you're using.

this post was submitted on 22 Oct 2023
613 points (95.7% liked)

Programmer Humor

35080 readers
83 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS