Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bonzini
on May 11, 2022
|
parent
|
context
|
favorite
| on:
Mysterious Memset
Replace *count with this->count and you can see why this can cause pessimization.
fguerraz
on May 11, 2022
[–]
What would that change? If this->count was a pointer you'd still have to de-reference it explicitly. Or am I missing the point of your argument?
bonzini
on May 11, 2022
|
parent
[–]
I agree that in this toy example passing a count argument by reference makes little sense, but you'd get the same thing if you accessed the count field field of
struct s { int count; char *chars; };
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: