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 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303
|
/*
* Copyright (c) 2015-2018, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
/* Note: the front end recognizes the __builtin_ functions as
* special cases and produces the appropriate ILM - thus there
* is no infinite recursion here.
* These functions are only needed as a work-around for c++ needing
* function pointers to the corresponding libm functions.
*/
/* inhibit floating point copy propagation */
#pragma global - Mx, 6, 0x100
int
__builtin_abs(int a)
{
return __builtin_abs(a);
}
float
__builtin_fabsf(float a)
{
float d = __builtin_fabsf(a);
return d;
}
double
__builtin_fabs(double a)
{
double d = __builtin_fabs(a);
return d;
}
float
__builtin_sqrtf(float a)
{
float f = __builtin_sqrtf(a);
return f;
}
double
__builtin_sqrt(double a)
{
double d = __builtin_sqrt(a);
return d;
}
float
__builtin_sinf(float a)
{
float f = __builtin_sinf(a);
return f;
}
double
__builtin_sin(double a)
{
double d = __builtin_sin(a);
return d;
}
float
__builtin_cosf(float a)
{
float f = __builtin_cosf(a);
return f;
}
double
__builtin_cos(double a)
{
double d = __builtin_cos(a);
return d;
}
float
__builtin_tanf(float a)
{
float f = __builtin_tanf(a);
return f;
}
double
__builtin_tan(double a)
{
double d = __builtin_tan(a);
return d;
}
float
__builtin_truncf(float a)
{
float f = __builtin_truncf(a);
return f;
}
double
__builtin_trunc(double a)
{
double d = __builtin_trunc(a);
return d;
}
float
__builtin_acosf(float a)
{
float f = __builtin_acosf(a);
return f;
}
double
__builtin_acos(double a)
{
double d = __builtin_acos(a);
return d;
}
float
__builtin_asinf(float a)
{
float f = __builtin_asinf(a);
return f;
}
double
__builtin_asin(double a)
{
double d = __builtin_asin(a);
return d;
}
float
__builtin_atan2f(float a, float b)
{
float f = __builtin_atan2f(a, b);
return f;
}
double
__builtin_atan2(double a, double b)
{
double d = __builtin_atan2(a, b);
return d;
}
float
__builtin_atanf(float a)
{
float f = __builtin_atanf(a);
return f;
}
double
__builtin_atan(double a)
{
double d = __builtin_atan(a);
return d;
}
float
__builtin_sinhf(float a)
{
float f = __builtin_sinhf(a);
return f;
}
double
__builtin_sinh(double a)
{
double d = __builtin_sinh(a);
return d;
}
float
__builtin_coshf(float a)
{
float f = __builtin_coshf(a);
return f;
}
double
__builtin_cosh(double a)
{
double d = __builtin_cosh(a);
return d;
}
float
__builtin_tanhf(float a)
{
float f = __builtin_tanhf(a);
return f;
}
double
__builtin_tanh(double a)
{
double d = __builtin_tanh(a);
return d;
}
float
__builtin_expf(float a)
{
float f = __builtin_expf(a);
return f;
}
double
__builtin_exp(double a)
{
double d = __builtin_exp(a);
return d;
}
float
__builtin_logf(float a)
{
float f = __builtin_logf(a);
return f;
}
double
__builtin_log(double a)
{
double d = __builtin_log(a);
return d;
}
float
__builtin_log10f(float a)
{
float f = __builtin_log10f(a);
return f;
}
double
__builtin_log10(double a)
{
double d = __builtin_log10(a);
return d;
}
double
__builtin_pow(double a, double b)
{
double d = __builtin_pow(a, b);
return d;
}
float
__builtin_crealf(float _Complex a)
{
float d = __builtin_crealf(a);
return d;
}
float
__builtin_cimagf(float _Complex a)
{
float d = __builtin_cimagf(a);
return d;
}
float _Complex __builtin_conjf(float _Complex a)
{
float _Complex d = __builtin_conjf(a);
return d;
}
double
__builtin_creal(double _Complex a)
{
double d = __builtin_creal(a);
return d;
}
double
__builtin_cimag(double _Complex a)
{
double d = __builtin_cimag(a);
return d;
}
double _Complex __builtin_conj(double _Complex a)
{
double _Complex d = __builtin_conj(a);
return d;
}
|