Packages

builtin
cbindgen
core
core.alloc
core.alloc.arena
core.alloc.atomic
core.alloc.debug
core.alloc.fixed
core.alloc.gc
core.alloc.heap
core.alloc.log
core.alloc.memwatch
core.alloc.pool
core.alloc.ring
core.arg_parse
core.array
core.avl_tree
core.bucket_array
core.conv
core.crypto
core.crypto.keys
core.doc
core.encoding
core.encoding.base64
core.encoding.csv
core.encoding.hex
core.encoding.json
core.encoding.kdl
core.encoding.osad
core.encoding.utf8
core.encoding.xml
core.hash
core.hash.md5
core.hash.sha1
core.hash.sha256
core.heap
core.intrinsics
core.intrinsics.atomics
core.intrinsics.onyx
core.intrinsics.types
core.intrinsics.wasm
core.io
core.io.binary
core.iter
core.js
core.list
core.map
core.math
core.memory
core.misc
core.net
core.os
core.random
core.set
core.slice
core.string
core.sync
core.test
core.thread
core.time
main
runtime
runtime.info
runtime.platform
runtime.vars
simd

package core.math

abs
abs :: (x: $T) -> T
abs_fast
abs_fast :: (val: f32) -> f32
abs_fast :: (val: f64) -> f64
acos
acos :: (t: f32) -> f32
acosh
acosh :: (t: $T) -> T
asin
asin :: (t: f32) -> f32
asinh
asinh :: (t: $T) -> T
atan
atan :: (t: f32) -> f32
atan2
atan2 :: (t: f32) -> f32
atanh
atanh :: (t: $T) -> T
ceil
ceil :: (val: f32) -> f32
ceil :: (val: f64) -> f64
choose
choose :: (n: $T, k: T) -> T
clamp
clamp :: (v: $T, lo: T, hi: T) -> T
clz
clz :: (val: i32) -> i32
clz :: (val: i64) -> i64
copysign_poly
copysign_poly :: (x: $T, y: T) -> T
copysign
copysign :: (lhs: f32, rhs: f32) -> f32
copysign :: (lhs: f64, rhs: f64) -> f64
copysign :: (x: $T, y: T) -> T
cos
cos :: (t: f32) -> f32
cosh
cosh :: (t: $T) -> T
ctz
ctz :: (val: i32) -> i32
ctz :: (val: i64) -> i64
exp
exp :: (p: $T) -> T
floor
floor :: (val: f32) -> f32
floor :: (val: f64) -> f64
fmod
fmod :: (x: f64, y: f64) -> f64
fmod :: (x: f32, y: f32) -> f32
gcd
gcd :: (a: $T, b: T) -> T
ilog2
ilog2 :: (a: u32) -> u32
ilog2 :: (a: u64) -> u64
is_inf
is_inf :: (x: f32) -> bool
is_inf :: (x: f64) -> bool
is_nan
is_nan :: (x: f32) -> bool
is_nan :: (x: f64) -> bool
lcm
lcm :: (a: $T, b: T) -> T
lerp
lerp :: (t: f32, a: $T, b: T) -> T
ln
ln :: (a: f32) -> f32
log
log :: (a: $T, base: $R) -> T
max
max :: (a: $T, b: T) -> T
max_fast
max_fast :: (lhs: f32, rhs: f32) -> f32
max_fast :: (lhs: f64, rhs: f64) -> f64
min
min :: (a: $T, b: T) -> T
min_fast
min_fast :: (lhs: f32, rhs: f32) -> f32
min_fast :: (lhs: f64, rhs: f64) -> f64
nearest
nearest :: (val: f32) -> f32
nearest :: (val: f64) -> f64
popcnt
popcnt :: (val: i32) -> i32
popcnt :: (val: i64) -> i64
pow
pow :: (base: $T, p: i32) -> T
pow :: (base: $T, p: i64) -> T
pow :: (base: $T, p: T) -> T
power_mod
power_mod :: (base: u32, exp: u32, mod: u32) -> u32
rotate_left
rotate_left :: (lhs: i32, rhs: i32) -> i32
rotate_left :: (lhs: i64, rhs: i64) -> i64
rotate_right
rotate_right :: (lhs: i32, rhs: i32) -> i32
rotate_right :: (lhs: i64, rhs: i64) -> i64
sign
sign :: (x: $T) -> T
sin
sin :: (t: f32) -> f32
sinh
sinh :: (t: $T) -> T
sqrt
sqrt :: (val: f32) -> f32
sqrt :: (val: f64) -> f64
sqrt :: (x: $T) -> T
sqrt_poly
sqrt_poly :: (x: $T) -> T
tanh
tanh :: (t: $T) -> T
trunc
trunc :: (val: f32) -> f32
trunc :: (val: f64) -> f64