externc_libm/
lib.rs

1// SPDX-License-Identifier: MIT
2/*
3 * File: src/lib.rs
4 *
5 * The externc-libm library.
6 *
7 * Author: HTG-YT
8 * Copyright (c) 2021 The LibM Team of the HaruxOS Project
9 */
10
11#![no_std]
12
13pub mod math {
14    pub mod acos;
15    pub mod acosf;
16    pub mod acosh;
17    pub mod acoshf;
18    pub mod asin;
19    pub mod asinf;
20    pub mod asinh;
21    pub mod asinhf;
22    pub mod atan;
23    pub mod atan2;
24    pub mod atan2f;
25    pub mod atanf;
26    pub mod atanh;
27    pub mod atanhf;
28    pub mod cbrt;
29    pub mod cbrtf;
30    pub mod ceil;
31    pub mod ceilf;
32    pub mod copysign;
33    pub mod copysignf;
34    pub mod cos;
35    pub mod cosf;
36    pub mod cosh;
37    pub mod coshf;
38    pub mod erf;
39    pub mod erfc;
40    pub mod erfcf;
41    pub mod erff;
42    pub mod exp;
43    pub mod exp2;
44    pub mod exp2f;
45    pub mod exp10;
46    pub mod exp10f;
47    pub mod expf;
48    pub mod expm1;
49    pub mod expm1f;
50    pub mod fabs;
51    pub mod fabsf;
52    pub mod fdim;
53    pub mod fdimf;
54    pub mod floor;
55    pub mod floorf;
56    pub mod fma;
57    pub mod fmaf;
58    pub mod fmax;
59    pub mod fmaxf;
60    pub mod fmin;
61    pub mod fminf;
62    pub mod fmod;
63    pub mod fmodf;
64    pub mod frexp;
65    pub mod frexpf;
66    pub mod hypot;
67    pub mod hypotf;
68    pub mod ilogb;
69    pub mod ilogbf;
70    pub mod j0;
71    pub mod j0f;
72    pub mod j1;
73    pub mod j1f;
74    pub mod jn;
75    pub mod jnf;
76    pub mod ldexp;
77    pub mod ldexpf;
78    pub mod lgamma;
79    pub mod lgamma_r;
80    pub mod lgammaf;
81    pub mod lgammaf_r;
82    pub mod log;
83    pub mod log1p;
84    pub mod log1pf;
85    pub mod log2;
86    pub mod log2f;
87    pub mod log10;
88    pub mod log10f;
89    pub mod logf;
90    pub mod modf;
91    pub mod modff;
92    pub mod nextafter;
93    pub mod nextafterf;
94    pub mod pow;
95    pub mod powf;
96    pub mod remainder;
97    pub mod remainderf;
98    pub mod remquo;
99    pub mod remquof;
100    pub mod round;
101    pub mod roundf;
102    pub mod scalbn;
103    pub mod scalbnf;
104    pub mod sin;
105    pub mod sincos;
106    pub mod sincosf;
107    pub mod sinf;
108    pub mod sinh;
109    pub mod sinhf;
110    pub mod sqrt;
111    pub mod sqrtf;
112    pub mod tan;
113    pub mod tanf;
114    pub mod tanh;
115    pub mod tanhf;
116    pub mod tgamma;
117    pub mod tgammaf;
118    pub mod trunc;
119    pub mod truncf;
120    pub mod y0;
121    pub mod y0f;
122    pub mod y1;
123    pub mod y1f;
124    pub mod yn;
125    pub mod ynf;
126}
127
128
129
130// FIXME: Scuffed
131#[no_mangle]
132extern "C" fn __truncdfsf2(_x: f64) -> f32 {
133    0.0
134}
135
136