Files
turso/core
Luca Muscat 7cf77fb35b Fix fuzz issue #1763 by using the log2 & log10 functions where applicable
It is easy to chalk this fuzzer issue to erratic floating point
behaviour, but this is not the case here.

Currently, `exec_math_log` calculates log with arbitrary bases by using
the following formula: `log_a(b) ~= ln(b) / ln(a)`. This calculation is
an approximation with lots of its floating point precision lost to
dividing the results of natural logarithms.

By using the specialized versions of the log functions (`log2` &
`log10`), we can avoid this loss of precision.

SQLite also uses these specialized log functions when possible, so it
doesn't hurt to do the same thing when aiming for parity.
2025-06-20 10:52:13 +02:00
..
2025-05-23 12:37:03 -03:00
2025-05-15 09:59:46 +03:00
2025-05-15 09:59:46 +03:00
2025-05-30 13:07:31 +02:00
2025-06-18 17:40:53 +02:00
2025-06-17 19:33:23 +02:00
2025-05-15 09:59:46 +03:00
2025-01-28 14:55:38 -05:00
2025-06-11 14:19:06 -03:00
2025-01-28 14:55:38 -05:00
wip
2025-03-29 22:02:49 +01:00
2024-12-24 18:04:30 +01:00
2025-06-17 19:33:23 +02:00
2025-06-17 19:33:23 +02:00