Revision: 55644
http://sourceforge.net/p/brlcad/code/55644
Author: brlcad
Date: 2013-06-04 03:10:27 +0000 (Tue, 04 Jun 2013)
Log Message:
-----------
need stdlib.h for modf() and nextafter() but remove the long double support
since it requires build system infrastructure. several relatively common
platforms (some not so common, some common) don't support long doubles.
(gnulib quotes FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, HP-UX 11,
IRIX 6.5, Solaris 9, Cygwin, Interix 3.5) moreover, we'd need other changes to
make fastf_t be more than single or double precision.
Modified Paths:
--------------
brlcad/trunk/src/libbn/plane.c
Modified: brlcad/trunk/src/libbn/plane.c
===================================================================
--- brlcad/trunk/src/libbn/plane.c 2013-06-04 02:38:55 UTC (rev 55643)
+++ brlcad/trunk/src/libbn/plane.c 2013-06-04 03:10:27 UTC (rev 55644)
@@ -28,9 +28,10 @@
#include "common.h"
+#include <stdlib.h>
+#include <string.h>
#include <stdio.h>
#include <math.h>
-#include <string.h>
#include "bu.h"
#include "vmath.h"
@@ -1756,11 +1757,6 @@
b = nextafter((double)b_in, (double)a_in);
af = modf((double)a, (double *)&ai);
bf = modf((double)b, (double *)&bi);
- } else if (sizeof(fastf_t) == sizeof(long double)) {
- a = nextafterl((long double)a_in, (long double)b_in);
- b = nextafterl((long double)b_in, (long double)a_in);
- af = modfl((long double)a, (long double *)&ai);
- bf = modfl((long double)b, (long double *)&bi);
} else {
bu_bomb("are_equal(): unexpect size for type fastf_t");
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits