Re-style fdlibm to conform to jerry guidelines

* First re-style was done automatically by indent to minimize the
  chance of errors during rewrite.

* Manual changes were applied to non-critical places only (comments
  and spaces):
  * Replaced all tabs with spaces.
  * Fixed tab stops in formulae in function comments.
    (Note: ASCII art for math formulae (especially for super- and
    subscripts) is a terrible idea.)
  * Unified the style of function comments.
  * Moved some in-code comments to their right places, which indent
    couldn't handle.
  * Added spaces to formulae of in-code comments to make them more
    readable.
  * Added braces mandated by jerry style guidelines.
  * Added parentheses to multiline #ifdef.

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
Akos Kiss
2016-03-17 10:42:00 +01:00
parent b39474c746
commit 8dd5186a0d
19 changed files with 2726 additions and 1887 deletions
+15 -15
View File
@@ -52,29 +52,29 @@ extern "C"
#define M_2_SQRTPI 1.1283791670955125738961589031215452
// Trigonometric functions
double cos(double);
double sin(double);
double tan(double);
double acos(double);
double asin(double);
double atan(double);
double atan2(double, double);
double cos (double);
double sin (double);
double tan (double);
double acos (double);
double asin (double);
double atan (double);
double atan2 (double, double);
// Exponential and logarithmic functions
double exp(double);
double log(double);
double exp (double);
double log (double);
// Power functions
double pow(double, double);
double sqrt(double);
double pow (double, double);
double sqrt (double);
// Rounding and remainder functions
double ceil(double);
double floor(double);
double ceil (double);
double floor (double);
// Other functions
double fabs(double);
double fmod(double, double);
double fabs (double);
double fmod (double, double);
#ifdef __cplusplus
}