summaryrefslogtreecommitdiff
path: root/nuttx/lib/lib_rint.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-02-20 22:39:56 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-02-20 22:39:56 +0000
commit630b4bdd3d2ca967f0e1d4f438f7f1761461dd31 (patch)
treef640e5eab1ce66cdeadd0ab3684ea326f56db8a5 /nuttx/lib/lib_rint.c
parentbd7dce092d36128a0f84e5544ccc857a45f6ba2f (diff)
downloadpx4-nuttx-630b4bdd3d2ca967f0e1d4f438f7f1761461dd31.tar.gz
px4-nuttx-630b4bdd3d2ca967f0e1d4f438f7f1761461dd31.tar.bz2
px4-nuttx-630b4bdd3d2ca967f0e1d4f438f7f1761461dd31.zip
Eliminating GCC dependencies
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@14 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/lib_rint.c')
-rw-r--r--nuttx/lib/lib_rint.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/lib/lib_rint.c b/nuttx/lib/lib_rint.c
index f747eea86..73600f6bf 100644
--- a/nuttx/lib/lib_rint.c
+++ b/nuttx/lib/lib_rint.c
@@ -72,9 +72,9 @@
* Private Variables
************************************************************/
-double rint(double x)
+double_t rint(double x)
{
- double retValue;
+ double_t retValue;
/* If the current rounding mode rounds toward negative
* infinity, rint() is identical to floor(). If the current
@@ -93,7 +93,7 @@ double rint(double x)
* |rint(x)-x|=1/2, then rint(x) is even. */
long dwInteger = (long)x;
- double fRemainder = x - (double)dwInteger;
+ double_t fRemainder = x - (double_t)dwInteger;
if (x < 0.0) {
@@ -116,7 +116,7 @@ double rint(double x)
} /* end if */
} /* end else */
- retValue = (double)dwInteger;
+ retValue = (double_t)dwInteger;
#endif
return retValue;