brintos

brintos / llvm-project-archived public Read only

0
0
Text · 6.2 KiB · cbd6bf7 Raw
202 lines · c
1#pragma once2 3// __clang_cuda_(c)math(.h) also provide `abs` which actually belong in4// cstdlib. We could split them out but for now we just include cstdlib from5// cmath.h which is what the systems I've seen do as well.6#include <stdlib.h>7 8double fabs(double __a);9double acos(double __a);10float acosf(float __a);11double acosh(double __a);12float acoshf(float __a);13double asin(double __a);14float asinf(float __a);15double asinh(double __a);16float asinhf(float __a);17double atan(double __a);18double atan2(double __a, double __b);19float atan2f(float __a, float __b);20float atanf(float __a);21double atanh(double __a);22float atanhf(float __a);23double cbrt(double __a);24float cbrtf(float __a);25double ceil(double __a);26float ceilf(float __a);27double copysign(double __a, double __b);28float copysignf(float __a, float __b);29double cos(double __a);30float cosf(float __a);31double cosh(double __a);32float coshf(float __a);33double cospi(double __a);34float cospif(float __a);35double cyl_bessel_i0(double __a);36float cyl_bessel_i0f(float __a);37double cyl_bessel_i1(double __a);38float cyl_bessel_i1f(float __a);39double erf(double __a);40double erfc(double __a);41float erfcf(float __a);42double erfcinv(double __a);43float erfcinvf(float __a);44double erfcx(double __a);45float erfcxf(float __a);46float erff(float __a);47double erfinv(double __a);48float erfinvf(float __a);49double exp(double __a);50double exp10(double __a);51float exp10f(float __a);52double exp2(double __a);53float exp2f(float __a);54float expf(float __a);55double expm1(double __a);56float expm1f(float __a);57float fabsf(float __a);58double fdim(double __a, double __b);59float fdimf(float __a, float __b);60double fdivide(double __a, double __b);61float fdividef(float __a, float __b);62double floor(double __f);63float floorf(float __f);64double fma(double __a, double __b, double __c);65float fmaf(float __a, float __b, float __c);66double fmax(double __a, double __b);67float fmaxf(float __a, float __b);68double fmin(double __a, double __b);69float fminf(float __a, float __b);70double fmod(double __a, double __b);71float fmodf(float __a, float __b);72double frexp(double __a, int *__b);73float frexpf(float __a, int *__b);74double hypot(double __a, double __b);75float hypotf(float __a, float __b);76int ilogb(double __a);77int ilogbf(float __a);78double j0(double __a);79float j0f(float __a);80double j1(double __a);81float j1f(float __a);82double jn(int __n, double __a);83float jnf(int __n, float __a);84double ldexp(double __a, int __b);85float ldexpf(float __a, int __b);86double lgamma(double __a);87float lgammaf(float __a);88long long llmax(long long __a, long long __b);89long long llmin(long long __a, long long __b);90long long llrint(double __a);91long long llrintf(float __a);92long long llround(double __a);93long long llroundf(float __a);94double log(double __a);95double log10(double __a);96float log10f(float __a);97double log1p(double __a);98float log1pf(float __a);99double log2(double __a);100float log2f(float __a);101double logb(double __a);102float logbf(float __a);103float logf(float __a);104long lrint(double __a);105long lrintf(float __a);106long lround(double __a);107long lroundf(float __a);108double modf(double __a, double *__b);109float modff(float __a, float *__b);110double nearbyint(double __a);111float nearbyintf(float __a);112double nextafter(double __a, double __b);113float nextafterf(float __a, float __b);114double norm(int __dim, const double *__t);115double norm3d(double __a, double __b, double __c);116float norm3df(float __a, float __b, float __c);117double norm4d(double __a, double __b, double __c, double __d);118float norm4df(float __a, float __b, float __c, float __d);119double normcdf(double __a);120float normcdff(float __a);121double normcdfinv(double __a);122float normcdfinvf(float __a);123float normf(int __dim, const float *__t);124double pow(double __a, double __b);125float powf(float __a, float __b);126double powi(double __a, int __b);127float powif(float __a, int __b);128double rcbrt(double __a);129float rcbrtf(float __a);130double remainder(double __a, double __b);131float remainderf(float __a, float __b);132double remquo(double __a, double __b, int *__c);133float remquof(float __a, float __b, int *__c);134double rhypot(double __a, double __b);135float rhypotf(float __a, float __b);136double rint(double __a);137float rintf(float __a);138double rnorm(int __a, const double *__b);139double rnorm3d(double __a, double __b, double __c);140float rnorm3df(float __a, float __b, float __c);141double rnorm4d(double __a, double __b, double __c, double __d);142float rnorm4df(float __a, float __b, float __c, float __d);143float rnormf(int __dim, const float *__t);144double round(double __a);145float roundf(float __a);146double rsqrt(double __a);147float rsqrtf(float __a);148double scalbn(double __a, int __b);149float scalbnf(float __a, int __b);150double scalbln(double __a, long __b);151float scalblnf(float __a, long __b);152double sin(double __a);153void sincos(double __a, double *__s, double *__c);154void sincosf(float __a, float *__s, float *__c);155void sincospi(double __a, double *__s, double *__c);156void sincospif(float __a, float *__s, float *__c);157float sinf(float __a);158double sinh(double __a);159float sinhf(float __a);160double sinpi(double __a);161float sinpif(float __a);162double sqrt(double __a);163float sqrtf(float __a);164double tan(double __a);165float tanf(float __a);166double tanh(double __a);167float tanhf(float __a);168double tgamma(double __a);169float tgammaf(float __a);170double trunc(double __a);171float truncf(float __a);172unsigned long long ullmax(unsigned long long __a,173                          unsigned long long __b);174unsigned long long ullmin(unsigned long long __a,175                          unsigned long long __b);176unsigned int umax(unsigned int __a, unsigned int __b);177unsigned int umin(unsigned int __a, unsigned int __b);178double y0(double __a);179float y0f(float __a);180double y1(double __a);181float y1f(float __a);182double yn(int __a, double __b);183float ynf(int __a, float __b);184 185/**186 * A positive float constant expression. HUGE_VALF evaluates187 * to +infinity. Used as an error value returned by the built-in188 * math functions.189 */190#define HUGE_VALF (__builtin_huge_valf())191 192/**193 * A positive double constant expression. HUGE_VAL evaluates194 * to +infinity. Used as an error value returned by the built-in195 * math functions.196 */197#define HUGE_VAL (__builtin_huge_val())198 199#ifdef __cplusplus200#include <cmath>201#endif202