| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-workers-bounces using -f |
| X-Recipient: | djgpp-workers AT delorie DOT com |
| Message-ID: | <50F306BD.2090504@iki.fi> |
| Date: | Sun, 13 Jan 2013 21:10:53 +0200 |
| From: | Andris Pavenis <andris DOT pavenis AT iki DOT fi> |
| User-Agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
| MIME-Version: | 1.0 |
| To: | djgpp-workers AT delorie DOT com |
| Subject: | gmp-5.1.0 and DJGPP |
| Reply-To: | djgpp-workers AT delorie DOT com |
Failed to build gmp-5.1.0 due to absence of function trunc().
Unless one is willing to do real implementation I would
suggest trivial implementation like
double trunc(double x)
{
return x >= 0 ? floor(x) : -floor(-x);
}
It could possibly be inline
Andris
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |