--- old/usr/src/lib/libm/common/LD/sinpil.c	2019-06-06 20:38:25.304254425 +0000
+++ new/usr/src/lib/libm/common/LD/sinpil.c	2019-06-06 20:38:25.322484105 +0000
@@ -22,12 +22,15 @@
 /*
  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  */
+
 /*
  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
-/* long double sinpil(long double x),
+/* BEGIN CSTYLED */
+/*
+ * long double sinpil(long double x),
  * return long double precision sinl(pi*x).
  *
  * Algorithm, 10/17/2002, K.C. Ng
@@ -66,40 +69,45 @@
  * high (tpi_h) and low (tpi_l) parts and call __k_sin/cos(tip_h, tip_lo)
  * instead.
  */
+/* END CSTYLED */
 
 #include "libm.h"
 #include "longdouble.h"
 
 #include <sys/isa_defs.h>
 
-#define I(q, m)	((int *) &(q))[m]
-#define U(q, m)	((unsigned *) &(q))[m]
+#define	I(q, m)				((int *)&(q))[m]
+#define	U(q, m)				((unsigned *)&(q))[m]
 #if defined(__i386) || defined(__amd64)
-#define LDBL_MOST_SIGNIF_I(ld)	((I(ld, 2) << 16) | (0xffff & (I(ld, 1) >> 15)))
-#define LDBL_LEAST_SIGNIF_U(ld)	U(ld, 0)
-#define PREC	64
-#define PRECM1	63
-#define PRECM2	62
+#define	LDBL_MOST_SIGNIF_I(ld)		((I(ld, 2) << 16) | (0xffff & (I(ld, \
+	1) >> 15)))
+#define	LDBL_LEAST_SIGNIF_U(ld)		U(ld, 0)
+#define	PREC				64
+#define	PRECM1				63
+#define	PRECM2				62
+
 static const long double twoPRECM2 = 9.223372036854775808000000000000000e+18L;
 #else
-#define LDBL_MOST_SIGNIF_I(ld)	I(ld, 0)
-#define LDBL_LEAST_SIGNIF_U(ld)	U(ld, sizeof(long double) / sizeof(int) - 1)
-#define PREC	113
-#define PRECM1	112
-#define PRECM2	111
+#define	LDBL_MOST_SIGNIF_I(ld)		I(ld, 0)
+#define	LDBL_LEAST_SIGNIF_U(ld)		U(ld, sizeof (long double) / \
+	sizeof (int) - 1)
+#define	PREC				113
+#define	PRECM1				112
+#define	PRECM2				111
+
 static const long double twoPRECM2 = 5.192296858534827628530496329220096e+33L;
 #endif
 
-static const long double
-zero	= 0.0L,
-quater	= 0.25L,
-one	= 1.0L,
-pi	= 3.141592653589793238462643383279502884197e+0000L,
-sqrth   = 0.707106781186547524400844362104849039284835937688474,
-tiny    = 1.0e-100;
+static const long double zero = 0.0L,
+	quater = 0.25L,
+	one = 1.0L,
+	pi = 3.141592653589793238462643383279502884197e+0000L,
+	sqrth = 0.707106781186547524400844362104849039284835937688474,
+	tiny = 1.0e-100;
 
 long double
-sinpil(long double x) {
+sinpil(long double x)
+{
 	long double y, z, t;
 	int hx, n, k;
 	unsigned lx;
@@ -107,65 +115,72 @@
 	hx = LDBL_MOST_SIGNIF_I(x);
 	lx = LDBL_LEAST_SIGNIF_U(x);
 	k = ((hx & 0x7fff0000) >> 16) - 0x3fff;
+
 	if (k >= PRECM2) {		/* |x| >= 2**(Prec-2) */
-		if (k >= 16384)
+		if (k >= 16384) {
 			y = x - x;
-		else {
-			if (k >= PREC)
+		} else {
+			if (k >= PREC) {
 				y = zero;
-			else if (k == PRECM1)
-				y = (lx & 1) == 0 ? zero: -zero;
-			else {	/* k = Prec - 2 */
+			} else if (k == PRECM1) {
+				y = (lx & 1) == 0 ? zero : -zero;
+			} else { /* k = Prec - 2 */
 				y = (lx & 1) == 0 ? zero : one;
+
 				if ((lx & 2) != 0)
 					y = -y;
 			}
 		}
-	}
-	else if (k < -2) 	/* |x| < 0.25 */
+	} else if (k < -2) {		/* |x| < 0.25 */
 		y = __k_sinl(pi * fabsl(x), zero);
-	else {
+	} else {
 		/* y = |4x|, z = floor(y), and n = (int)(z mod 8.0) */
 		y = 4.0L * fabsl(x);
+
 		if (k < PRECM2) {
 			z = y + twoPRECM2;
 			n = LDBL_LEAST_SIGNIF_U(z) & 7;	/* 3 LSb of z */
 			t = z - twoPRECM2;
 			k = 0;
-			if (t == y)
+
+			if (t == y) {
 				k = 1;
-			else if (t > y) {
+			} else if (t > y) {
 				n -= 1;
 				t = quater + (y - t) * quater;
-			}
-			else
+			} else {
 				t = (y - t) * quater;
-		}
-		else { 	/* k = Prec-3 */
+			}
+		} else { /* k = Prec-3 */
 			n = LDBL_LEAST_SIGNIF_U(y) & 7;	/* 3 LSb of z */
 			k = 1;
 		}
-		if (k) {	/* x = N/4 */
+
+		if (k) {		/* x = N/4 */
 			if ((n & 1) != 0)
 				y = sqrth + tiny;
 			else
 				y = (n & 2) == 0 ? zero : one;
+
 			if ((n & 4) != 0)
 				y = -y;
-		}
-		else {
+		} else {
 			if ((n & 1) != 0)
 				t = quater - t;
+
 			if (((n + (n & 1)) & 2) == 0)
 				y = __k_sinl(pi * t, zero);
 			else
 				y = __k_cosl(pi * t, zero);
+
 			if ((n & 4) != 0)
 				y = -y;
 		}
 	}
-	return hx >= 0 ? y : -y;
+
+	return (hx >= 0 ? y : -y);
 }
+
 #undef U
 #undef LDBL_LEAST_SIGNIF_U
 #undef I
