Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
warmwaffles
6 months ago
|
parent
|
context
|
favorite
| on:
Writing memory efficient C structs
This is also applicable outside of C as well.
mcraiha
6 months ago
[–]
"The x_position and y_position can unfortunately not get a smaller type nor can a float be unsigned." If you have latest C++, you can use float16_t or bfloat16_t to get smaller type
https://en.cppreference.com/w/cpp/types/floating-point.html
david2ndaccount
6 months ago
|
parent
[–]
C23 has _Float16
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: