diff options
| author | Richard Lowe <richlowe@richlowe.net> | 2015-02-16 22:07:48 +0000 |
|---|---|---|
| committer | Richard Lowe <richlowe@richlowe.net> | 2015-02-26 14:19:36 -0500 |
| commit | f665a76fbe5ccb01d21f7917a7d764c98ed42344 (patch) | |
| tree | 11127ba5078e4c8b4d16c34dbcb45bcfd5a43198 /usr/src | |
| parent | 9348d232b12debc31fa8e694c517ad8ecfd54bda (diff) | |
| download | illumos-joyent-f665a76fbe5ccb01d21f7917a7d764c98ed42344.tar.gz | |
5632 libm's use of _sse_hw is wrong and unnecessary (in that order)
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Gordon Ross <gwr@nexenta.com>
Diffstat (limited to 'usr/src')
| -rw-r--r-- | usr/src/lib/libm/common/m9x/__fex_i386.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr/src/lib/libm/common/m9x/__fex_i386.c b/usr/src/lib/libm/common/m9x/__fex_i386.c index 33f616c09f..c6ffa593be 100644 --- a/usr/src/lib/libm/common/m9x/__fex_i386.c +++ b/usr/src/lib/libm/common/m9x/__fex_i386.c @@ -50,9 +50,8 @@ * The following variable lives in libc on Solaris 10, where it * gets set to a nonzero value at startup time on systems with SSE. */ -int _sse_hw = 0; -#pragma weak _sse_hw -#define test_sse_hw &_sse_hw && _sse_hw +extern int _sse_hw; +#define test_sse_hw _sse_hw #endif static int accrued = 0; @@ -216,7 +215,7 @@ my_fp_classl(long double *x) if (i < 0x7fff) { if (i < 1) { if (*(1+(int*)x) < 0) return fp_normal; /* pseudo-denormal */ - return (((*(1+(int*)x) | *(int*)x) == 0)? + return (((*(1+(int*)x) | *(int*)x) == 0)? fp_zero : fp_subnormal); } return ((*(1+(int*)x) < 0)? fp_normal : |
