[ART_HACK] Hello! libart and floating point comparisons

Zan Lynx <[email protected]> Mon, 22 Aug 2005 14:15:54 -0600
Newsgroups gmane.comp.gnome.lib.libart.devel
Message-ID <1124741754.804.5.camel@localhost>
--===============0411163969==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-28V6c9nqdQuSc6suKqoI"


--=-28V6c9nqdQuSc6suKqoI
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi!  I just joined the list.

So, I've been using Gentoo on AMD64 for a while, and I got extra annoyed
this weekend with the Gnome Amaranth theme icons and libart.  Some of
the icons cause libart to go into endless loops spitting messages about
duplicate horiz segments, etc.  It's caused by some floating point
values not *quite* matching other floating point values.

I may have gone a bit overboard.  I recompiled both libart_lgpl and
librsvg with the -Wfloat-equal flag, downloaded the fcmp library (it's
just a couple files actually) and replaced EVERY floating point
comparison in both libraries with a call to fcmp with a epsilon of
DBL_EPSILON*16.  Voila!  Problem fixed!

If you're interested in my patch, let me know.
--=20
Zan Lynx <[email protected]>

--=-28V6c9nqdQuSc6suKqoI
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQBDCjJ6G8fHaOLTWwgRAsOpAKCXjzOTj9w9xwTTdi1SSijZSMM3cQCfdmrd
JCuJqWK7dcC43aRTUFMiNsE=
=6Z1e
-----END PGP SIGNATURE-----

--=-28V6c9nqdQuSc6suKqoI--


--===============0411163969==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Libart-hackers mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/libart-hackers

--===============0411163969==--