about summary refs log tree commit diff
path: root/library/compiler-builtins/libm/src/math/sqrtf16.rs
blob: 7bedb7f8bbb6b55742b60f9383b2fda4931f3a16 (plain)
1
2
3
4
5
6
7
8
9
10
11
/// The square root of `x` (f16).
#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
pub fn sqrtf16(x: f16) -> f16 {
    select_implementation! {
        name: sqrtf16,
        use_arch: all(target_arch = "aarch64", target_feature = "fp16"),
        args: x,
    }

    return super::generic::sqrt(x);
}