Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: fusl/src/math/__polevll.c

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: fusl/src/math/__polevll.c
diff --git a/fusl/src/math/__polevll.c b/fusl/src/math/__polevll.c
index ce1a84046b83679b95dbf54b84a6afc03a83df69..093b4bc3a85880ef310cfb49c6db77bfa5192513 100644
--- a/fusl/src/math/__polevll.c
+++ b/fusl/src/math/__polevll.c
@@ -62,32 +62,30 @@
* Polynomial evaluator:
* P[0] x^n + P[1] x^(n-1) + ... + P[n]
*/
-long double __polevll(long double x, const long double *P, int n)
-{
- long double y;
+long double __polevll(long double x, const long double* P, int n) {
+ long double y;
- y = *P++;
- do {
- y = y * x + *P++;
- } while (--n);
+ y = *P++;
+ do {
+ y = y * x + *P++;
+ } while (--n);
- return y;
+ return y;
}
/*
* Polynomial evaluator:
* x^n + P[0] x^(n-1) + P[1] x^(n-2) + ... + P[n]
*/
-long double __p1evll(long double x, const long double *P, int n)
-{
- long double y;
+long double __p1evll(long double x, const long double* P, int n) {
+ long double y;
- n -= 1;
- y = x + *P++;
- do {
- y = y * x + *P++;
- } while (--n);
+ n -= 1;
+ y = x + *P++;
+ do {
+ y = y * x + *P++;
+ } while (--n);
- return y;
+ return y;
}
#endif

Powered by Google App Engine
This is Rietveld 408576698