summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc/port/fp
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libc/port/fp')
-rw-r--r--usr/src/lib/libc/port/fp/__flt_decim.c10
-rw-r--r--usr/src/lib/libc/port/fp/__flt_rounds.c10
-rw-r--r--usr/src/lib/libc/port/fp/__tbl_10_b.c10
-rw-r--r--usr/src/lib/libc/port/fp/__tbl_10_h.c10
-rw-r--r--usr/src/lib/libc/port/fp/__tbl_10_s.c10
-rw-r--r--usr/src/lib/libc/port/fp/__tbl_2_b.c10
-rw-r--r--usr/src/lib/libc/port/fp/__tbl_2_h.c10
-rw-r--r--usr/src/lib/libc/port/fp/__tbl_2_s.c10
-rw-r--r--usr/src/lib/libc/port/fp/__tbl_fdq.c10
-rw-r--r--usr/src/lib/libc/port/fp/__tbl_tens.c13
-rw-r--r--usr/src/lib/libc/port/fp/__x_power.c13
-rw-r--r--usr/src/lib/libc/port/fp/_base_sup.c12
-rw-r--r--usr/src/lib/libc/port/fp/aconvert.c10
-rw-r--r--usr/src/lib/libc/port/fp/decimal_bin.c15
-rw-r--r--usr/src/lib/libc/port/fp/double_decim.c15
-rw-r--r--usr/src/lib/libc/port/fp/econvert.c14
-rw-r--r--usr/src/lib/libc/port/fp/fconvert.c14
-rw-r--r--usr/src/lib/libc/port/fp/file_decim.c12
-rw-r--r--usr/src/lib/libc/port/fp/finite.c19
-rw-r--r--usr/src/lib/libc/port/fp/func_decim.c12
-rw-r--r--usr/src/lib/libc/port/fp/gconvert.c14
-rw-r--r--usr/src/lib/libc/port/fp/hex_bin.c10
-rw-r--r--usr/src/lib/libc/port/fp/ieee_globals.c34
-rw-r--r--usr/src/lib/libc/port/fp/pack_float.c16
-rw-r--r--usr/src/lib/libc/port/fp/sigfpe.c25
-rw-r--r--usr/src/lib/libc/port/fp/string_decim.c12
26 files changed, 164 insertions, 186 deletions
diff --git a/usr/src/lib/libc/port/fp/__flt_decim.c b/usr/src/lib/libc/port/fp/__flt_decim.c
index 0efe7bd967..549da276cd 100644
--- a/usr/src/lib/libc/port/fp/__flt_decim.c
+++ b/usr/src/lib/libc/port/fp/__flt_decim.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -31,7 +31,7 @@
* floating point
*/
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/isa_defs.h>
#include "base_conversion.h"
diff --git a/usr/src/lib/libc/port/fp/__flt_rounds.c b/usr/src/lib/libc/port/fp/__flt_rounds.c
index 0c991987a8..3a208858df 100644
--- a/usr/src/lib/libc/port/fp/__flt_rounds.c
+++ b/usr/src/lib/libc/port/fp/__flt_rounds.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -35,7 +35,7 @@
* -1: indeterminable <<< never returned
*/
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <floatingpoint.h>
#include "libc.h"
diff --git a/usr/src/lib/libc/port/fp/__tbl_10_b.c b/usr/src/lib/libc/port/fp/__tbl_10_b.c
index f271114b56..5390bb1386 100644
--- a/usr/src/lib/libc/port/fp/__tbl_10_b.c
+++ b/usr/src/lib/libc/port/fp/__tbl_10_b.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
/* table of 16 multiples of 10**64 */
diff --git a/usr/src/lib/libc/port/fp/__tbl_10_h.c b/usr/src/lib/libc/port/fp/__tbl_10_h.c
index cdf79a70db..b59ab9c7e5 100644
--- a/usr/src/lib/libc/port/fp/__tbl_10_h.c
+++ b/usr/src/lib/libc/port/fp/__tbl_10_h.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
/* table of 5 multiples of 10**1024 */
diff --git a/usr/src/lib/libc/port/fp/__tbl_10_s.c b/usr/src/lib/libc/port/fp/__tbl_10_s.c
index 950fdff884..98b2146bc0 100644
--- a/usr/src/lib/libc/port/fp/__tbl_10_s.c
+++ b/usr/src/lib/libc/port/fp/__tbl_10_s.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
/* table of 64 multiples of 10**1 */
diff --git a/usr/src/lib/libc/port/fp/__tbl_2_b.c b/usr/src/lib/libc/port/fp/__tbl_2_b.c
index 6baa920d31..82c855a9ab 100644
--- a/usr/src/lib/libc/port/fp/__tbl_2_b.c
+++ b/usr/src/lib/libc/port/fp/__tbl_2_b.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
/* table of 16 multiples of 2**176 */
diff --git a/usr/src/lib/libc/port/fp/__tbl_2_h.c b/usr/src/lib/libc/port/fp/__tbl_2_h.c
index 834084f17e..6a4ddc973d 100644
--- a/usr/src/lib/libc/port/fp/__tbl_2_h.c
+++ b/usr/src/lib/libc/port/fp/__tbl_2_h.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
/* table of 6 multiples of 2**2816 */
diff --git a/usr/src/lib/libc/port/fp/__tbl_2_s.c b/usr/src/lib/libc/port/fp/__tbl_2_s.c
index b684648531..91cd31693e 100644
--- a/usr/src/lib/libc/port/fp/__tbl_2_s.c
+++ b/usr/src/lib/libc/port/fp/__tbl_2_s.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
/* table of 176 multiples of 2**1 */
diff --git a/usr/src/lib/libc/port/fp/__tbl_fdq.c b/usr/src/lib/libc/port/fp/__tbl_fdq.c
index b0d163e0c7..01a01b1d40 100644
--- a/usr/src/lib/libc/port/fp/__tbl_fdq.c
+++ b/usr/src/lib/libc/port/fp/__tbl_fdq.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include "base_conversion.h"
diff --git a/usr/src/lib/libc/port/fp/__tbl_tens.c b/usr/src/lib/libc/port/fp/__tbl_tens.c
index e5e25011f9..603d72d196 100644
--- a/usr/src/lib/libc/port/fp/__tbl_tens.c
+++ b/usr/src/lib/libc/port/fp/__tbl_tens.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright (c) 1989-1996 by Sun Microsystems, Inc.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* A table of all the powers of ten that fit exactly in an IEEE double, plus
* a few more.
*/
-#include "synonyms.h"
+#include "lint.h"
#include "base_conversion.h"
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/fp/__x_power.c b/usr/src/lib/libc/port/fp/__x_power.c
index b67feab020..137f2a19e5 100644
--- a/usr/src/lib/libc/port/fp/__x_power.c
+++ b/usr/src/lib/libc/port/fp/__x_power.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "base_conversion.h"
#include <sys/types.h>
#include <malloc.h>
@@ -504,7 +504,8 @@ __big_float_times_power(_big_float *pbf, int mult, int n, int precision,
/* look for additional trailing zeros to delete */
for (; pbf->bsignificand[trailing_zeros_to_delete] == 0;
- trailing_zeros_to_delete++);
+ trailing_zeros_to_delete++)
+ continue;
if (trailing_zeros_to_delete > 0) {
for (j = 0; j < (int)pbf->blength -
diff --git a/usr/src/lib/libc/port/fp/_base_sup.c b/usr/src/lib/libc/port/fp/_base_sup.c
index 87367fef88..b07957740c 100644
--- a/usr/src/lib/libc/port/fp/_base_sup.c
+++ b/usr/src/lib/libc/port/fp/_base_sup.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include "base_conversion.h"
#include <sys/isa_defs.h>
@@ -112,7 +112,7 @@ __class_quadruple(quadruple *x)
(kluge.f.significand4 == 0))
return (fp_infinity);
else if ((kluge.f.msw.significand & 0xffff) >=
- (unsigned int)0x8000)
+ (unsigned int)0x8000)
return (fp_quiet);
else
return (fp_signaling);
diff --git a/usr/src/lib/libc/port/fp/aconvert.c b/usr/src/lib/libc/port/fp/aconvert.c
index e4bf84c63d..833615e1cf 100644
--- a/usr/src/lib/libc/port/fp/aconvert.c
+++ b/usr/src/lib/libc/port/fp/aconvert.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "base_conversion.h"
/* translation table from hex values to hex chars */
diff --git a/usr/src/lib/libc/port/fp/decimal_bin.c b/usr/src/lib/libc/port/fp/decimal_bin.c
index 4d5703da08..993da63db6 100644
--- a/usr/src/lib/libc/port/fp/decimal_bin.c
+++ b/usr/src/lib/libc/port/fp/decimal_bin.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -30,12 +30,7 @@
* Conversion from decimal to binary floating point
*/
-#pragma weak decimal_to_single = _decimal_to_single
-#pragma weak decimal_to_double = _decimal_to_double
-#pragma weak decimal_to_extended = _decimal_to_extended
-#pragma weak decimal_to_quadruple = _decimal_to_quadruple
-
-#include "synonyms.h"
+#include "lint.h"
#include <stdlib.h>
#include "base_conversion.h"
diff --git a/usr/src/lib/libc/port/fp/double_decim.c b/usr/src/lib/libc/port/fp/double_decim.c
index d13cb41fa3..4ce29a4981 100644
--- a/usr/src/lib/libc/port/fp/double_decim.c
+++ b/usr/src/lib/libc/port/fp/double_decim.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -30,12 +30,7 @@
* Conversion from binary to decimal floating point
*/
-#pragma weak single_to_decimal = _single_to_decimal
-#pragma weak double_to_decimal = _double_to_decimal
-#pragma weak extended_to_decimal = _extended_to_decimal
-#pragma weak quadruple_to_decimal = _quadruple_to_decimal
-
-#include "synonyms.h"
+#include "lint.h"
#include <stdlib.h>
#include "base_conversion.h"
diff --git a/usr/src/lib/libc/port/fp/econvert.c b/usr/src/lib/libc/port/fp/econvert.c
index 2a7aa08894..7ef875a0f8 100644
--- a/usr/src/lib/libc/port/fp/econvert.c
+++ b/usr/src/lib/libc/port/fp/econvert.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak econvert = _econvert
-#pragma weak seconvert = _seconvert
-#pragma weak qeconvert = _qeconvert
-
-#include "synonyms.h"
+#include "lint.h"
#include "base_conversion.h"
#include <string.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/fp/fconvert.c b/usr/src/lib/libc/port/fp/fconvert.c
index 043fc587ef..f63e35e8a5 100644
--- a/usr/src/lib/libc/port/fp/fconvert.c
+++ b/usr/src/lib/libc/port/fp/fconvert.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak fconvert = _fconvert
-#pragma weak sfconvert = _sfconvert
-#pragma weak qfconvert = _qfconvert
-
-#include "synonyms.h"
+#include "lint.h"
#include "base_conversion.h"
#include <sys/types.h>
#include "libc.h"
diff --git a/usr/src/lib/libc/port/fp/file_decim.c b/usr/src/lib/libc/port/fp/file_decim.c
index 1280fc9465..2c64147409 100644
--- a/usr/src/lib/libc/port/fp/file_decim.c
+++ b/usr/src/lib/libc/port/fp/file_decim.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak file_to_decimal = _file_to_decimal
-
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/fp/finite.c b/usr/src/lib/libc/port/fp/finite.c
index 574983b8c7..bd40ef1a49 100644
--- a/usr/src/lib/libc/port/fp/finite.c
+++ b/usr/src/lib/libc/port/fp/finite.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,24 +18,24 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/* IEEE recommended functions */
-#pragma weak finite = _finite
-#pragma weak fpclass = _fpclass
-#pragma weak unordered = _unordered
+#pragma weak _finite = finite
+#pragma weak _fpclass = fpclass
+#pragma weak _unordered = unordered
-#include "synonyms.h"
+#include "lint.h"
#include <values.h>
#include "fpparts.h"
diff --git a/usr/src/lib/libc/port/fp/func_decim.c b/usr/src/lib/libc/port/fp/func_decim.c
index bbcfe1ff25..ded6547a09 100644
--- a/usr/src/lib/libc/port/fp/func_decim.c
+++ b/usr/src/lib/libc/port/fp/func_decim.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak func_to_decimal = _func_to_decimal
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <ctype.h>
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/fp/gconvert.c b/usr/src/lib/libc/port/fp/gconvert.c
index 830aed755c..9baa9ecce3 100644
--- a/usr/src/lib/libc/port/fp/gconvert.c
+++ b/usr/src/lib/libc/port/fp/gconvert.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak gconvert = _gconvert
-#pragma weak sgconvert = _sgconvert
-#pragma weak qgconvert = _qgconvert
-
-#include "synonyms.h"
+#include "lint.h"
#include "base_conversion.h"
#include <sys/types.h>
#include "libc.h"
diff --git a/usr/src/lib/libc/port/fp/hex_bin.c b/usr/src/lib/libc/port/fp/hex_bin.c
index 8672e0bad0..752d385b7e 100644
--- a/usr/src/lib/libc/port/fp/hex_bin.c
+++ b/usr/src/lib/libc/port/fp/hex_bin.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "base_conversion.h"
/* conversion from hex chars to hex values */
diff --git a/usr/src/lib/libc/port/fp/ieee_globals.c b/usr/src/lib/libc/port/fp/ieee_globals.c
index 871e5e1711..e244608adf 100644
--- a/usr/src/lib/libc/port/fp/ieee_globals.c
+++ b/usr/src/lib/libc/port/fp/ieee_globals.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -18,10 +17,14 @@
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
- *
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ */
+
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
- *
+ */
+
+/*
* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T
* All Rights Reserved
*
@@ -37,8 +40,7 @@
* modes; IEEE floating-point arithmetic exception handling;
*/
-
-#include "synonyms.h"
+#include "lint.h"
#include <thread.h>
#include <synch.h>
#include <mtlib.h>
@@ -59,25 +61,25 @@ typedef struct {
#define fpvars ((fpvars_t *)tsdalloc(_T_FP_GET, sizeof (fpvars_t), NULL))
int *
-_thr_get_nan_written()
+_thrp_get_nan_written()
{
- return (_thr_main() ? &__nan_written : &fpvars->__nan_written);
+ return (thr_main() ? &__nan_written : &fpvars->__nan_written);
}
int *
-_thr_get_nan_read()
+_thrp_get_nan_read()
{
- return (_thr_main() ? &__nan_read : &fpvars->__nan_read);
+ return (thr_main() ? &__nan_read : &fpvars->__nan_read);
}
int *
-_thr_get_inf_written()
+_thrp_get_inf_written()
{
- return (_thr_main() ? &__inf_written : &fpvars->__inf_written);
+ return (thr_main() ? &__inf_written : &fpvars->__inf_written);
}
int *
-_thr_get_inf_read()
+_thrp_get_inf_read()
{
- return (_thr_main() ? &__inf_read : &fpvars->__inf_read);
+ return (thr_main() ? &__inf_read : &fpvars->__inf_read);
}
diff --git a/usr/src/lib/libc/port/fp/pack_float.c b/usr/src/lib/libc/port/fp/pack_float.c
index 6e6c8f6e85..cefe6ddd34 100644
--- a/usr/src/lib/libc/port/fp/pack_float.c
+++ b/usr/src/lib/libc/port/fp/pack_float.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "base_conversion.h"
static void
@@ -172,7 +172,7 @@ infinity:
case fp_quiet:
kluge.f.msw.exponent = 0xff;
kluge.f.msw.significand = 0x400000 |
- (0x3fffff & (pu->significand[0] >> 8));
+ (0x3fffff & (pu->significand[0] >> 8));
break;
case fp_normal:
__fp_rightshift(pu, 8);
@@ -239,7 +239,7 @@ infinity:
kluge.f.msw.exponent = 0x7ff;
__fp_rightshift(pu, 11);
kluge.f.msw.significand = 0x80000 |
- (0x7ffff & pu->significand[0]);
+ (0x7ffff & pu->significand[0]);
kluge.f.significand2 = pu->significand[1];
break;
case fp_normal:
@@ -384,7 +384,7 @@ infinity:
kluge.f.msw.exponent = 0x7fff;
__fp_rightshift(pu, 15);
kluge.f.msw.significand = 0x8000 |
- (0xffff & pu->significand[0]);
+ (0xffff & pu->significand[0]);
kluge.f.significand2 = pu->significand[1];
kluge.f.significand3 = pu->significand[2];
kluge.f.significand4 = pu->significand[3];
diff --git a/usr/src/lib/libc/port/fp/sigfpe.c b/usr/src/lib/libc/port/fp/sigfpe.c
index 24eb54fc23..9ba6c6ce72 100644
--- a/usr/src/lib/libc/port/fp/sigfpe.c
+++ b/usr/src/lib/libc/port/fp/sigfpe.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -18,10 +17,14 @@
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
- *
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ */
+
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
- *
+ */
+
+/*
* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T
* All Rights Reserved
*
@@ -34,9 +37,7 @@
/* Swap handler for SIGFPE codes. */
-#pragma weak sigfpe = _sigfpe
-
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <errno.h>
#include <signal.h>
@@ -128,7 +129,8 @@ _sigfpe_master(int sig, siginfo_t *siginfo, void *arg)
lmutex_lock(&sigfpe_lock);
code = siginfo->si_code;
- for (i = 0; (i < N_SIGFPE_CODE) && (code != sigfpe_codes[i]); i++);
+ for (i = 0; (i < N_SIGFPE_CODE) && (code != sigfpe_codes[i]); i++)
+ continue;
/* Find index of handler. */
if (i >= N_SIGFPE_CODE)
i = N_SIGFPE_CODE - 1;
@@ -214,7 +216,8 @@ sigfpe(sigfpe_code_type code, sigfpe_handler_type hdl)
lmutex_lock(&sigfpe_lock);
(void) _test_sigfpe_master();
- for (i = 0; (i < N_SIGFPE_CODE) && (code != sigfpe_codes[i]); i++);
+ for (i = 0; (i < N_SIGFPE_CODE) && (code != sigfpe_codes[i]); i++)
+ continue;
/* Find index of handler. */
if (i >= N_SIGFPE_CODE) {
errno = EINVAL;
diff --git a/usr/src/lib/libc/port/fp/string_decim.c b/usr/src/lib/libc/port/fp/string_decim.c
index ddea3bf323..1b09aef644 100644
--- a/usr/src/lib/libc/port/fp/string_decim.c
+++ b/usr/src/lib/libc/port/fp/string_decim.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak string_to_decimal = _string_to_decimal
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <ctype.h>
#include <stdio.h>