OSDN Git Service

Use signbit() in IS_NEGATIVE and DIFFERENT_SIGNS
authorMatt Turner <mattst88@gmail.com>
Fri, 14 Sep 2012 23:04:40 +0000 (16:04 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 24 Sep 2012 16:45:17 +0000 (09:45 -0700)
commit0f3ba405eada72e1ab4371948315b28608903927
tree602b87722ca0ce80b78559d2f48e97bbed4b6851
parent959fe586fb0d64642facffff8c0132777523ed42
Use signbit() in IS_NEGATIVE and DIFFERENT_SIGNS

signbit() appears to be available everywhere (even MSVC according to
MSDN), so let's use it instead of open-coding some messy and confusing
bit twiddling macros.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=54805
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Suggested-by: Ian Romanick <ian.d.romanick@intel.com>
configure.ac
src/mesa/main/macros.h