aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/math/sqrt.c.v
blob: a070c32f71b941e0fad8e870437386c35e92a73f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module math

fn C.sqrt(x f64) f64

fn C.sqrtf(x f32) f32

// sqrt calculates square-root of the provided value.
[inline]
pub fn sqrt(a f64) f64 {
	return C.sqrt(a)
}

// sqrtf calculates square-root of the provided value. (float32)
[inline]
pub fn sqrtf(a f32) f32 {
	return C.sqrtf(a)
}