Skip to content

Commit

Permalink
re ulfjack#183: add f2s() versions for limited buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
biojppm committed Oct 12, 2020
1 parent 2c025da commit 5f3f553
Show file tree
Hide file tree
Showing 6 changed files with 283 additions and 204 deletions.
3 changes: 3 additions & 0 deletions ryu/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
#define RYU_32_BIT_PLATFORM
#endif

#define RYU_MAX_SIZE_2S 128
#define RYU_MAX_SIZE_2S_FIXED 2000

// Returns the number of decimal digits in v, which must not contain more than 9 digits.
static inline uint32_t decimalLength9(const uint32_t v) {
// Function precondition: v is not a 10-digit number.
Expand Down
Loading

0 comments on commit 5f3f553

Please sign in to comment.