1 2 3 4 5 6 7 8 9 10 11 12 13 14
// SPDX-License-Identifier: MIT /* * File: src/math/trunc.rs * * The trunc function. * * Author: HTG-YT * Copyright (c) 2021 The LibM Team of the HaruxOS Project */ #[no_mangle] pub extern "C" fn trunc(x: f64) -> f64 { libm::trunc(x) }