Skip to content

Commit

Permalink
add support for f128 parsing
Browse files Browse the repository at this point in the history
This does not implement the eisel-lemire algorithm for f128, but does
implement the fast and slow-paths. The existing code-path for f64 or
smaller uses the same types as internal types have been specialized
specifically for f128. This ensures performance for the more widely used
floating point types is not impacted by f128 support.

The slow-path decimal shift table-code has been reworked to use a more
direct set of constants. The previous implementation (based on rust
dec2flt) encoded the data in a non-obvious and was a pain to update.
There is no practical performance difference between the two.

All f128 tests pass when using the parse-number-fxx-test-data repo.
  • Loading branch information
tiehuis committed May 2, 2022
1 parent e9cba1c commit db7bfff
Show file tree
Hide file tree
Showing 12 changed files with 704 additions and 491 deletions.
383 changes: 0 additions & 383 deletions Decimal.zig

This file was deleted.

0 comments on commit db7bfff

Please sign in to comment.