Re: [boost] Portable signbit macro/function?

----Original Message---- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Johan Råde Sent: 03 August 2006 12:38 To: boost@lists.boost.org Subject: Re: [boost] Portable signbit macro/function?
It also requires that the sign bit of the float is in the same place as the sign bit of the int ... which it is for most usual implementations of IEEE 754 (although I'm not sure if the standard actually refers to byte ordering issues), but I don't think it is true for Vax floating point formats.
Can I suggest that you study the tenth commandment for C programmers at http://www.lysator.liu.se/c/ten-commandments.html. C++ avoids the need for some of those commandments, but that one has stood the test of time with undiminished force. -- Martin Bonner Martin.Bonner@Pitechnology.com Pi Technology, Milton Hall, Ely Road, Milton, Cambridge, CB4 6WZ, ENGLAND Tel: +44 (0)1223 203894
participants (1)
-
Martin Bonner