Tweak of the documentation.

This commit is contained in:
Daniel Lemire 2020-11-07 16:33:12 -05:00
parent d9456b3030
commit 268f26a84f
1 changed files with 3 additions and 1 deletions

View File

@ -116,7 +116,9 @@ simdjson_really_inline bool compute_float_64(int64_t power, uint64_t i, bool neg
// For power in (-400,350), we have that
// (((152170 + 65536) * power ) >> 16);
// is equal to
// floor(log(5**power)/log(2)) + power
// floor(log(5**power)/log(2)) + power when power >= 0
// and it is equal to
// ceil(log(5**-power)/log(2)) + power when power < 0
//
// The 65536 is (1<<16) and corresponds to
// (65536 * power) >> 16 ---> power