From 87fc24b6bb928d3d257e1c074edd1f19e545aff4 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Mon, 8 Jul 2019 11:05:13 +0000 Subject: Fixed spelling mistakes found by codespell 1.15.0. (merged changeset r13522 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@13523 280ebfd0-de03-0410-8827-d642c229c3f4 --- doc/README.dev | 6 +++--- src/free_cache.c | 4 ++-- src/mpfr-gmp.c | 2 +- src/mpfr-impl.h | 2 +- src/mpfr.h | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/README.dev b/doc/README.dev index d79635cd5..0e048d3e1 100644 --- a/doc/README.dev +++ b/doc/README.dev @@ -591,7 +591,7 @@ Language C: http://www.vmunix.com/~gabor/c/draft.html To allow MPFR to be built on some buggy compiler, try to follow -theses rules: +these rules: ===================================================================== @@ -818,7 +818,7 @@ to the new timeout value in seconds (or 0 to disable the timeout). =========================================================================== This feature is available only for gcc >= 3.0 and glibc >= 2.0. -To achieve this, theses macros have been added: +To achieve this, these macros have been added: +++ MPFR_LOG_VAR(y) Log a MPFR variable if requested (INTERNAL). @@ -872,7 +872,7 @@ its goals too. ZivLoop Controller Ziv strategy is quite used in MPFR. In order to factorize the code, you -could use theses macros: +could use these macros: +++ MPFR_ZIV_DECL(_x) Declare a ZivLoop controller diff --git a/src/free_cache.c b/src/free_cache.c index db0637a0d..50f9afada 100644 --- a/src/free_cache.c +++ b/src/free_cache.c @@ -22,7 +22,7 @@ https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #include "mpfr-impl.h" -/* Theses caches may be global to all threads or local to the current one. */ +/* These caches may be global to all threads or local to the current one. */ static void mpfr_free_const_caches (void) { @@ -39,7 +39,7 @@ mpfr_free_const_caches (void) mpfr_clear_cache (__gmpfr_cache_const_catalan); } -/* Theses caches/pools are always local to a thread. */ +/* These caches/pools are always local to a thread. */ static void mpfr_free_local_cache (void) { diff --git a/src/mpfr-gmp.c b/src/mpfr-gmp.c index 49feedc4e..db1e97451 100644 --- a/src/mpfr-gmp.c +++ b/src/mpfr-gmp.c @@ -300,7 +300,7 @@ mpfr_assert_fail (const char *filename, int linenum, abort(); } -/* Performing a concentration for theses indirect functions may be +/* Performing a concentration for these indirect functions may be good for performance since branch prediction for indirect calls is not well supported by a lot of CPU's (typically they can only predict a limited number of indirections). */ diff --git a/src/mpfr-impl.h b/src/mpfr-impl.h index 98e2d2325..f457fd293 100644 --- a/src/mpfr-impl.h +++ b/src/mpfr-impl.h @@ -1247,7 +1247,7 @@ typedef union { mp_size_t s; mp_limb_t l; } mpfr_size_limb_t; ****************** Useful macros ******************* ******************************************************/ -/* Theses macros help the compiler to determine if a test is +/* These macros help the compiler to determine if a test is likely or unlikely. The !! is necessary in case x is larger than a long. */ #if defined MPFR_DEBUG_PREDICTION && __MPFR_GNUC(3,0) diff --git a/src/mpfr.h b/src/mpfr.h index 58c344065..a579d67d2 100644 --- a/src/mpfr.h +++ b/src/mpfr.h @@ -269,7 +269,7 @@ typedef enum { #endif /* If the user hasn't requested his/her preference - and if the intension of support by the compiler is C99 + and if the intention of support by the compiler is C99 and if the compiler is known to support the C99 feature then we can auto-detect the C99 support as OK. __GNUC__ is used to detect GNU-C, ICC & CLANG compilers. @@ -794,7 +794,7 @@ __MPFR_DECLSPEC int mpfr_custom_get_kind (mpfr_srcptr); even if it produces faster and smaller code. */ #ifndef MPFR_USE_NO_MACRO -/* Inlining theses functions is both faster and smaller */ +/* Inlining these functions is both faster and smaller */ #define mpfr_nan_p(_x) ((_x)->_mpfr_exp == __MPFR_EXP_NAN) #define mpfr_inf_p(_x) ((_x)->_mpfr_exp == __MPFR_EXP_INF) #define mpfr_zero_p(_x) ((_x)->_mpfr_exp == __MPFR_EXP_ZERO) @@ -970,7 +970,7 @@ __MPFR_DECLSPEC int mpfr_custom_get_kind (mpfr_srcptr); #endif /* MPFR_USE_NO_MACRO */ -/* Theses are defined to be macros */ +/* These are defined to be macros */ #define mpfr_init_set_si(x, i, rnd) \ ( mpfr_init(x), mpfr_set_si((x), (i), (rnd)) ) #define mpfr_init_set_ui(x, i, rnd) \ -- cgit v1.2.1