mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Remove unneeded suffixes
This commit is contained in:
@@ -2,13 +2,13 @@ package math_linalg_glsl
|
|||||||
|
|
||||||
import "core:math"
|
import "core:math"
|
||||||
|
|
||||||
cos_f32 :: proc "c" (x: f32) -> f32 { return math.cos_f32(x) }
|
cos_f32 :: proc "c" (x: f32) -> f32 { return math.cos(x) }
|
||||||
sin_f32 :: proc "c" (x: f32) -> f32 { return math.sin_f32(x) }
|
sin_f32 :: proc "c" (x: f32) -> f32 { return math.sin(x) }
|
||||||
tan_f32 :: proc "c" (x: f32) -> f32 { return math.tan_f32(x) }
|
tan_f32 :: proc "c" (x: f32) -> f32 { return math.tan(x) }
|
||||||
acos_f32 :: proc "c" (x: f32) -> f32 { return math.acos(x) }
|
acos_f32 :: proc "c" (x: f32) -> f32 { return math.acos(x) }
|
||||||
asin_f32 :: proc "c" (x: f32) -> f32 { return math.asin(x) }
|
asin_f32 :: proc "c" (x: f32) -> f32 { return math.asin(x) }
|
||||||
atan_f32 :: proc "c" (x: f32) -> f32 { return math.atan(x) }
|
atan_f32 :: proc "c" (x: f32) -> f32 { return math.atan(x) }
|
||||||
atan2_f32 :: proc "c" (y, x: f32) -> f32 { return math.atan2_f32(y, x) }
|
atan2_f32 :: proc "c" (y, x: f32) -> f32 { return math.atan2(y, x) }
|
||||||
cosh_f32 :: proc "c" (x: f32) -> f32 { return math.cosh(x) }
|
cosh_f32 :: proc "c" (x: f32) -> f32 { return math.cosh(x) }
|
||||||
sinh_f32 :: proc "c" (x: f32) -> f32 { return math.sinh(x) }
|
sinh_f32 :: proc "c" (x: f32) -> f32 { return math.sinh(x) }
|
||||||
tanh_f32 :: proc "c" (x: f32) -> f32 { return math.tanh(x) }
|
tanh_f32 :: proc "c" (x: f32) -> f32 { return math.tanh(x) }
|
||||||
@@ -16,10 +16,10 @@ acosh_f32 :: proc "c" (x: f32) -> f32 { return math.acosh(x) }
|
|||||||
asinh_f32 :: proc "c" (x: f32) -> f32 { return math.asinh(x) }
|
asinh_f32 :: proc "c" (x: f32) -> f32 { return math.asinh(x) }
|
||||||
atanh_f32 :: proc "c" (x: f32) -> f32 { return math.atanh(x) }
|
atanh_f32 :: proc "c" (x: f32) -> f32 { return math.atanh(x) }
|
||||||
sqrt_f32 :: proc "c" (x: f32) -> f32 { return math.sqrt(x) }
|
sqrt_f32 :: proc "c" (x: f32) -> f32 { return math.sqrt(x) }
|
||||||
inversesqrt_f32 :: proc "c" (x: f32) -> f32 { return 1.0/sqrt_f32(x) }
|
inversesqrt_f32 :: proc "c" (x: f32) -> f32 { return 1.0/sqrt(x) }
|
||||||
pow_f32 :: proc "c" (x, y: f32) -> f32 { return math.pow(x, y) }
|
pow_f32 :: proc "c" (x, y: f32) -> f32 { return math.pow(x, y) }
|
||||||
exp_f32 :: proc "c" (x: f32) -> f32 { return math.exp(x) }
|
exp_f32 :: proc "c" (x: f32) -> f32 { return math.exp(x) }
|
||||||
log_f32 :: proc "c" (x: f32) -> f32 { return math.ln_f32(x) }
|
log_f32 :: proc "c" (x: f32) -> f32 { return math.ln(x) }
|
||||||
exp2_f32 :: proc "c" (x: f32) -> f32 { return pow(2, x) }
|
exp2_f32 :: proc "c" (x: f32) -> f32 { return pow(2, x) }
|
||||||
sign_f32 :: proc "c" (x: f32) -> f32 { return math.sign(x) }
|
sign_f32 :: proc "c" (x: f32) -> f32 { return math.sign(x) }
|
||||||
floor_f32 :: proc "c" (x: f32) -> f32 { return math.floor(x) }
|
floor_f32 :: proc "c" (x: f32) -> f32 { return math.floor(x) }
|
||||||
@@ -27,7 +27,7 @@ ceil_f32 :: proc "c" (x: f32) -> f32 { return math.ceil(x) }
|
|||||||
mod_f32 :: proc "c" (x, y: f32) -> f32 { return math.mod(x, y) }
|
mod_f32 :: proc "c" (x, y: f32) -> f32 { return math.mod(x, y) }
|
||||||
fract_f32 :: proc "c" (x: f32) -> f32 {
|
fract_f32 :: proc "c" (x: f32) -> f32 {
|
||||||
if x >= 0 {
|
if x >= 0 {
|
||||||
return x - math.trunc_f32(x)
|
return x - math.trunc(x)
|
||||||
}
|
}
|
||||||
return math.trunc_f32(-x) + x
|
return math.trunc(-x) + x
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user