]> sourceware.org Git - glibc.git/commitdiff
Format mptan.c
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 27 Feb 2013 05:55:39 +0000 (11:25 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 27 Feb 2013 05:55:39 +0000 (11:25 +0530)
ChangeLog
sysdeps/ieee754/dbl-64/mptan.c

index 9cd6b9a12351ce2549f4cb30194ae03428164bfb..20ef3fe7eb032fb9e5ac81aa8707e37798e9ddab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
+       * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
+
        * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
 
 2013-02-26  Roland McGrath  <roland@hack.frob.com>
index 234108e373b89d3d52bbc608d8f9f601c57a4f57..51b5718e738327511d79f5d892e4bd702cc99db7 100644 (file)
 # define SECTION
 #endif
 
-int __mpranred(double, mp_no *, int);
-void __c32(mp_no *, mp_no *, mp_no *, int);
-
 void
 SECTION
-__mptan(double x, mp_no *mpy, int p) {
+__mptan (double x, mp_no *mpy, int p)
+{
 
   int n;
   mp_no mpw, mpc, mps;
 
-  n = __mpranred(x, &mpw, p) & 0x00000001; /* negative or positive result */
-  __c32(&mpw, &mpc, &mps, p);              /* computing sin(x) and cos(x) */
-  if (n)                     /* second or fourth quarter of unit circle */
-  { __dvd(&mpc,&mps,mpy,p);
-    mpy->d[0] *= MONE;
-  }                          /* tan is negative in this area */
-  else  __dvd(&mps,&mpc,mpy,p);
-
-  return;
+  /* Negative or positive result.  */
+  n = __mpranred (x, &mpw, p) & 0x00000001;
+  /* Computing sin(x) and cos(x).  */
+  __c32 (&mpw, &mpc, &mps, p);
+  /* Second or fourth quarter of unit circle.  */
+  if (n)
+    {
+      __dvd (&mpc, &mps, mpy, p);
+      mpy->d[0] *= MONE;
+    }
+  /* tan is negative in this area.  */
+  else
+    __dvd (&mps, &mpc, mpy, p);
 }
This page took 0.107641 seconds and 5 git commands to generate.