Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
saurik
on June 19, 2021
|
parent
|
context
|
favorite
| on:
Designing a better strcpy
It does suck that the usual 64-bit calling convention limits the size of strict passed by value to 64-bits :/.
gpderetta
on June 20, 2021
|
next
[–]
At least linux AMD64 ABI allows passing (and returning) 128 bit structures by registers, which is perfect for the ptr/len case.
thysultan
on June 19, 2021
|
prev
[–]
You could store two 32 bit fields and cast the second to a pointer when needed, and the first treat as a length.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: