X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Flib%2Fcotf.c;h=9c5a9964656099e85bc65e5595db0c72f4b2c159;hb=e10d9b4be3676cbffb002e4c8ff46763d7cc2739;hp=03886c12304d492ba1aa085a9787111a7c903e62;hpb=f42d37bc960a8ad533003fcad5b70539e818887e;p=fw%2Fsdcc diff --git a/device/lib/cotf.c b/device/lib/cotf.c index 03886c12..9c5a9964 100644 --- a/device/lib/cotf.c +++ b/device/lib/cotf.c @@ -1,6 +1,6 @@ /* cotf.c: Computes cot(x) where x is a 32-bit float. - Copyright (C) 2001, 2002 Jesus Calvino-Fraga, jesusc@ieee.org + Copyright (C) 2001, 2002 Jesus Calvino-Fraga, jesusc@ieee.org This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -32,9 +32,9 @@ float cotf(const float x) _FLOAT_FUNC_REENTRANT { errno = ERANGE; if (x<0.0) - return -XMAX; + return -HUGE_VALF; else - return XMAX; + return +HUGE_VALF; } return tancotf(x, 1); }