Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mcraiha
on July 30, 2025
|
parent
|
context
|
favorite
| on:
Writing memory efficient C structs
"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
on July 30, 2025
[–]
C23 has _Float16
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: