aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/math/log.c.v
diff options
context:
space:
mode:
Diffstat (limited to 'v_windows/v/vlib/math/log.c.v')
-rw-r--r--v_windows/v/vlib/math/log.c.v25
1 files changed, 25 insertions, 0 deletions
diff --git a/v_windows/v/vlib/math/log.c.v b/v_windows/v/vlib/math/log.c.v
new file mode 100644
index 0000000..f2f8c93
--- /dev/null
+++ b/v_windows/v/vlib/math/log.c.v
@@ -0,0 +1,25 @@
+module math
+
+fn C.log(x f64) f64
+
+fn C.log2(x f64) f64
+
+fn C.log10(x f64) f64
+
+// log calculates natural (base-e) logarithm of the provided value.
+[inline]
+pub fn log(x f64) f64 {
+ return C.log(x)
+}
+
+// log2 calculates base-2 logarithm of the provided value.
+[inline]
+pub fn log2(x f64) f64 {
+ return C.log2(x)
+}
+
+// log10 calculates the common (base-10) logarithm of the provided value.
+[inline]
+pub fn log10(x f64) f64 {
+ return C.log10(x)
+}