mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
lib: Add libm_dbl, a double-precision math library, from musl-1.1.16.
This commit is contained in:
7
lib/libm_dbl/log10.c
Normal file
7
lib/libm_dbl/log10.c
Normal file
@@ -0,0 +1,7 @@
|
||||
#include <math.h>
|
||||
|
||||
static const double _M_LN10 = 2.302585092994046;
|
||||
|
||||
double log10(double x) {
|
||||
return log(x) / (double)_M_LN10;
|
||||
}
|
||||
Reference in New Issue
Block a user