forked from OSchip/llvm-project
Add acos, asin, ceil, fabs, floor, fmax, fmin, round, and tan to the builtin
math library functions. rdar://11251464 llvm-svn: 155502
This commit is contained in:
parent
8da4ddf990
commit
47c6c9de50
|
@ -804,6 +804,14 @@ LIBBUILTIN(NSLog, "vG.", "fp:0:", "Foundation/NSObjCRuntime.h", OBJC_LANG)
|
|||
LIBBUILTIN(NSLogv, "vGa", "fP:0:", "Foundation/NSObjCRuntime.h", OBJC_LANG)
|
||||
|
||||
// Builtin math library functions
|
||||
LIBBUILTIN(acos, "dd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(acosl, "LdLd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(acosf, "ff", "fe", "math.h", ALL_LANGUAGES)
|
||||
|
||||
LIBBUILTIN(asin, "dd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(asinl, "LdLd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(asinf, "ff", "fe", "math.h", ALL_LANGUAGES)
|
||||
|
||||
LIBBUILTIN(atan, "dd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(atanl, "LdLd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(atanf, "ff", "fe", "math.h", ALL_LANGUAGES)
|
||||
|
@ -812,6 +820,10 @@ LIBBUILTIN(atan2, "ddd", "fe", "math.h", ALL_LANGUAGES)
|
|||
LIBBUILTIN(atan2l, "LdLdLd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(atan2f, "fff", "fe", "math.h", ALL_LANGUAGES)
|
||||
|
||||
LIBBUILTIN(ceil, "dd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(ceill, "LdLd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(ceilf, "ff", "fe", "math.h", ALL_LANGUAGES)
|
||||
|
||||
LIBBUILTIN(cos, "dd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(cosl, "LdLd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(cosf, "ff", "fe", "math.h", ALL_LANGUAGES)
|
||||
|
@ -820,10 +832,26 @@ LIBBUILTIN(exp, "dd", "fe", "math.h", ALL_LANGUAGES)
|
|||
LIBBUILTIN(expl, "LdLd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(expf, "ff", "fe", "math.h", ALL_LANGUAGES)
|
||||
|
||||
LIBBUILTIN(fabs, "dd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(fabsl, "LdLd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(fabsf, "ff", "fe", "math.h", ALL_LANGUAGES)
|
||||
|
||||
LIBBUILTIN(floor, "dd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(floorl, "LdLd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(floorf, "ff", "fe", "math.h", ALL_LANGUAGES)
|
||||
|
||||
LIBBUILTIN(fma, "dddd", "fc", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(fmal, "LdLdLdLd", "fc", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(fmaf, "ffff", "fc", "math.h", ALL_LANGUAGES)
|
||||
|
||||
LIBBUILTIN(fmax, "dd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(fmaxl, "LdLd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(fmaxf, "ff", "fe", "math.h", ALL_LANGUAGES)
|
||||
|
||||
LIBBUILTIN(fmin, "dd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(fminl, "LdLd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(fminf, "ff", "fe", "math.h", ALL_LANGUAGES)
|
||||
|
||||
LIBBUILTIN(log, "dd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(logl, "LdLd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(logf, "ff", "fe", "math.h", ALL_LANGUAGES)
|
||||
|
@ -832,6 +860,10 @@ LIBBUILTIN(pow, "ddd", "fe", "math.h", ALL_LANGUAGES)
|
|||
LIBBUILTIN(powl, "LdLdLd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(powf, "fff", "fe", "math.h", ALL_LANGUAGES)
|
||||
|
||||
LIBBUILTIN(round, "dd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(roundl, "LdLd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(roundf, "ff", "fe", "math.h", ALL_LANGUAGES)
|
||||
|
||||
LIBBUILTIN(sin, "dd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(sinl, "LdLd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(sinf, "ff", "fe", "math.h", ALL_LANGUAGES)
|
||||
|
@ -840,6 +872,10 @@ LIBBUILTIN(sqrt, "dd", "fe", "math.h", ALL_LANGUAGES)
|
|||
LIBBUILTIN(sqrtl, "LdLd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(sqrtf, "ff", "fe", "math.h", ALL_LANGUAGES)
|
||||
|
||||
LIBBUILTIN(tan, "dd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(tanl, "LdLd", "fe", "math.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(tanf, "ff", "fe", "math.h", ALL_LANGUAGES)
|
||||
|
||||
// Blocks runtime Builtin math library functions
|
||||
LIBBUILTIN(_Block_object_assign, "vv*vC*iC", "f", "Blocks.h", ALL_LANGUAGES)
|
||||
LIBBUILTIN(_Block_object_dispose, "vvC*iC", "f", "Blocks.h", ALL_LANGUAGES)
|
||||
|
|
Loading…
Reference in New Issue