Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Feb 2003 12:35:10 -0500
From:      Mike Barcroft <mike@FreeBSD.org>
To:        standards@FreeBSD.org
Cc:        Bruce Evans <bde@zeta.org.au>
Subject:   signbit() implementation question
Message-ID:  <20030210123510.B40864@espresso.q9media.com>

next in thread | raw e-mail | index | archive | help

I'm wondering if any casts from float->double or long double->double
will cause the sign-bit to change.  In my implementation I just have
the macro pass its argument to a function that takes a double for its
argument.  In the tests I've done the sign-bit never changes with
these casts, but I don't know if this is guaranteed to work for all
values or whether this is completely portable.

Best regards,
Mike Barcroft

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-standards" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030210123510.B40864>