summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2013-07-22 02:04:00 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2013-07-22 02:04:00 +0000
commit94538dd4c7b985299a35a1599ac0f1e659c7606b (patch)
treedae73e0da853adc5f1db5653431e24060be19212
parent5f98b6da3ddf9d9795bcdc586ec3ed81516f13cf (diff)
downloadmpfr-94538dd4c7b985299a35a1599ac0f1e659c7606b.tar.gz
Applied patch 2 by Ondřej Bílka, fixing capitalization:
https://sympa.inria.fr/sympa/arc/mpfr/2013-07/msg00015.html git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8620 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--src/mpfr-longlong.h2
-rw-r--r--src/round_raw_generic.c2
-rw-r--r--src/strtofr.c2
-rw-r--r--src/sub1sp.c6
-rw-r--r--src/sum.c8
-rw-r--r--src/zeta.c2
6 files changed, 11 insertions, 11 deletions
diff --git a/src/mpfr-longlong.h b/src/mpfr-longlong.h
index 32d087380..2ef005385 100644
--- a/src/mpfr-longlong.h
+++ b/src/mpfr-longlong.h
@@ -1491,7 +1491,7 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO ((UWtype *, UWtype, UWtype, UWtype));
#endif /* __sparclite__ */
#endif /* __sparc_v8__ */
#endif /* __sparc_v9__ */
-/* Default to sparc v7 versions of umul_ppmm and udiv_qrnnd. */
+/* Default to SPARC v7 versions of umul_ppmm and udiv_qrnnd. */
#ifndef umul_ppmm
#define umul_ppmm(w1, w0, u, v) \
__asm__ ("! Inlined umul_ppmm\n" \
diff --git a/src/round_raw_generic.c b/src/round_raw_generic.c
index 6510a01aa..70545b1c5 100644
--- a/src/round_raw_generic.c
+++ b/src/round_raw_generic.c
@@ -86,7 +86,7 @@ mpfr_round_raw_generic(
if (MPFR_UNLIKELY(xprec <= yprec))
{ /* No rounding is necessary. */
- /* if yp=xp, maybe an overlap: MPN_COPY_DECR is ok when src <= dst */
+ /* if yp=xp, maybe an overlap: MPN_COPY_DECR is OK when src <= dst */
if (MPFR_LIKELY(rw))
nw++;
MPFR_ASSERTD(nw >= 1);
diff --git a/src/strtofr.c b/src/strtofr.c
index 7d60460d3..ed4644dee 100644
--- a/src/strtofr.c
+++ b/src/strtofr.c
@@ -219,7 +219,7 @@ fast_casecmp (const char *s1, const char *s2)
It returns:
-1 if invalid string,
0 if special string (like nan),
- 1 if the string is ok.
+ 1 if the string is OK.
2 if overflows
So it doesn't return the ternary value
BUT if it returns 0 (NAN or INF), the ternary value is also '0'
diff --git a/src/sub1sp.c b/src/sub1sp.c
index 9f27eadce..1599c6025 100644
--- a/src/sub1sp.c
+++ b/src/sub1sp.c
@@ -231,7 +231,7 @@ mpfr_sub1sp (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode)
mpn_lshift(ap, ap, n, cnt); /* Normalize number */
bx -= cnt; /* Update final expo */
}
- /* Last limb should be ok */
+ /* Last limb should be OK */
MPFR_ASSERTD(!(ap[0] & MPFR_LIMB_MASK((unsigned int) (-p)
% GMP_NUMB_BITS)));
}
@@ -261,7 +261,7 @@ mpfr_sub1sp (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode)
}
MPN_ZERO(ap, len); /* Zeroing the last limbs */
bx -= cnt + len*GMP_NUMB_BITS; /* Update Expo */
- /* Last limb should be ok */
+ /* Last limb should be OK */
MPFR_ASSERTD(!(ap[len]&MPFR_LIMB_MASK((unsigned int) (-p)
% GMP_NUMB_BITS)));
}
@@ -430,7 +430,7 @@ mpfr_sub1sp (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode)
DEBUG( printf("(D=P) Cp=-1 Cp+1=%d C'p+1=%d \n", bbcp!=0, bcp1!=0) );
bp = MPFR_MANT (b);
- /* Even if src and dest overlap, it is ok using MPN_COPY */
+ /* Even if src and dest overlap, it is OK using MPN_COPY */
if (MPFR_LIKELY(rnd_mode == MPFR_RNDN))
{
if (MPFR_UNLIKELY( bcp && bcp1==0 ))
diff --git a/src/sum.c b/src/sum.c
index f6d6edf4d..9858b9a20 100644
--- a/src/sum.c
+++ b/src/sum.c
@@ -30,10 +30,10 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
/* I would really like to use "mpfr_srcptr const []" but the norm is buggy:
it doesn't automaticaly cast a "mpfr_ptr []" to "mpfr_srcptr const []"
if necessary. So the choice are:
- mpfr_s ** : ok
- mpfr_s *const* : ok
- mpfr_s **const : ok
- mpfr_s *const*const : ok
+ mpfr_s ** : OK
+ mpfr_s *const* : OK
+ mpfr_s **const : OK
+ mpfr_s *const*const : OK
const mpfr_s *const* : no
const mpfr_s **const : no
const mpfr_s *const*const: no
diff --git a/src/zeta.c b/src/zeta.c
index a5036c1e4..03b8f86cf 100644
--- a/src/zeta.c
+++ b/src/zeta.c
@@ -217,7 +217,7 @@ mpfr_zeta_pos (mpfr_t z, mpfr_srcptr s, mpfr_rnd_t rnd_mode)
dnep = (double) d * LOG2;
sd = mpfr_get_d (s, MPFR_RNDN);
/* beta = dnep + 0.61 + sd * log (6.2832 / sd);
- but a larger value is ok */
+ but a larger value is OK */
#define LOG6dot2832 1.83787940484160805532
beta = dnep + 0.61 + sd * (LOG6dot2832 - LOG2 *
__gmpfr_floor_log2 (sd));