/usr/lib/ats-anairiats-0.2.5/libc/HATS/math.hats is in ats-lang-anairiats 0.2.5-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | (***********************************************************************)
(* *)
(* Applied Type System *)
(* *)
(* Hongwei Xi *)
(* *)
(***********************************************************************)
(*
** ATS - Unleashing the Potential of Types!
**
** Copyright (C) 2002-2008 Hongwei Xi, Boston University
**
** All rights reserved
**
** ATS is free software; you can redistribute it and/or modify it under
** the terms of the GNU General Public License as published by the Free
** Software Foundation; either version 2.1, or (at your option) any later
** version.
**
** ATS is distributed in the hope that it will be useful, but WITHOUT ANY
** WARRANTY; without even the implied warranty of MERCHANTABILITY or
** FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
** for more details.
**
** You should have received a copy of the GNU General Public License
** along with ATS; see the file COPYING. If not, please write to the
** Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
** 02110-1301, USA.
*)
(* ****** ****** *)
(* author: Hongwei Xi (hwxi AT cs DOT bu DOT edu) *)
(* ****** ****** *)
staload "libc/SATS/math.sats"
(* ****** ****** *)
//
// HX: fpclassify, isfinite and isnormal are macros
//
implement fpclassify<float> (x) = fpclassify_float (x)
implement fpclassify<double> (x) = fpclassify_double (x)
implement fpclassify<ldouble> (x) = fpclassify_ldouble (x)
implement isfinite<float> (x) = isfinite_float (x)
implement isfinite<double> (x) = isfinite_double (x)
implement isfinite<ldouble> (x) = isfinite_ldouble (x)
implement isnormal<float> (x) = isnormal_float (x)
implement isnormal<double> (x) = isnormal_double (x)
implement isnormal<ldouble> (x) = isnormal_ldouble (x)
// HX: BSD function
implement isinftmp<float> (x) = isinff (x)
implement isinftmp<double> (x) = isinf (x)
implement isinftmp<ldouble> (x) = isinfl (x)
// HX: BSD function
implement isnantmp<float> (x) = isnanf (x)
implement isnantmp<double> (x) = isnan (x)
implement isnantmp<ldouble> (x) = isnanl (x)
(* ****** ****** *)
implement ceiltmp<double> (x) = ceil (x)
implement ceiltmp<float> (x) = ceilf (x)
implement ceiltmp<ldouble> (x) = ceill (x)
implement floortmp<double> (x) = floor (x)
implement floortmp<float> (x) = floorf (x)
implement floortmp<ldouble> (x) = floorl (x)
(* ****** ****** *)
implement roundtmp<double> (x) = round (x)
implement roundtmp<float> (x) = roundf (x)
implement roundtmp<ldouble> (x) = roundl (x)
implement trunctmp<double> (x) = trunc (x)
implement trunctmp<float> (x) = truncf (x)
implement trunctmp<ldouble> (x) = truncl (x)
(* ****** ****** *)
implement fmodtmp<double> (x1, x2) = fmod (x1, x2)
implement fmodtmp<float> (x1, x2) = fmodf (x1, x2)
implement fmodtmp<ldouble> (x1, x2) = fmodl (x1, x2)
(* ****** ****** *)
implement fmaxtmp<double> (x1, x2) = fmax (x1, x2)
implement fmaxtmp<float> (x1, x2) = fmaxf (x1, x2)
implement fmaxtmp<ldouble> (x1, x2) = fmaxl (x1, x2)
implement fmintmp<double> (x1, x2) = fmin (x1, x2)
implement fmintmp<float> (x1, x2) = fminf (x1, x2)
implement fmintmp<ldouble> (x1, x2) = fminl (x1, x2)
implement fdimtmp<double> (x1, x2) = fdim (x1, x2)
implement fdimtmp<float> (x1, x2) = fdimf (x1, x2)
implement fdimtmp<ldouble> (x1, x2) = fdiml (x1, x2)
implement fmatmp<double> (x1, x2, x3) = fma (x1, x2, x3)
implement fmatmp<float> (x1, x2, x3) = fmaf (x1, x2, x3)
implement fmatmp<ldouble> (x1, x2, x3) = fmal (x1, x2, x3)
(* ****** ****** *)
implement sqrttmp<double> (x) = sqrt (x)
implement sqrttmp<float> (x) = sqrtf (x)
implement sqrttmp<ldouble> (x) = sqrtl (x)
implement cbrttmp<double> (x) = cbrt (x)
implement cbrttmp<float> (x) = cbrtf (x)
implement cbrttmp<ldouble> (x) = cbrtl (x)
implement powtmp<double> (x1, x2) = pow (x1, x2)
implement powtmp<float> (x1, x2) = powf (x1, x2)
implement powtmp<ldouble> (x1, x2) = powl (x1, x2)
(* ****** ****** *)
implement exptmp<double> (x) = exp (x)
implement exptmp<float> (x) = expf (x)
implement exptmp<ldouble> (x) = expl (x)
(* ****** ****** *)
implement logtmp<double> (x) = log (x)
implement logtmp<float> (x) = logf (x)
implement logtmp<ldouble> (x) = logl (x)
implement log10tmp<double> (x) = log10 (x)
implement log10tmp<float> (x) = log10f (x)
implement log10tmp<ldouble> (x) = log10l (x)
(* ****** ****** *)
implement asintmp<double> (x) = asin (x)
implement asintmp<float> (x) = asinf (x)
implement asintmp<ldouble> (x) = asinl (x)
implement acostmp<double> (x) = acos (x)
implement acostmp<float> (x) = acosf (x)
implement acostmp<ldouble> (x) = acosl (x)
implement atantmp<double> (x) = atan (x)
implement atantmp<float> (x) = atanf (x)
implement atantmp<ldouble> (x) = atanl (x)
implement atan2tmp<float> (x1, x2) = atan2f (x1, x2)
implement atan2tmp<double> (x1, x2) = atan2 (x1, x2)
implement atan2tmp<ldouble> (x1, x2) = atan2l (x1, x2)
(* ****** ****** *)
implement asinhtmp<double> (x) = asinh (x)
implement asinhtmp<float> (x) = asinhf (x)
implement asinhtmp<ldouble> (x) = asinhl (x)
implement acoshtmp<double> (x) = acosh (x)
implement acoshtmp<float> (x) = acoshf (x)
implement acoshtmp<ldouble> (x) = acoshl (x)
(* ****** ****** *)
implement sintmp<double> (x) = sin (x)
implement sintmp<float> (x) = sinf (x)
implement sintmp<ldouble> (x) = sinl (x)
implement costmp<double> (x) = cos (x)
implement costmp<float> (x) = cosf (x)
implement costmp<ldouble> (x) = cosl (x)
implement tantmp<double> (x) = tan (x)
implement tantmp<float> (x) = tanf (x)
implement tantmp<ldouble> (x) = tanl (x)
(* ****** ****** *)
implement sinhtmp<double> (x) = sinh (x)
implement sinhtmp<float> (x) = sinhf (x)
implement sinhtmp<ldouble> (x) = sinhl (x)
implement coshtmp<double> (x) = cosh (x)
implement coshtmp<float> (x) = coshf (x)
implement coshtmp<ldouble> (x) = coshl (x)
implement tanhtmp<double> (x) = tanh (x)
implement tanhtmp<float> (x) = tanhf (x)
implement tanhtmp<ldouble> (x) = tanhl (x)
(* ****** ****** *)
(* end of [math.hats] *)
|