Add math library support for trunc functions. From Brennan Ashton.

This commit is contained in:
Gregory Nutt
2015-01-26 19:00:35 -06:00
parent 0a11f9b669
commit b12cf6d2f5
5 changed files with 256 additions and 0 deletions
+8
View File
@@ -377,6 +377,14 @@ double copysign (double x, double y);
long double copysignl (long double x, long double y);
#endif
float truncf (float x);
#if CONFIG_HAVE_DOUBLE
double trunc (double x);
#endif
#ifdef CONFIG_HAVE_LONG_DOUBLE
long double truncl (long double x);
#endif
#if defined(__cplusplus)
}
#endif