You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2011/08/06 03:27:48 UTC
[lucy-commits] svn commit: r1154420 - in
/incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe: Floats.c Floats.h
Author: marvin
Date: Sat Aug 6 01:27:47 2011
New Revision: 1154420
URL: http://svn.apache.org/viewvc?rev=1154420&view=rev
Log:
Remove vestigial floating point typedefs.
Modified:
incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe/Floats.c
incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe/Floats.h
Modified: incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe/Floats.c
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe/Floats.c?rev=1154420&r1=1154419&r2=1154420&view=diff
==============================================================================
--- incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe/Floats.c (original)
+++ incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe/Floats.c Sat Aug 6 01:27:47 2011
@@ -29,14 +29,7 @@ Floats_run(void) {
ConfWriter_start_module("Floats");
ConfWriter_append_conf(
- "typedef float chy_f32_t;\n"
- "typedef double chy_f64_t;\n"
- "#define CHY_HAS_F32_T\n"
- "#define CHY_HAS_F64_T\n"
- );
-
- ConfWriter_append_conf(
- "typedef union { chy_u32_t i; float f; } chy_floatu32;\n"
+ "typedef union { uint32_t i; float f; } chy_floatu32;\n"
"static const chy_floatu32 chy_f32inf = {CHY_U32_C(0x7f800000)};\n"
"static const chy_floatu32 chy_f32neginf = {CHY_U32_C(0xff800000)};\n"
"static const chy_floatu32 chy_f32nan = {CHY_U32_C(0x7fc00000)};\n"
@@ -47,10 +40,6 @@ Floats_run(void) {
/* Shorten. */
ConfWriter_start_short_names();
- ConfWriter_shorten_typedef("f32_t");
- ConfWriter_shorten_typedef("f64_t");
- ConfWriter_shorten_macro("HAS_F32_T");
- ConfWriter_shorten_macro("HAS_F64_T");
ConfWriter_shorten_macro("F32_INF");
ConfWriter_shorten_macro("F32_NEGINF");
ConfWriter_shorten_macro("F32_NAN");
Modified: incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe/Floats.h
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe/Floats.h?rev=1154420&r1=1154419&r2=1154420&view=diff
==============================================================================
--- incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe/Floats.h (original)
+++ incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe/Floats.h Sat Aug 6 01:27:47 2011
@@ -23,18 +23,6 @@
* F32_INF
* F32_NEGINF
*
- * The following typedefs will be created if the platform supports IEEE 754
- * floating point types:
- *
- * f32_t
- * f64_t
- *
- * Availability of the preceding typedefs is indicated by which of these are
- * defined:
- *
- * HAS_F32_T
- * HAS_F64_T
- *
* TODO: Actually test to see whether IEEE 754 is supported, rather than just
* lying about it.
*/