mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
math: remove the C backend for f64 functions (#12121)
This commit is contained in:
committed by
GitHub
parent
83bc9b35b1
commit
0f7dfb984a
@@ -1,15 +1,7 @@
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user