Tim Kientzle
e943878f9a
Prefill the work buffer with '0' characters
...
For example, this avoids the need to do any explicit byte-by-byte
writes when expanding "123" out to "123000000.0".
This also required reworking the "back out extra digits" process
for Float64 to ensure the unused digits get written as '0' characters
instead of null bytes.
2025-09-22 12:40:12 -07:00
Tim Kientzle
1a3a40003c
Minor safety and performance tweaks
2025-09-22 12:40:11 -07:00
Tim Kientzle
ae75afbb88
Try to fix a crash only seen so far on WASI32
2025-09-22 12:40:11 -07:00
Tim Kientzle
31930123e5
Remove extra semicolons
2025-09-22 12:40:11 -07:00
Tim Kientzle
acd43ad355
Fix Float32 formatting on 32-bit architectures
2025-09-22 12:40:11 -07:00
Tim Kientzle
a6fd1aa955
Fix build when Int is 16 bits
2025-09-22 12:40:11 -07:00
Tim Kientzle
2bf38bf578
Remove a layer of indirection
2025-09-22 12:40:11 -07:00
Tim Kientzle
de7c280e9c
Try to match stdlib coding conventions
2025-09-22 12:40:10 -07:00
Tim Kientzle
cf552ea9ce
Match up conditional for Float80 support
2025-09-22 12:40:10 -07:00
Tim Kientzle
8e40ac8568
Fix availability
2025-09-22 12:40:10 -07:00
Tim Kientzle
d9907324a1
Comment updates
2025-09-22 12:40:09 -07:00
Tim Kientzle
e3990c6085
Float80 performance
2025-09-22 12:40:09 -07:00
Tim Kientzle
7be098f839
Initial Float80 support + some general reorganization and commenting
2025-09-22 12:40:09 -07:00
Tim Kientzle
175e1d78b3
Float32/64 safety improvements
2025-09-22 12:40:09 -07:00
Tim Kientzle
b50a2e6ead
Float16 tweaks: balancing safety and performance
2025-09-22 12:40:09 -07:00
Tim Kientzle
070fd6006e
Add Float16 support to the Swift implementation
2025-09-22 12:40:08 -07:00
Tim Kientzle
4cf03a47bc
Reimplement floating-point description implementation in Swift.
...
Note: This is still incomplete. I need to finish porting the Float16
and Float80 support before it can fully replace the existing
C implementation.
2025-09-22 12:40:08 -07:00