3 ms·
Only if the function is inlined, at least it seems that way from experimenting on godbolt.org.
by flohofwoe 6y ago
Only if the function is inlined, at least it seems that way from experimenting on godbolt.org.
- nikki93 6y agohttps://godbolt.org/z/11931W https://godbolt.org/z/11931W Here's an example where it happens even when not inlining.
- flohofwoe 6y agoI guess that's because the struct size is below 16 bytes (see my sister comment). Adding two more ints to the struct places the entire content on the stack.