Skip to content

Commit

Permalink
lib/libc/math: Format newly added libc files
Browse files Browse the repository at this point in the history
lib/libc/math: Format as per TizenRT coding rule.
  • Loading branch information
sahil1dotgupta authored and sunghan-chang committed Nov 9, 2023
1 parent 48fc921 commit 4cced9a
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion lib/libc/math/lib_erfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
#ifdef CONFIG_HAVE_DOUBLE
double erfc(double x)
{
return 1 - erf(x);
return 1 - erf(x);
}
#endif
2 changes: 1 addition & 1 deletion lib/libc/math/lib_erfcf.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@

float erfcf(float x)
{
return 1 - erff(x);
return 1 - erff(x);
}
2 changes: 1 addition & 1 deletion lib/libc/math/lib_erfcl.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
#ifdef CONFIG_HAVE_LONG_DOUBLE
long double erfcl(long double x)
{
return 1 - erfl(x);
return 1 - erfl(x);
}
#endif
2 changes: 1 addition & 1 deletion lib/libc/math/lib_expm1.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
#ifdef CONFIG_HAVE_DOUBLE
double expm1(double x)
{
return exp(x) - 1.0;
return exp(x) - 1.0;
}
#endif
2 changes: 1 addition & 1 deletion lib/libc/math/lib_expm1f.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@

float expm1f(float x)
{
return expf(x) - 1.0;
return expf(x) - 1.0;
}
2 changes: 1 addition & 1 deletion lib/libc/math/lib_expm1l.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
#ifdef CONFIG_HAVE_LONG_DOUBLE
long double expm1l(long double x)
{
return expl(x) - 1.0;
return expl(x) - 1.0;
}
#endif
2 changes: 1 addition & 1 deletion lib/libc/math/lib_llround.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
#ifdef CONFIG_HAVE_DOUBLE
long long llround(double x)
{
return (long long)round(x);
return (long long)round(x);
}
#endif
#endif
2 changes: 1 addition & 1 deletion lib/libc/math/lib_llroundf.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
#ifdef CONFIG_HAVE_LONG_LONG
long long llroundf(float x)
{
return (long long)roundf(x);
return (long long)roundf(x);
}
#endif
2 changes: 1 addition & 1 deletion lib/libc/math/lib_llroundl.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
#ifdef CONFIG_HAVE_LONG_DOUBLE
long long llroundl(long double x)
{
return (long long)roundl(x);
return (long long)roundl(x);
}
#endif
#endif
2 changes: 1 addition & 1 deletion lib/libc/math/lib_lround.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
#ifdef CONFIG_HAVE_DOUBLE
long int lround(double x)
{
return (long int)round(x);
return (long int)round(x);
}
#endif
2 changes: 1 addition & 1 deletion lib/libc/math/lib_lroundf.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@

long int lroundf(float x)
{
return (long int)roundf(x);
return (long int)roundf(x);
}
2 changes: 1 addition & 1 deletion lib/libc/math/lib_lroundl.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
#ifdef CONFIG_HAVE_LONG_DOUBLE
long int lroundl(long double x)
{
return (long int)roundl(x);
return (long int)roundl(x);
}
#endif
2 changes: 1 addition & 1 deletion lib/libc/math/lib_nan.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
#ifdef CONFIG_HAVE_DOUBLE
double nan(const char *tagp)
{
return (double)NAN;
return (double)NAN;
}
#endif
2 changes: 1 addition & 1 deletion lib/libc/math/lib_nanf.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@

float nanf(const char *tagp)
{
return (float)NAN;
return (float)NAN;
}
2 changes: 1 addition & 1 deletion lib/libc/math/lib_nanl.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
#ifdef CONFIG_HAVE_LONG_DOUBLE
long double nanl(const char *tagp)
{
return (long double)NAN;
return (long double)NAN;
}
#endif

0 comments on commit 4cced9a

Please sign in to comment.