[Bf-committers] Why not use sqrtf instead of sqrt?
Mon, 21 Jun 2004 00:53:55 +0200
Am Freitag, 18. Juni 2004 22:07 schrieb Kent Mein:
> In reply to Panagiotis Papadakos (email@example.com):
> > Since in many cases sqrt is used for float numbers, I think it should be
> > replaced by sqrtf, which would make the code cleaner (no casting) and
> > should also be faster in some systems! Any comments?
> Well under solaris I don't think there is a sqrtf so we'd have to do
> some nasty stuff that would result in uglier code.
But the thing is: sqrtf() is a C99 function. And I wonder if blender should=
a) Code that complies to a recent (i.e. C99) standard=20
b) Code that complies to an older albeit probably more portable standard
I for one would rather pick a), but if someone comes up with a good reason =
[--- PGP key FD05BED7 --- http://www.root42.de/ ---]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
-----END PGP SIGNATURE-----