diff --git a/include/demangle.h b/include/demangle.h
index 49b84d4de88..9325f7002f7 100644
--- a/include/demangle.h
+++ b/include/demangle.h
@@ -64,14 +64,14 @@ extern "C" {
/* Disable a limit on the depth of recursion in mangled strings.
Note if this limit is disabled then stack exhaustion is possible when
demangling pathologically complicated strings. Bug reports about stack
- exhaustion when the option is enabled will be rejected. */
-#define DMGL_NO_RECURSE_LIMIT (1 << 18)
+ exhaustion when the option is enabled will be rejected. */
+#define DMGL_NO_RECURSE_LIMIT (1 << 18)
/* If DMGL_NO_RECURSE_LIMIT is not enabled, then this is the value used as
the maximum depth of recursion allowed. It should be enough for any
real-world mangled name. */
#define DEMANGLE_RECURSION_LIMIT 2048
-
+
/* Enumeration of possible demangling styles.
Lucid and ARM styles are still kept logically distinct, even though
diff --git a/include/dyn-string.h b/include/dyn-string.h
index 9052780c96d..b0a108d9fac 100644
--- a/include/dyn-string.h
+++ b/include/dyn-string.h
@@ -3,7 +3,7 @@
Contributed by Mark Mitchell (mark@markmitchell.com).
This file is part of GCC.
-
+
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
diff --git a/include/fibheap.h b/include/fibheap.h
index 85ab4eb38ab..2b735b621a3 100644
--- a/include/fibheap.h
+++ b/include/fibheap.h
@@ -3,7 +3,7 @@
Contributed by Daniel Berlin (dan@cgsoftware.com).
This file is part of GCC.
-
+
GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
@@ -33,8 +33,8 @@ Boston, MA 02110-1301, USA. */
Amortized and real worst case time for operations:
ExtractMin: O(lg n) amortized. O(n) worst case.
- DecreaseKey: O(1) amortized. O(lg n) worst case.
- Insert: O(2) amortized. O(1) actual.
+ DecreaseKey: O(1) amortized. O(lg n) worst case.
+ Insert: O(2) amortized. O(1) actual.
Union: O(1) amortized. O(1) actual. */
#ifndef _FIBHEAP_H_
diff --git a/include/hashtab.h b/include/hashtab.h
index 00bcdc9d24e..09e9ee9ed9b 100644
--- a/include/hashtab.h
+++ b/include/hashtab.h
@@ -1,4 +1,4 @@
-/* An expandable hash tables datatype.
+/* An expandable hash tables datatype.
Copyright (C) 1999-2024 Free Software Foundation, Inc.
Contributed by Vladimir Makarov (vmakarov@cygnus.com).
@@ -56,7 +56,7 @@ typedef int (*htab_eq) (const void *, const void *);
/* Cleanup function called whenever a live element is removed from
the hash table. */
typedef void (*htab_del) (void *);
-
+
/* Function called by htab_traverse for each live element. The first
arg is the slot of the element (which can be passed to htab_clear_slot
if desired), the second arg is the auxiliary pointer handed to
diff --git a/include/hsa_ext_amd.h b/include/hsa_ext_amd.h
index 1f93e0d96cc..c1c16536621 100644
--- a/include/hsa_ext_amd.h
+++ b/include/hsa_ext_amd.h
@@ -683,7 +683,7 @@ typedef enum {
* following its memory access model. The actual placement may vary or migrate
* due to the system's NUMA policy and state, which is beyond the scope of
* HSA APIs.
- */
+ */
typedef struct hsa_amd_memory_pool_s {
/**
* Opaque handle.
@@ -758,7 +758,7 @@ typedef enum {
HSA_AMD_MEMORY_POOL_INFO_RUNTIME_ALLOC_ALIGNMENT = 7,
/**
* This memory_pool can be made directly accessible by all the agents in the
- * system (::hsa_amd_agent_memory_pool_get_info does not return
+ * system (::hsa_amd_agent_memory_pool_get_info does not return
* ::HSA_AMD_MEMORY_POOL_ACCESS_NEVER_ALLOWED for any agent). The type of this
* attribute is bool.
*/
diff --git a/include/hsa_ext_image.h b/include/hsa_ext_image.h
index 52b695bc9fa..e94d8da202d 100644
--- a/include/hsa_ext_image.h
+++ b/include/hsa_ext_image.h
@@ -40,7 +40,7 @@
#ifdef __cplusplus
extern "C" {
-#endif /*__cplusplus*/
+#endif /*__cplusplus*/
/** \defgroup ext-images Images and Samplers
* @{
@@ -253,7 +253,7 @@ typedef enum {
* @brief A fixed-size type used to represent ::hsa_ext_image_channel_type_t constants.
*/
typedef uint32_t hsa_ext_image_channel_type32_t;
-
+
/**
*
* @brief Channel order associated with the elements of an image. See
@@ -289,7 +289,7 @@ typedef enum {
* @brief A fixed-size type used to represent ::hsa_ext_image_channel_order_t constants.
*/
typedef uint32_t hsa_ext_image_channel_order32_t;
-
+
/**
* @brief Image format.
@@ -1156,7 +1156,7 @@ typedef enum {
* @brief A fixed-size type used to represent ::hsa_ext_sampler_coordinate_mode_t constants.
*/
typedef uint32_t hsa_ext_sampler_coordinate_mode32_t;
-
+
/**
* @brief Sampler filter modes. See the Filter Mode section
@@ -1432,9 +1432,9 @@ typedef struct hsa_ext_images_1_pfn_s {
} hsa_ext_images_1_pfn_t;
/** @} */
-
+
#ifdef __cplusplus
} // end extern "C" block
-#endif /*__cplusplus*/
+#endif /*__cplusplus*/
#endif
diff --git a/include/libcollector.h b/include/libcollector.h
index 01f6f3805a0..35970ddbfa3 100644
--- a/include/libcollector.h
+++ b/include/libcollector.h
@@ -75,7 +75,7 @@ extern "C"
/* Define the macros that actually get inserted in the caller's code. */
#define collector_sample(x) (collector_sample ? collector_sample(x), 0 : 0)
#define collector_pause() (collector_pause ? collector_pause(), 0 : 0)
-#define collector_resume() (collector_resume ? collector_resume(),0 : 0
+#define collector_resume() (collector_resume ? collector_resume(),0 : 0
#define collector_thread_pause(tid) \
(collector_thread_pause ? collector_thread_pause(tid), 0 : 0)
#define collector_thread_resume(tid) \
diff --git a/include/libiberty.h b/include/libiberty.h
index 32385911690..6259d7d54ca 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -1,7 +1,7 @@
/* Function declarations for libiberty.
Copyright (C) 1997-2024 Free Software Foundation, Inc.
-
+
Note - certain prototypes declared in this header file are for
functions whoes implementation copyright does not belong to the
FSF. Those prototypes are present in this file for reference
@@ -23,7 +23,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor,
Boston, MA 02110-1301, USA.
-
+
Written by Cygnus Support, 1994.
The libiberty library provides a number of functions which are
@@ -108,7 +108,7 @@ extern int countargv (char * const *);
#if defined (__GNU_LIBRARY__ ) || defined (__linux__) \
|| defined (__FreeBSD__) || defined (__OpenBSD__) || defined (__NetBSD__) \
|| defined (__CYGWIN__) || defined (__CYGWIN32__) || defined (__MINGW32__) \
- || defined (__DragonFly__) || defined (HAVE_DECL_BASENAME)
+ || defined (__DragonFly__) || defined (HAVE_DECL_BASENAME)
extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_NONNULL(1);
#else
/* Do not allow basename to be used if there is no prototype seen. We
@@ -210,7 +210,7 @@ extern char * getpwd (void);
#ifdef __MINGW32__
/* Forward declaration to avoid #include . */
struct timeval;
-extern int gettimeofday (struct timeval *, void *);
+extern int gettimeofday (struct timeval *, void *);
#endif
/* Get the amount of time the process has run, in microseconds. */
@@ -460,7 +460,7 @@ extern struct pex_obj *pex_init (int flags, const char *pname,
/* Capture stderr to a pipe. The output can be read by
calling pex_read_err and reading from the returned
FILE object. This flag may be specified only for
- the last program in a pipeline.
+ the last program in a pipeline.
This flag is supported only on Unix and Windows. */
#define PEX_STDERR_TO_PIPE 0x40
diff --git a/include/partition.h b/include/partition.h
index b96dc8c4a99..45b640e235d 100644
--- a/include/partition.h
+++ b/include/partition.h
@@ -56,7 +56,7 @@ struct partition_elem
unsigned class_count;
};
-typedef struct partition_def
+typedef struct partition_def
{
/* The number of elements in this partition. */
int num_elements;
diff --git a/include/plugin-api.h b/include/plugin-api.h
index 07eb113d588..6d1c2dfd770 100644
--- a/include/plugin-api.h
+++ b/include/plugin-api.h
@@ -599,7 +599,7 @@ struct ld_plugin_tv
ld_plugin_get_input_section_contents tv_get_input_section_contents;
ld_plugin_update_section_order tv_update_section_order;
ld_plugin_allow_section_ordering tv_allow_section_ordering;
- ld_plugin_allow_unique_segment_for_sections tv_allow_unique_segment_for_sections;
+ ld_plugin_allow_unique_segment_for_sections tv_allow_unique_segment_for_sections;
ld_plugin_unique_segment_for_sections tv_unique_segment_for_sections;
ld_plugin_get_input_section_alignment tv_get_input_section_alignment;
ld_plugin_get_input_section_size tv_get_input_section_size;
diff --git a/include/sort.h b/include/sort.h
index fc95a08ce85..05033b8eba0 100644
--- a/include/sort.h
+++ b/include/sort.h
@@ -3,7 +3,7 @@
Contributed by Mark Mitchell .
This file is part of GCC.
-
+
GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
@@ -44,5 +44,5 @@ extern void sort_pointers (size_t, void **, void **);
#endif /* SORT_H */
-
-
+
+
diff --git a/include/splay-tree.h b/include/splay-tree.h
index 5993cca24fa..6ec60f6709a 100644
--- a/include/splay-tree.h
+++ b/include/splay-tree.h
@@ -1,9 +1,9 @@
-/* A splay-tree datatype.
+/* A splay-tree datatype.
Copyright (C) 1998-2024 Free Software Foundation, Inc.
Contributed by Mark Mitchell (mark@markmitchell.com).
This file is part of GCC.
-
+
GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
@@ -22,7 +22,7 @@
/* For an easily readable description of splay-trees, see:
Lewis, Harry R. and Denenberg, Larry. Data Structures and Their
- Algorithms. Harper-Collins, Inc. 1991.
+ Algorithms. Harper-Collins, Inc. 1991.
The major feature of splay trees is that all basic tree operations
are amortized O(log n) time for a tree with n nodes. */
diff --git a/include/symcat.h b/include/symcat.h
index effa891eeb4..e4bd91f04e9 100644
--- a/include/symcat.h
+++ b/include/symcat.h
@@ -11,7 +11,7 @@
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
@@ -50,6 +50,6 @@
bar", "XSTRING(foo)", to yield "bar". Be aware that this only
works for __STDC__, not for traditional C which will still resolve
to "foo". */
-#define XSTRING(s) STRINGX(s)
+#define XSTRING(s) STRINGX(s)
#endif /* SYM_CAT_H */
diff --git a/include/vtv-change-permission.h b/include/vtv-change-permission.h
index c7d48f4f318..19bce7780c0 100644
--- a/include/vtv-change-permission.h
+++ b/include/vtv-change-permission.h
@@ -1,7 +1,7 @@
/* Copyright (C) 2013-2024 Free Software Foundation, Inc.
-
+
This file is part of GCC.
-
+
modify it under the terms of the GNU Library General Public License
as published by the Free Software Foundation; either version 2, or
(at your option) any later version.
@@ -45,7 +45,7 @@ extern void __VLTChangePermission (int);
#ifdef BIG_PAGE_SIZE
/* TODO - Replace '4096' below with correct big page size. */
#define VTV_PAGE_SIZE 4096
-#else
+#else
#if defined(__sun__) && defined(__svr4__) && defined(__sparc__)
#define VTV_PAGE_SIZE 8192
#elif defined(__loongarch_lp64)
diff --git a/include/xregex.h b/include/xregex.h
index 4c5ef934556..b5de00af4bb 100644
--- a/include/xregex.h
+++ b/include/xregex.h
@@ -4,7 +4,7 @@
#ifndef _XREGEX_H
#define _XREGEX_H 1
-# define regfree xregfree
+# define regfree xregfree
# define regexec xregexec
# define regcomp xregcomp
# define regerror xregerror
diff --git a/libcpp/charset.cc b/libcpp/charset.cc
index cc38769424f..9337fbc3a7a 100644
--- a/libcpp/charset.cc
+++ b/libcpp/charset.cc
@@ -1826,7 +1826,7 @@ _cpp_valid_ucn (cpp_reader *pfile, const uchar **pstr,
(int) (str - base), base);
result = 1;
}
- else if (identifier_pos && result == 0x24
+ else if (identifier_pos && result == 0x24
&& CPP_OPTION (pfile, dollars_in_ident)
/* In C++26 when dollars are allowed in identifiers,
we should still reject \u0024 as $ is part of the basic
@@ -2994,7 +2994,7 @@ _cpp_interpret_identifier (cpp_reader *pfile, const uchar *id, size_t len)
uchar * buf = (uchar *) alloca (len + 1);
uchar * bufp = buf;
size_t idp;
-
+
for (idp = 0; idp < len; idp++)
if (id[idp] != '\\')
*bufp++ = id[idp];
@@ -3060,7 +3060,7 @@ _cpp_interpret_identifier (cpp_reader *pfile, const uchar *id, size_t len)
}
}
- return CPP_HASHNODE (ht_lookup (pfile->hash_table,
+ return CPP_HASHNODE (ht_lookup (pfile->hash_table,
buf, bufp - buf, HT_ALLOC));
}
@@ -3101,7 +3101,7 @@ cpp_check_utf8_bom (const char *data, size_t data_length)
PFILE is only used to generate diagnostics; setting it to NULL suppresses
diagnostics, and causes a return of NULL if there was any error instead. */
-uchar *
+uchar *
_cpp_convert_input (cpp_reader *pfile, const char *input_charset,
uchar *input, size_t size, size_t len,
const unsigned char **buffer_start, off_t *st_size)
diff --git a/libcpp/directives.cc b/libcpp/directives.cc
index 5706c28b835..0071de5f7b8 100644
--- a/libcpp/directives.cc
+++ b/libcpp/directives.cc
@@ -513,7 +513,7 @@ _cpp_handle_directive (cpp_reader *pfile, bool indented)
compiled with -save-temps, we recognize directives in
-fpreprocessed mode only if the # is in column 1. macro.cc
puts a space in front of any '#' at the start of a macro.
-
+
We exclude the -fdirectives-only case because macro expansion
has not been performed yet, and block comments can cause spaces
to precede the directive. */
@@ -915,8 +915,8 @@ do_include_common (cpp_reader *pfile, enum include_type type)
/* Prevent #include recursion. */
if (pfile->line_table->depth >= CPP_OPTION (pfile, max_include_depth))
- cpp_error (pfile,
- CPP_DL_ERROR,
+ cpp_error (pfile,
+ CPP_DL_ERROR,
"%<#include%> nested depth %u exceeds maximum of %u"
" (use %<-fmax-include-depth=DEPTH%> to increase the maximum)",
pfile->line_table->depth,
@@ -1891,7 +1891,7 @@ cpp_register_deferred_pragma (cpp_reader *pfile, const char *space,
entry->allow_expansion = allow_expansion;
entry->u.ident = ident;
}
-}
+}
/* Register the pragmas the preprocessor itself handles. */
void
@@ -2447,7 +2447,7 @@ destringize_and_run (cpp_reader *pfile, const cpp_string *in,
pfile->directive = save_directive;
/* We always insert at least one token, the directive result. It'll
- either be a CPP_PADDING or a CPP_PRAGMA. In the later case, we
+ either be a CPP_PADDING or a CPP_PRAGMA. In the later case, we
need to insert *all* of the tokens, including the CPP_PRAGMA_EOL. */
/* If we're not handling the pragma internally, read all of the tokens from
diff --git a/libcpp/errors.cc b/libcpp/errors.cc
index b644c36a9a0..2517c17bcca 100644
--- a/libcpp/errors.cc
+++ b/libcpp/errors.cc
@@ -200,7 +200,7 @@ cpp_diagnostic_with_line (cpp_reader * pfile, enum cpp_diagnostic_level level,
const char *msgid, va_list *ap)
{
bool ret;
-
+
if (!pfile->cb.diagnostic)
abort ();
/* Don't override note locations, which will likely make the note
diff --git a/libcpp/expr.cc b/libcpp/expr.cc
index 2a57dc79d8d..53980f48502 100644
--- a/libcpp/expr.cc
+++ b/libcpp/expr.cc
@@ -860,7 +860,7 @@ cpp_classify_number (cpp_reader *pfile, const cpp_token *token,
if ((result & CPP_N_WIDTH) == CPP_N_LARGE
&& CPP_OPTION (pfile, cpp_warn_long_long))
{
- const char *message = CPP_OPTION (pfile, cplusplus)
+ const char *message = CPP_OPTION (pfile, cplusplus)
? N_("use of C++11 long long integer constant")
: N_("use of C99 long long integer constant");
@@ -1723,7 +1723,7 @@ reduce (cpp_reader *pfile, struct op *top, enum cpp_ttype op)
case CPP_OPEN_PAREN:
if (op != CPP_CLOSE_PAREN)
{
- cpp_error_with_line (pfile, CPP_DL_ERROR,
+ cpp_error_with_line (pfile, CPP_DL_ERROR,
top->token->src_loc,
0, "missing %<)%> in expression");
return 0;
diff --git a/libcpp/files.cc b/libcpp/files.cc
index fbbd59e62a3..c63f5824a53 100644
--- a/libcpp/files.cc
+++ b/libcpp/files.cc
@@ -278,7 +278,7 @@ open_file (_cpp_file *file)
/* The call to stat may have reset errno. */
errno = EACCES;
}
-#endif
+#endif
else if (errno == ENOTDIR)
errno = ENOENT;
@@ -375,7 +375,7 @@ maybe_shorter_path (const char * file)
{
return file2;
}
- else
+ else
{
free (file2);
return NULL;
@@ -461,7 +461,7 @@ find_file_in_dir (cpp_reader *pfile, _cpp_file *file, bool *invalid_pch,
}
else
{
- file->err_no = ENOENT;
+ file->err_no = ENOENT;
file->path = NULL;
}
diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h
index b4ff6a96b6b..f2ed0877c64 100644
--- a/libcpp/include/cpplib.h
+++ b/libcpp/include/cpplib.h
@@ -266,7 +266,7 @@ struct GTY(()) cpp_token {
{
/* An identifier. */
struct cpp_identifier GTY ((tag ("CPP_TOKEN_FLD_NODE"))) node;
-
+
/* Inherit padding from this token. */
cpp_token * GTY ((tag ("CPP_TOKEN_FLD_SOURCE"))) source;
@@ -325,7 +325,7 @@ enum cpp_normalize_level {
normalized_none
};
-enum cpp_main_search
+enum cpp_main_search
{
CMS_none, /* A regular source file. */
CMS_header, /* Is a directly-specified header file (eg PCH or
@@ -477,7 +477,7 @@ struct cpp_options
/* Nonzero means we're looking at already preprocessed code, so don't
bother trying to do macro expansion and whatnot. */
unsigned char preprocessed;
-
+
/* Nonzero means we are going to emit debugging logs during
preprocessing. */
unsigned char debug;
@@ -874,7 +874,7 @@ struct cpp_dir
/* Is this a user-supplied directory? */
bool user_supplied_p;
- /* The canonicalized NAME as determined by lrealpath. This field
+ /* The canonicalized NAME as determined by lrealpath. This field
is only used by hosts that lack reliable inode numbers. */
char *canonical_name;
@@ -904,7 +904,7 @@ enum cpp_macro_kind {
/* Each macro definition is recorded in a cpp_macro structure.
Variadic macros cannot occur with traditional cpp. */
struct GTY(()) cpp_macro {
- union cpp_parm_u
+ union cpp_parm_u
{
/* Parameters, if any. If parameter names use extended identifiers,
the original spelling of those identifiers, not the canonical
@@ -1245,7 +1245,7 @@ inline location_t cpp_macro_definition_location (cpp_hashnode *node)
return macro ? macro->line : 0;
}
/* Return an idempotent time stamp (possibly from SOURCE_DATE_EPOCH). */
-enum class CPP_time_kind
+enum class CPP_time_kind
{
FIXED = -1, /* Fixed time via source epoch. */
DYNAMIC = -2, /* Dynamic via time(2). */
@@ -1280,7 +1280,7 @@ extern cppchar_t cpp_host_to_exec_charset (cpp_reader *, cppchar_t);
The text is the same as the command line argument. */
extern void cpp_define (cpp_reader *, const char *);
extern void cpp_define_unused (cpp_reader *, const char *);
-extern void cpp_define_formatted (cpp_reader *pfile,
+extern void cpp_define_formatted (cpp_reader *pfile,
const char *fmt, ...) ATTRIBUTE_PRINTF_2;
extern void cpp_define_formatted_unused (cpp_reader *pfile,
const char *fmt,
diff --git a/libcpp/include/line-map.h b/libcpp/include/line-map.h
index e6e2b089757..732ec5e6445 100644
--- a/libcpp/include/line-map.h
+++ b/libcpp/include/line-map.h
@@ -392,7 +392,7 @@ struct GTY((tag ("0"), desc ("MAP_ORDINARY_P (&%h) ? 1 : 2"))) line_map {
/* An ordinary line map encodes physical source locations. Those
physical source locations are called "spelling locations".
-
+
Physical source file TO_FILE at line TO_LINE at column 0 is represented
by the logical START_LOCATION. TO_LINE+L at column C is represented by
START_LOCATION+(L*(1<cb.dir_change (pfile, smashy + 1);
}
diff --git a/libcpp/internal.h b/libcpp/internal.h
index 066652b8a3d..9ded9a77d5b 100644
--- a/libcpp/internal.h
+++ b/libcpp/internal.h
@@ -304,7 +304,7 @@ struct spec_nodes
cpp_hashnode *n__VA_OPT__; /* C++ vararg macros */
enum {M_EXPORT, M_MODULE, M_IMPORT, M__IMPORT, M_HWM};
-
+
/* C++20 modules, only set when module_directives is in effect.
incoming variants [0], outgoing ones [1] */
cpp_hashnode *n_modules[M_HWM][2];
@@ -854,7 +854,7 @@ extern size_t _cpp_replacement_text_len (const cpp_macro *);
It starts initialized to all zeros, and at the end
'level' is the normalization level of the sequence. */
-struct normalize_state
+struct normalize_state
{
/* The previous starter character. */
cppchar_t previous;
diff --git a/libcpp/lex.cc b/libcpp/lex.cc
index 8406c10d719..4bd46309391 100644
--- a/libcpp/lex.cc
+++ b/libcpp/lex.cc
@@ -104,7 +104,7 @@ add_line_note (cpp_buffer *buffer, const uchar *pos, unsigned int type)
path below. Since this loop is very hot it's worth doing these kinds
of optimizations.
- One of the paths through the ifdefs should provide
+ One of the paths through the ifdefs should provide
const uchar *search_line_fast (const uchar *s, const uchar *end);
@@ -168,7 +168,7 @@ static inline word_type
acc_char_cmp (word_type val, word_type c)
{
#if defined(__GNUC__) && defined(__alpha__)
- /* We can get exact results using a compare-bytes instruction.
+ /* We can get exact results using a compare-bytes instruction.
Get (val == c) via (0 >= (val ^ c)). */
return __builtin_alpha_cmpbge (0, val ^ c);
#else
@@ -215,7 +215,7 @@ acc_char_index (word_type cmp ATTRIBUTE_UNUSED,
}
/* A version of the fast scanner using bit fiddling techniques.
-
+
For 32-bit words, one would normally perform 16 comparisons and
16 branches. With this algorithm one performs 24 arithmetic
operations and one branch. Whether this is faster with a 32-bit
@@ -236,7 +236,7 @@ search_line_acc_char (const uchar *s, const uchar *end ATTRIBUTE_UNUSED)
unsigned int misalign;
const word_type *p;
word_type val, t;
-
+
/* Align the buffer. Mask out any bytes from before the beginning. */
p = (word_type *)((uintptr_t)s & -sizeof(word_type));
val = *p;
@@ -433,20 +433,20 @@ search_line_fast (const uchar *s, const uchar *end ATTRIBUTE_UNUSED)
typedef __attribute__((altivec(vector))) unsigned char vc;
const vc repl_nl = {
- '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n',
+ '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n',
'\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n'
};
const vc repl_cr = {
- '\r', '\r', '\r', '\r', '\r', '\r', '\r', '\r',
+ '\r', '\r', '\r', '\r', '\r', '\r', '\r', '\r',
'\r', '\r', '\r', '\r', '\r', '\r', '\r', '\r'
};
const vc repl_bs = {
- '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\',
+ '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\',
'\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\'
};
const vc repl_qm = {
- '?', '?', '?', '?', '?', '?', '?', '?',
- '?', '?', '?', '?', '?', '?', '?', '?',
+ '?', '?', '?', '?', '?', '?', '?', '?',
+ '?', '?', '?', '?', '?', '?', '?', '?',
};
const vc zero = { 0 };
@@ -537,20 +537,20 @@ search_line_fast (const uchar *s, const uchar *end ATTRIBUTE_UNUSED)
typedef __attribute__((altivec(vector))) unsigned char vc;
const vc repl_nl = {
- '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n',
+ '\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n',
'\n', '\n', '\n', '\n', '\n', '\n', '\n', '\n'
};
const vc repl_cr = {
- '\r', '\r', '\r', '\r', '\r', '\r', '\r', '\r',
+ '\r', '\r', '\r', '\r', '\r', '\r', '\r', '\r',
'\r', '\r', '\r', '\r', '\r', '\r', '\r', '\r'
};
const vc repl_bs = {
- '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\',
+ '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\',
'\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\'
};
const vc repl_qm = {
- '?', '?', '?', '?', '?', '?', '?', '?',
- '?', '?', '?', '?', '?', '?', '?', '?',
+ '?', '?', '?', '?', '?', '?', '?', '?',
+ '?', '?', '?', '?', '?', '?', '?', '?',
};
const vc ones = {
-1, -1, -1, -1, -1, -1, -1, -1,
@@ -786,8 +786,8 @@ search_line_fast (const uchar *s, const uchar *end ATTRIBUTE_UNUSED)
l = vpadd_u8 (vget_low_u8 (t), vget_high_u8 (t));
m = vpaddl_u8 (l);
n = vpaddl_u16 (m);
-
- found = vget_lane_u32 ((uint32x2_t) vorr_u64 ((uint64x1_t) n,
+
+ found = vget_lane_u32 ((uint32x2_t) vorr_u64 ((uint64x1_t) n,
vshr_n_u64 ((uint64x1_t) n, 24)), 0);
found &= mask;
}
@@ -2022,7 +2022,7 @@ name_p (cpp_reader *pfile, const cpp_string *string)
/* After parsing an identifier or other sequence, produce a warning about
sequences not in NFC/NFKC. */
static void
-warn_about_normalization (cpp_reader *pfile,
+warn_about_normalization (cpp_reader *pfile,
const cpp_token *token,
const struct normalize_state *s,
bool identifier)
@@ -2587,7 +2587,7 @@ lex_raw_string (cpp_reader *pfile, cpp_token *token, const uchar *base)
++note;
lit_accum accum;
-
+
uchar prefix[17];
unsigned prefix_len = 0;
enum Phase
@@ -2998,14 +2998,14 @@ cpp_get_comments (cpp_reader *pfile)
}
/* Append a comment to the end of the comment table. */
-static void
-store_comment (cpp_reader *pfile, cpp_token *token)
+static void
+store_comment (cpp_reader *pfile, cpp_token *token)
{
int len;
if (pfile->comments.allocated == 0)
{
- pfile->comments.allocated = 256;
+ pfile->comments.allocated = 256;
pfile->comments.entries = (cpp_comment *) xmalloc
(pfile->comments.allocated * sizeof (cpp_comment));
}
@@ -3021,7 +3021,7 @@ store_comment (cpp_reader *pfile, cpp_token *token)
len = token->val.str.len;
/* Copy comment. Note, token may not be NULL terminated. */
- pfile->comments.entries[pfile->comments.count].comment =
+ pfile->comments.entries[pfile->comments.count].comment =
(char *) xmalloc (sizeof (char) * (len + 1));
memcpy (pfile->comments.entries[pfile->comments.count].comment,
token->val.str.text, len);
@@ -3588,7 +3588,7 @@ cpp_maybe_module_directive (cpp_reader *pfile, cpp_token *result)
if (_cpp_defined_macro_p (node)
&& _cpp_maybe_notify_macro_use (pfile, node, tok->src_loc)
&& !cpp_fun_like_macro_p (node))
- cpp_error_with_line (pfile, CPP_DL_ERROR, tok->src_loc, 0,
+ cpp_error_with_line (pfile, CPP_DL_ERROR, tok->src_loc, 0,
"module control-line %qs cannot be"
" an object-like macro",
NODE_NAME (node));
@@ -3991,7 +3991,7 @@ _cpp_lex_direct (cpp_reader *pfile)
/* A potential block or line comment. */
comment_start = buffer->cur;
c = *buffer->cur;
-
+
if (c == '*')
{
if (_cpp_skip_block_comment (pfile))
@@ -4379,21 +4379,21 @@ utf8_to_ucn (unsigned char *buffer, const unsigned char *name)
int ucn_len_c;
unsigned t;
unsigned long utf32;
-
+
/* Compute the length of the UTF-8 sequence. */
for (t = *name; t & 0x80; t <<= 1)
ucn_len++;
-
+
utf32 = *name & (0x7F >> ucn_len);
for (ucn_len_c = 1; ucn_len_c < ucn_len; ucn_len_c++)
{
utf32 = (utf32 << 6) | (*++name & 0x3F);
-
+
/* Ill-formed UTF-8. */
if ((*name & ~0x3F) != 0x80)
abort ();
}
-
+
*buffer++ = '\\';
*buffer++ = 'U';
for (j = 7; j >= 0; j--)
@@ -4418,7 +4418,7 @@ _cpp_spell_ident_ucns (unsigned char *buffer, cpp_hashnode *ident)
{
size_t i;
const unsigned char *name = NODE_NAME (ident);
-
+
for (i = 0; i < NODE_LEN (ident); i++)
if (name[i] & ~0x7F)
{
@@ -4492,7 +4492,7 @@ cpp_spell_token (cpp_reader *pfile, const cpp_token *token,
freed when the reader is destroyed. Useful for diagnostics. */
unsigned char *
cpp_token_as_text (cpp_reader *pfile, const cpp_token *token)
-{
+{
unsigned int len = cpp_token_len (token) + 1;
unsigned char *start = _cpp_unaligned_alloc (pfile, len), *end;
@@ -5154,7 +5154,7 @@ do_peek_module (cpp_reader *pfile, unsigned char c,
preprocessing tokens, or module followed by identifier, ':' or
';' preprocessing tokens. */
unsigned char p = *peek++;
-
+
/* A character literal is ... single quotes, ... optionally preceded
by u8, u, U, or L */
/* A string-literal is a ... double quotes, optionally prefixed by
@@ -5310,7 +5310,7 @@ cpp_directive_only_process (cpp_reader *pfile,
goto next_line;
}
goto dflt;
-
+
case '#':
if (bol)
{
@@ -5648,7 +5648,7 @@ cpp_directive_only_process (cpp_reader *pfile,
bad_string:
cpp_error_with_line (pfile, CPP_DL_ERROR, sloc, 0,
"unterminated literal");
-
+
done_string:
raw = false;
lwm = pos - 1;
diff --git a/libcpp/line-map.cc b/libcpp/line-map.cc
index 05c4dafd89d..ac765c78bf5 100644
--- a/libcpp/line-map.cc
+++ b/libcpp/line-map.cc
@@ -468,7 +468,7 @@ line_map_new_raw (line_maps *set, bool macro_p, unsigned num)
{
unsigned num_maps_allocated = LINEMAPS_ALLOCATED (set, macro_p);
unsigned num_maps_used = LINEMAPS_USED (set, macro_p);
-
+
if (num > num_maps_allocated - num_maps_used)
{
/* We need more space! */
@@ -494,7 +494,7 @@ line_map_new_raw (line_maps *set, bool macro_p, unsigned num)
/* We are going to execute some dance to try to reduce the
overhead of the memory allocator, in case we are using the
ggc-page.cc one.
-
+
The actual size of memory we are going to get back from the
allocator may well be larger than what we ask for. Use this
hook to find what that size is. */
@@ -1080,7 +1080,7 @@ linemap_position_for_loc_and_offset (line_maps *set,
if (column >= (1u << (map->m_column_and_range_bits - map->m_range_bits)))
return loc;
- location_t r =
+ location_t r =
linemap_position_for_line_and_column (set, map, line, column);
if (linemap_assert_fails (r <= set->highest_location)
|| linemap_assert_fails (map == linemap_lookup (set, r)))
@@ -1277,7 +1277,7 @@ linemap_macro_map_loc_unwind_toward_spelling (const line_maps *set,
linemap_assert (token_no < MACRO_MAP_NUM_MACRO_TOKENS (map));
location = MACRO_MAP_LOCATIONS (map)[2 * token_no];
-
+
return location;
}
@@ -1580,7 +1580,7 @@ linemap_macro_loc_to_spelling_point (const line_maps *set,
macro. Otherwise, return LOCATION. SET is the set of maps
location come from. ORIGINAL_MAP is an output parm. If non NULL,
the function sets *ORIGINAL_MAP to the ordinary (non-macro) map the
- returned location comes from.
+ returned location comes from.
This is a subroutine of linemap_resolve_location. */
@@ -1768,14 +1768,14 @@ linemap_location_from_macro_definition_p (const line_maps *set,
}
}
-/*
+/*
Suppose that LOC is the virtual location of a token T coming from
the expansion of a macro M. This function then steps up to get the
location L of the point where M got expanded. If L is a spelling
location inside a macro expansion M', then this function returns
the locus of the point where M' was expanded. Said otherwise, this
function returns the location of T in the context that triggered
- the expansion of M.
+ the expansion of M.
*LOC_MAP must be set to the map of LOC. This function then sets it
to the map of the returned location. */
diff --git a/libcpp/macro.cc b/libcpp/macro.cc
index f0dfc795ee6..3ad1eb70541 100644
--- a/libcpp/macro.cc
+++ b/libcpp/macro.cc
@@ -586,9 +586,9 @@ _cpp_builtin_macro_text (cpp_reader *pfile, cpp_hashnode *node,
struct _cpp_file *file = cpp_get_file (pbuffer);
if (file)
{
- /* Generate __TIMESTAMP__ string, that represents
- the date and time of the last modification
- of the current source file. The string constant
+ /* Generate __TIMESTAMP__ string, that represents
+ the date and time of the last modification
+ of the current source file. The string constant
looks like "Sun Sep 16 01:03:52 1973". */
struct tm *tb = NULL;
struct stat *st = _cpp_get_file_stat (file);
@@ -699,7 +699,7 @@ _cpp_builtin_macro_text (cpp_reader *pfile, cpp_hashnode *node,
{
cpp_errno (pfile, CPP_DL_WARNING,
"could not determine date and time");
-
+
pfile->date = UC"\"??? ?? ????\"";
pfile->time = UC"\"??:??:??\"";
}
@@ -777,7 +777,7 @@ _cpp_builtin_macro_text (cpp_reader *pfile, cpp_hashnode *node,
sprintf ((char *) result, "%u", number);
}
- return result;
+ return result;
}
/* Get an idempotent date. Either the cached value, the value from
@@ -1477,7 +1477,7 @@ funlike_invocation_p (cpp_reader *pfile, cpp_hashnode *node,
pfile->state.parsing_args = 2;
return collect_args (pfile, node, pragma_buff, num_args);
}
-
+
/* Back up. A CPP_EOF is either an EOF from an argument we're
expanding, or a fake one from lex_direct. We want to backup the
former, but not the latter. We may have skipped padding, in
@@ -1784,7 +1784,7 @@ arg_token_ptr_at (const macro_arg *arg, size_t index,
case MACRO_ARG_TOKEN_NORMAL:
tokens_ptr = arg->first;
break;
- case MACRO_ARG_TOKEN_STRINGIFIED:
+ case MACRO_ARG_TOKEN_STRINGIFIED:
tokens_ptr = (const cpp_token **) &arg->stringified;
break;
case MACRO_ARG_TOKEN_EXPANDED:
@@ -1902,12 +1902,12 @@ macro_arg_token_iter_get_location (const macro_arg_token_iter *it)
want each tokens resulting from function-like macro arguments
expansion to have a different location or not.
- E.g, consider this function-like macro:
+ E.g, consider this function-like macro:
#define M(x) x - 3
Then consider us "calling" it (and thus expanding it) like:
-
+
M(1+4)
It will be expanded into:
@@ -2045,7 +2045,7 @@ replace_args (cpp_reader *pfile, cpp_hashnode *node, cpp_macro *macro,
location that records many things like the locus of the expansion
point as well as the original locus inside the definition of the
macro. This location is called a virtual location.
-
+
So the buffer BUFF holds a set of cpp_token*, and the buffer
VIRT_LOCS holds the virtual locations of the tokens held by BUFF.
@@ -2053,7 +2053,7 @@ replace_args (cpp_reader *pfile, cpp_hashnode *node, cpp_macro *macro,
context, when the latter is pushed. The memory allocated to
store the tokens and their locations is going to be freed once
the context of macro expansion is popped.
-
+
As far as tokens are concerned, the memory overhead of
-ftrack-macro-expansion is proportional to the number of
macros that get expanded multiplied by sizeof (location_t).
@@ -2400,7 +2400,7 @@ replace_args (cpp_reader *pfile, cpp_hashnode *node, cpp_macro *macro,
" in ISO C++98",
NODE_NAME (node), src->val.macro_arg.arg_no);
else if (CPP_OPTION (pfile, cpp_warn_c90_c99_compat))
- cpp_pedwarning (pfile,
+ cpp_pedwarning (pfile,
CPP_OPTION (pfile, cpp_warn_c90_c99_compat) > 0
? CPP_W_C90_C99_COMPAT : CPP_W_PEDANTIC,
"invoking macro %s argument %d: "
@@ -2693,7 +2693,7 @@ tokens_buff_add_token (_cpp_buff *buffer,
{
const cpp_token **result;
location_t *virt_loc_dest = NULL;
- unsigned token_index =
+ unsigned token_index =
(BUFF_FRONT (buffer) - buffer->base) / sizeof (cpp_token *);
/* Abort if we pass the end the buffer. */
@@ -2840,7 +2840,7 @@ in_macro_expansion_p (cpp_reader *pfile)
if (pfile == NULL)
return false;
- return (pfile->about_to_expand_macro_p
+ return (pfile->about_to_expand_macro_p
|| macro_of_context (pfile->context));
}
@@ -2944,7 +2944,7 @@ consume_next_token_from_context (cpp_reader *pfile,
*location = (*token)->src_loc;
FIRST (c).token++;
}
- else if ((c)->tokens_kind == TOKENS_KIND_INDIRECT)
+ else if ((c)->tokens_kind == TOKENS_KIND_INDIRECT)
{
*token = *FIRST (c).ptoken;
*location = (*token)->src_loc;
@@ -3205,7 +3205,7 @@ cpp_get_token_1 (cpp_reader *pfile, location_t *location)
_cpp_extend_buff (pfile, &pfile->u_buff, len + 1 + dotme * 2);
unsigned char *buf = BUFF_FRONT (pfile->u_buff);
size_t pos = 0;
-
+
if (dotme)
{
buf[pos++] = '.';
@@ -3221,7 +3221,7 @@ cpp_get_token_1 (cpp_reader *pfile, location_t *location)
tmp->type = CPP_HEADER_NAME;
XDELETEVEC (fname);
-
+
result = tmp;
}
}
@@ -3475,7 +3475,7 @@ _cpp_save_parameter (cpp_reader *pfile, unsigned n, cpp_hashnode *node,
= XRESIZEVEC (unsigned char, pfile->macro_buffer, len);
pfile->macro_buffer_len = len;
}
-
+
macro_arg_saved_data *saved = (macro_arg_saved_data *)pfile->macro_buffer;
saved[n].canonical_node = node;
saved[n].value = node->value;
diff --git a/libcpp/makeucnid.cc b/libcpp/makeucnid.cc
index 484f09c6cf3..4dada792e09 100644
--- a/libcpp/makeucnid.cc
+++ b/libcpp/makeucnid.cc
@@ -64,7 +64,7 @@ read_ucnid (const char *fname)
{
FILE *f = fopen (fname, "r");
unsigned fl = 0;
-
+
if (!f)
fail ("opening ucnid.tab");
for (;;)
@@ -130,7 +130,7 @@ static void
read_table (char *fname)
{
FILE * f = fopen (fname, "r");
-
+
if (!f)
fail ("opening UnicodeData.txt");
for (;;)
@@ -163,12 +163,12 @@ read_table (char *fname)
combining_value[codepoint] = strtoul (l, &l, 10);
if (*l++ != ';')
fail ("parsing UnicodeData.txt, junk after combining class");
-
+
/* Skip over bidi value. */
do {
l++;
} while (*l != ';');
-
+
/* Decomposition mapping. */
decomp_useful = flags[codepoint];
if (*++l == '<') /* Compatibility mapping. */
@@ -204,7 +204,7 @@ static void
read_derived (const char *fname)
{
FILE * f = fopen (fname, "r");
-
+
if (!f)
fail ("opening DerivedNormalizationProps.txt");
for (;;)
@@ -221,7 +221,7 @@ read_derived (const char *fname)
maybe_not_NFC_p = (strstr (line, "; NFC_QC; M") != NULL);
if (! not_NFC_p && ! not_NFKC_p && ! maybe_not_NFC_p)
continue;
-
+
start = strtoul (line, &l, 16);
if (l == line)
fail ("parsing DerivedNormalizationProps.txt, reading start");
@@ -233,7 +233,7 @@ read_derived (const char *fname)
end = start;
while (start <= end)
- flags[start++] |= ((not_NFC_p ? not_NFC : 0)
+ flags[start++] |= ((not_NFC_p ? not_NFC : 0)
| (not_NFKC_p ? not_NFKC : 0)
| (maybe_not_NFC_p ? maybe_not_NFC : 0)
);
@@ -250,7 +250,7 @@ static void
read_derivedcore (char *fname)
{
FILE * f = fopen (fname, "r");
-
+
if (!f)
fail ("opening DerivedCoreProperties.txt");
for (;;)
@@ -269,7 +269,7 @@ read_derivedcore (char *fname)
fail ("parsing DerivedCoreProperties.txt, reading code point");
if (codepoint_start > MAX_CODE_POINT)
fail ("parsing DerivedCoreProperties.txt, code point too large");
-
+
if (*l == '.' && l[1] == '.')
{
char *l2 = l + 2;
@@ -324,7 +324,7 @@ write_table (void)
unsigned char last_combine = combining_value[0];
printf ("static const struct ucnrange ucnranges[] = {\n");
-
+
for (i = 1; i <= NUM_CODE_POINTS; i++)
if (i == NUM_CODE_POINTS
|| (flags[i] != last_flag && ((flags[i] | last_flag) & all_languages))
@@ -502,7 +502,7 @@ write_copyright (void)
shall not be used in advertising or otherwise to promote the sale,\n\
use or other dealings in these Data Files or Software without prior\n\
written authorization of the copyright holder. */\n";
-
+
puts (copyright);
}
diff --git a/libcpp/mkdeps.cc b/libcpp/mkdeps.cc
index 622d0dc2ef8..a31890a386a 100644
--- a/libcpp/mkdeps.cc
+++ b/libcpp/mkdeps.cc
@@ -355,7 +355,7 @@ deps_add_module_target (struct mkdeps *d, const char *m,
const char *cmi, bool is_header_unit, bool is_exported)
{
gcc_assert (!d->module_name);
-
+
d->module_name = xstrdup (m);
d->is_header_unit = is_header_unit;
d->is_exported = is_exported;
diff --git a/libcpp/system.h b/libcpp/system.h
index ae6540a9572..d40a4372c84 100644
--- a/libcpp/system.h
+++ b/libcpp/system.h
@@ -51,9 +51,9 @@ along with GCC; see the file COPYING3. If not see
/* Some of these are #define on some systems, e.g. on AIX to redirect
the names to 64bit capable functions for LARGE_FILES support. These
redefs are pointless here so we can override them. */
-
-#undef fopen
-#undef freopen
+
+#undef fopen
+#undef freopen
#define fopen(PATH,MODE) fopen_unlocked(PATH,MODE)
#define fdopen(FILDES,MODE) fdopen_unlocked(FILDES,MODE)
diff --git a/libcpp/traditional.cc b/libcpp/traditional.cc
index ac01f9d0dc8..0a3a66da1f5 100644
--- a/libcpp/traditional.cc
+++ b/libcpp/traditional.cc
@@ -168,7 +168,7 @@ copy_comment (cpp_reader *pfile, const uchar *cur, int in_define)
unterminated = skip_macro_block_comment (pfile);
else
unterminated = _cpp_skip_block_comment (pfile);
-
+
if (unterminated)
cpp_error_with_line (pfile, CPP_DL_ERROR, src_loc, 0,
"unterminated comment");
@@ -919,7 +919,7 @@ _cpp_replacement_text_len (const cpp_macro *macro)
}
else
len = macro->count;
-
+
return len;
}
diff --git a/libgcc/config/aarch64/cpuinfo.c b/libgcc/config/aarch64/cpuinfo.c
index 36d0755099b..34e4497a0dd 100644
--- a/libgcc/config/aarch64/cpuinfo.c
+++ b/libgcc/config/aarch64/cpuinfo.c
@@ -16,7 +16,7 @@
Under Section 7 of GPL version 3, you are granted additional
permissions described in the GCC Runtime Library Exception, version
3.1, as published by the Free Software Foundation.
-
+
You should have received a copy of the GNU General Public License and
a copy of the GCC Runtime Library Exception along with this program;
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
diff --git a/libgcc/config/alpha/crtfastmath.c b/libgcc/config/alpha/crtfastmath.c
index 22e78a7baa7..26c3e79218a 100644
--- a/libgcc/config/alpha/crtfastmath.c
+++ b/libgcc/config/alpha/crtfastmath.c
@@ -6,12 +6,12 @@
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 3, or (at your option) any
* later version.
- *
+ *
* This file is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
- *
+ *
* Under Section 7 of GPL version 3, you are granted additional
* permissions described in the GCC Runtime Library Exception, version
* 3.1, as published by the Free Software Foundation.
diff --git a/libgcc/config/alpha/vms-gcc_shell_handler.c b/libgcc/config/alpha/vms-gcc_shell_handler.c
index f7ab8fcce6c..b44bc54fe64 100644
--- a/libgcc/config/alpha/vms-gcc_shell_handler.c
+++ b/libgcc/config/alpha/vms-gcc_shell_handler.c
@@ -59,7 +59,7 @@ get_dyn_handler_pointer (REG fp)
the handler_data field from there. This field contains the offset
from FP at which the address of the currently installed handler is
to be found. */
-
+
PDSCDEF * pd = PV_FOR (fp);
/* Procedure descriptor pointer for the live subprogram with FP as the frame
pointer, and to which _gcc_shell_handler is attached as a condition
@@ -79,11 +79,11 @@ get_dyn_handler_pointer (REG fp)
case PDSC$K_KIND_FP_STACK: /* [3.4.2 PD for stack frame procedures] */
handler_data_offset = 40;
break;
-
+
case PDSC$K_KIND_FP_REGISTER: /* [3.4.5 PD for reg frame procedures] */
handler_data_offset = 32;
break;
-
+
default:
handler_data_offset = 0;
break;
@@ -95,7 +95,7 @@ get_dyn_handler_pointer (REG fp)
/* Otherwise, fetch the fp offset at which the real handler address is to be
found, then fetch and return the latter in turn. */
-
+
handler_slot_offset = REG_AT ((REG)pd + handler_data_offset);
return (ADDR) REG_AT (fp + handler_slot_offset);
@@ -120,4 +120,4 @@ __gcc_shell_handler (struct chf$signal_array *sig_arr,
return ret;
}
-
+
diff --git a/libgcc/config/alpha/vms-unwind.h b/libgcc/config/alpha/vms-unwind.h
index fdd92a97247..5c57ae8e0f3 100644
--- a/libgcc/config/alpha/vms-unwind.h
+++ b/libgcc/config/alpha/vms-unwind.h
@@ -106,7 +106,7 @@ alpha_vms_fallback_frame_state (struct _Unwind_Context *context,
up if we're handed anything else. */
if (pkind != PDSC$K_KIND_FP_STACK && pkind != PDSC$K_KIND_FP_REGISTER)
return _URC_END_OF_STACK;
-
+
if (eh_debug)
printf ("FALLBACK: CTX FP = 0x%p, PV = 0x%p, EN = 0x%llx, RA = 0x%p\n",
ADDR_AT (context->reg[29]), pv, pv->pdsc$q_entry, context->ra);
@@ -149,7 +149,7 @@ alpha_vms_fallback_frame_state (struct _Unwind_Context *context,
status = LIB$GET_PREV_INVO_CONTEXT (&icb);
GIVEUP_ON_FAILURE (status);
- new_cfa = (ADDR) icb.libicb$q_ireg[30];
+ new_cfa = (ADDR) icb.libicb$q_ireg[30];
}
else
{
@@ -158,10 +158,10 @@ alpha_vms_fallback_frame_state (struct _Unwind_Context *context,
register value + frame size. Note that the frame base may differ
from CONTEXT->cfa, typically if the caller has performed dynamic
stack allocations. */
-
+
int base_reg = pv->pdsc$w_flags & PDSC$M_BASE_REG_IS_FP ? 29 : 30;
ADDR base_addr = ADDR_AT (context->reg[base_reg]);
-
+
new_cfa = base_addr + pv->pdsc$l_size;
}
@@ -201,7 +201,7 @@ alpha_vms_fallback_frame_state (struct _Unwind_Context *context,
for (i = 0, j = 0; i < 32; i++)
if ((1 << i) & pv->pdsc$l_ireg_mask)
UPDATE_FS_FOR_CFA_GR (fs, i, rsa_addr + 8 * ++j, new_cfa);
-
+
/* ??? floating point registers ? */
break;
@@ -214,10 +214,10 @@ alpha_vms_fallback_frame_state (struct _Unwind_Context *context,
fs->regs.how[RA_COLUMN] = REG_SAVED_REG;
fs->regs.reg[RA_COLUMN].loc.reg = pv->pdsc$b_save_ra;
-
+
fs->regs.how[29] = REG_SAVED_REG;
fs->regs.reg[29].loc.reg = pv->pdsc$b_save_fp;
-
+
break;
}
@@ -274,12 +274,12 @@ alpha_vms_fallback_frame_state (struct _Unwind_Context *context,
UPDATE_FS_FOR_CFA_GR (fs, 26, &mechargs->chf$q_mch_savr26, new_cfa);
UPDATE_FS_FOR_CFA_GR (fs, 27, &mechargs->chf$q_mch_savr27, new_cfa);
UPDATE_FS_FOR_CFA_GR (fs, 28, &mechargs->chf$q_mch_savr28, new_cfa);
-
+
/* Registers R2 to R7 are available from the rei frame pointer. */
-
+
for (i = 2; i <= 7; i ++)
UPDATE_FS_FOR_CFA_GR (fs, i, rei_frame_addr+(i - 2)*8, new_cfa);
-
+
/* ??? floating point registers ? */
}
diff --git a/libgcc/config/arc/ieee-754/divtab-arc-df.c b/libgcc/config/arc/ieee-754/divtab-arc-df.c
index 81909165be4..56d700bb7bc 100644
--- a/libgcc/config/arc/ieee-754/divtab-arc-df.c
+++ b/libgcc/config/arc/ieee-754/divtab-arc-df.c
@@ -29,7 +29,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
If this result can't be rounded to the exact result with confidence, we
round to the value between the two closest representable values, and
test if the correctly rounded value is above or below this value.
-
+
Because of the Newton-raphson iteration step, an error in the seed at X
is amplified by X. Therefore, we don't want a Tchebycheff polynom
or a polynom that is close to optimal according to the maximum norm
diff --git a/libgcc/config/arc/ieee-754/divtab-arc-sf.c b/libgcc/config/arc/ieee-754/divtab-arc-sf.c
index f0d6f09e162..3f606b1b80b 100644
--- a/libgcc/config/arc/ieee-754/divtab-arc-sf.c
+++ b/libgcc/config/arc/ieee-754/divtab-arc-sf.c
@@ -29,7 +29,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
If this result can't be rounded to the exact result with confidence, we
round to the value between the two closest representable values, and
test if the correctly rounded value is above or below this value.
-
+
Because of the Newton-raphson iteration step, an error in the seed at X
is amplified by X. Therefore, we don't want a Tchebycheff polynom
or a polynom that is close to optimal according to the maximum norm
diff --git a/libgcc/config/arc/initfini.c b/libgcc/config/arc/initfini.c
index 0183dd495ac..b1845b3e20c 100644
--- a/libgcc/config/arc/initfini.c
+++ b/libgcc/config/arc/initfini.c
@@ -50,7 +50,7 @@ static func_ptr __DTOR_LIST__[1] __attribute__ ((section (".dtors")))
= { (func_ptr) (-1) };
/* Run all the global destructors on exit from the program. */
-
+
/* Some systems place the number of pointers in the first word of the
table. On SVR4 however, that word is -1. In all cases, the table is
null-terminated. On SVR4, we start from the beginning of the list and
diff --git a/libgcc/config/arm/bpabi-lib.h b/libgcc/config/arm/bpabi-lib.h
index c9698ce2842..104024b108f 100644
--- a/libgcc/config/arm/bpabi-lib.h
+++ b/libgcc/config/arm/bpabi-lib.h
@@ -1,6 +1,6 @@
/* Configuration file for ARM BPABI targets, library renames.
Copyright (C) 2010-2024 Free Software Foundation, Inc.
- Contributed by CodeSourcery, LLC
+ Contributed by CodeSourcery, LLC
This file is part of GCC.
diff --git a/libgcc/config/arm/bpabi.c b/libgcc/config/arm/bpabi.c
index a97960ae65f..c3eee410aca 100644
--- a/libgcc/config/arm/bpabi.c
+++ b/libgcc/config/arm/bpabi.c
@@ -23,14 +23,14 @@
. */
extern long long __divdi3 (long long, long long);
-extern unsigned long long __udivdi3 (unsigned long long,
+extern unsigned long long __udivdi3 (unsigned long long,
unsigned long long);
extern long long __gnu_ldivmod_helper (long long, long long, long long *);
long long
-__gnu_ldivmod_helper (long long a,
- long long b,
+__gnu_ldivmod_helper (long long a,
+ long long b,
long long *remainder)
{
long long quotient;
diff --git a/libgcc/config/arm/linux-atomic.c b/libgcc/config/arm/linux-atomic.c
index 6d6683194af..2ad68ead502 100644
--- a/libgcc/config/arm/linux-atomic.c
+++ b/libgcc/config/arm/linux-atomic.c
@@ -201,7 +201,7 @@ int HIDDEN
__sync_val_compare_and_swap_4 (int *ptr, int oldval, int newval)
{
int actual_oldval, fail;
-
+
while (1)
{
actual_oldval = *ptr;
@@ -210,7 +210,7 @@ __sync_val_compare_and_swap_4 (int *ptr, int oldval, int newval)
return actual_oldval;
fail = __kernel_cmpxchg (actual_oldval, newval, ptr);
-
+
if (__builtin_expect (!fail, 1))
return oldval;
}
diff --git a/libgcc/config/arm/pr-support.c b/libgcc/config/arm/pr-support.c
index 9d5854951dc..40b84292eb6 100644
--- a/libgcc/config/arm/pr-support.c
+++ b/libgcc/config/arm/pr-support.c
@@ -1,7 +1,7 @@
/* ARM EABI compliant unwinding routines
Copyright (C) 2004-2024 Free Software Foundation, Inc.
Contributed by Paul Brook
-
+
This file is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3, or (at your option) any
@@ -167,7 +167,7 @@ __gnu_unwind_execute (_Unwind_Context * context, __gnu_unwind_state * uws)
_Unwind_VRS_Set (context, _UVRSC_CORE, R_SP, _UVRSD_UINT32, ®);
continue;
}
-
+
if ((op & 0xf0) == 0x80)
{
op = (op << 8) | next_unwind_byte (uws);
@@ -200,7 +200,7 @@ __gnu_unwind_execute (_Unwind_Context * context, __gnu_unwind_state * uws)
{
/* Pop r4-r[4+nnn], [lr]. */
_uw mask;
-
+
mask = (0xff0 >> (7 - (op & 7))) & 0xff0;
if (op & 8)
mask |= (1 << R_LR);
diff --git a/libgcc/config/arm/unwind-arm.c b/libgcc/config/arm/unwind-arm.c
index 345cdc0a71e..726c6c0d696 100644
--- a/libgcc/config/arm/unwind-arm.c
+++ b/libgcc/config/arm/unwind-arm.c
@@ -510,7 +510,7 @@ __gnu_unwind_get_pr_addr (int idx)
default:
return 0;
- }
+ }
}
/* ABI defined personality routine entry points. */
diff --git a/libgcc/config/avr/libf7/f7-renames.h b/libgcc/config/avr/libf7/f7-renames.h
index 22370a1e699..bbe571a7532 100644
--- a/libgcc/config/avr/libf7/f7-renames.h
+++ b/libgcc/config/avr/libf7/f7-renames.h
@@ -13,9 +13,9 @@
#define F7_(name) __f7_##name
#define F7P __f7_
-
+
/* Renames for libf7.c, libf7.h. */
-
+
#define f7_fabs __f7_fabs
#define f7_neg __f7_neg
#define f7_add __f7_add
@@ -173,9 +173,9 @@
#define f7_ne_impl __f7_ne_impl
#define f7_eq_impl __f7_eq_impl
#define f7_unord_impl __f7_unord_impl
-
+
/* Renames for libf7.c, libf7.h. */
-
+
#define f7_const_1 __f7_const_1
#define f7_const_1_P __f7_const_1_P
#define f7_const_2 __f7_const_2
@@ -198,9 +198,9 @@
#define f7_const_1_ln10_P __f7_const_1_ln10_P
#define f7_const_sqrt2 __f7_const_sqrt2
#define f7_const_sqrt2_P __f7_const_sqrt2_P
-
+
/* Renames for libf7-asm.sx, f7-wraps.h. */
-
+
#define f7_classify_asm __f7_classify_asm
#define f7_store_expo_asm __f7_store_expo_asm
#define f7_clr_asm __f7_clr_asm
diff --git a/libgcc/config/c6x/pr-support.c b/libgcc/config/c6x/pr-support.c
index a5eead6347b..c32aa33bcbe 100644
--- a/libgcc/config/c6x/pr-support.c
+++ b/libgcc/config/c6x/pr-support.c
@@ -1,6 +1,6 @@
/* C6X ABI compliant unwinding routines
Copyright (C) 2011-2024 Free Software Foundation, Inc.
-
+
This file is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3, or (at your option) any
@@ -142,7 +142,7 @@ unwind_restore_pair (_Unwind_Context * context, int reg, _uw *ptr)
}
static const int
-unwind_frame_regs[13] =
+unwind_frame_regs[13] =
{
R_A15, R_B15, R_B14, R_B13, R_B12, R_B11, R_B10, R_B3,
R_A14, R_A13, R_A12, R_A11, R_A10
@@ -456,7 +456,7 @@ __gnu_unwind_execute (_Unwind_Context * context, __gnu_unwind_state * uws)
_Unwind_VRS_Set (context, _UVRSC_CORE, R_B3, _UVRSD_UINT32, ®);
continue;
}
-
+
/* Reserved. */
return _URC_FAILURE;
}
@@ -513,7 +513,7 @@ _Unwind_Ptr
_Unwind_GetRegionStart (_Unwind_Context *context)
{
_Unwind_Control_Block *ucbp;
-
+
ucbp = (_Unwind_Control_Block *) _Unwind_GetGR (context, UNWIND_POINTER_REG);
return (_Unwind_Ptr) ucbp->pr_cache.fnstart;
}
@@ -523,7 +523,7 @@ _Unwind_GetLanguageSpecificData (_Unwind_Context *context)
{
_Unwind_Control_Block *ucbp;
_uw *ptr;
-
+
ucbp = (_Unwind_Control_Block *) _Unwind_GetGR (context, UNWIND_POINTER_REG);
ptr = (_uw *) ucbp->pr_cache.ehtp;
/* Skip the personality routine address. */
diff --git a/libgcc/config/darwin-crt-tm.c b/libgcc/config/darwin-crt-tm.c
index 7bf46740c2b..c393e60a9cd 100644
--- a/libgcc/config/darwin-crt-tm.c
+++ b/libgcc/config/darwin-crt-tm.c
@@ -47,25 +47,25 @@ extern void _ITM_deregisterTMCloneTable (void *) WEAK;
static inline void *getTMCloneTable (const void *f, size_t *tmct_siz)
{
char *tmct_fixed, *tmct = NULL;
- unsigned int i, img_count;
+ unsigned int i, img_count;
struct mach_header *mh;
Dl_info info;
-
+
if (! dladdr (f, &info) || info.dli_fbase == NULL)
abort ();
-
+
mh = (struct mach_header *) info.dli_fbase;
tmct_fixed = GET_DATA_TMCT (mh, tmct_siz);
*tmct_siz /= (sizeof (size_t) * 2);
/* No tm_clone_table or no clones. */
if (tmct_fixed == NULL || *tmct_siz == 0)
- return NULL;
+ return NULL;
img_count = _dyld_image_count();
for (i = 0; i < img_count && tmct == NULL; i++)
{
if (mh == _dyld_get_image_header(i))
- tmct = tmct_fixed + (unsigned long)_dyld_get_image_vmaddr_slide(i);
+ tmct = tmct_fixed + (unsigned long)_dyld_get_image_vmaddr_slide(i);
}
return tmct;
diff --git a/libgcc/config/darwin-crt3.c b/libgcc/config/darwin-crt3.c
index c0935a617be..51893ac990c 100644
--- a/libgcc/config/darwin-crt3.c
+++ b/libgcc/config/darwin-crt3.c
@@ -84,13 +84,13 @@ typedef void (*cxa_atexit_callback)(void *);
/* This structure holds a routine to call. There may be extra fields
at the end of the structure that this code doesn't know about. */
-struct one_atexit_routine
+struct one_atexit_routine
{
union {
atexit_callback ac;
cxa_atexit_callback cac;
} callback;
- /* has_arg is 0/2/4 if 'ac' is live, 1/3/5 if 'cac' is live.
+ /* has_arg is 0/2/4 if 'ac' is live, 1/3/5 if 'cac' is live.
Higher numbers indicate a later version of the structure that this
code doesn't understand and will ignore. */
int has_arg;
@@ -141,7 +141,7 @@ struct keymgr_atexit_list
fails to call routines registered while an atexit routine is
running. Return 1 if it works properly, and -1 if an error occurred. */
-struct atexit_data
+struct atexit_data
{
int result;
cxa_atexit_p cxa_atexit;
@@ -194,12 +194,12 @@ find_atexit_10_3 (void)
unsigned int (*dyld_image_count_fn)(void);
const char *(*dyld_get_image_name_fn)(unsigned int image_index);
const void *(*dyld_get_image_header_fn)(unsigned int image_index);
- const void *(*NSLookupSymbolInImage_fn)(const void *image,
+ const void *(*NSLookupSymbolInImage_fn)(const void *image,
const char *symbolName,
unsigned int options);
void *(*NSAddressOfSymbol_fn)(const void *symbol);
unsigned i, count;
-
+
/* Find some dyld functions. */
_dyld_func_lookup("__dyld_image_count", &dyld_image_count_fn);
_dyld_func_lookup("__dyld_get_image_name", &dyld_get_image_name_fn);
@@ -212,14 +212,14 @@ find_atexit_10_3 (void)
|| ! dyld_get_image_header_fn || ! NSLookupSymbolInImage_fn
|| ! NSAddressOfSymbol_fn)
return NULL;
-
+
count = dyld_image_count_fn ();
for (i = 0; i < count; i++)
{
const char * path = dyld_get_image_name_fn (i);
const void * image;
const void * symbol;
-
+
if (strcmp (path, "/usr/lib/libSystem.B.dylib") != 0)
continue;
image = dyld_get_image_header_fn (i);
@@ -235,14 +235,14 @@ find_atexit_10_3 (void)
}
#endif
-/* Create (if necessary), find, lock, fill in, and return our globals.
- Return NULL on error, in which case the globals will not be locked.
+/* Create (if necessary), find, lock, fill in, and return our globals.
+ Return NULL on error, in which case the globals will not be locked.
The caller should call keymgr_set_and_unlock. */
static struct keymgr_atexit_list *
get_globals (void)
{
struct keymgr_atexit_list * r;
-
+
#ifdef __ppc__
/* 10.3.9 doesn't have _keymgr_get_and_lock_processwide_ptr_2 so the
PPC side can't use it. On 10.4 this just means the error gets
@@ -256,7 +256,7 @@ get_globals (void)
return NULL;
r = rr;
#endif
-
+
if (r == NULL)
{
r = calloc (sizeof (struct keymgr_atexit_list), 1);
@@ -307,7 +307,7 @@ get_globals (void)
}
return r;
-
+
error:
_keymgr_set_and_unlock_processwide_ptr (KEYMGR_ATEXIT_LIST, r);
return NULL;
@@ -325,7 +325,7 @@ add_routine (struct keymgr_atexit_list * g,
struct atexit_routine_list * s
= malloc (sizeof (struct atexit_routine_list));
int result;
-
+
if (!s)
{
_keymgr_set_and_unlock_processwide_ptr (KEYMGR_ATEXIT_LIST, g);
@@ -382,7 +382,7 @@ cxa_atexit_wrapper (void* routine_param)
struct keymgr_atexit_list *g;
struct atexit_routine_list * base = NULL;
char prev_running = 0;
-
+
g = _keymgr_get_and_lock_processwide_ptr (KEYMGR_ATEXIT_LIST);
if (g)
{
@@ -425,7 +425,7 @@ our_atexit (void)
g = _keymgr_get_and_lock_processwide_ptr (KEYMGR_ATEXIT_LIST);
if (! g || g->version != 0 || g->atexit_status != atexit_status_missing)
return;
-
+
prev_running = g->running_routines;
g->running_routines = 1;
g = run_routines (g, NULL);
@@ -450,7 +450,7 @@ atexit_common (const struct one_atexit_routine *r, const void *dso)
if (! g)
return -1;
-
+
if (g->running_routines || g->atexit_status == atexit_status_missing)
return add_routine (g, r);
@@ -497,7 +497,7 @@ atexit_common (const struct one_atexit_routine *r, const void *dso)
/* These are the actual replacement routines; they just funnel into
atexit_common. */
-int __cxa_atexit (cxa_atexit_callback func, void* arg,
+int __cxa_atexit (cxa_atexit_callback func, void* arg,
const void* dso) __attribute__((visibility("hidden")));
int
diff --git a/libgcc/config/frv/cmovd.c b/libgcc/config/frv/cmovd.c
index 4615549f794..fc4c0ebe42d 100644
--- a/libgcc/config/frv/cmovd.c
+++ b/libgcc/config/frv/cmovd.c
@@ -1,19 +1,19 @@
/* Move double-word library function.
Copyright (C) 2000-2024 Free Software Foundation, Inc.
Contributed by Red Hat, Inc.
-
+
This file is part of GCC.
-
+
GCC is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
-
+
GCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
Under Section 7 of GPL version 3, you are granted additional
permissions described in the GCC Runtime Library Exception, version
3.1, as published by the Free Software Foundation.
diff --git a/libgcc/config/frv/cmovh.c b/libgcc/config/frv/cmovh.c
index 85396d96613..61e9a4fd828 100644
--- a/libgcc/config/frv/cmovh.c
+++ b/libgcc/config/frv/cmovh.c
@@ -1,19 +1,19 @@
/* Move half-word library function.
Copyright (C) 2000-2024 Free Software Foundation, Inc.
Contributed by Red Hat, Inc.
-
+
This file is part of GCC.
-
+
GCC is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
-
+
GCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
Under Section 7 of GPL version 3, you are granted additional
permissions described in the GCC Runtime Library Exception, version
3.1, as published by the Free Software Foundation.
diff --git a/libgcc/config/frv/cmovw.c b/libgcc/config/frv/cmovw.c
index 2b7ea9d96ab..6aaab9379bf 100644
--- a/libgcc/config/frv/cmovw.c
+++ b/libgcc/config/frv/cmovw.c
@@ -1,19 +1,19 @@
/* Move word library function.
Copyright (C) 2000-2024 Free Software Foundation, Inc.
Contributed by Red Hat, Inc.
-
+
This file is part of GCC.
-
+
GCC is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
-
+
GCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
Under Section 7 of GPL version 3, you are granted additional
permissions described in the GCC Runtime Library Exception, version
3.1, as published by the Free Software Foundation.
diff --git a/libgcc/config/frv/frvbegin.c b/libgcc/config/frv/frvbegin.c
index 3c60e21ba30..e1d6f06d5d5 100644
--- a/libgcc/config/frv/frvbegin.c
+++ b/libgcc/config/frv/frvbegin.c
@@ -1,19 +1,19 @@
/* Frv initialization file linked before all user modules
Copyright (C) 1999-2024 Free Software Foundation, Inc.
Contributed by Red Hat, Inc.
-
+
This file is part of GCC.
-
+
GCC is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
-
+
GCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
Under Section 7 of GPL version 3, you are granted additional
permissions described in the GCC Runtime Library Exception, version
3.1, as published by the Free Software Foundation.
diff --git a/libgcc/config/frv/frvend.c b/libgcc/config/frv/frvend.c
index 08d524f588b..bded4ea90db 100644
--- a/libgcc/config/frv/frvend.c
+++ b/libgcc/config/frv/frvend.c
@@ -1,19 +1,19 @@
/* Frv initialization file linked after all user modules
Copyright (C) 1999-2024 Free Software Foundation, Inc.
Contributed by Red Hat, Inc.
-
+
This file is part of GCC.
-
+
GCC is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
-
+
GCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
Under Section 7 of GPL version 3, you are granted additional
permissions described in the GCC Runtime Library Exception, version
3.1, as published by the Free Software Foundation.
diff --git a/libgcc/config/gcn/amdgcn_veclib.h b/libgcc/config/gcn/amdgcn_veclib.h
index d268c6cac16..3cec86b734d 100644
--- a/libgcc/config/gcn/amdgcn_veclib.h
+++ b/libgcc/config/gcn/amdgcn_veclib.h
@@ -3,7 +3,7 @@
Copyright (C) 2023-2024 Free Software Foundation, Inc.
Contributed by Siemens.
-
+
This file is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3, or (at your option) any
diff --git a/libgcc/config/gthr-vxworks.c b/libgcc/config/gthr-vxworks.c
index e12b5782be6..8ecbaf606c4 100644
--- a/libgcc/config/gthr-vxworks.c
+++ b/libgcc/config/gthr-vxworks.c
@@ -58,7 +58,7 @@ __gthread_once (__gthread_once_t * __guard, void (*__func) (void))
/* Busy-wait until we have exclusive access to the state. Check if
another thread managed to perform the init call in the interim. */
-
+
while (!__TAS(&__guard->busy))
{
if (__guard->done)
diff --git a/libgcc/config/i386/32/tf-signs.c b/libgcc/config/i386/32/tf-signs.c
index d9eb8a9d091..81981e181b1 100644
--- a/libgcc/config/i386/32/tf-signs.c
+++ b/libgcc/config/i386/32/tf-signs.c
@@ -24,7 +24,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
union _FP_UNION_Q
{
__float128 flt;
- struct
+ struct
{
unsigned long frac0 : 32;
unsigned long frac1 : 32;
diff --git a/libgcc/config/i386/crtfastmath.c b/libgcc/config/i386/crtfastmath.c
index 3a0d0bba111..387d939e98b 100644
--- a/libgcc/config/i386/crtfastmath.c
+++ b/libgcc/config/i386/crtfastmath.c
@@ -5,12 +5,12 @@
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 3, or (at your option) any
* later version.
- *
+ *
* This file is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
- *
+ *
* Under Section 7 of GPL version 3, you are granted additional
* permissions described in the GCC Runtime Library Exception, version
* 3.1, as published by the Free Software Foundation.
@@ -39,7 +39,7 @@ __attribute__ ((force_align_arg_pointer))
set_fast_math_sse (unsigned int edx)
{
unsigned int mxcsr;
-
+
if (edx & bit_FXSAVE)
{
/* Check if DAZ is available. */
diff --git a/libgcc/config/i386/crtprec.c b/libgcc/config/i386/crtprec.c
index 27a80e8b4ce..3c2f9601aed 100644
--- a/libgcc/config/i386/crtprec.c
+++ b/libgcc/config/i386/crtprec.c
@@ -5,12 +5,12 @@
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 3, or (at your option) any
* later version.
- *
+ *
* This file is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
- *
+ *
* Under Section 7 of GPL version 3, you are granted additional
* permissions described in the GCC Runtime Library Exception, version
* 3.1, as published by the Free Software Foundation.
diff --git a/libgcc/config/i386/cygming-crtend.c b/libgcc/config/i386/cygming-crtend.c
index 106806e4f60..dca77b47fcc 100644
--- a/libgcc/config/i386/cygming-crtend.c
+++ b/libgcc/config/i386/cygming-crtend.c
@@ -28,7 +28,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define IN_LIBGCC2
/* auto-host.h is needed by cygming.h for HAVE_GAS_WEAK and here
- for HAVE_LD_RO_RW_SECTION_MIXING. */
+ for HAVE_LD_RO_RW_SECTION_MIXING. */
#include "auto-host.h"
#include "tconfig.h"
#include "tsystem.h"
@@ -53,7 +53,7 @@ static EH_FRAME_SECTION_CONST int __FRAME_END__[]
= { 0 };
#endif
-extern void __gcc_register_frame (void);
+extern void __gcc_register_frame (void);
extern void __gcc_deregister_frame (void);
#pragma GCC diagnostic push
diff --git a/libgcc/config/i386/sfp-exceptions.c b/libgcc/config/i386/sfp-exceptions.c
index 4f4d3ffdb36..6ab168b2d1e 100644
--- a/libgcc/config/i386/sfp-exceptions.c
+++ b/libgcc/config/i386/sfp-exceptions.c
@@ -5,12 +5,12 @@
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 3, or (at your option) any
* later version.
- *
+ *
* This file is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
- *
+ *
* Under Section 7 of GPL version 3, you are granted additional
* permissions described in the GCC Runtime Library Exception, version
* 3.1, as published by the Free Software Foundation.
diff --git a/libgcc/config/i386/w32-unwind.h b/libgcc/config/i386/w32-unwind.h
index e67a1438d99..c97ae50e244 100644
--- a/libgcc/config/i386/w32-unwind.h
+++ b/libgcc/config/i386/w32-unwind.h
@@ -45,7 +45,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
some foreign code for which no unwind frame can be found. If this is
a call from the Windows signal handler, then:
- 2) We must get the signal context information.
+ 2) We must get the signal context information.
* With the standard exception filter:
@@ -120,7 +120,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define MD_FALLBACK_FRAME_STATE_FOR i386_w32_fallback_frame_state
static _Unwind_Reason_Code
-i386_w32_fallback_frame_state (struct _Unwind_Context *context,
+i386_w32_fallback_frame_state (struct _Unwind_Context *context,
_Unwind_FrameState *fs)
{
@@ -136,7 +136,7 @@ i386_w32_fallback_frame_state (struct _Unwind_Context *context,
PCONTEXT proc_ctx_;
long new_cfa_;
- if (SIG_SEH1)
+ if (SIG_SEH1)
proc_ctx_ = (PCONTEXT) (*(int*)(ctx_cfa_ + 56));
else if (SIG_SEH2)
proc_ctx_ = (PCONTEXT) (*(int*)(ctx_cfa_ + 8));
@@ -179,9 +179,9 @@ i386_w32_fallback_frame_state (struct _Unwind_Context *context,
one of it's probes prior to the real SP adjustment. The only
operations of interest performed is "pushl %ecx", followed by
ecx clobbering. */
- else if (SIG_ALLOCA)
+ else if (SIG_ALLOCA)
{
- /* Only one push between entry in _alloca and the probe trap. */
+ /* Only one push between entry in _alloca and the probe trap. */
long new_cfa_ = (long) ctx_cfa_ + 4;
fs->regs.cfa_how = CFA_REG_OFFSET;
diff --git a/libgcc/config/ia64/fde-vms.c b/libgcc/config/ia64/fde-vms.c
index 25e103c2b6b..79164945e0a 100644
--- a/libgcc/config/ia64/fde-vms.c
+++ b/libgcc/config/ia64/fde-vms.c
@@ -55,7 +55,7 @@ typedef unsigned long long uqword;
/* ENTRY is the unwind table entry found for a PC part of call chain we're
unwinding through. Return whether we should force the generic unwinder
to resort to "fallback" processing. */
-
+
static int
force_fallback_processing_for (void * pc, vms_unw_table_entry * entry)
{
@@ -100,7 +100,7 @@ force_fallback_processing_for (void * pc, vms_unw_table_entry * entry)
return 0;
/* The OSSD block is found past the header, unwind descriptor area
- and condition handler pointer, if any. */
+ and condition handler pointer, if any. */
ossd = (ossddef *)
/* Beware: uqword pointer arithmetic below. */
(unw_info_block
@@ -111,16 +111,16 @@ force_fallback_processing_for (void * pc, vms_unw_table_entry * entry)
/* "A General Information segment may be omitted if all of its fields
would have their default values. If a General Information segment
is present, it must be the first in the OSSD area." So ... */
-
+
if (eh_debug)
printf ("ossd @ 0x%p\n", ossd);
-
+
if (eh_debug && ossd->ossd$v_type == OSSD$K_GENERAL_INFO)
printf ("exc_frame = %d - bot_frame = %d - base_frame = %d\n",
- ossd->ossd$v_exception_frame,
+ ossd->ossd$v_exception_frame,
ossd->ossd$v_bottom_of_stack,
ossd->ossd$v_base_frame);
-
+
return
ossd->ossd$v_type == OSSD$K_GENERAL_INFO
&& (ossd->ossd$v_exception_frame
diff --git a/libgcc/config/ia64/quadlib.c b/libgcc/config/ia64/quadlib.c
index 57d235e84a2..f5930a00c8f 100644
--- a/libgcc/config/ia64/quadlib.c
+++ b/libgcc/config/ia64/quadlib.c
@@ -43,7 +43,7 @@ _U_Qfne (long double a, long double b)
{
return (_U_Qfcmp (a, b, 4) == 0);
}
-
+
int
_U_Qfgt (long double a, long double b)
{
diff --git a/libgcc/config/ia64/sfp-exceptions.c b/libgcc/config/ia64/sfp-exceptions.c
index 343c65d460c..38d1bbba3ae 100644
--- a/libgcc/config/ia64/sfp-exceptions.c
+++ b/libgcc/config/ia64/sfp-exceptions.c
@@ -5,12 +5,12 @@
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 3, or (at your option) any
* later version.
- *
+ *
* This file is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
- *
+ *
* Under Section 7 of GPL version 3, you are granted additional
* permissions described in the GCC Runtime Library Exception, version
* 3.1, as published by the Free Software Foundation.
diff --git a/libgcc/config/ia64/tf-signs.c b/libgcc/config/ia64/tf-signs.c
index 17429447d4a..0b8eb11b5aa 100644
--- a/libgcc/config/ia64/tf-signs.c
+++ b/libgcc/config/ia64/tf-signs.c
@@ -24,7 +24,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
union _FP_UNION_Q
{
__float128 flt;
- struct
+ struct
{
unsigned long frac0 : 64;
unsigned long frac1 : 48;
diff --git a/libgcc/config/ia64/unwind-ia64.c b/libgcc/config/ia64/unwind-ia64.c
index 9c9a107c245..934639e3944 100644
--- a/libgcc/config/ia64/unwind-ia64.c
+++ b/libgcc/config/ia64/unwind-ia64.c
@@ -102,7 +102,7 @@ enum unw_where
UNW_WHERE_BR, /* register is saved in a branch register */
UNW_WHERE_SPREL, /* register is saved on memstack (sp-relative) */
UNW_WHERE_PSPREL, /* register is saved on memstack (psp-relative) */
-
+
/* At the end of each prologue these locations get resolved to
UNW_WHERE_PSPREL and UNW_WHERE_GR, respectively. */
UNW_WHERE_SPILL_HOME, /* register is saved in its spill home */
@@ -154,7 +154,7 @@ typedef struct unw_state_record
struct unw_reg_state curr; /* current state */
_Unwind_Personality_Fn personality;
-
+
} _Unwind_FrameState;
enum unw_nat_type
@@ -558,7 +558,7 @@ finish_prologue (struct unw_state_record *sr)
{
off = sr->spill_offset;
alloc_spill_area (&off, 16, sr->curr.reg + UNW_REG_F2,
- sr->curr.reg + UNW_REG_F31);
+ sr->curr.reg + UNW_REG_F31);
alloc_spill_area (&off, 8, sr->curr.reg + UNW_REG_B1,
sr->curr.reg + UNW_REG_B5);
alloc_spill_area (&off, 8, sr->curr.reg + UNW_REG_R4,
@@ -581,7 +581,7 @@ desc_prologue (int body, unw_word rlen, unsigned char mask,
sr->first_region = 0;
/* Check if we're done. */
- if (sr->when_target < sr->region_start + sr->region_len)
+ if (sr->when_target < sr->region_start + sr->region_len)
{
sr->done = 1;
return;
@@ -858,7 +858,7 @@ desc_is_active (unsigned char qp, unw_word t, struct unw_state_record *sr)
return 0;
if (qp > 0)
{
- if ((sr->pr_val & (1UL << qp)) == 0)
+ if ((sr->pr_val & (1UL << qp)) == 0)
return 0;
sr->pr_mask |= (1UL << qp);
}
@@ -988,7 +988,7 @@ desc_spill_sprel_p (unsigned char qp, unw_word t, unsigned char abreg,
* macros/constants before including this file:
*
* Types:
- * unw_word Unsigned integer type with at least 64 bits
+ * unw_word Unsigned integer type with at least 64 bits
*
* Register names:
* UNW_REG_BSP
@@ -1821,7 +1821,7 @@ uw_frame_state_for (struct _Unwind_Context *context, _Unwind_FrameState *fs)
designate "condition handlers" with very different arguments than what we
would be providing. Such cases are typically identified from OS specific
bits in the unwind information block header, and checked by the target
- MD_UNW_COMPATIBLE_PERSONALITY_P macro.
+ MD_UNW_COMPATIBLE_PERSONALITY_P macro.
We just pretend there is no personality from our standpoint in such
situations, and expect GCC not to set the identifying bits itself so that
@@ -1884,7 +1884,7 @@ skip_unwind_info:
For other frames the procedure is by definition non-leaf so the pfs
is saved and restored and thus effectively dead in the body; only
the cfm need therefore be restored.
-
+
Here we have 2 cases:
- either the pfs is saved and restored and thus effectively dead
like in regular frames; then we do nothing special and restore
@@ -2112,7 +2112,7 @@ uw_advance_context (struct _Unwind_Context *context, _Unwind_FrameState *fs)
/* Fill in CONTEXT for top-of-stack. The only valid registers at this
level will be the return address and the CFA. Note that CFA = SP+16. */
-
+
#define uw_init_context(CONTEXT) \
do { \
/* ??? There is a whole lot o code in uw_install_context that \
@@ -2199,7 +2199,7 @@ uw_install_context (struct _Unwind_Context *current __attribute__((unused)),
}
}
- /* The value in uc_bsp that we've computed is that for the
+ /* The value in uc_bsp that we've computed is that for the
target function. The value that we install below will be
adjusted by the BR.RET instruction based on the contents
of AR.PFS. So we must unadjust that here. */
@@ -2418,7 +2418,7 @@ uw_install_context (struct _Unwind_Context *current __attribute__((unused)),
";; \n\t"
"mov.m ar.rsc = r29 \n\t"
";; \n\t"
- /* This must be done before setting AR.BSPSTORE, otherwise
+ /* This must be done before setting AR.BSPSTORE, otherwise
AR.BSP will be initialized with a random displacement
below the value we want, based on the current number of
dirty stacked registers. */
diff --git a/libgcc/config/ia64/unwind-ia64.h b/libgcc/config/ia64/unwind-ia64.h
index 82c12378158..3cc472cf389 100644
--- a/libgcc/config/ia64/unwind-ia64.h
+++ b/libgcc/config/ia64/unwind-ia64.h
@@ -41,7 +41,7 @@ struct unw_table_entry
/* Accessors to fields of an unwind info block header. In this common file to
be visible from all the units involved in a target implementation. */
-
+
#ifndef __USING_SJLJ_EXCEPTIONS__
#define UNW_VER(x) ((x) >> 48)
#define UNW_FLAG_MASK 0x0000ffff00000000
diff --git a/libgcc/config/ia64/vms-unwind.h b/libgcc/config/ia64/vms-unwind.h
index 797a1cccb52..5eca7c91f65 100644
--- a/libgcc/config/ia64/vms-unwind.h
+++ b/libgcc/config/ia64/vms-unwind.h
@@ -72,7 +72,7 @@ ia64_vms_fallback_frame_state (struct _Unwind_Context *context,
INVO_CONTEXT_BLK local_icb;
INVO_CONTEXT_BLK *icb = &local_icb;
-
+
CHFCTX * chfctx;
CHF$MECH_ARRAY * chfmech;
CHF64$SIGNAL_ARRAY *chfsig64;
@@ -90,7 +90,7 @@ ia64_vms_fallback_frame_state (struct _Unwind_Context *context,
const uint try_bs_copy_mask = (1 << 16);
eh_debug = EH_DEBUG ? atoi (EH_DEBUG) : 0;
-
+
/* Fetch and clear the try_bs_copy bit. */
try_bs_copy = (uint)eh_debug & try_bs_copy_mask;
eh_debug &= ~try_bs_copy_mask;
@@ -124,9 +124,9 @@ ia64_vms_fallback_frame_state (struct _Unwind_Context *context,
/* Beware: we might be unwinding through nested condition handlers, so the
dispatcher frame we seek might not be the first one on the way up. Loop
- thus. */
+ thus. */
do {
-
+
/* Seek the next dispatcher frame up the "current" point. Stop if we
either get past the target context or hit the bottom-of-stack along
the way. */
@@ -134,7 +134,7 @@ ia64_vms_fallback_frame_state (struct _Unwind_Context *context,
FAIL_IF (status == 0);
FAIL_IF ((uw_reg)icb->libicb$ih_sp > (uw_reg)context->psp
|| DENOTES_BOTTOM_OF_STACK (icb));
-
+
if (eh_debug)
printf ("frame%s sp @ 0x%llx, pc @ 0x%llx bsp=0x%llx\n",
DENOTES_VMS_DISPATCHER_FRAME (icb) ? " (dispatcher)" : "",
@@ -162,13 +162,13 @@ ia64_vms_fallback_frame_state (struct _Unwind_Context *context,
chfctx = icb->libicb$ph_chfctx_addr;
FAIL_IF (chfctx == 0);
-
+
chfmech = (CHF$MECH_ARRAY *)chfctx->chfctx$q_mcharglst;
FAIL_IF (chfmech == 0);
chfsig64 = (CHF64$SIGNAL_ARRAY *)chfmech->chf$ph_mch_sig64_addr;
FAIL_IF (chfsig64 == 0);
-
+
intstk = (INTSTK *)chfmech->chf$q_mch_esf_addr;
FAIL_IF (intstk == 0 || intstk->intstk$b_subtype == DYN$C_SSENTRY);
@@ -222,7 +222,7 @@ ia64_vms_fallback_frame_state (struct _Unwind_Context *context,
context->unat_loc = (uw_loc)&intstk->intstk$q_unat;
/* Branch register locations. */
-
+
{
uw_reg * ctxregs = (uw_reg *)&intstk->intstk$q_b0;
@@ -241,7 +241,7 @@ ia64_vms_fallback_frame_state (struct _Unwind_Context *context,
uw_reg q_bspstore = (uw_reg) intstk->intstk$q_bspstore;
uw_reg q_bspbase = (uw_reg) intstk->intstk$q_bspbase;
uw_reg ih_bspbase = (uw_reg) icb->libicb$ih_bspbase;
-
+
if (eh_debug)
printf ("q_bspstore = 0x%lx, q_bsp = 0x%lx, q_bspbase = 0x%lx\n"
"ih_bspbase = 0x%lx\n",
@@ -263,7 +263,7 @@ ia64_vms_fallback_frame_state (struct _Unwind_Context *context,
/* Not clear if these are the proper arguments here. This is what
looked the closest to what is performed in the Linux case. */
}
-
+
}
context->bsp = (uw_reg)intstk->intstk$q_bsp;
@@ -274,7 +274,7 @@ ia64_vms_fallback_frame_state (struct _Unwind_Context *context,
/* We're directly setting up the "context" for a VMS exception handler.
The "previous SP" for it is the SP upon the handler's entry, that is
- the SP at the condition/interruption/exception point. */
+ the SP at the condition/interruption/exception point. */
context->psp = (uw_reg)icb->libicb$ih_sp;
/* Previous Frame State location. What eventually ends up in pfs_loc is
@@ -305,4 +305,4 @@ ia64_vms_fallback_frame_state (struct _Unwind_Context *context,
return _URC_NO_REASON;
}
-
+
diff --git a/libgcc/config/libbid/_addsub_td.c b/libgcc/config/libbid/_addsub_td.c
index 5b8632dd713..239267dd353 100644
--- a/libgcc/config/libbid/_addsub_td.c
+++ b/libgcc/config/libbid/_addsub_td.c
@@ -23,7 +23,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "bid_conf.h"
#include "bid_functions.h"
-#include "bid_gcc_intrinsics.h"
+#include "bid_gcc_intrinsics.h"
_Decimal128
__bid_addtd3 (_Decimal128 x, _Decimal128 y) {
diff --git a/libgcc/config/libbid/_dd_to_sd.c b/libgcc/config/libbid/_dd_to_sd.c
index a46be79d74b..b1b4fbfb554 100644
--- a/libgcc/config/libbid/_dd_to_sd.c
+++ b/libgcc/config/libbid/_dd_to_sd.c
@@ -24,7 +24,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "bid_conf.h"
#include "bid_functions.h"
#include "bid_gcc_intrinsics.h"
-
+
_Decimal32
__bid_truncddsd2 (_Decimal64 x) {
union decimal32 res;
diff --git a/libgcc/config/libbid/_dd_to_td.c b/libgcc/config/libbid/_dd_to_td.c
index b850a341966..7c318164303 100644
--- a/libgcc/config/libbid/_dd_to_td.c
+++ b/libgcc/config/libbid/_dd_to_td.c
@@ -24,7 +24,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "bid_conf.h"
#include "bid_functions.h"
#include "bid_gcc_intrinsics.h"
-
+
_Decimal128
__bid_extendddtd2 (_Decimal64 x) {
union decimal128 res;
diff --git a/libgcc/config/libbid/_eq_dd.c b/libgcc/config/libbid/_eq_dd.c
index 11cb013d54d..5b806d97ac1 100644
--- a/libgcc/config/libbid/_eq_dd.c
+++ b/libgcc/config/libbid/_eq_dd.c
@@ -29,7 +29,7 @@ CMPtype
__bid_eqdd2 (_Decimal64 x, _Decimal64 y) {
CMPtype res;
union decimal64 ux, uy;
-
+
ux.d = x;
uy.d = y;
res = __bid64_quiet_equal (ux.i, uy.i);
diff --git a/libgcc/config/libbid/_eq_td.c b/libgcc/config/libbid/_eq_td.c
index 8dcbce32c58..43392f5dbd5 100644
--- a/libgcc/config/libbid/_eq_td.c
+++ b/libgcc/config/libbid/_eq_td.c
@@ -29,7 +29,7 @@ CMPtype
__bid_eqtd2 (_Decimal128 x, _Decimal128 y) {
CMPtype res;
union decimal128 ux, uy;
-
+
ux.d = x;
uy.d = y;
res = __bid128_quiet_equal (ux.i, uy.i);
diff --git a/libgcc/config/libbid/_ge_dd.c b/libgcc/config/libbid/_ge_dd.c
index df34a4403a5..51fecdad530 100644
--- a/libgcc/config/libbid/_ge_dd.c
+++ b/libgcc/config/libbid/_ge_dd.c
@@ -29,7 +29,7 @@ CMPtype
__bid_gedd2 (_Decimal64 x, _Decimal64 y) {
CMPtype res;
union decimal64 ux, uy;
-
+
ux.d = x;
uy.d = y;
res = __bid64_quiet_greater_equal (ux.i, uy.i);
diff --git a/libgcc/config/libbid/_ge_sd.c b/libgcc/config/libbid/_ge_sd.c
index 9b3e398b3c7..c6113b2f1c9 100644
--- a/libgcc/config/libbid/_ge_sd.c
+++ b/libgcc/config/libbid/_ge_sd.c
@@ -30,7 +30,7 @@ __bid_gesd2 (_Decimal32 x, _Decimal32 y) {
CMPtype res;
UINT64 x64, y64;
union decimal32 ux, uy;
-
+
ux.d = x;
uy.d = y;
x64 = __bid32_to_bid64 (ux.i);
diff --git a/libgcc/config/libbid/_ge_td.c b/libgcc/config/libbid/_ge_td.c
index f44e155ff37..a5ddde56338 100644
--- a/libgcc/config/libbid/_ge_td.c
+++ b/libgcc/config/libbid/_ge_td.c
@@ -29,7 +29,7 @@ CMPtype
__bid_getd2 (_Decimal128 x, _Decimal128 y) {
CMPtype res;
union decimal128 ux, uy;
-
+
ux.d = x;
uy.d = y;
res = __bid128_quiet_greater_equal (ux.i, uy.i);
diff --git a/libgcc/config/libbid/_gt_dd.c b/libgcc/config/libbid/_gt_dd.c
index 6986b5fa978..dd7786da846 100644
--- a/libgcc/config/libbid/_gt_dd.c
+++ b/libgcc/config/libbid/_gt_dd.c
@@ -29,7 +29,7 @@ CMPtype
__bid_gtdd2 (_Decimal64 x, _Decimal64 y) {
CMPtype res;
union decimal64 ux, uy;
-
+
ux.d = x;
uy.d = y;
res = __bid64_quiet_greater (ux.i, uy.i);
diff --git a/libgcc/config/libbid/_gt_sd.c b/libgcc/config/libbid/_gt_sd.c
index dfad7f93131..02c758c3d59 100644
--- a/libgcc/config/libbid/_gt_sd.c
+++ b/libgcc/config/libbid/_gt_sd.c
@@ -30,7 +30,7 @@ __bid_gtsd2 (_Decimal32 x, _Decimal32 y) {
CMPtype res;
UINT64 x64, y64;
union decimal32 ux, uy;
-
+
ux.d = x;
uy.d = y;
x64 = __bid32_to_bid64 (ux.i);
diff --git a/libgcc/config/libbid/_gt_td.c b/libgcc/config/libbid/_gt_td.c
index 9e14c9db1e8..1dd391b4319 100644
--- a/libgcc/config/libbid/_gt_td.c
+++ b/libgcc/config/libbid/_gt_td.c
@@ -29,7 +29,7 @@ CMPtype
__bid_gttd2 (_Decimal128 x, _Decimal128 y) {
CMPtype res;
union decimal128 ux, uy;
-
+
ux.d = x;
uy.d = y;
res = __bid128_quiet_greater (ux.i, uy.i);
diff --git a/libgcc/config/libbid/_le_dd.c b/libgcc/config/libbid/_le_dd.c
index 25173c8ebfd..b60d28b9a93 100644
--- a/libgcc/config/libbid/_le_dd.c
+++ b/libgcc/config/libbid/_le_dd.c
@@ -29,7 +29,7 @@ CMPtype
__bid_ledd2 (_Decimal64 x, _Decimal64 y) {
CMPtype res;
union decimal64 ux, uy;
-
+
ux.d = x;
uy.d = y;
res = __bid64_quiet_less_equal (ux.i, uy.i);
diff --git a/libgcc/config/libbid/_le_sd.c b/libgcc/config/libbid/_le_sd.c
index b790ab253e8..b0c2bd72873 100644
--- a/libgcc/config/libbid/_le_sd.c
+++ b/libgcc/config/libbid/_le_sd.c
@@ -30,7 +30,7 @@ __bid_lesd2 (_Decimal32 x, _Decimal32 y) {
CMPtype res;
UINT64 x64, y64;
union decimal32 ux, uy;
-
+
ux.d = x;
uy.d = y;
x64 = __bid32_to_bid64 (ux.i);
diff --git a/libgcc/config/libbid/_le_td.c b/libgcc/config/libbid/_le_td.c
index 911460d8709..a2ce4e7613b 100644
--- a/libgcc/config/libbid/_le_td.c
+++ b/libgcc/config/libbid/_le_td.c
@@ -29,7 +29,7 @@ CMPtype
__bid_letd2 (_Decimal128 x, _Decimal128 y) {
CMPtype res;
union decimal128 ux, uy;
-
+
ux.d = x;
uy.d = y;
res = __bid128_quiet_less_equal (ux.i, uy.i);
diff --git a/libgcc/config/libbid/_lt_dd.c b/libgcc/config/libbid/_lt_dd.c
index fb1e0f515b1..176c08dec10 100644
--- a/libgcc/config/libbid/_lt_dd.c
+++ b/libgcc/config/libbid/_lt_dd.c
@@ -29,7 +29,7 @@ CMPtype
__bid_ltdd2 (_Decimal64 x, _Decimal64 y) {
CMPtype res;
union decimal64 ux, uy;
-
+
ux.d = x;
uy.d = y;
res = -__bid64_quiet_less (ux.i, uy.i);
diff --git a/libgcc/config/libbid/_lt_sd.c b/libgcc/config/libbid/_lt_sd.c
index 443c729ba54..25a6edd7f14 100644
--- a/libgcc/config/libbid/_lt_sd.c
+++ b/libgcc/config/libbid/_lt_sd.c
@@ -30,7 +30,7 @@ __bid_ltsd2 (_Decimal32 x, _Decimal32 y) {
CMPtype res;
UINT64 x64, y64;
union decimal32 ux, uy;
-
+
ux.d = x;
uy.d = y;
x64 = __bid32_to_bid64 (ux.i);
diff --git a/libgcc/config/libbid/_lt_td.c b/libgcc/config/libbid/_lt_td.c
index 60280ad2ae7..d58e3edf614 100644
--- a/libgcc/config/libbid/_lt_td.c
+++ b/libgcc/config/libbid/_lt_td.c
@@ -29,7 +29,7 @@ CMPtype
__bid_lttd2 (_Decimal128 x, _Decimal128 y) {
CMPtype res;
union decimal128 ux, uy;
-
+
ux.d = x;
uy.d = y;
res = -__bid128_quiet_less (ux.i, uy.i);
diff --git a/libgcc/config/libbid/_mul_dd.c b/libgcc/config/libbid/_mul_dd.c
index 07fe21389f2..e5e161b511a 100644
--- a/libgcc/config/libbid/_mul_dd.c
+++ b/libgcc/config/libbid/_mul_dd.c
@@ -28,7 +28,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
_Decimal64
__bid_muldd3 (_Decimal64 x, _Decimal64 y) {
union decimal64 ux, uy, res;
-
+
ux.d = x;
uy.d = y;
res.i = __bid64_mul (ux.i, uy.i);
diff --git a/libgcc/config/libbid/_mul_sd.c b/libgcc/config/libbid/_mul_sd.c
index 960f8f4e45d..af8bf6cafb7 100644
--- a/libgcc/config/libbid/_mul_sd.c
+++ b/libgcc/config/libbid/_mul_sd.c
@@ -29,7 +29,7 @@ _Decimal32
__bid_mulsd3 (_Decimal32 x, _Decimal32 y) {
UINT64 x64, y64, res64;
union decimal32 ux, uy, res;
-
+
ux.d = x;
uy.d = y;
x64 = __bid32_to_bid64 (ux.i);
diff --git a/libgcc/config/libbid/_ne_dd.c b/libgcc/config/libbid/_ne_dd.c
index d1341de0c74..5fd46142d8f 100644
--- a/libgcc/config/libbid/_ne_dd.c
+++ b/libgcc/config/libbid/_ne_dd.c
@@ -29,7 +29,7 @@ CMPtype
__bid_nedd2 (_Decimal64 x, _Decimal64 y) {
CMPtype res;
union decimal64 ux, uy;
-
+
ux.d = x;
uy.d = y;
res = __bid64_quiet_not_equal (ux.i, uy.i);
diff --git a/libgcc/config/libbid/_ne_sd.c b/libgcc/config/libbid/_ne_sd.c
index 488a35a8a31..b5554a43c3d 100644
--- a/libgcc/config/libbid/_ne_sd.c
+++ b/libgcc/config/libbid/_ne_sd.c
@@ -30,7 +30,7 @@ __bid_nesd2 (_Decimal32 x, _Decimal32 y) {
CMPtype res;
UINT64 x64, y64;
union decimal32 ux, uy;
-
+
ux.d = x;
uy.d = y;
x64 = __bid32_to_bid64 (ux.i);
diff --git a/libgcc/config/libbid/_ne_td.c b/libgcc/config/libbid/_ne_td.c
index 173ffa2f7c5..dc656a2ad58 100644
--- a/libgcc/config/libbid/_ne_td.c
+++ b/libgcc/config/libbid/_ne_td.c
@@ -29,7 +29,7 @@ CMPtype
__bid_netd2 (_Decimal128 x, _Decimal128 y) {
CMPtype res;
union decimal128 ux, uy;
-
+
ux.d = x;
uy.d = y;
res = __bid128_quiet_not_equal (ux.i, uy.i);
diff --git a/libgcc/config/libbid/_sd_to_dd.c b/libgcc/config/libbid/_sd_to_dd.c
index d783f749532..4c3551e4323 100644
--- a/libgcc/config/libbid/_sd_to_dd.c
+++ b/libgcc/config/libbid/_sd_to_dd.c
@@ -24,7 +24,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "bid_conf.h"
#include "bid_functions.h"
#include "bid_gcc_intrinsics.h"
-
+
_Decimal64
__bid_extendsddd2 (_Decimal32 x) {
union decimal64 res;
diff --git a/libgcc/config/libbid/_sd_to_td.c b/libgcc/config/libbid/_sd_to_td.c
index 903b6665bcf..1728f581950 100644
--- a/libgcc/config/libbid/_sd_to_td.c
+++ b/libgcc/config/libbid/_sd_to_td.c
@@ -24,7 +24,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "bid_conf.h"
#include "bid_functions.h"
#include "bid_gcc_intrinsics.h"
-
+
_Decimal128
__bid_extendsdtd2 (_Decimal32 x) {
union decimal128 res;
diff --git a/libgcc/config/libbid/_td_to_dd.c b/libgcc/config/libbid/_td_to_dd.c
index 4297cbfa061..e9ea5a8de7f 100644
--- a/libgcc/config/libbid/_td_to_dd.c
+++ b/libgcc/config/libbid/_td_to_dd.c
@@ -24,7 +24,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "bid_conf.h"
#include "bid_functions.h"
#include "bid_gcc_intrinsics.h"
-
+
_Decimal64
__bid_trunctddd2 (_Decimal128 x) {
union decimal128 ux;
diff --git a/libgcc/config/libbid/_td_to_sd.c b/libgcc/config/libbid/_td_to_sd.c
index 3e14073dd98..ee7fdefa195 100644
--- a/libgcc/config/libbid/_td_to_sd.c
+++ b/libgcc/config/libbid/_td_to_sd.c
@@ -24,7 +24,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "bid_conf.h"
#include "bid_functions.h"
#include "bid_gcc_intrinsics.h"
-
+
_Decimal32
__bid_trunctdsd2 (_Decimal128 x) {
union decimal128 ux;
diff --git a/libgcc/config/libbid/_unord_dd.c b/libgcc/config/libbid/_unord_dd.c
index 1ca3a4b8243..7e864b89129 100644
--- a/libgcc/config/libbid/_unord_dd.c
+++ b/libgcc/config/libbid/_unord_dd.c
@@ -29,7 +29,7 @@ CMPtype
__bid_unorddd2 (_Decimal64 x, _Decimal64 y) {
CMPtype res;
union decimal64 ux, uy;
-
+
ux.d = x;
uy.d = y;
res = __bid64_quiet_unordered (ux.i, uy.i);
diff --git a/libgcc/config/libbid/_unord_sd.c b/libgcc/config/libbid/_unord_sd.c
index be245e763fd..ed675d0ce4d 100644
--- a/libgcc/config/libbid/_unord_sd.c
+++ b/libgcc/config/libbid/_unord_sd.c
@@ -30,7 +30,7 @@ __bid_unordsd2 (_Decimal32 x, _Decimal32 y) {
CMPtype res;
UINT64 x64, y64;
union decimal32 ux, uy;
-
+
ux.d = x;
uy.d = y;
x64 = __bid32_to_bid64 (ux.i);
diff --git a/libgcc/config/libbid/_unord_td.c b/libgcc/config/libbid/_unord_td.c
index f9a5e2f0893..a9c5b6f7d2c 100644
--- a/libgcc/config/libbid/_unord_td.c
+++ b/libgcc/config/libbid/_unord_td.c
@@ -29,7 +29,7 @@ CMPtype
__bid_unordtd2 (_Decimal128 x, _Decimal128 y) {
CMPtype res;
union decimal128 ux, uy;
-
+
ux.d = x;
uy.d = y;
res = __bid128_quiet_unordered (ux.i, uy.i);
diff --git a/libgcc/config/libbid/bid128.c b/libgcc/config/libbid/bid128.c
index 25da034a4e9..aede75b0bdd 100644
--- a/libgcc/config/libbid/bid128.c
+++ b/libgcc/config/libbid/bid128.c
@@ -23,7 +23,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "bid_internal.h"
-// the first entry of nr_digits[i - 1] (where 1 <= i <= 113), indicates
+// the first entry of nr_digits[i - 1] (where 1 <= i <= 113), indicates
// the number of decimal digits needed to represent a binary number with i bits;
// however, if a binary number of i bits may require either k or k + 1 decimal
// digits, then the first entry of nr_digits[i - 1] is 0; in this case if the
@@ -900,7 +900,7 @@ int shiftright128[] = {
};
-// maskhigh128[] contains the mask to apply to the top 128 bits of the
+// maskhigh128[] contains the mask to apply to the top 128 bits of the
// 128x128-bit product in order to obtain the high bits of f2*
// the 64-bit word order is L, H
UINT64 maskhigh128[] = {
@@ -941,7 +941,7 @@ UINT64 maskhigh128[] = {
};
-// onehalf128[] contains the high bits of 1/2 positioned correctly for
+// onehalf128[] contains the high bits of 1/2 positioned correctly for
// comparison with the high bits of f2*
// the 64-bit word order is L, H
UINT64 onehalf128[] = {
@@ -983,61 +983,61 @@ UINT64 onehalf128[] = {
UINT64 ten2mk64[] = {
0x199999999999999aULL, // 10^(-1) * 2^ 64
- 0x028f5c28f5c28f5dULL, // 10^(-2) * 2^ 64
- 0x004189374bc6a7f0ULL, // 10^(-3) * 2^ 64
- 0x00346dc5d638865aULL, // 10^(-4) * 2^ 67
- 0x0029f16b11c6d1e2ULL, // 10^(-5) * 2^ 70
- 0x00218def416bdb1bULL, // 10^(-6) * 2^ 73
- 0x0035afe535795e91ULL, // 10^(-7) * 2^ 77
- 0x002af31dc4611874ULL, // 10^(-8) * 2^ 80
- 0x00225c17d04dad2aULL, // 10^(-9) * 2^ 83
- 0x0036f9bfb3af7b76ULL, // 10^(-10) * 2^ 87
- 0x002bfaffc2f2c92bULL, // 10^(-11) * 2^ 90
- 0x00232f33025bd423ULL, // 10^(-12) * 2^ 93
- 0x00384b84d092ed04ULL, // 10^(-13) * 2^ 97
- 0x002d09370d425737ULL, // 10^(-14) * 2^100
- 0x0024075f3dceac2cULL, // 10^(-15) * 2^103
- 0x0039a5652fb11379ULL, // 10^(-16) * 2^107
+ 0x028f5c28f5c28f5dULL, // 10^(-2) * 2^ 64
+ 0x004189374bc6a7f0ULL, // 10^(-3) * 2^ 64
+ 0x00346dc5d638865aULL, // 10^(-4) * 2^ 67
+ 0x0029f16b11c6d1e2ULL, // 10^(-5) * 2^ 70
+ 0x00218def416bdb1bULL, // 10^(-6) * 2^ 73
+ 0x0035afe535795e91ULL, // 10^(-7) * 2^ 77
+ 0x002af31dc4611874ULL, // 10^(-8) * 2^ 80
+ 0x00225c17d04dad2aULL, // 10^(-9) * 2^ 83
+ 0x0036f9bfb3af7b76ULL, // 10^(-10) * 2^ 87
+ 0x002bfaffc2f2c92bULL, // 10^(-11) * 2^ 90
+ 0x00232f33025bd423ULL, // 10^(-12) * 2^ 93
+ 0x00384b84d092ed04ULL, // 10^(-13) * 2^ 97
+ 0x002d09370d425737ULL, // 10^(-14) * 2^100
+ 0x0024075f3dceac2cULL, // 10^(-15) * 2^103
+ 0x0039a5652fb11379ULL, // 10^(-16) * 2^107
};
-// ten2mk128trunc[] contains T*, the top Ex >= 128 bits of 10^(-k),
-// for 1 <= k <= 34
+// ten2mk128trunc[] contains T*, the top Ex >= 128 bits of 10^(-k),
+// for 1 <= k <= 34
// the 64-bit word order is L, H
UINT128 ten2mk128trunc[] = {
{{0x9999999999999999ULL, 0x1999999999999999ULL}}, // 10^(-1) * 2^128
- {{0x28f5c28f5c28f5c2ULL, 0x028f5c28f5c28f5cULL}}, // 10^(-2) * 2^128
- {{0x9db22d0e56041893ULL, 0x004189374bc6a7efULL}}, // 10^(-3) * 2^128
- {{0x4af4f0d844d013a9ULL, 0x00346dc5d6388659ULL}}, // 10^(-4) * 2^131
- {{0x08c3f3e0370cdc87ULL, 0x0029f16b11c6d1e1ULL}}, // 10^(-5) * 2^134
- {{0x6d698fe69270b06cULL, 0x00218def416bdb1aULL}}, // 10^(-6) * 2^137
- {{0xaf0f4ca41d811a46ULL, 0x0035afe535795e90ULL}}, // 10^(-7) * 2^141
- {{0xbf3f70834acdae9fULL, 0x002af31dc4611873ULL}}, // 10^(-8) * 2^144
- {{0x65cc5a02a23e254cULL, 0x00225c17d04dad29ULL}}, // 10^(-9) * 2^147
- {{0x6fad5cd10396a213ULL, 0x0036f9bfb3af7b75ULL}}, // 10^(-10) * 2^151
- {{0xbfbde3da69454e75ULL, 0x002bfaffc2f2c92aULL}}, // 10^(-11) * 2^154
- {{0x32fe4fe1edd10b91ULL, 0x00232f33025bd422ULL}}, // 10^(-12) * 2^157
- {{0x84ca19697c81ac1bULL, 0x00384b84d092ed03ULL}}, // 10^(-13) * 2^161
- {{0x03d4e1213067bce3ULL, 0x002d09370d425736ULL}}, // 10^(-14) * 2^164
- {{0x3643e74dc052fd82ULL, 0x0024075f3dceac2bULL}}, // 10^(-15) * 2^167
- {{0x56d30baf9a1e626aULL, 0x0039a5652fb11378ULL}}, // 10^(-16) * 2^171
- {{0x12426fbfae7eb521ULL, 0x002e1dea8c8da92dULL}}, // 10^(-17) * 2^174
- {{0x41cebfcc8b9890e7ULL, 0x0024e4bba3a48757ULL}}, // 10^(-18) * 2^177
- {{0x694acc7a78f41b0cULL, 0x003b07929f6da558ULL}}, // 10^(-19) * 2^181
- {{0xbaa23d2ec729af3dULL, 0x002f394219248446ULL}}, // 10^(-20) * 2^184
- {{0xfbb4fdbf05baf297ULL, 0x0025c768141d369eULL}}, // 10^(-21) * 2^187
- {{0x2c54c931a2c4b758ULL, 0x003c7240202ebdcbULL}}, // 10^(-22) * 2^191
- {{0x89dd6dc14f03c5e0ULL, 0x00305b66802564a2ULL}}, // 10^(-23) * 2^194
- {{0xd4b1249aa59c9e4dULL, 0x0026af8533511d4eULL}}, // 10^(-24) * 2^197
- {{0x544ea0f76f60fd48ULL, 0x003de5a1ebb4fbb1ULL}}, // 10^(-25) * 2^201
- {{0x76a54d92bf80caa0ULL, 0x00318481895d9627ULL}}, // 10^(-26) * 2^204
- {{0x921dd7a89933d54dULL, 0x00279d346de4781fULL}}, // 10^(-27) * 2^207
- {{0x8362f2a75b862214ULL, 0x003f61ed7ca0c032ULL}}, // 10^(-28) * 2^211
- {{0xcf825bb91604e810ULL, 0x0032b4bdfd4d668eULL}}, // 10^(-29) * 2^214
- {{0x0c684960de6a5340ULL, 0x00289097fdd7853fULL}}, // 10^(-30) * 2^217
- {{0x3d203ab3e521dc33ULL, 0x002073accb12d0ffULL}}, // 10^(-31) * 2^220
- {{0x2e99f7863b696052ULL, 0x0033ec47ab514e65ULL}}, // 10^(-32) * 2^224
- {{0x587b2c6b62bab375ULL, 0x002989d2ef743eb7ULL}}, // 10^(-33) * 2^227
- {{0xad2f56bc4efbc2c4ULL, 0x00213b0f25f69892ULL}}, // 10^(-34) * 2^230
+ {{0x28f5c28f5c28f5c2ULL, 0x028f5c28f5c28f5cULL}}, // 10^(-2) * 2^128
+ {{0x9db22d0e56041893ULL, 0x004189374bc6a7efULL}}, // 10^(-3) * 2^128
+ {{0x4af4f0d844d013a9ULL, 0x00346dc5d6388659ULL}}, // 10^(-4) * 2^131
+ {{0x08c3f3e0370cdc87ULL, 0x0029f16b11c6d1e1ULL}}, // 10^(-5) * 2^134
+ {{0x6d698fe69270b06cULL, 0x00218def416bdb1aULL}}, // 10^(-6) * 2^137
+ {{0xaf0f4ca41d811a46ULL, 0x0035afe535795e90ULL}}, // 10^(-7) * 2^141
+ {{0xbf3f70834acdae9fULL, 0x002af31dc4611873ULL}}, // 10^(-8) * 2^144
+ {{0x65cc5a02a23e254cULL, 0x00225c17d04dad29ULL}}, // 10^(-9) * 2^147
+ {{0x6fad5cd10396a213ULL, 0x0036f9bfb3af7b75ULL}}, // 10^(-10) * 2^151
+ {{0xbfbde3da69454e75ULL, 0x002bfaffc2f2c92aULL}}, // 10^(-11) * 2^154
+ {{0x32fe4fe1edd10b91ULL, 0x00232f33025bd422ULL}}, // 10^(-12) * 2^157
+ {{0x84ca19697c81ac1bULL, 0x00384b84d092ed03ULL}}, // 10^(-13) * 2^161
+ {{0x03d4e1213067bce3ULL, 0x002d09370d425736ULL}}, // 10^(-14) * 2^164
+ {{0x3643e74dc052fd82ULL, 0x0024075f3dceac2bULL}}, // 10^(-15) * 2^167
+ {{0x56d30baf9a1e626aULL, 0x0039a5652fb11378ULL}}, // 10^(-16) * 2^171
+ {{0x12426fbfae7eb521ULL, 0x002e1dea8c8da92dULL}}, // 10^(-17) * 2^174
+ {{0x41cebfcc8b9890e7ULL, 0x0024e4bba3a48757ULL}}, // 10^(-18) * 2^177
+ {{0x694acc7a78f41b0cULL, 0x003b07929f6da558ULL}}, // 10^(-19) * 2^181
+ {{0xbaa23d2ec729af3dULL, 0x002f394219248446ULL}}, // 10^(-20) * 2^184
+ {{0xfbb4fdbf05baf297ULL, 0x0025c768141d369eULL}}, // 10^(-21) * 2^187
+ {{0x2c54c931a2c4b758ULL, 0x003c7240202ebdcbULL}}, // 10^(-22) * 2^191
+ {{0x89dd6dc14f03c5e0ULL, 0x00305b66802564a2ULL}}, // 10^(-23) * 2^194
+ {{0xd4b1249aa59c9e4dULL, 0x0026af8533511d4eULL}}, // 10^(-24) * 2^197
+ {{0x544ea0f76f60fd48ULL, 0x003de5a1ebb4fbb1ULL}}, // 10^(-25) * 2^201
+ {{0x76a54d92bf80caa0ULL, 0x00318481895d9627ULL}}, // 10^(-26) * 2^204
+ {{0x921dd7a89933d54dULL, 0x00279d346de4781fULL}}, // 10^(-27) * 2^207
+ {{0x8362f2a75b862214ULL, 0x003f61ed7ca0c032ULL}}, // 10^(-28) * 2^211
+ {{0xcf825bb91604e810ULL, 0x0032b4bdfd4d668eULL}}, // 10^(-29) * 2^214
+ {{0x0c684960de6a5340ULL, 0x00289097fdd7853fULL}}, // 10^(-30) * 2^217
+ {{0x3d203ab3e521dc33ULL, 0x002073accb12d0ffULL}}, // 10^(-31) * 2^220
+ {{0x2e99f7863b696052ULL, 0x0033ec47ab514e65ULL}}, // 10^(-32) * 2^224
+ {{0x587b2c6b62bab375ULL, 0x002989d2ef743eb7ULL}}, // 10^(-33) * 2^227
+ {{0xad2f56bc4efbc2c4ULL, 0x00213b0f25f69892ULL}}, // 10^(-34) * 2^230
};
// ten2mk128M[k - 1] = 10^(-k) * 2^exp (k), where 1 <= k <= 4 and
@@ -1214,7 +1214,7 @@ UINT192 ten2mk192truncM[] = {
};
// shiftright192M[] contains the right shift count to obtain C2* from the top
-// 192 bits of the 192x192-bit product C2 * Kx if 0 <= ind <= 14 where ind is
+// 192 bits of the 192x192-bit product C2 * Kx if 0 <= ind <= 14 where ind is
// the index in the table, or from the top 128 bits if 15 <= ind <= 18
int shiftright192M[] = {
16, // 208 - 192
@@ -1345,7 +1345,7 @@ UINT256 ten2mk256truncM[] = { // the 64-bit word order is LL, LH, HL, HH
};
// shiftright256M[] contains the right shift count to obtain C2* from the top
-// 192 bits of the 256x256-bit product C2 * Kx
+// 192 bits of the 256x256-bit product C2 * Kx
int shiftright256M[] = {
15, // 335 - 320
19, // 339 - 320
@@ -1376,7 +1376,7 @@ UINT64 maskhigh256M[] = {
0x0000ffffffffffffULL // 48 = 368 - 320 bits
};
-// onehalf256M[] contains 1/2 positioned correctly for comparison with the
+// onehalf256M[] contains 1/2 positioned correctly for comparison with the
// high bits of f*; the high 128 bits of the 512-bit mask are 0
UINT64 onehalf256M[] = {
0x0000000000004000ULL, // 15 = 335 - 320 bits
@@ -3495,303 +3495,303 @@ UINT192 ten2mxtrunc192[] = {
UINT256 Kx256[] = {
{{0xcccccccccccccccdULL, 0xccccccccccccccccULL,
0xccccccccccccccccULL, 0xccccccccccccccccULL}},
- // 10^-1 ~= cccccccccccccccc cccccccccccccccc
+ // 10^-1 ~= cccccccccccccccc cccccccccccccccc
// cccccccccccccccccccccccccccccccd * 2^-259
{{0x70a3d70a3d70a3d8ULL, 0xd70a3d70a3d70a3dULL,
0x3d70a3d70a3d70a3ULL, 0xa3d70a3d70a3d70aULL}},
- // 10^-2 ~= a3d70a3d70a3d70a 3d70a3d70a3d70a3
+ // 10^-2 ~= a3d70a3d70a3d70a 3d70a3d70a3d70a3
// d70a3d70a3d70a3d70a3d70a3d70a3d8 * 2^-262
{{0xc083126e978d4fe0ULL, 0x78d4fdf3b645a1caULL,
0x645a1cac083126e9ULL, 0x83126e978d4fdf3bULL}},
- // 10^-3 ~= 83126e978d4fdf3b 645a1cac083126e9
+ // 10^-3 ~= 83126e978d4fdf3b 645a1cac083126e9
// 78d4fdf3b645a1cac083126e978d4fe0 * 2^-265
{{0x67381d7dbf487fccULL, 0xc154c985f06f6944ULL,
0xd3c36113404ea4a8ULL, 0xd1b71758e219652bULL}},
- // 10^-4 ~= d1b71758e219652b d3c36113404ea4a8
+ // 10^-4 ~= d1b71758e219652b d3c36113404ea4a8
// c154c985f06f694467381d7dbf487fcc * 2^-269
{{0x85c67dfe32a0663dULL, 0xcddd6e04c0592103ULL,
0x0fcf80dc33721d53ULL, 0xa7c5ac471b478423ULL}},
- // 10^-5 ~= a7c5ac471b478423 fcf80dc33721d53
+ // 10^-5 ~= a7c5ac471b478423 fcf80dc33721d53
// cddd6e04c059210385c67dfe32a0663d * 2^-272
{{0x37d1fe64f54d1e97ULL, 0xd7e45803cd141a69ULL,
0xa63f9a49c2c1b10fULL, 0x8637bd05af6c69b5ULL}},
- // 10^-6 ~= 8637bd05af6c69b5 a63f9a49c2c1b10f
+ // 10^-6 ~= 8637bd05af6c69b5 a63f9a49c2c1b10f
// d7e45803cd141a6937d1fe64f54d1e97 * 2^-275
{{0x8c8330a1887b6425ULL, 0x8ca08cd2e1b9c3dbULL,
0x3d32907604691b4cULL, 0xd6bf94d5e57a42bcULL}},
- // 10^-7 ~= d6bf94d5e57a42bc 3d32907604691b4c
+ // 10^-7 ~= d6bf94d5e57a42bc 3d32907604691b4c
// 8ca08cd2e1b9c3db8c8330a1887b6425 * 2^-279
{{0x7068f3b46d2f8351ULL, 0x3d4d3d758161697cULL,
0xfdc20d2b36ba7c3dULL, 0xabcc77118461cefcULL}},
- // 10^-8 ~= abcc77118461cefc fdc20d2b36ba7c3d
+ // 10^-8 ~= abcc77118461cefc fdc20d2b36ba7c3d
// 3d4d3d758161697c7068f3b46d2f8351 * 2^-282
{{0xf387295d242602a7ULL, 0xfdd7645e011abac9ULL,
0x31680a88f8953030ULL, 0x89705f4136b4a597ULL}},
- // 10^-9 ~= 89705f4136b4a597 31680a88f8953030
+ // 10^-9 ~= 89705f4136b4a597 31680a88f8953030
// fdd7645e011abac9f387295d242602a7 * 2^-285
{{0xb8d8422ea03cd10bULL, 0x2fbf06fcce912adcULL,
0xb573440e5a884d1bULL, 0xdbe6fecebdedd5beULL}},
- // 10^-10 ~= dbe6fecebdedd5be b573440e5a884d1b
+ // 10^-10 ~= dbe6fecebdedd5be b573440e5a884d1b
// 2fbf06fcce912adcb8d8422ea03cd10b * 2^-289
{{0x93e034f219ca40d6ULL, 0xf2ff38ca3eda88b0ULL,
0xf78f69a51539d748ULL, 0xafebff0bcb24aafeULL}},
- // 10^-11 ~= afebff0bcb24aafe f78f69a51539d748
+ // 10^-11 ~= afebff0bcb24aafe f78f69a51539d748
// f2ff38ca3eda88b093e034f219ca40d6 * 2^-292
{{0x4319c3f4e16e9a45ULL, 0xf598fa3b657ba08dULL,
0xf93f87b7442e45d3ULL, 0x8cbccc096f5088cbULL}},
- // 10^-12 ~= 8cbccc096f5088cb f93f87b7442e45d3
+ // 10^-12 ~= 8cbccc096f5088cb f93f87b7442e45d3
// f598fa3b657ba08d4319c3f4e16e9a45 * 2^-295
{{0x04f606549be42a07ULL, 0x88f4c3923bf900e2ULL,
0x2865a5f206b06fb9ULL, 0xe12e13424bb40e13ULL}},
- // 10^-13 ~= e12e13424bb40e13 2865a5f206b06fb9
+ // 10^-13 ~= e12e13424bb40e13 2865a5f206b06fb9
// 88f4c3923bf900e204f606549be42a07 * 2^-299
{{0x03f805107cb68806ULL, 0x6d909c74fcc733e8ULL,
0x538484c19ef38c94ULL, 0xb424dc35095cd80fULL}},
- // 10^-14 ~= b424dc35095cd80f 538484c19ef38c94
+ // 10^-14 ~= b424dc35095cd80f 538484c19ef38c94
// 6d909c74fcc733e803f805107cb68806 * 2^-302
{{0x3660040d3092066bULL, 0x57a6e390ca38f653ULL,
0x0f9d37014bf60a10ULL, 0x901d7cf73ab0acd9ULL}},
- // 10^-15 ~= 901d7cf73ab0acd9 f9d37014bf60a10
+ // 10^-15 ~= 901d7cf73ab0acd9 f9d37014bf60a10
// 57a6e390ca38f6533660040d3092066b * 2^-305
{{0x23ccd3484db670abULL, 0xbf716c1add27f085ULL,
0x4c2ebe687989a9b3ULL, 0xe69594bec44de15bULL}},
- // 10^-16 ~= e69594bec44de15b 4c2ebe687989a9b3
+ // 10^-16 ~= e69594bec44de15b 4c2ebe687989a9b3
// bf716c1add27f08523ccd3484db670ab * 2^-309
{{0x4fd70f6d0af85a23ULL, 0xff8df0157db98d37ULL,
0x09befeb9fad487c2ULL, 0xb877aa3236a4b449ULL}},
- // 10^-17 ~= b877aa3236a4b449 9befeb9fad487c2
+ // 10^-17 ~= b877aa3236a4b449 9befeb9fad487c2
// ff8df0157db98d374fd70f6d0af85a23 * 2^-312
{{0x0cac0c573bf9e1b6ULL, 0x32d7f344649470f9ULL,
0x3aff322e62439fcfULL, 0x9392ee8e921d5d07ULL}},
- // 10^-18 ~= 9392ee8e921d5d07 3aff322e62439fcf
+ // 10^-18 ~= 9392ee8e921d5d07 3aff322e62439fcf
// 32d7f344649470f90cac0c573bf9e1b6 * 2^-315
{{0xe11346f1f98fcf89ULL, 0x1e2652070753e7f4ULL,
0x2b31e9e3d06c32e5ULL, 0xec1e4a7db69561a5ULL}},
- // 10^-19 ~= ec1e4a7db69561a5 2b31e9e3d06c32e5
+ // 10^-19 ~= ec1e4a7db69561a5 2b31e9e3d06c32e5
// 1e2652070753e7f4e11346f1f98fcf89 * 2^-319
{{0x4da9058e613fd93aULL, 0x181ea8059f76532aULL,
0x88f4bb1ca6bcf584ULL, 0xbce5086492111aeaULL}},
- // 10^-20 ~= bce5086492111aea 88f4bb1ca6bcf584
+ // 10^-20 ~= bce5086492111aea 88f4bb1ca6bcf584
// 181ea8059f76532a4da9058e613fd93a * 2^-322
{{0xa48737a51a997a95ULL, 0x467eecd14c5ea8eeULL,
0xd3f6fc16ebca5e03ULL, 0x971da05074da7beeULL}},
- // 10^-21 ~= 971da05074da7bee d3f6fc16ebca5e03
+ // 10^-21 ~= 971da05074da7bee d3f6fc16ebca5e03
// 467eecd14c5ea8eea48737a51a997a95 * 2^-325
{{0x3a71f2a1c428c421ULL, 0x70cb148213caa7e4ULL,
0x5324c68b12dd6338ULL, 0xf1c90080baf72cb1ULL}},
- // 10^-22 ~= f1c90080baf72cb1 5324c68b12dd6338
+ // 10^-22 ~= f1c90080baf72cb1 5324c68b12dd6338
// 70cb148213caa7e43a71f2a1c428c421 * 2^-329
{{0x2ec18ee7d0209ce8ULL, 0x8d6f439b43088650ULL,
0x75b7053c0f178293ULL, 0xc16d9a0095928a27ULL}},
- // 10^-23 ~= c16d9a0095928a27 75b7053c0f178293
+ // 10^-23 ~= c16d9a0095928a27 75b7053c0f178293
// 8d6f439b430886502ec18ee7d0209ce8 * 2^-332
{{0xf23472530ce6e3edULL, 0xd78c3615cf3a050cULL,
0xc4926a9672793542ULL, 0x9abe14cd44753b52ULL}},
- // 10^-24 ~= 9abe14cd44753b52 c4926a9672793542
+ // 10^-24 ~= 9abe14cd44753b52 c4926a9672793542
// d78c3615cf3a050cf23472530ce6e3ed * 2^-335
{{0xe9ed83b814a49fe1ULL, 0x8c1389bc7ec33b47ULL,
0x3a83ddbd83f52204ULL, 0xf79687aed3eec551ULL}},
- // 10^-25 ~= f79687aed3eec551 3a83ddbd83f52204
+ // 10^-25 ~= f79687aed3eec551 3a83ddbd83f52204
// 8c1389bc7ec33b47e9ed83b814a49fe1 * 2^-339
{{0x87f1362cdd507fe7ULL, 0x3cdc6e306568fc39ULL,
0x95364afe032a819dULL, 0xc612062576589ddaULL}},
- // 10^-26 ~= c612062576589dda 95364afe032a819d
+ // 10^-26 ~= c612062576589dda 95364afe032a819d
// 3cdc6e306568fc3987f1362cdd507fe7 * 2^-342
{{0x9ff42b5717739986ULL, 0xca49f1c05120c9c7ULL,
0x775ea264cf55347dULL, 0x9e74d1b791e07e48ULL}},
- // 10^-27 ~= 9e74d1b791e07e48 775ea264cf55347d
+ // 10^-27 ~= 9e74d1b791e07e48 775ea264cf55347d
// ca49f1c05120c9c79ff42b5717739986 * 2^-345
{{0xccb9def1bf1f5c09ULL, 0x76dcb60081ce0fa5ULL,
0x8bca9d6e188853fcULL, 0xfd87b5f28300ca0dULL}},
- // 10^-28 ~= fd87b5f28300ca0d 8bca9d6e188853fc
+ // 10^-28 ~= fd87b5f28300ca0d 8bca9d6e188853fc
// 76dcb60081ce0fa5ccb9def1bf1f5c09 * 2^-349
{{0xa3c7e58e327f7cd4ULL, 0x5f16f80067d80c84ULL,
0x096ee45813a04330ULL, 0xcad2f7f5359a3b3eULL}},
- // 10^-29 ~= cad2f7f5359a3b3e 96ee45813a04330
+ // 10^-29 ~= cad2f7f5359a3b3e 96ee45813a04330
// 5f16f80067d80c84a3c7e58e327f7cd4 * 2^-352
{{0xb6398471c1ff9710ULL, 0x18df2ccd1fe00a03ULL,
0xa1258379a94d028dULL, 0xa2425ff75e14fc31ULL}},
- // 10^-30 ~= a2425ff75e14fc31 a1258379a94d028d
+ // 10^-30 ~= a2425ff75e14fc31 a1258379a94d028d
// 18df2ccd1fe00a03b6398471c1ff9710 * 2^-355
{{0xf82e038e34cc78daULL, 0x4718f0a419800802ULL,
0x80eacf948770ced7ULL, 0x81ceb32c4b43fcf4ULL}},
- // 10^-31 ~= 81ceb32c4b43fcf4 80eacf948770ced7
+ // 10^-31 ~= 81ceb32c4b43fcf4 80eacf948770ced7
// 4718f0a419800802f82e038e34cc78da * 2^-358
{{0x59e338e387ad8e29ULL, 0x0b5b1aa028ccd99eULL,
0x67de18eda5814af2ULL, 0xcfb11ead453994baULL}},
- // 10^-32 ~= cfb11ead453994ba 67de18eda5814af2
+ // 10^-32 ~= cfb11ead453994ba 67de18eda5814af2
// b5b1aa028ccd99e59e338e387ad8e29 * 2^-362
{{0x47e8fa4f9fbe0b54ULL, 0x6f7c154ced70ae18ULL,
0xecb1ad8aeacdd58eULL, 0xa6274bbdd0fadd61ULL}},
- // 10^-33 ~= a6274bbdd0fadd61 ecb1ad8aeacdd58e
+ // 10^-33 ~= a6274bbdd0fadd61 ecb1ad8aeacdd58e
// 6f7c154ced70ae1847e8fa4f9fbe0b54 * 2^-365
{{0xd320c83fb2fe6f76ULL, 0xbf967770bdf3be79ULL,
0xbd5af13bef0b113eULL, 0x84ec3c97da624ab4ULL}},
- // 10^-34 ~= 84ec3c97da624ab4 bd5af13bef0b113e
+ // 10^-34 ~= 84ec3c97da624ab4 bd5af13bef0b113e
// bf967770bdf3be79d320c83fb2fe6f76 * 2^-368
{{0x85014065eb30b257ULL, 0x65bd8be79652ca5cULL,
0x955e4ec64b44e864ULL, 0xd4ad2dbfc3d07787ULL}},
- // 10^-35 ~= d4ad2dbfc3d07787 955e4ec64b44e864
+ // 10^-35 ~= d4ad2dbfc3d07787 955e4ec64b44e864
// 65bd8be79652ca5c85014065eb30b257 * 2^-372
{{0xd0cdcd1e55c08eacULL, 0xeafe098611dbd516ULL,
0xdde50bd1d5d0b9e9ULL, 0xaa242499697392d2ULL}},
- // 10^-36 ~= aa242499697392d2 dde50bd1d5d0b9e9
+ // 10^-36 ~= aa242499697392d2 dde50bd1d5d0b9e9
// eafe098611dbd516d0cdcd1e55c08eac * 2^-375
{{0x40a4a418449a0bbdULL, 0xbbfe6e04db164412ULL,
0x7e50d64177da2e54ULL, 0x881cea14545c7575ULL}},
- // 10^-37 ~= 881cea14545c7575 7e50d64177da2e54
+ // 10^-37 ~= 881cea14545c7575 7e50d64177da2e54
// bbfe6e04db16441240a4a418449a0bbd * 2^-378
{{0x9aa1068d3a9012c8ULL, 0x2cca49a15e8a0683ULL,
0x96e7bd358c904a21ULL, 0xd9c7dced53c72255ULL}},
- // 10^-38 ~= d9c7dced53c72255 96e7bd358c904a21
+ // 10^-38 ~= d9c7dced53c72255 96e7bd358c904a21
// 2cca49a15e8a06839aa1068d3a9012c8 * 2^-382
{{0x154d9ed7620cdbd3ULL, 0x8a3b6e1ab2080536ULL,
0xabec975e0a0d081aULL, 0xae397d8aa96c1b77ULL}},
- // 10^-39 ~= ae397d8aa96c1b77 abec975e0a0d081a
+ // 10^-39 ~= ae397d8aa96c1b77 abec975e0a0d081a
// 8a3b6e1ab2080536154d9ed7620cdbd3 * 2^-385
{{0x443e18ac4e70afdcULL, 0x3b62be7bc1a0042bULL,
0x2323ac4b3b3da015ULL, 0x8b61313bbabce2c6ULL}},
- // 10^-40 ~= 8b61313bbabce2c6 2323ac4b3b3da015
+ // 10^-40 ~= 8b61313bbabce2c6 2323ac4b3b3da015
// 3b62be7bc1a0042b443e18ac4e70afdc * 2^-388
{{0x6d30277a171ab2f9ULL, 0x5f0463f935ccd378ULL,
0x6b6c46dec52f6688ULL, 0xdf01e85f912e37a3ULL}},
- // 10^-41 ~= df01e85f912e37a3 6b6c46dec52f6688
+ // 10^-41 ~= df01e85f912e37a3 6b6c46dec52f6688
// 5f0463f935ccd3786d30277a171ab2f9 * 2^-392
{{0x8a8cec61ac155bfbULL, 0x7f36b660f7d70f93ULL,
0x55f038b237591ed3ULL, 0xb267ed1940f1c61cULL}},
- // 10^-42 ~= b267ed1940f1c61c 55f038b237591ed3
+ // 10^-42 ~= b267ed1940f1c61c 55f038b237591ed3
// 7f36b660f7d70f938a8cec61ac155bfb * 2^-395
{{0x3ba3f04e23444996ULL, 0xcc2bc51a5fdf3fa9ULL,
0x77f3608e92adb242ULL, 0x8eb98a7a9a5b04e3ULL}},
- // 10^-43 ~= 8eb98a7a9a5b04e3 77f3608e92adb242
+ // 10^-43 ~= 8eb98a7a9a5b04e3 77f3608e92adb242
// cc2bc51a5fdf3fa93ba3f04e23444996 * 2^-398
{{0xf9064d49d206dc22ULL, 0xe046082a32fecc41ULL,
0x8cb89a7db77c506aULL, 0xe45c10c42a2b3b05ULL}},
- // 10^-44 ~= e45c10c42a2b3b05 8cb89a7db77c506a
+ // 10^-44 ~= e45c10c42a2b3b05 8cb89a7db77c506a
// e046082a32fecc41f9064d49d206dc22 * 2^-402
{{0xfa6b7107db38b01bULL, 0x4d04d354f598a367ULL,
0x3d607b97c5fd0d22ULL, 0xb6b00d69bb55c8d1ULL}},
- // 10^-45 ~= b6b00d69bb55c8d1 3d607b97c5fd0d22
+ // 10^-45 ~= b6b00d69bb55c8d1 3d607b97c5fd0d22
// 4d04d354f598a367fa6b7107db38b01b * 2^-405
{{0xfb8927397c2d59b0ULL, 0x3d9d75dd9146e91fULL,
0xcab3961304ca70e8ULL, 0x9226712162ab070dULL}},
- // 10^-46 ~= 9226712162ab070d cab3961304ca70e8
+ // 10^-46 ~= 9226712162ab070d cab3961304ca70e8
// 3d9d75dd9146e91ffb8927397c2d59b0 * 2^-408
{{0xf8db71f5937bc2b2ULL, 0xc8fbefc8e87174ffULL,
0xaab8f01e6e10b4a6ULL, 0xe9d71b689dde71afULL}},
- // 10^-47 ~= e9d71b689dde71af aab8f01e6e10b4a6
+ // 10^-47 ~= e9d71b689dde71af aab8f01e6e10b4a6
// c8fbefc8e87174fff8db71f5937bc2b2 * 2^-412
{{0x2d7c5b2adc630228ULL, 0x3a63263a538df733ULL,
0x5560c018580d5d52ULL, 0xbb127c53b17ec159ULL}},
- // 10^-48 ~= bb127c53b17ec159 5560c018580d5d52
+ // 10^-48 ~= bb127c53b17ec159 5560c018580d5d52
// 3a63263a538df7332d7c5b2adc630228 * 2^-415
{{0x24637c2249e8ce87ULL, 0x2eb5b82ea93e5f5cULL,
0xdde7001379a44aa8ULL, 0x95a8637627989aadULL}},
- // 10^-49 ~= 95a8637627989aad dde7001379a44aa8
+ // 10^-49 ~= 95a8637627989aad dde7001379a44aa8
// 2eb5b82ea93e5f5c24637c2249e8ce87 * 2^-418
{{0x3a38c69d430e173eULL, 0x4abc59e441fd6560ULL,
0x963e66858f6d4440ULL, 0xef73d256a5c0f77cULL}},
- // 10^-50 ~= ef73d256a5c0f77c 963e66858f6d4440
+ // 10^-50 ~= ef73d256a5c0f77c 963e66858f6d4440
// 4abc59e441fd65603a38c69d430e173e * 2^-422
{{0x94fa387dcf3e78feULL, 0x6efd14b69b311de6ULL,
0xde98520472bdd033ULL, 0xbf8fdb78849a5f96ULL}},
- // 10^-51 ~= bf8fdb78849a5f96 de98520472bdd033
+ // 10^-51 ~= bf8fdb78849a5f96 de98520472bdd033
// 6efd14b69b311de694fa387dcf3e78fe * 2^-425
{{0xaa61c6cb0c31fa65ULL, 0x259743c548f417ebULL,
0xe546a8038efe4029ULL, 0x993fe2c6d07b7fabULL}},
- // 10^-52 ~= 993fe2c6d07b7fab e546a8038efe4029
+ // 10^-52 ~= 993fe2c6d07b7fab e546a8038efe4029
// 259743c548f417ebaa61c6cb0c31fa65 * 2^-428
{{0xaa360ade79e990a2ULL, 0x3c25393ba7ecf312ULL,
0xd53dd99f4b3066a8ULL, 0xf53304714d9265dfULL}},
- // 10^-53 ~= f53304714d9265df d53dd99f4b3066a8
+ // 10^-53 ~= f53304714d9265df d53dd99f4b3066a8
// 3c25393ba7ecf312aa360ade79e990a2 * 2^-432
{{0x882b3be52e5473b5ULL, 0x96842dc95323f5a8ULL,
0xaa97e14c3c26b886ULL, 0xc428d05aa4751e4cULL}},
- // 10^-54 ~= c428d05aa4751e4c aa97e14c3c26b886
+ // 10^-54 ~= c428d05aa4751e4c aa97e14c3c26b886
// 96842dc95323f5a8882b3be52e5473b5 * 2^-435
{{0xd355c98425105c91ULL, 0xab9cf16ddc1cc486ULL,
0x55464dd69685606bULL, 0x9ced737bb6c4183dULL}},
- // 10^-55 ~= 9ced737bb6c4183d 55464dd69685606b
+ // 10^-55 ~= 9ced737bb6c4183d 55464dd69685606b
// ab9cf16ddc1cc486d355c98425105c91 * 2^-438
{{0xebbc75a03b4d60e7ULL, 0xac2e4f162cfad40aULL,
0xeed6e2f0f0d56712ULL, 0xfb158592be068d2eULL}},
- // 10^-56 ~= fb158592be068d2e eed6e2f0f0d56712
+ // 10^-56 ~= fb158592be068d2e eed6e2f0f0d56712
// ac2e4f162cfad40aebbc75a03b4d60e7 * 2^-442
{{0x8963914cfc3de71fULL, 0x568b727823fbdcd5ULL,
0xf245825a5a445275ULL, 0xc8de047564d20a8bULL}},
- // 10^-57 ~= c8de047564d20a8b f245825a5a445275
+ // 10^-57 ~= c8de047564d20a8b f245825a5a445275
// 568b727823fbdcd58963914cfc3de71f * 2^-445
{{0xd44fa770c9cb1f4cULL, 0x453c5b934ffcb0aaULL,
0x5b6aceaeae9d0ec4ULL, 0xa0b19d2ab70e6ed6ULL}},
- // 10^-58 ~= a0b19d2ab70e6ed6 5b6aceaeae9d0ec4
+ // 10^-58 ~= a0b19d2ab70e6ed6 5b6aceaeae9d0ec4
// 453c5b934ffcb0aad44fa770c9cb1f4c * 2^-448
{{0xdd0c85f3d4a27f70ULL, 0x37637c75d996f3bbULL,
0xe2bbd88bbee40bd0ULL, 0x808e17555f3ebf11ULL}},
- // 10^-59 ~= 808e17555f3ebf11 e2bbd88bbee40bd0
+ // 10^-59 ~= 808e17555f3ebf11 e2bbd88bbee40bd0
// 37637c75d996f3bbdd0c85f3d4a27f70 * 2^-451
{{0x61ada31fba9d98b3ULL, 0x256bfa5628f185f9ULL,
0x3792f412cb06794dULL, 0xcdb02555653131b6ULL}},
- // 10^-60 ~= cdb02555653131b6 3792f412cb06794d
+ // 10^-60 ~= cdb02555653131b6 3792f412cb06794d
// 256bfa5628f185f961ada31fba9d98b3 * 2^-455
{{0xe7be1c196217ad5cULL, 0x51232eab53f46b2dULL,
0x5fa8c3423c052dd7ULL, 0xa48ceaaab75a8e2bULL}},
- // 10^-61 ~= a48ceaaab75a8e2b 5fa8c3423c052dd7
+ // 10^-61 ~= a48ceaaab75a8e2b 5fa8c3423c052dd7
// 51232eab53f46b2de7be1c196217ad5c * 2^-458
{{0x52fe7ce11b46244aULL, 0x40e8f222a99055beULL,
0x1953cf68300424acULL, 0x83a3eeeef9153e89ULL}},
- // 10^-62 ~= 83a3eeeef9153e89 1953cf68300424ac
+ // 10^-62 ~= 83a3eeeef9153e89 1953cf68300424ac
// 40e8f222a99055be52fe7ce11b46244a * 2^-461
{{0x51972e34f8703a10ULL, 0x34a7e9d10f4d55fdULL,
0x8eec7f0d19a03aadULL, 0xd29fe4b18e88640eULL}},
- // 10^-63 ~= d29fe4b18e88640e 8eec7f0d19a03aad
+ // 10^-63 ~= d29fe4b18e88640e 8eec7f0d19a03aad
// 34a7e9d10f4d55fd51972e34f8703a10 * 2^-465
{{0x0e128b5d938cfb40ULL, 0x2a1fee40d90aab31ULL,
0x3f2398d747b36224ULL, 0xa87fea27a539e9a5ULL}},
- // 10^-64 ~= a87fea27a539e9a5 3f2398d747b36224
+ // 10^-64 ~= a87fea27a539e9a5 3f2398d747b36224
// 2a1fee40d90aab310e128b5d938cfb40 * 2^-468
{{0x3e753c4adc70c900ULL, 0xbb4cbe9a473bbc27ULL,
0x98e947129fc2b4e9ULL, 0x86ccbb52ea94baeaULL}},
- // 10^-65 ~= 86ccbb52ea94baea 98e947129fc2b4e9
+ // 10^-65 ~= 86ccbb52ea94baea 98e947129fc2b4e9
// bb4cbe9a473bbc273e753c4adc70c900 * 2^-471
{{0x30bb93aafa4e0e66ULL, 0x9214642a0b92c6a5ULL,
0x5b0ed81dcc6abb0fULL, 0xd7adf884aa879177ULL}},
- // 10^-66 ~= d7adf884aa879177 5b0ed81dcc6abb0f
+ // 10^-66 ~= d7adf884aa879177 5b0ed81dcc6abb0f
// 9214642a0b92c6a530bb93aafa4e0e66 * 2^-475
{{0xc0960fbbfb71a51fULL, 0xa8105021a2dbd21dULL,
0xe272467e3d222f3fULL, 0xac8b2d36eed2dac5ULL}},
- // 10^-67 ~= ac8b2d36eed2dac5 e272467e3d222f3f
+ // 10^-67 ~= ac8b2d36eed2dac5 e272467e3d222f3f
// a8105021a2dbd21dc0960fbbfb71a51f * 2^-478
{{0x66de72fcc927b74cULL, 0xb9a6a6814f1641b1ULL,
0x1b8e9ecb641b58ffULL, 0x8a08f0f8bf0f156bULL}},
- // 10^-68 ~= 8a08f0f8bf0f156b 1b8e9ecb641b58ff
+ // 10^-68 ~= 8a08f0f8bf0f156b 1b8e9ecb641b58ff
// b9a6a6814f1641b166de72fcc927b74c * 2^-481
{{0xd7ca5194750c5879ULL, 0xf5d770cee4f0691bULL,
0xf8e431456cf88e65ULL, 0xdcdb1b2798182244ULL}},
- // 10^-69 ~= dcdb1b2798182244 f8e431456cf88e65
+ // 10^-69 ~= dcdb1b2798182244 f8e431456cf88e65
// f5d770cee4f0691bd7ca5194750c5879 * 2^-485
{{0xdfd50e105da379faULL, 0x9179270bea59edafULL,
0x2d835a9df0c6d851ULL, 0xb0af48ec79ace837ULL}},
- // 10^-70 ~= b0af48ec79ace837 2d835a9df0c6d851
+ // 10^-70 ~= b0af48ec79ace837 2d835a9df0c6d851
// 9179270bea59edafdfd50e105da379fa * 2^-488
{{0x19773e737e1c6195ULL, 0x0dfa85a321e18af3ULL,
0x579c487e5a38ad0eULL, 0x8d590723948a535fULL}},
- // 10^-71 ~= 8d590723948a535f 579c487e5a38ad0e
+ // 10^-71 ~= 8d590723948a535f 579c487e5a38ad0e
// dfa85a321e18af319773e737e1c6195 * 2^-491
{{0xf58b971f302d68efULL, 0x165da29e9c9c1184ULL,
0x25c6da63c38de1b0ULL, 0xe2280b6c20dd5232ULL}},
- // 10^-72 ~= e2280b6c20dd5232 25c6da63c38de1b0
+ // 10^-72 ~= e2280b6c20dd5232 25c6da63c38de1b0
// 165da29e9c9c1184f58b971f302d68ef * 2^-495
{{0xc46fac18f3578725ULL, 0x4517b54bb07cdad0ULL,
0x1e38aeb6360b1af3ULL, 0xb4ecd5f01a4aa828ULL}},
- // 10^-73 ~= b4ecd5f01a4aa828 1e38aeb6360b1af3
+ // 10^-73 ~= b4ecd5f01a4aa828 1e38aeb6360b1af3
// 4517b54bb07cdad0c46fac18f3578725 * 2^-498
{{0x36bfbce0c2ac6c1eULL, 0x9dac910959fd7bdaULL,
0xb1c6f22b5e6f48c2ULL, 0x90bd77f3483bb9b9ULL}},
- // 10^-74 ~= 90bd77f3483bb9b9 b1c6f22b5e6f48c2
+ // 10^-74 ~= 90bd77f3483bb9b9 b1c6f22b5e6f48c2
// 9dac910959fd7bda36bfbce0c2ac6c1e * 2^-501
{{0x2465fb01377a4696ULL, 0x2f7a81a88ffbf95dULL,
0xb60b1d1230b20e04ULL, 0xe7958cb87392c2c2ULL}}
- // 10^-75 ~= e7958cb87392c2c2 b60b1d1230b20e04
+ // 10^-75 ~= e7958cb87392c2c2 b60b1d1230b20e04
// 2f7a81a88ffbf95d2465fb01377a4696 * 2^-505
};
@@ -4032,302 +4032,302 @@ UINT64 mask256[] = {
UINT256 ten2mxtrunc256[] = {
{{0xccccccccccccccccULL, 0xccccccccccccccccULL,
0xccccccccccccccccULL, 0xccccccccccccccccULL}},
- // (ten2mx >> 256) = cccccccccccccccc cccccccccccccccc
+ // (ten2mx >> 256) = cccccccccccccccc cccccccccccccccc
// cccccccccccccccccccccccccccccccc
{{0x70a3d70a3d70a3d7ULL, 0xd70a3d70a3d70a3dULL,
0x3d70a3d70a3d70a3ULL, 0xa3d70a3d70a3d70aULL}},
- // (ten2mx >> 256) = a3d70a3d70a3d70a 3d70a3d70a3d70a3
+ // (ten2mx >> 256) = a3d70a3d70a3d70a 3d70a3d70a3d70a3
// d70a3d70a3d70a3d70a3d70a3d70a3d7
{{0xc083126e978d4fdfULL, 0x78d4fdf3b645a1caULL,
0x645a1cac083126e9ULL, 0x83126e978d4fdf3bULL}},
- // (ten2mx >> 256) = 83126e978d4fdf3b 645a1cac083126e9
+ // (ten2mx >> 256) = 83126e978d4fdf3b 645a1cac083126e9
// 78d4fdf3b645a1cac083126e978d4fdf
{{0x67381d7dbf487fcbULL, 0xc154c985f06f6944ULL,
0xd3c36113404ea4a8ULL, 0xd1b71758e219652bULL}},
- // (ten2mx >> 256) = d1b71758e219652b d3c36113404ea4a8
+ // (ten2mx >> 256) = d1b71758e219652b d3c36113404ea4a8
// c154c985f06f694467381d7dbf487fcb
{{0x85c67dfe32a0663cULL, 0xcddd6e04c0592103ULL,
0x0fcf80dc33721d53ULL, 0xa7c5ac471b478423ULL}},
- // (ten2mx >> 256) = a7c5ac471b478423 fcf80dc33721d53
+ // (ten2mx >> 256) = a7c5ac471b478423 fcf80dc33721d53
// cddd6e04c059210385c67dfe32a0663c
{{0x37d1fe64f54d1e96ULL, 0xd7e45803cd141a69ULL,
0xa63f9a49c2c1b10fULL, 0x8637bd05af6c69b5ULL}},
- // (ten2mx >> 256) = 8637bd05af6c69b5 a63f9a49c2c1b10f
+ // (ten2mx >> 256) = 8637bd05af6c69b5 a63f9a49c2c1b10f
// d7e45803cd141a6937d1fe64f54d1e96
{{0x8c8330a1887b6424ULL, 0x8ca08cd2e1b9c3dbULL,
0x3d32907604691b4cULL, 0xd6bf94d5e57a42bcULL}},
- // (ten2mx >> 256) = d6bf94d5e57a42bc 3d32907604691b4c
+ // (ten2mx >> 256) = d6bf94d5e57a42bc 3d32907604691b4c
// 8ca08cd2e1b9c3db8c8330a1887b6424
{{0x7068f3b46d2f8350ULL, 0x3d4d3d758161697cULL,
0xfdc20d2b36ba7c3dULL, 0xabcc77118461cefcULL}},
- // (ten2mx >> 256) = abcc77118461cefc fdc20d2b36ba7c3d
+ // (ten2mx >> 256) = abcc77118461cefc fdc20d2b36ba7c3d
// 3d4d3d758161697c7068f3b46d2f8350
{{0xf387295d242602a6ULL, 0xfdd7645e011abac9ULL,
0x31680a88f8953030ULL, 0x89705f4136b4a597ULL}},
- // (ten2mx >> 256) = 89705f4136b4a597 31680a88f8953030
+ // (ten2mx >> 256) = 89705f4136b4a597 31680a88f8953030
// fdd7645e011abac9f387295d242602a6
{{0xb8d8422ea03cd10aULL, 0x2fbf06fcce912adcULL,
0xb573440e5a884d1bULL, 0xdbe6fecebdedd5beULL}},
- // (ten2mx >> 256) = dbe6fecebdedd5be b573440e5a884d1b
+ // (ten2mx >> 256) = dbe6fecebdedd5be b573440e5a884d1b
// 2fbf06fcce912adcb8d8422ea03cd10a
{{0x93e034f219ca40d5ULL, 0xf2ff38ca3eda88b0ULL,
0xf78f69a51539d748ULL, 0xafebff0bcb24aafeULL}},
- // (ten2mx >> 256) = afebff0bcb24aafe f78f69a51539d748
+ // (ten2mx >> 256) = afebff0bcb24aafe f78f69a51539d748
// f2ff38ca3eda88b093e034f219ca40d5
{{0x4319c3f4e16e9a44ULL, 0xf598fa3b657ba08dULL,
0xf93f87b7442e45d3ULL, 0x8cbccc096f5088cbULL}},
- // (ten2mx >> 256) = 8cbccc096f5088cb f93f87b7442e45d3
+ // (ten2mx >> 256) = 8cbccc096f5088cb f93f87b7442e45d3
// f598fa3b657ba08d4319c3f4e16e9a44
{{0x04f606549be42a06ULL, 0x88f4c3923bf900e2ULL,
0x2865a5f206b06fb9ULL, 0xe12e13424bb40e13ULL}},
- // (ten2mx >> 256) = e12e13424bb40e13 2865a5f206b06fb9
+ // (ten2mx >> 256) = e12e13424bb40e13 2865a5f206b06fb9
// 88f4c3923bf900e204f606549be42a06
{{0x03f805107cb68805ULL, 0x6d909c74fcc733e8ULL,
0x538484c19ef38c94ULL, 0xb424dc35095cd80fULL}},
- // (ten2mx >> 256) = b424dc35095cd80f 538484c19ef38c94
+ // (ten2mx >> 256) = b424dc35095cd80f 538484c19ef38c94
// 6d909c74fcc733e803f805107cb68805
{{0x3660040d3092066aULL, 0x57a6e390ca38f653ULL,
0x0f9d37014bf60a10ULL, 0x901d7cf73ab0acd9ULL}},
- // (ten2mx >> 256) = 901d7cf73ab0acd9 f9d37014bf60a10
+ // (ten2mx >> 256) = 901d7cf73ab0acd9 f9d37014bf60a10
// 57a6e390ca38f6533660040d3092066a
{{0x23ccd3484db670aaULL, 0xbf716c1add27f085ULL,
0x4c2ebe687989a9b3ULL, 0xe69594bec44de15bULL}},
- // (ten2mx >> 256) = e69594bec44de15b 4c2ebe687989a9b3
+ // (ten2mx >> 256) = e69594bec44de15b 4c2ebe687989a9b3
// bf716c1add27f08523ccd3484db670aa
{{0x4fd70f6d0af85a22ULL, 0xff8df0157db98d37ULL,
0x09befeb9fad487c2ULL, 0xb877aa3236a4b449ULL}},
- // (ten2mx >> 256) = b877aa3236a4b449 9befeb9fad487c2
+ // (ten2mx >> 256) = b877aa3236a4b449 9befeb9fad487c2
// ff8df0157db98d374fd70f6d0af85a22
{{0x0cac0c573bf9e1b5ULL, 0x32d7f344649470f9ULL,
0x3aff322e62439fcfULL, 0x9392ee8e921d5d07ULL}},
- // (ten2mx >> 256) = 9392ee8e921d5d07 3aff322e62439fcf
+ // (ten2mx >> 256) = 9392ee8e921d5d07 3aff322e62439fcf
// 32d7f344649470f90cac0c573bf9e1b5
{{0xe11346f1f98fcf88ULL, 0x1e2652070753e7f4ULL,
0x2b31e9e3d06c32e5ULL, 0xec1e4a7db69561a5ULL}},
- // (ten2mx >> 256) = ec1e4a7db69561a5 2b31e9e3d06c32e5
+ // (ten2mx >> 256) = ec1e4a7db69561a5 2b31e9e3d06c32e5
// 1e2652070753e7f4e11346f1f98fcf88
{{0x4da9058e613fd939ULL, 0x181ea8059f76532aULL,
0x88f4bb1ca6bcf584ULL, 0xbce5086492111aeaULL}},
- // (ten2mx >> 256) = bce5086492111aea 88f4bb1ca6bcf584
+ // (ten2mx >> 256) = bce5086492111aea 88f4bb1ca6bcf584
// 181ea8059f76532a4da9058e613fd939
{{0xa48737a51a997a94ULL, 0x467eecd14c5ea8eeULL,
0xd3f6fc16ebca5e03ULL, 0x971da05074da7beeULL}},
- // (ten2mx >> 256) = 971da05074da7bee d3f6fc16ebca5e03
+ // (ten2mx >> 256) = 971da05074da7bee d3f6fc16ebca5e03
// 467eecd14c5ea8eea48737a51a997a94
{{0x3a71f2a1c428c420ULL, 0x70cb148213caa7e4ULL,
0x5324c68b12dd6338ULL, 0xf1c90080baf72cb1ULL}},
- // (ten2mx >> 256) = f1c90080baf72cb1 5324c68b12dd6338
+ // (ten2mx >> 256) = f1c90080baf72cb1 5324c68b12dd6338
// 70cb148213caa7e43a71f2a1c428c420
{{0x2ec18ee7d0209ce7ULL, 0x8d6f439b43088650ULL,
0x75b7053c0f178293ULL, 0xc16d9a0095928a27ULL}},
- // (ten2mx >> 256) = c16d9a0095928a27 75b7053c0f178293
+ // (ten2mx >> 256) = c16d9a0095928a27 75b7053c0f178293
// 8d6f439b430886502ec18ee7d0209ce7
{{0xf23472530ce6e3ecULL, 0xd78c3615cf3a050cULL,
0xc4926a9672793542ULL, 0x9abe14cd44753b52ULL}},
- // (ten2mx >> 256) = 9abe14cd44753b52 c4926a9672793542
+ // (ten2mx >> 256) = 9abe14cd44753b52 c4926a9672793542
// d78c3615cf3a050cf23472530ce6e3ec
{{0xe9ed83b814a49fe0ULL, 0x8c1389bc7ec33b47ULL,
0x3a83ddbd83f52204ULL, 0xf79687aed3eec551ULL}},
- // (ten2mx >> 256) = f79687aed3eec551 3a83ddbd83f52204
+ // (ten2mx >> 256) = f79687aed3eec551 3a83ddbd83f52204
// 8c1389bc7ec33b47e9ed83b814a49fe0
{{0x87f1362cdd507fe6ULL, 0x3cdc6e306568fc39ULL,
0x95364afe032a819dULL, 0xc612062576589ddaULL}},
- // (ten2mx >> 256) = c612062576589dda 95364afe032a819d
+ // (ten2mx >> 256) = c612062576589dda 95364afe032a819d
// 3cdc6e306568fc3987f1362cdd507fe6
{{0x9ff42b5717739985ULL, 0xca49f1c05120c9c7ULL,
0x775ea264cf55347dULL, 0x9e74d1b791e07e48ULL}},
- // (ten2mx >> 256) = 9e74d1b791e07e48 775ea264cf55347d
+ // (ten2mx >> 256) = 9e74d1b791e07e48 775ea264cf55347d
// ca49f1c05120c9c79ff42b5717739985
{{0xccb9def1bf1f5c08ULL, 0x76dcb60081ce0fa5ULL,
0x8bca9d6e188853fcULL, 0xfd87b5f28300ca0dULL}},
- // (ten2mx >> 256) = fd87b5f28300ca0d 8bca9d6e188853fc
+ // (ten2mx >> 256) = fd87b5f28300ca0d 8bca9d6e188853fc
// 76dcb60081ce0fa5ccb9def1bf1f5c08
{{0xa3c7e58e327f7cd3ULL, 0x5f16f80067d80c84ULL,
0x096ee45813a04330ULL, 0xcad2f7f5359a3b3eULL}},
- // (ten2mx >> 256) = cad2f7f5359a3b3e 96ee45813a04330
+ // (ten2mx >> 256) = cad2f7f5359a3b3e 96ee45813a04330
// 5f16f80067d80c84a3c7e58e327f7cd3
{{0xb6398471c1ff970fULL, 0x18df2ccd1fe00a03ULL,
0xa1258379a94d028dULL, 0xa2425ff75e14fc31ULL}},
- // (ten2mx >> 256) = a2425ff75e14fc31 a1258379a94d028d
+ // (ten2mx >> 256) = a2425ff75e14fc31 a1258379a94d028d
// 18df2ccd1fe00a03b6398471c1ff970f
{{0xf82e038e34cc78d9ULL, 0x4718f0a419800802ULL,
0x80eacf948770ced7ULL, 0x81ceb32c4b43fcf4ULL}},
- // (ten2mx >> 256) = 81ceb32c4b43fcf4 80eacf948770ced7
+ // (ten2mx >> 256) = 81ceb32c4b43fcf4 80eacf948770ced7
// 4718f0a419800802f82e038e34cc78d9
{{0x59e338e387ad8e28ULL, 0x0b5b1aa028ccd99eULL,
0x67de18eda5814af2ULL, 0xcfb11ead453994baULL}},
- // (ten2mx >> 256) = cfb11ead453994ba 67de18eda5814af2
+ // (ten2mx >> 256) = cfb11ead453994ba 67de18eda5814af2
// b5b1aa028ccd99e59e338e387ad8e28
{{0x47e8fa4f9fbe0b53ULL, 0x6f7c154ced70ae18ULL,
0xecb1ad8aeacdd58eULL, 0xa6274bbdd0fadd61ULL}},
- // (ten2mx >> 256) = a6274bbdd0fadd61 ecb1ad8aeacdd58e
+ // (ten2mx >> 256) = a6274bbdd0fadd61 ecb1ad8aeacdd58e
// 6f7c154ced70ae1847e8fa4f9fbe0b53
{{0xd320c83fb2fe6f75ULL, 0xbf967770bdf3be79ULL,
0xbd5af13bef0b113eULL, 0x84ec3c97da624ab4ULL}},
- // (ten2mx >> 256) = 84ec3c97da624ab4 bd5af13bef0b113e
+ // (ten2mx >> 256) = 84ec3c97da624ab4 bd5af13bef0b113e
// bf967770bdf3be79d320c83fb2fe6f75
{{0x85014065eb30b256ULL, 0x65bd8be79652ca5cULL,
0x955e4ec64b44e864ULL, 0xd4ad2dbfc3d07787ULL}},
- // (ten2mx >> 256) = d4ad2dbfc3d07787 955e4ec64b44e864
+ // (ten2mx >> 256) = d4ad2dbfc3d07787 955e4ec64b44e864
// 65bd8be79652ca5c85014065eb30b256
{{0xd0cdcd1e55c08eabULL, 0xeafe098611dbd516ULL,
0xdde50bd1d5d0b9e9ULL, 0xaa242499697392d2ULL}},
- // (ten2mx >> 256) = aa242499697392d2 dde50bd1d5d0b9e9
+ // (ten2mx >> 256) = aa242499697392d2 dde50bd1d5d0b9e9
// eafe098611dbd516d0cdcd1e55c08eab
{{0x40a4a418449a0bbcULL, 0xbbfe6e04db164412ULL,
0x7e50d64177da2e54ULL, 0x881cea14545c7575ULL}},
- // (ten2mx >> 256) = 881cea14545c7575 7e50d64177da2e54
+ // (ten2mx >> 256) = 881cea14545c7575 7e50d64177da2e54
// bbfe6e04db16441240a4a418449a0bbc
{{0x9aa1068d3a9012c7ULL, 0x2cca49a15e8a0683ULL,
0x96e7bd358c904a21ULL, 0xd9c7dced53c72255ULL}},
- // (ten2mx >> 256) = d9c7dced53c72255 96e7bd358c904a21
+ // (ten2mx >> 256) = d9c7dced53c72255 96e7bd358c904a21
// 2cca49a15e8a06839aa1068d3a9012c7
{{0x154d9ed7620cdbd2ULL, 0x8a3b6e1ab2080536ULL,
0xabec975e0a0d081aULL, 0xae397d8aa96c1b77ULL}},
- // (ten2mx >> 256) = ae397d8aa96c1b77 abec975e0a0d081a
+ // (ten2mx >> 256) = ae397d8aa96c1b77 abec975e0a0d081a
// 8a3b6e1ab2080536154d9ed7620cdbd2
{{0x443e18ac4e70afdbULL, 0x3b62be7bc1a0042bULL,
0x2323ac4b3b3da015ULL, 0x8b61313bbabce2c6ULL}},
- // (ten2mx >> 256) = 8b61313bbabce2c6 2323ac4b3b3da015
+ // (ten2mx >> 256) = 8b61313bbabce2c6 2323ac4b3b3da015
// 3b62be7bc1a0042b443e18ac4e70afdb
{{0x6d30277a171ab2f8ULL, 0x5f0463f935ccd378ULL,
0x6b6c46dec52f6688ULL, 0xdf01e85f912e37a3ULL}},
- // (ten2mx >> 256) = df01e85f912e37a3 6b6c46dec52f6688
+ // (ten2mx >> 256) = df01e85f912e37a3 6b6c46dec52f6688
// 5f0463f935ccd3786d30277a171ab2f8
{{0x8a8cec61ac155bfaULL, 0x7f36b660f7d70f93ULL,
0x55f038b237591ed3ULL, 0xb267ed1940f1c61cULL}},
- // (ten2mx >> 256) = b267ed1940f1c61c 55f038b237591ed3
+ // (ten2mx >> 256) = b267ed1940f1c61c 55f038b237591ed3
// 7f36b660f7d70f938a8cec61ac155bfa
{{0x3ba3f04e23444995ULL, 0xcc2bc51a5fdf3fa9ULL,
0x77f3608e92adb242ULL, 0x8eb98a7a9a5b04e3ULL}},
- // (ten2mx >> 256) = 8eb98a7a9a5b04e3 77f3608e92adb242
+ // (ten2mx >> 256) = 8eb98a7a9a5b04e3 77f3608e92adb242
// cc2bc51a5fdf3fa93ba3f04e23444995
{{0xf9064d49d206dc21ULL, 0xe046082a32fecc41ULL,
0x8cb89a7db77c506aULL, 0xe45c10c42a2b3b05ULL}},
- // (ten2mx >> 256) = e45c10c42a2b3b05 8cb89a7db77c506a
+ // (ten2mx >> 256) = e45c10c42a2b3b05 8cb89a7db77c506a
// e046082a32fecc41f9064d49d206dc21
{{0xfa6b7107db38b01aULL, 0x4d04d354f598a367ULL,
0x3d607b97c5fd0d22ULL, 0xb6b00d69bb55c8d1ULL}},
- // (ten2mx >> 256) = b6b00d69bb55c8d1 3d607b97c5fd0d22
+ // (ten2mx >> 256) = b6b00d69bb55c8d1 3d607b97c5fd0d22
// 4d04d354f598a367fa6b7107db38b01a
{{0xfb8927397c2d59afULL, 0x3d9d75dd9146e91fULL,
0xcab3961304ca70e8ULL, 0x9226712162ab070dULL}},
- // (ten2mx >> 256) = 9226712162ab070d cab3961304ca70e8
+ // (ten2mx >> 256) = 9226712162ab070d cab3961304ca70e8
// 3d9d75dd9146e91ffb8927397c2d59af
{{0xf8db71f5937bc2b1ULL, 0xc8fbefc8e87174ffULL,
0xaab8f01e6e10b4a6ULL, 0xe9d71b689dde71afULL}},
- // (ten2mx >> 256) = e9d71b689dde71af aab8f01e6e10b4a6
+ // (ten2mx >> 256) = e9d71b689dde71af aab8f01e6e10b4a6
// c8fbefc8e87174fff8db71f5937bc2b1
{{0x2d7c5b2adc630227ULL, 0x3a63263a538df733ULL,
0x5560c018580d5d52ULL, 0xbb127c53b17ec159ULL}},
- // (ten2mx >> 256) = bb127c53b17ec159 5560c018580d5d52
+ // (ten2mx >> 256) = bb127c53b17ec159 5560c018580d5d52
// 3a63263a538df7332d7c5b2adc630227
{{0x24637c2249e8ce86ULL, 0x2eb5b82ea93e5f5cULL,
0xdde7001379a44aa8ULL, 0x95a8637627989aadULL}},
- // (ten2mx >> 256) = 95a8637627989aad dde7001379a44aa8
+ // (ten2mx >> 256) = 95a8637627989aad dde7001379a44aa8
// 2eb5b82ea93e5f5c24637c2249e8ce86
{{0x3a38c69d430e173dULL, 0x4abc59e441fd6560ULL,
0x963e66858f6d4440ULL, 0xef73d256a5c0f77cULL}},
- // (ten2mx >> 256) = ef73d256a5c0f77c 963e66858f6d4440
+ // (ten2mx >> 256) = ef73d256a5c0f77c 963e66858f6d4440
// 4abc59e441fd65603a38c69d430e173d
{{0x94fa387dcf3e78fdULL, 0x6efd14b69b311de6ULL,
0xde98520472bdd033ULL, 0xbf8fdb78849a5f96ULL}},
- // (ten2mx >> 256) = bf8fdb78849a5f96 de98520472bdd033
+ // (ten2mx >> 256) = bf8fdb78849a5f96 de98520472bdd033
// 6efd14b69b311de694fa387dcf3e78fd
{{0xaa61c6cb0c31fa64ULL, 0x259743c548f417ebULL,
0xe546a8038efe4029ULL, 0x993fe2c6d07b7fabULL}},
- // (ten2mx >> 256) = 993fe2c6d07b7fab e546a8038efe4029
+ // (ten2mx >> 256) = 993fe2c6d07b7fab e546a8038efe4029
// 259743c548f417ebaa61c6cb0c31fa64
{{0xaa360ade79e990a1ULL, 0x3c25393ba7ecf312ULL,
0xd53dd99f4b3066a8ULL, 0xf53304714d9265dfULL}},
- // (ten2mx >> 256) = f53304714d9265df d53dd99f4b3066a8
+ // (ten2mx >> 256) = f53304714d9265df d53dd99f4b3066a8
// 3c25393ba7ecf312aa360ade79e990a1
{{0x882b3be52e5473b4ULL, 0x96842dc95323f5a8ULL,
0xaa97e14c3c26b886ULL, 0xc428d05aa4751e4cULL}},
- // (ten2mx >> 256) = c428d05aa4751e4c aa97e14c3c26b886
+ // (ten2mx >> 256) = c428d05aa4751e4c aa97e14c3c26b886
// 96842dc95323f5a8882b3be52e5473b4
{{0xd355c98425105c90ULL, 0xab9cf16ddc1cc486ULL,
0x55464dd69685606bULL, 0x9ced737bb6c4183dULL}},
- // (ten2mx >> 256) = 9ced737bb6c4183d 55464dd69685606b
+ // (ten2mx >> 256) = 9ced737bb6c4183d 55464dd69685606b
// ab9cf16ddc1cc486d355c98425105c90
{{0xebbc75a03b4d60e6ULL, 0xac2e4f162cfad40aULL,
0xeed6e2f0f0d56712ULL, 0xfb158592be068d2eULL}},
- // (ten2mx >> 256) = fb158592be068d2e eed6e2f0f0d56712
+ // (ten2mx >> 256) = fb158592be068d2e eed6e2f0f0d56712
// ac2e4f162cfad40aebbc75a03b4d60e6
{{0x8963914cfc3de71eULL, 0x568b727823fbdcd5ULL,
0xf245825a5a445275ULL, 0xc8de047564d20a8bULL}},
- // (ten2mx >> 256) = c8de047564d20a8b f245825a5a445275
+ // (ten2mx >> 256) = c8de047564d20a8b f245825a5a445275
// 568b727823fbdcd58963914cfc3de71e
{{0xd44fa770c9cb1f4bULL, 0x453c5b934ffcb0aaULL,
0x5b6aceaeae9d0ec4ULL, 0xa0b19d2ab70e6ed6ULL}},
- // (ten2mx >> 256) = a0b19d2ab70e6ed6 5b6aceaeae9d0ec4
+ // (ten2mx >> 256) = a0b19d2ab70e6ed6 5b6aceaeae9d0ec4
// 453c5b934ffcb0aad44fa770c9cb1f4b
{{0xdd0c85f3d4a27f6fULL, 0x37637c75d996f3bbULL,
0xe2bbd88bbee40bd0ULL, 0x808e17555f3ebf11ULL}},
- // (ten2mx >> 256) = 808e17555f3ebf11 e2bbd88bbee40bd0
+ // (ten2mx >> 256) = 808e17555f3ebf11 e2bbd88bbee40bd0
// 37637c75d996f3bbdd0c85f3d4a27f6f
{{0x61ada31fba9d98b2ULL, 0x256bfa5628f185f9ULL,
0x3792f412cb06794dULL, 0xcdb02555653131b6ULL}},
- // (ten2mx >> 256) = cdb02555653131b6 3792f412cb06794d
+ // (ten2mx >> 256) = cdb02555653131b6 3792f412cb06794d
// 256bfa5628f185f961ada31fba9d98b2
{{0xe7be1c196217ad5bULL, 0x51232eab53f46b2dULL,
0x5fa8c3423c052dd7ULL, 0xa48ceaaab75a8e2bULL}},
- // (ten2mx >> 256) = a48ceaaab75a8e2b 5fa8c3423c052dd7
+ // (ten2mx >> 256) = a48ceaaab75a8e2b 5fa8c3423c052dd7
// 51232eab53f46b2de7be1c196217ad5b
{{0x52fe7ce11b462449ULL, 0x40e8f222a99055beULL,
0x1953cf68300424acULL, 0x83a3eeeef9153e89ULL}},
- // (ten2mx >> 256) = 83a3eeeef9153e89 1953cf68300424ac
+ // (ten2mx >> 256) = 83a3eeeef9153e89 1953cf68300424ac
// 40e8f222a99055be52fe7ce11b462449
{{0x51972e34f8703a0fULL, 0x34a7e9d10f4d55fdULL,
0x8eec7f0d19a03aadULL, 0xd29fe4b18e88640eULL}},
- // (ten2mx >> 256) = d29fe4b18e88640e 8eec7f0d19a03aad
+ // (ten2mx >> 256) = d29fe4b18e88640e 8eec7f0d19a03aad
// 34a7e9d10f4d55fd51972e34f8703a0f
{{0x0e128b5d938cfb3fULL, 0x2a1fee40d90aab31ULL,
0x3f2398d747b36224ULL, 0xa87fea27a539e9a5ULL}},
- // (ten2mx >> 256) = a87fea27a539e9a5 3f2398d747b36224
+ // (ten2mx >> 256) = a87fea27a539e9a5 3f2398d747b36224
// 2a1fee40d90aab310e128b5d938cfb3f
{{0x3e753c4adc70c8ffULL, 0xbb4cbe9a473bbc27ULL,
0x98e947129fc2b4e9ULL, 0x86ccbb52ea94baeaULL}},
- // (ten2mx >> 256) = 86ccbb52ea94baea 98e947129fc2b4e9
+ // (ten2mx >> 256) = 86ccbb52ea94baea 98e947129fc2b4e9
// bb4cbe9a473bbc273e753c4adc70c8ff
{{0x30bb93aafa4e0e65ULL, 0x9214642a0b92c6a5ULL,
0x5b0ed81dcc6abb0fULL, 0xd7adf884aa879177ULL}},
- // (ten2mx >> 256) = d7adf884aa879177 5b0ed81dcc6abb0f
+ // (ten2mx >> 256) = d7adf884aa879177 5b0ed81dcc6abb0f
// 9214642a0b92c6a530bb93aafa4e0e65
{{0xc0960fbbfb71a51eULL, 0xa8105021a2dbd21dULL,
0xe272467e3d222f3fULL, 0xac8b2d36eed2dac5ULL}},
- // (ten2mx >> 256) = ac8b2d36eed2dac5 e272467e3d222f3f
+ // (ten2mx >> 256) = ac8b2d36eed2dac5 e272467e3d222f3f
// a8105021a2dbd21dc0960fbbfb71a51e
{{0x66de72fcc927b74bULL, 0xb9a6a6814f1641b1ULL,
0x1b8e9ecb641b58ffULL, 0x8a08f0f8bf0f156bULL}},
- // (ten2mx >> 256) = 8a08f0f8bf0f156b 1b8e9ecb641b58ff
+ // (ten2mx >> 256) = 8a08f0f8bf0f156b 1b8e9ecb641b58ff
// b9a6a6814f1641b166de72fcc927b74b
{{0xd7ca5194750c5878ULL, 0xf5d770cee4f0691bULL,
0xf8e431456cf88e65ULL, 0xdcdb1b2798182244ULL}},
- // (ten2mx >> 256) = dcdb1b2798182244 f8e431456cf88e65
+ // (ten2mx >> 256) = dcdb1b2798182244 f8e431456cf88e65
// f5d770cee4f0691bd7ca5194750c5878
{{0xdfd50e105da379f9ULL, 0x9179270bea59edafULL,
0x2d835a9df0c6d851ULL, 0xb0af48ec79ace837ULL}},
- // (ten2mx >> 256) = b0af48ec79ace837 2d835a9df0c6d851
+ // (ten2mx >> 256) = b0af48ec79ace837 2d835a9df0c6d851
// 9179270bea59edafdfd50e105da379f9
{{0x19773e737e1c6194ULL, 0x0dfa85a321e18af3ULL,
0x579c487e5a38ad0eULL, 0x8d590723948a535fULL}},
- // (ten2mx >> 256) = 8d590723948a535f 579c487e5a38ad0e
+ // (ten2mx >> 256) = 8d590723948a535f 579c487e5a38ad0e
// dfa85a321e18af319773e737e1c6194
{{0xf58b971f302d68eeULL, 0x165da29e9c9c1184ULL,
0x25c6da63c38de1b0ULL, 0xe2280b6c20dd5232ULL}},
- // (ten2mx >> 256) = e2280b6c20dd5232 25c6da63c38de1b0
+ // (ten2mx >> 256) = e2280b6c20dd5232 25c6da63c38de1b0
// 165da29e9c9c1184f58b971f302d68ee
{{0xc46fac18f3578724ULL, 0x4517b54bb07cdad0ULL,
0x1e38aeb6360b1af3ULL, 0xb4ecd5f01a4aa828ULL}},
- // (ten2mx >> 256) = b4ecd5f01a4aa828 1e38aeb6360b1af3
+ // (ten2mx >> 256) = b4ecd5f01a4aa828 1e38aeb6360b1af3
// 4517b54bb07cdad0c46fac18f3578724
{{0x36bfbce0c2ac6c1dULL, 0x9dac910959fd7bdaULL,
0xb1c6f22b5e6f48c2ULL, 0x90bd77f3483bb9b9ULL}},
- // (ten2mx >> 256) = 90bd77f3483bb9b9 b1c6f22b5e6f48c2
+ // (ten2mx >> 256) = 90bd77f3483bb9b9 b1c6f22b5e6f48c2
// 9dac910959fd7bda36bfbce0c2ac6c1d
{{0x2465fb01377a4695ULL, 0x2f7a81a88ffbf95dULL,
0xb60b1d1230b20e04ULL, 0xe7958cb87392c2c2ULL}}
- // (ten2mx >> 256) = e7958cb87392c2c2 b60b1d1230b20e04
+ // (ten2mx >> 256) = e7958cb87392c2c2 b60b1d1230b20e04
// 2f7a81a88ffbf95d2465fb01377a4695
};
diff --git a/libgcc/config/libbid/bid128_2_str_tables.c b/libgcc/config/libbid/bid128_2_str_tables.c
index a8b217dd088..8ac4cf37cff 100644
--- a/libgcc/config/libbid/bid128_2_str_tables.c
+++ b/libgcc/config/libbid/bid128_2_str_tables.c
@@ -135,7 +135,7 @@ const char midi_tbl[1000][3] = {
};
const UINT64 mod10_18_tbl[9][128] = {
- // 2^59 = 576460752303423488, A and B breakdown, where data = A*10^18 + B
+ // 2^59 = 576460752303423488, A and B breakdown, where data = A*10^18 + B
{
0LL, 0LL, 0LL, 576460752303423488LL,
diff --git a/libgcc/config/libbid/bid128_add.c b/libgcc/config/libbid/bid128_add.c
index f4061d34cf2..3621dd7282b 100644
--- a/libgcc/config/libbid/bid128_add.c
+++ b/libgcc/config/libbid/bid128_add.c
@@ -573,15 +573,15 @@ bid128_add (UINT128 x, UINT128 y
}
// unpack the arguments
- // unpack x
+ // unpack x
C1_hi = x.w[1] & MASK_COEFF;
C1_lo = x.w[0];
// test for non-canonical values:
- // - values whose encoding begins with x00, x01, or x10 and whose
+ // - values whose encoding begins with x00, x01, or x10 and whose
// coefficient is larger than 10^34 -1, or
- // - values whose encoding begins with x1100, x1101, x1110 (if NaNs
- // and infinitis were eliminated already this test is reduced to
- // checking for x10x)
+ // - values whose encoding begins with x1100, x1101, x1110 (if NaNs
+ // and infinitis were eliminated already this test is reduced to
+ // checking for x10x)
// x is not infinity; check for non-canonical values - treated as zero
if ((x.w[1] & 0x6000000000000000ull) == 0x6000000000000000ull) {
@@ -602,21 +602,21 @@ bid128_add (UINT128 x, UINT128 y
}
}
- // unpack y
+ // unpack y
C2_hi = y.w[1] & MASK_COEFF;
C2_lo = y.w[0];
- // y is not infinity; check for non-canonical values - treated as zero
+ // y is not infinity; check for non-canonical values - treated as zero
if ((y.w[1] & 0x6000000000000000ull) == 0x6000000000000000ull) {
- // G0_G1=11; non-canonical
+ // G0_G1=11; non-canonical
y_exp = (y.w[1] << 2) & MASK_EXP; // biased and shifted left 49 bits
C2_hi = 0; // significand high
- C2_lo = 0; // significand low
- } else { // G0_G1 != 11
+ C2_lo = 0; // significand low
+ } else { // G0_G1 != 11
y_exp = y.w[1] & MASK_EXP; // biased and shifted left 49 bits
if (C2_hi > 0x0001ed09bead87c0ull ||
(C2_hi == 0x0001ed09bead87c0ull
&& C2_lo > 0x378d8e63ffffffffull)) {
- // y is non-canonical if coefficient is larger than 10^34 -1
+ // y is non-canonical if coefficient is larger than 10^34 -1
C2_hi = 0;
C2_lo = 0;
} else { // canonical
@@ -651,7 +651,7 @@ bid128_add (UINT128 x, UINT128 y
if (C2_hi == 0) { // y_bits is the nr. of bits in C2_lo
if (C2_lo >= 0x0020000000000000ull) { // y >= 2^53
- // split the 64-bit value in two 32-bit halves to avoid
+ // split the 64-bit value in two 32-bit halves to avoid
// rounding errors
if (C2_lo >= 0x0000000100000000ull) { // y >= 2^32
tmp2.d = (double) (C2_lo >> 32); // exact conversion
@@ -690,7 +690,7 @@ bid128_add (UINT128 x, UINT128 y
if (scale == 0) {
res.w[1] = y.w[1];
res.w[0] = y.w[0];
- } else if (q2 <= 19) { // y fits in 64 bits
+ } else if (q2 <= 19) { // y fits in 64 bits
if (scale <= 19) { // 10^scale fits in 64 bits
// 64 x 64 C2_lo * ten2k64[scale]
__mul_64x64_to_128MACH (res, C2_lo, ten2k64[scale]);
@@ -698,7 +698,7 @@ bid128_add (UINT128 x, UINT128 y
// 64 x 128 C2_lo * ten2k128[scale - 20]
__mul_128x64_to_128 (res, C2_lo, ten2k128[scale - 20]);
}
- } else { // y fits in 128 bits, but 10^scale must fit in 64 bits
+ } else { // y fits in 128 bits, but 10^scale must fit in 64 bits
// 64 x 128 ten2k64[scale] * C2
C2.w[1] = C2_hi;
C2.w[0] = C2_lo;
@@ -724,7 +724,7 @@ bid128_add (UINT128 x, UINT128 y
// determine first the nr. of bits in x
if (C1_hi == 0) { // x_bits is the nr. of bits in C1_lo
if (C1_lo >= 0x0020000000000000ull) { // x >= 2^53
- // split the 64-bit value in two 32-bit halves to avoid
+ // split the 64-bit value in two 32-bit halves to avoid
// rounding errors
if (C1_lo >= 0x0000000100000000ull) { // x >= 2^32
tmp1.d = (double) (C1_lo >> 32); // exact conversion
@@ -755,7 +755,7 @@ bid128_add (UINT128 x, UINT128 y
q1++;
}
// return (C1 * 10^scale) * 10^(x_exp - scale)
- // where scale = min (P34-q1, x_exp-y_exp)
+ // where scale = min (P34-q1, x_exp-y_exp)
scale = P34 - q1;
ind = (x_exp - y_exp) >> 49;
if (ind < scale)
@@ -763,9 +763,9 @@ bid128_add (UINT128 x, UINT128 y
if (scale == 0) {
res.w[1] = x.w[1];
res.w[0] = x.w[0];
- } else if (q1 <= 19) { // x fits in 64 bits
+ } else if (q1 <= 19) { // x fits in 64 bits
if (scale <= 19) { // 10^scale fits in 64 bits
- // 64 x 64 C1_lo * ten2k64[scale]
+ // 64 x 64 C1_lo * ten2k64[scale]
__mul_64x64_to_128MACH (res, C1_lo, ten2k64[scale]);
} else { // 10^scale fits in 128 bits
// 64 x 128 C1_lo * ten2k128[scale - 20]
@@ -786,7 +786,7 @@ bid128_add (UINT128 x, UINT128 y
} else { // x and y are not canonical, not special, and are not zero
// note that the result may still be zero, and then it has to have the
// preferred exponent
- if (x_exp < y_exp) { // if exp_x < exp_y then swap x and y
+ if (x_exp < y_exp) { // if exp_x < exp_y then swap x and y
tmp_sign = x_sign;
tmp_exp = x_exp;
tmp_signif_hi = C1_hi;
@@ -879,7 +879,7 @@ bid128_add (UINT128 x, UINT128 y
// possibly scaled up by 10^(P34-q1)
// an overflow cannot occur in this case (rounding to nearest)
if (q1 < P34) { // scale C1 up by 10^(P34-q1)
- // Note: because delta >= P34+1 it is certain that
+ // Note: because delta >= P34+1 it is certain that
// x_exp - ((UINT64)scale << 49) will stay above e_min
scale = P34 - q1;
if (q1 <= 19) { // C1 fits in 64 bits
@@ -903,10 +903,10 @@ bid128_add (UINT128 x, UINT128 y
C1_hi = C1.w[1];
C1_lo = C1.w[0];
}
- // some special cases arise: if delta = P34 + 1 and C1 = 10^(P34-1)
- // (after scaling) and x_sign != y_sign and C2 > 5*10^(q2-1) =>
+ // some special cases arise: if delta = P34 + 1 and C1 = 10^(P34-1)
+ // (after scaling) and x_sign != y_sign and C2 > 5*10^(q2-1) =>
// subtract 1 ulp
- // Note: do this only for rounding to nearest; for other rounding
+ // Note: do this only for rounding to nearest; for other rounding
// modes the correction will be applied next
if ((rnd_mode == ROUNDING_TO_NEAREST
|| rnd_mode == ROUNDING_TIES_AWAY) && delta == (P34 + 1)
@@ -970,7 +970,7 @@ bid128_add (UINT128 x, UINT128 y
C1_lo = C1_lo - 1;
if (C1_lo == 0xffffffffffffffffull)
C1_hi = C1_hi - 1;
- // if the coefficient is 10^33 - 1 then make it 10^34 - 1 and
+ // if the coefficient is 10^33 - 1 then make it 10^34 - 1 and
// decrease the exponent by 1 (because delta >= P34 + 1 the
// exponent will not become less than e_min)
// 10^33 - 1 = 0x0000314dc6448d9338c15b09ffffffff
@@ -991,7 +991,7 @@ bid128_add (UINT128 x, UINT128 y
// assemble the result
res.w[1] = x_sign | x_exp | C1_hi;
res.w[0] = C1_lo;
- } else { // delta = P34
+ } else { // delta = P34
// in most cases, the smaller operand may be < or = or > 1/2 ulp of the
// larger operand
// however, the case C1 = 10^(q1-1) and x_sign != y_sign is special due
@@ -1007,7 +1007,7 @@ bid128_add (UINT128 x, UINT128 y
if (q2 <= 19) { // C2 and 5*10^(q2-1) both fit in 64 bits
halfulp64 = midpoint64[q2 - 1]; // 5 * 10^(q2-1)
if (C2_lo < halfulp64) { // n2 < 1/2 ulp (n1)
- // for RN the result is the operand with the larger magnitude,
+ // for RN the result is the operand with the larger magnitude,
// possibly scaled up by 10^(P34-q1)
// an overflow cannot occur in this case (rounding to nearest)
if (q1 < P34) { // scale C1 up by 10^(P34-q1)
@@ -1067,7 +1067,7 @@ bid128_add (UINT128 x, UINT128 y
C1_lo = C1_lo - 1;
if (C1_lo == 0xffffffffffffffffull)
C1_hi = C1_hi - 1;
- // if the coefficient is 10^33-1 then make it 10^34-1 and
+ // if the coefficient is 10^33-1 then make it 10^34-1 and
// decrease the exponent by 1 (because delta >= P34 + 1 the
// exponent will not become less than e_min)
// 10^33 - 1 = 0x0000314dc6448d9338c15b09ffffffff
@@ -1102,17 +1102,17 @@ bid128_add (UINT128 x, UINT128 y
// 1 <= q1 <= 19 => 15 <= scale <= 33
if (scale <= 19) { // 10^scale fits in 64 bits
__mul_64x64_to_128MACH (C1, ten2k64[scale], C1_lo);
- } else { // if 20 <= scale <= 33
+ } else { // if 20 <= scale <= 33
// C1 * 10^scale = (C1 * 10^(scale-19)) * 10^19 where
- // (C1 * 10^(scale-19)) fits in 64 bits
+ // (C1 * 10^(scale-19)) fits in 64 bits
C1_lo = C1_lo * ten2k64[scale - 19];
__mul_64x64_to_128MACH (C1, ten2k64[19], C1_lo);
}
} else { //if 20 <= q1 <= 33=P34-1 then C1 fits only in 128 bits
- // => 1 <= P34 - q1 <= 14 so 10^(P34-q1) fits in 64 bits
+ // => 1 <= P34 - q1 <= 14 so 10^(P34-q1) fits in 64 bits
C1.w[1] = C1_hi;
C1.w[0] = C1_lo;
- // C1 = ten2k64[P34 - q1] * C1
+ // C1 = ten2k64[P34 - q1] * C1
__mul_128x64_to_128 (C1, ten2k64[P34 - q1], C1);
}
x_exp = x_exp - ((UINT64) scale << 49);
@@ -1172,17 +1172,17 @@ bid128_add (UINT128 x, UINT128 y
}
// set the inexact flag
*pfpsf |= INEXACT_EXCEPTION;
- // assemble the result
+ // assemble the result
res.w[1] = x_sign | x_exp | C1_hi;
res.w[0] = C1_lo;
- } else { // if C2_lo > halfulp64 ||
+ } else { // if C2_lo > halfulp64 ||
// (C2_lo == halfulp64 && q1 == P34 && ((C1_lo & 0x1) == 1)), i.e.
// 1/2 ulp(n1) < n2 < 1 ulp(n1) or n2 = 1/2 ulp(n1) and C1 odd
// res = x+1 ulp if n1*n2 > 0 and res = x-1 ulp if n1*n2 < 0
if (q1 < P34) { // then 1 ulp = 10^(e1+q1-P34) < 10^e1
// Note: if (q1 == P34) then 1 ulp = 10^(e1+q1-P34) = 10^e1
- // because q1 < P34 we must first replace C1 by
- // C1 * 10^(P34-q1), and must decrease the exponent by
+ // because q1 < P34 we must first replace C1 by
+ // C1 * 10^(P34-q1), and must decrease the exponent by
// (P34-q1) (it will still be at least e_min)
scale = P34 - q1;
if (q1 <= 19) { // C1 fits in 64 bits
@@ -1208,7 +1208,7 @@ bid128_add (UINT128 x, UINT128 y
// check for rounding overflow
if (C1_hi == 0x0001ed09bead87c0ull
&& C1_lo == 0x378d8e6400000000ull) {
- // C1 = 10^34 => rounding overflow
+ // C1 = 10^34 => rounding overflow
C1_hi = 0x0000314dc6448d93ull;
C1_lo = 0x38c15b0a00000000ull; // 10^33
x_exp = x_exp + EXP_P1;
@@ -1269,7 +1269,7 @@ bid128_add (UINT128 x, UINT128 y
res.w[1] = x_sign | x_exp | C1_hi;
res.w[0] = C1_lo;
}
- } else { // if q2 >= 20 then 5*10^(q2-1) and C2 (the latter in
+ } else { // if q2 >= 20 then 5*10^(q2-1) and C2 (the latter in
// most cases) fit only in more than 64 bits
halfulp128 = midpoint128[q2 - 20]; // 5 * 10^(q2-1)
if ((C2_hi < halfulp128.w[1])
@@ -1287,17 +1287,17 @@ bid128_add (UINT128 x, UINT128 y
// 1 <= q1 <= 19 => 15 <= scale <= 33
if (scale <= 19) { // 10^scale fits in 64 bits
__mul_64x64_to_128MACH (C1, ten2k64[scale], C1_lo);
- } else { // if 20 <= scale <= 33
+ } else { // if 20 <= scale <= 33
// C1 * 10^scale = (C1 * 10^(scale-19)) * 10^19 where
- // (C1 * 10^(scale-19)) fits in 64 bits
+ // (C1 * 10^(scale-19)) fits in 64 bits
C1_lo = C1_lo * ten2k64[scale - 19];
__mul_64x64_to_128MACH (C1, ten2k64[19], C1_lo);
}
} else { //if 20 <= q1 <= 33=P34-1 then C1 fits only in 128 bits
- // => 1 <= P34 - q1 <= 14 so 10^(P34-q1) fits in 64 bits
+ // => 1 <= P34 - q1 <= 14 so 10^(P34-q1) fits in 64 bits
C1.w[1] = C1_hi;
C1.w[0] = C1_lo;
- // C1 = ten2k64[P34 - q1] * C1
+ // C1 = ten2k64[P34 - q1] * C1
__mul_128x64_to_128 (C1, ten2k64[P34 - q1], C1);
}
C1_hi = C1.w[1];
@@ -1352,9 +1352,9 @@ bid128_add (UINT128 x, UINT128 y
; // the result is already correct
}
}
- // set the inexact flag
+ // set the inexact flag
*pfpsf |= INEXACT_EXCEPTION;
- // assemble the result
+ // assemble the result
res.w[1] = x_sign | x_exp | C1_hi;
res.w[0] = C1_lo;
} else if ((C2_hi == halfulp128.w[1]
@@ -1532,15 +1532,15 @@ bid128_add (UINT128 x, UINT128 y
// end case where C1 != 10^(q1-1)
} else { // C1 = 10^(q1-1) and x_sign != y_sign
// instead of C' = (C1 * 10^(e1-e2) + C2)rnd,P34
- // calculate C' = C1 * 10^(e1-e2-x1) + (C2 * 10^(-x1))rnd,P34
+ // calculate C' = C1 * 10^(e1-e2-x1) + (C2 * 10^(-x1))rnd,P34
// where x1 = q2 - 1, 0 <= x1 <= P34 - 1
- // Because C1 = 10^(q1-1) and x_sign != y_sign, C' will have P34
+ // Because C1 = 10^(q1-1) and x_sign != y_sign, C' will have P34
// digits and n = C' * 10^(e2+x1)
// If the result has P34+1 digits, redo the steps above with x1+1
- // If the result has P34-1 digits or less, redo the steps above with
+ // If the result has P34-1 digits or less, redo the steps above with
// x1-1 but only if initially x1 >= 1
// NOTE: these two steps can be improved, e.g we could guess if
- // P34+1 or P34-1 digits will be obtained by adding/subtracting
+ // P34+1 or P34-1 digits will be obtained by adding/subtracting
// just the top 64 bits of the two operands
// The result cannot be zero, and it cannot overflow
x1 = q2 - 1; // 0 <= x1 <= P34-1
@@ -1835,14 +1835,14 @@ bid128_add (UINT128 x, UINT128 y
// The coefficient of the result is C1 * 10^(e1-e2) + C2 and the
// exponent is e2; either C1 or 10^(e1-e2) may not fit is 64 bits,
// but their product fits with certainty in 128 bits (actually in 113)
- scale = delta - q1 + q2; // scale = (int)(e1 >> 49) - (int)(e2 >> 49)
+ scale = delta - q1 + q2; // scale = (int)(e1 >> 49) - (int)(e2 >> 49)
if (scale >= 20) { // 10^(e1-e2) does not fit in 64 bits, but C1 does
__mul_128x64_to_128 (C1, C1_lo, ten2k128[scale - 20]);
C1_hi = C1.w[1];
C1_lo = C1.w[0];
} else if (scale >= 1) {
- // if 1 <= scale <= 19 then 10^(e1-e2) fits in 64 bits
+ // if 1 <= scale <= 19 then 10^(e1-e2) fits in 64 bits
if (q1 <= 19) { // C1 fits in 64 bits
__mul_64x64_to_128MACH (C1, C1_lo, ten2k64[scale]);
} else { // q1 >= 20
@@ -1853,7 +1853,7 @@ bid128_add (UINT128 x, UINT128 y
C1_hi = C1.w[1];
C1_lo = C1.w[0];
} else { // if (scale == 0) C1 is unchanged
- C1.w[0] = C1_lo; // C1.w[1] = C1_hi;
+ C1.w[0] = C1_lo; // C1.w[1] = C1_hi;
}
// now add C2
if (x_sign == y_sign) {
@@ -1894,7 +1894,7 @@ bid128_add (UINT128 x, UINT128 y
res.w[1] = x_sign | y_exp | C1_hi;
res.w[0] = C1_lo;
} else if (delta == P34 - q2) {
- // calculate C' directly; the result may be inexact if it requires
+ // calculate C' directly; the result may be inexact if it requires
// P34+1 decimal digits; in this case the 'cutoff' point for addition
// is at the position of the lsb of C2, so 0 <= e1-e2 <= P34-1
// The coefficient of the result is C1 * 10^(e1-e2) + C2 and the
@@ -1927,8 +1927,8 @@ bid128_add (UINT128 x, UINT128 y
C1_hi++;
// test for overflow, possible only when C1 >= 10^34
if (C1_hi > 0x0001ed09bead87c0ull || (C1_hi == 0x0001ed09bead87c0ull && C1_lo >= 0x378d8e6400000000ull)) { // C1 >= 10^34
- // in this case q = P34 + 1 and x = q - P34 = 1, so multiply
- // C'' = C'+ 5 = C1 + 5 by k1 ~ 10^(-1) calculated for P34 + 1
+ // in this case q = P34 + 1 and x = q - P34 = 1, so multiply
+ // C'' = C'+ 5 = C1 + 5 by k1 ~ 10^(-1) calculated for P34 + 1
// decimal digits
// Calculate C'' = C' + 1/2 * 10^x
if (C1_lo >= 0xfffffffffffffffbull) { // low half add has carry
@@ -1946,10 +1946,10 @@ bid128_add (UINT128 x, UINT128 y
ten2m1.w[0] = 0x9999999999999a00ull;
__mul_128x128_to_256 (P256, C1, ten2m1); // P256 = C*, f*
// C* is actually floor(C*) in this case
- // the top Ex = 128 bits of 10^(-1) are
+ // the top Ex = 128 bits of 10^(-1) are
// T* = 0x00199999999999999999999999999999
// if (0 < f* < 10^(-x)) then
- // if floor(C*) is even then C = floor(C*) - logical right
+ // if floor(C*) is even then C = floor(C*) - logical right
// shift; C has p decimal digits, correct by Prop. 1)
// else if floor(C*) is odd C = floor(C*) - 1 (logical right
// shift; C has p decimal digits, correct by Pr. 1)
@@ -1989,9 +1989,9 @@ bid128_add (UINT128 x, UINT128 y
BID_SWAP128 (res);
BID_RETURN (res);
}
- // if (0 < f* - 1/2 < 10^(-x)) then
- // the result of the addition is exact
- // else
+ // if (0 < f* - 1/2 < 10^(-x)) then
+ // the result of the addition is exact
+ // else
// the result of the addition is inexact
if (P256.w[1] > 0x8000000000000000ull || (P256.w[1] == 0x8000000000000000ull && P256.w[0] > 0x0ull)) { // the result may be exact
tmp64 = P256.w[1] - 0x8000000000000000ull; // f* - 1/2
@@ -2015,7 +2015,7 @@ bid128_add (UINT128 x, UINT128 y
is_inexact_gt_midpoint = is_inexact
&& !(P256.w[1] & 0x8000000000000000ull);
}
- // general correction from RN to RA, RM, RP, RZ;
+ // general correction from RN to RA, RM, RP, RZ;
// result uses y_exp
if (rnd_mode != ROUNDING_TO_NEAREST) {
if ((!x_sign
@@ -2125,11 +2125,11 @@ bid128_add (UINT128 x, UINT128 y
res.w[0] = C1_lo;
} else { // if (delta >= P34 + 1 - q2)
// instead of C' = (C1 * 10^(e1-e2) + C2)rnd,P34
- // calculate C' = C1 * 10^(e1-e2-x1) + (C2 * 10^(-x1))rnd,P34
+ // calculate C' = C1 * 10^(e1-e2-x1) + (C2 * 10^(-x1))rnd,P34
// where x1 = q1 + e1 - e2 - P34, 1 <= x1 <= P34 - 1
// In most cases C' will have P34 digits, and n = C' * 10^(e2+x1)
// If the result has P34+1 digits, redo the steps above with x1+1
- // If the result has P34-1 digits or less, redo the steps above with
+ // If the result has P34-1 digits or less, redo the steps above with
// x1-1 but only if initially x1 >= 1
// NOTE: these two steps can be improved, e.g we could guess if
// P34+1 or P34-1 digits will be obtained by adding/subtracting just
@@ -2160,7 +2160,7 @@ bid128_add (UINT128 x, UINT128 y
tmp64 = C1.w[0]; // C1.w[1], C1.w[0] contains C1 * 10^(e1-e2-x1)
// now round C2 to q2-x1 decimal digits, where 1<=x1<=q2-1<=P34-1
- // (but if we got here a second time after x1 = x1 - 1, then
+ // (but if we got here a second time after x1 = x1 - 1, then
// x1 >= 0; note that for x1 = 0 C2 is unchanged)
// C2' = C2 + 1/2 * 10^x1 = C2 + 5 * 10^(x1-1)
ind = x1 - 1; // 0 <= ind <= q2-2<=P34-2=32; but note that if x1 = 0
@@ -2224,8 +2224,8 @@ bid128_add (UINT128 x, UINT128 y
is_midpoint_lt_even = 0;
is_midpoint_gt_even = 0;
}
- // determine inexactness of the rounding of C2* (this may be
- // followed by a second rounding only if we get P34+1
+ // determine inexactness of the rounding of C2* (this may be
+ // followed by a second rounding only if we get P34+1
// decimal digits)
// if (0 < f2* - 1/2 < 10^(-x1)) then
// the result is exact
@@ -2383,7 +2383,7 @@ bid128_add (UINT128 x, UINT128 y
if (C1.w[0] < tmp64)
C1.w[1]++; // carry
// if the sum has P34+1 digits, i.e. C1>=10^34 redo the calculation
- // with x1=x1+1
+ // with x1=x1+1
if (C1.w[1] > 0x0001ed09bead87c0ull || (C1.w[1] == 0x0001ed09bead87c0ull && C1.w[0] >= 0x378d8e6400000000ull)) { // C1 >= 10^34
// chop off one more digit from the sum, but make sure there is
// no double-rounding error (see table - double rounding logic)
@@ -2451,7 +2451,7 @@ bid128_add (UINT128 x, UINT128 y
}
}
tmp_inexact = 1; // in all cases
- } else { // the result is not a midpoint
+ } else { // the result is not a midpoint
// determine inexactness of the rounding of C1 (the sum C1+C2*)
// if (0 < f1* - 1/2 < 10^(-1)) then
// the result is exact
@@ -2537,9 +2537,9 @@ bid128_add (UINT128 x, UINT128 y
}
// if the difference has P34-1 digits or less, i.e. C1 < 10^33 then
// redo the calculation with x1=x1-1;
- // redo the calculation also if C1 = 10^33 and
+ // redo the calculation also if C1 = 10^33 and
// (is_inexact_gt_midpoint or is_midpoint_lt_even);
- // (the last part should have really been
+ // (the last part should have really been
// (is_inexact_lt_midpoint or is_midpoint_gt_even) from
// the rounding of C2, but the position flags have been reversed)
// 10^33 = 0x0000314dc6448d93 0x38c15b0a00000000
@@ -2557,7 +2557,7 @@ bid128_add (UINT128 x, UINT128 y
}
}
// if the coefficient of the result is 10^34 it means that this
- // must be the second pass, and we are done
+ // must be the second pass, and we are done
if (C1.w[1] == 0x0001ed09bead87c0ull && C1.w[0] == 0x378d8e6400000000ull) { // if C1 = 10^34
C1.w[1] = 0x0000314dc6448d93ull; // C1 = 10^33
C1.w[0] = 0x38c15b0a00000000ull;
@@ -2566,8 +2566,8 @@ bid128_add (UINT128 x, UINT128 y
x_sign = tmp_sign;
if (x1 >= 1)
y_exp = y_exp + ((UINT64) x1 << 49);
- // x1 = -1 is possible at the end of a second pass when the
- // first pass started with x1 = 1
+ // x1 = -1 is possible at the end of a second pass when the
+ // first pass started with x1 = 1
}
C1_hi = C1.w[1];
C1_lo = C1.w[0];
@@ -2650,12 +2650,12 @@ bid128_add (UINT128 x, UINT128 y
*pfpsf |= INEXACT_EXCEPTION;
}
} else { // if (-P34 + 1 <= delta <= -1) <=> 1 <= -delta <= P34 - 1
- // NOTE: the following, up to "} else { // if x_sign != y_sign
+ // NOTE: the following, up to "} else { // if x_sign != y_sign
// the result is exact" is identical to "else if (delta == P34 - q2) {"
// from above; also, the code is not symmetric: a+b and b+a may take
- // different paths (need to unify eventually!)
- // calculate C' = C2 + C1 * 10^(e1-e2) directly; the result may be
- // inexact if it requires P34 + 1 decimal digits; in either case the
+ // different paths (need to unify eventually!)
+ // calculate C' = C2 + C1 * 10^(e1-e2) directly; the result may be
+ // inexact if it requires P34 + 1 decimal digits; in either case the
// 'cutoff' point for addition is at the position of the lsb of C2
// The coefficient of the result is C1 * 10^(e1-e2) + C2 and the
// exponent is e2; either C1 or 10^(e1-e2) may not fit is 64 bits,
@@ -2692,8 +2692,8 @@ bid128_add (UINT128 x, UINT128 y
C1_hi++;
// test for overflow, possible only when C1 >= 10^34
if (C1_hi > 0x0001ed09bead87c0ull || (C1_hi == 0x0001ed09bead87c0ull && C1_lo >= 0x378d8e6400000000ull)) { // C1 >= 10^34
- // in this case q = P34 + 1 and x = q - P34 = 1, so multiply
- // C'' = C'+ 5 = C1 + 5 by k1 ~ 10^(-1) calculated for P34 + 1
+ // in this case q = P34 + 1 and x = q - P34 = 1, so multiply
+ // C'' = C'+ 5 = C1 + 5 by k1 ~ 10^(-1) calculated for P34 + 1
// decimal digits
// Calculate C'' = C' + 1/2 * 10^x
if (C1_lo >= 0xfffffffffffffffbull) { // low half add has carry
@@ -2711,10 +2711,10 @@ bid128_add (UINT128 x, UINT128 y
ten2m1.w[0] = 0x9999999999999a00ull;
__mul_128x128_to_256 (P256, C1, ten2m1); // P256 = C*, f*
// C* is actually floor(C*) in this case
- // the top Ex = 128 bits of 10^(-1) are
+ // the top Ex = 128 bits of 10^(-1) are
// T* = 0x00199999999999999999999999999999
// if (0 < f* < 10^(-x)) then
- // if floor(C*) is even then C = floor(C*) - logical right
+ // if floor(C*) is even then C = floor(C*) - logical right
// shift; C has p decimal digits, correct by Prop. 1)
// else if floor(C*) is odd C = floor(C*) - 1 (logical right
// shift; C has p decimal digits, correct by Pr. 1)
@@ -2754,9 +2754,9 @@ bid128_add (UINT128 x, UINT128 y
BID_SWAP128 (res);
BID_RETURN (res);
}
- // if (0 < f* - 1/2 < 10^(-x)) then
- // the result of the addition is exact
- // else
+ // if (0 < f* - 1/2 < 10^(-x)) then
+ // the result of the addition is exact
+ // else
// the result of the addition is inexact
if (P256.w[1] > 0x8000000000000000ull || (P256.w[1] == 0x8000000000000000ull && P256.w[0] > 0x0ull)) { // the result may be exact
tmp64 = P256.w[1] - 0x8000000000000000ull; // f* - 1/2
diff --git a/libgcc/config/libbid/bid128_compare.c b/libgcc/config/libbid/bid128_compare.c
index ce3f7af8447..12904a3d18d 100644
--- a/libgcc/config/libbid/bid128_compare.c
+++ b/libgcc/config/libbid/bid128_compare.c
@@ -33,7 +33,7 @@ BID128_FUNCTION_ARG2_NORND_CUSTOMRESTYPE (int, bid128_quiet_equal, x, y)
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
+ // if either number is NAN, the comparison is unordered,
// rather than equal : return 0
if (((x.w[1] & MASK_NAN) == MASK_NAN)
|| ((y.w[1] & MASK_NAN) == MASK_NAN)) {
@@ -72,9 +72,9 @@ sig_x.w[0] = x.w[0];
exp_x = (x.w[1] >> 49) & 0x000000000003fffull;
// CHECK IF X IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_x.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_x.w[1] == 0x0001ed09bead87c0ull)
@@ -90,9 +90,9 @@ sig_y.w[1] = y.w[1] & 0x0001ffffffffffffull;
sig_y.w[0] = y.w[0];
// CHECK IF Y IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_y.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_y.w[1] == 0x0001ed09bead87c0ull)
@@ -104,7 +104,7 @@ else
// some properties:
// (+ZERO == -ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
// ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || ((sig_x.w[1] == 0) && (sig_x.w[0] == 0))) {
@@ -175,7 +175,7 @@ BID128_FUNCTION_ARG2_NORND_CUSTOMRESTYPE (int, bid128_quiet_greater, x,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered, rather than
+ // if either number is NAN, the comparison is unordered, rather than
// equal : return 0
if (((x.w[1] & MASK_NAN) == MASK_NAN)
|| ((y.w[1] & MASK_NAN) == MASK_NAN)) {
@@ -201,7 +201,7 @@ if ((x.w[1] & MASK_INF) == MASK_INF) {
res = 0;
BID_RETURN (res);
}
- // x is pos infinity, it is greater, unless y is positive infinity =>
+ // x is pos infinity, it is greater, unless y is positive infinity =>
// return y!=pos_infinity
else {
res = (((y.w[1] & MASK_INF) != MASK_INF)
@@ -222,9 +222,9 @@ sig_x.w[0] = x.w[0];
exp_x = (x.w[1] >> 49) & 0x000000000003fffull;
// CHECK IF X IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_x.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_x.w[1] == 0x0001ed09bead87c0ull)
@@ -240,9 +240,9 @@ sig_y.w[1] = y.w[1] & 0x0001ffffffffffffull;
sig_y.w[0] = y.w[0];
// CHECK IF Y IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_y.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_y.w[1] == 0x0001ed09bead87c0ull)
@@ -255,7 +255,7 @@ else
// ZERO (CASE4)
// some properties:
// (+ZERO == -ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
// ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || ((sig_x.w[1] == 0) && (sig_x.w[0] == 0))) {
@@ -286,7 +286,7 @@ if (((x.w[1] ^ y.w[1]) & MASK_SIGN) == MASK_SIGN) {
BID_RETURN (res);
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if exponents are the same, then we have a simple comparison
+ // if exponents are the same, then we have a simple comparison
// of the significands
if (exp_y == exp_x) {
res = (((sig_x.w[1] > sig_y.w[1])
@@ -295,7 +295,7 @@ if (exp_y == exp_x) {
MASK_SIGN));
BID_RETURN (res);
}
- // if both components are either bigger or smaller,
+ // if both components are either bigger or smaller,
// it is clear what needs to be done
if ((sig_x.w[1] > sig_y.w[1]
|| (sig_x.w[1] == sig_y.w[1] && sig_x.w[0] > sig_y.w[0]))
@@ -328,7 +328,7 @@ if (diff > 0) { // to simplify the loop below,
if (diff > 19) { //128 by 128 bit multiply -> 256 bits
__mul_128x128_to_256 (sig_n_prime256, sig_x, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_y.w[1]
@@ -348,7 +348,7 @@ if (diff > 0) { // to simplify the loop below,
//else { //128 by 64 bit multiply -> 192 bits
__mul_64x128_to_192 (sig_n_prime192, ten2k64[diff], sig_x);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_y.w[1]
&& (sig_n_prime192.w[0] == sig_y.w[0])) {
@@ -377,7 +377,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
// adjust the y significand upwards
__mul_128x128_to_256 (sig_n_prime256, sig_y, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_x.w[1]
@@ -398,7 +398,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
// adjust the y significand upwards
__mul_64x128_to_192 (sig_n_prime192, ten2k64[diff], sig_y);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_x.w[1]
&& (sig_n_prime192.w[0] == sig_x.w[0])) {
@@ -428,7 +428,7 @@ BID128_FUNCTION_ARG2_NORND_CUSTOMRESTYPE (int,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
+ // if either number is NAN, the comparison is unordered,
// rather than equal : return 1
if (((x.w[1] & MASK_NAN) == MASK_NAN)
|| ((y.w[1] & MASK_NAN) == MASK_NAN)) {
@@ -476,9 +476,9 @@ sig_x.w[0] = x.w[0];
exp_x = (x.w[1] >> 49) & 0x000000000003fffull;
// CHECK IF X IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_x.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_x.w[1] == 0x0001ed09bead87c0ull)
@@ -494,9 +494,9 @@ sig_y.w[1] = y.w[1] & 0x0001ffffffffffffull;
sig_y.w[0] = y.w[0];
// CHECK IF Y IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_y.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_y.w[1] == 0x0001ed09bead87c0ull)
@@ -509,7 +509,7 @@ else
// ZERO (CASE4)
// some properties:
// (+ZERO == -ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
// ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || ((sig_x.w[1] == 0) && (sig_x.w[0] == 0))) {
@@ -540,7 +540,7 @@ if (((x.w[1] ^ y.w[1]) & MASK_SIGN) == MASK_SIGN) {
BID_RETURN (res);
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if exponents are the same, then we have a simple comparison of the
+ // if exponents are the same, then we have a simple comparison of the
// significands
if (exp_y == exp_x) {
res = (((sig_x.w[1] > sig_y.w[1])
@@ -549,7 +549,7 @@ if (exp_y == exp_x) {
MASK_SIGN));
BID_RETURN (res);
}
- // if both components are either bigger or smaller,
+ // if both components are either bigger or smaller,
// it is clear what needs to be done
if (sig_x.w[1] >= sig_y.w[1] && sig_x.w[0] >= sig_y.w[0]
&& exp_x > exp_y) {
@@ -577,7 +577,7 @@ if (diff > 0) { // to simplify the loop below,
__mul_128x128_to_256 (sig_n_prime256, sig_x, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_y.w[1]
@@ -597,7 +597,7 @@ if (diff > 0) { // to simplify the loop below,
//else { //128 by 64 bit multiply -> 192 bits
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_x);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_y.w[1]
&& (sig_n_prime192.w[0] == sig_y.w[0])) {
@@ -627,7 +627,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
__mul_128x128_to_256 (sig_n_prime256, sig_y, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_x.w[1]
@@ -649,7 +649,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
// adjust the y significand upwards
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_y);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_x.w[1]
&& (sig_n_prime192.w[0] == sig_x.w[0])) {
@@ -679,8 +679,8 @@ BID128_FUNCTION_ARG2_NORND_CUSTOMRESTYPE (int,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
- // rather than
+ // if either number is NAN, the comparison is unordered,
+ // rather than
// equal : return 1
if (((x.w[1] & MASK_NAN) == MASK_NAN)
|| ((y.w[1] & MASK_NAN) == MASK_NAN)) {
@@ -706,7 +706,7 @@ if ((x.w[1] & MASK_INF) == MASK_INF) {
res = 0;
BID_RETURN (res);
}
- // x is pos infinity, it is greater, unless y is positive infinity =>
+ // x is pos infinity, it is greater, unless y is positive infinity =>
// return y!=pos_infinity
else {
res = (((y.w[1] & MASK_INF) != MASK_INF)
@@ -727,9 +727,9 @@ sig_x.w[0] = x.w[0];
exp_x = (x.w[1] >> 49) & 0x000000000003fffull;
// CHECK IF X IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_x.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_x.w[1] == 0x0001ed09bead87c0ull)
@@ -745,9 +745,9 @@ sig_y.w[1] = y.w[1] & 0x0001ffffffffffffull;
sig_y.w[0] = y.w[0];
// CHECK IF Y IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_y.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_y.w[1] == 0x0001ed09bead87c0ull)
@@ -760,7 +760,7 @@ else
// ZERO (CASE4)
// some properties:
// (+ZERO == -ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
// ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || ((sig_x.w[1] == 0) && (sig_x.w[0] == 0))) {
@@ -791,7 +791,7 @@ if (((x.w[1] ^ y.w[1]) & MASK_SIGN) == MASK_SIGN) {
BID_RETURN (res);
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if exponents are the same, then we have a simple comparison of the
+ // if exponents are the same, then we have a simple comparison of the
// significands
if (exp_y == exp_x) {
res = (((sig_x.w[1] > sig_y.w[1])
@@ -800,7 +800,7 @@ if (exp_y == exp_x) {
MASK_SIGN));
BID_RETURN (res);
}
- // if both components are either bigger or smaller,
+ // if both components are either bigger or smaller,
// it is clear what needs to be done
if (sig_x.w[1] >= sig_y.w[1] && sig_x.w[0] >= sig_y.w[0]
&& exp_x > exp_y) {
@@ -828,7 +828,7 @@ if (diff > 0) { // to simplify the loop below,
__mul_128x128_to_256 (sig_n_prime256, sig_x, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_y.w[1]
@@ -848,7 +848,7 @@ if (diff > 0) { // to simplify the loop below,
//else { //128 by 64 bit multiply -> 192 bits
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_x);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_y.w[1]
&& (sig_n_prime192.w[0] == sig_y.w[0])) {
@@ -878,7 +878,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
__mul_128x128_to_256 (sig_n_prime256, sig_y, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_x.w[1]
@@ -900,7 +900,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
// adjust the y significand upwards
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_y);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_x.w[1]
&& (sig_n_prime192.w[0] == sig_x.w[0])) {
@@ -928,7 +928,7 @@ BID128_FUNCTION_ARG2_NORND_CUSTOMRESTYPE (int, bid128_quiet_less, x, y)
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
+ // if either number is NAN, the comparison is unordered,
// rather than equal : return 0
if (((x.w[1] & MASK_NAN) == MASK_NAN)
|| ((y.w[1] & MASK_NAN) == MASK_NAN)) {
@@ -976,9 +976,9 @@ sig_x.w[0] = x.w[0];
exp_x = (x.w[1] >> 49) & 0x000000000003fffull;
// CHECK IF X IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_x.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_x.w[1] == 0x0001ed09bead87c0ull)
@@ -994,9 +994,9 @@ sig_y.w[1] = y.w[1] & 0x0001ffffffffffffull;
sig_y.w[0] = y.w[0];
// CHECK IF Y IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_y.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_y.w[1] == 0x0001ed09bead87c0ull)
@@ -1009,7 +1009,7 @@ else
// ZERO (CASE4)
// some properties:
// (+ZERO == -ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
// ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || ((sig_x.w[1] == 0) && (sig_x.w[0] == 0))) {
@@ -1040,7 +1040,7 @@ if (((x.w[1] ^ y.w[1]) & MASK_SIGN) == MASK_SIGN) {
BID_RETURN (res);
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if exponents are the same, then we have a simple comparison of the
+ // if exponents are the same, then we have a simple comparison of the
// significands
if (exp_y == exp_x) {
res = (((sig_x.w[1] > sig_y.w[1])
@@ -1049,7 +1049,7 @@ if (exp_y == exp_x) {
MASK_SIGN));
BID_RETURN (res);
}
- // if both components are either bigger or smaller,
+ // if both components are either bigger or smaller,
// it is clear what needs to be done
if ((sig_x.w[1] > sig_y.w[1]
|| (sig_x.w[1] == sig_y.w[1] && sig_x.w[0] > sig_y.w[0]))
@@ -1079,7 +1079,7 @@ if (diff > 0) { // to simplify the loop below,
__mul_128x128_to_256 (sig_n_prime256, sig_x, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_y.w[1]
@@ -1099,7 +1099,7 @@ if (diff > 0) { // to simplify the loop below,
//else { //128 by 64 bit multiply -> 192 bits
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_x);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_y.w[1]
&& (sig_n_prime192.w[0] == sig_y.w[0])) {
@@ -1128,7 +1128,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
// adjust the y significand upwards
__mul_128x128_to_256 (sig_n_prime256, sig_y, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_x.w[1]
@@ -1150,7 +1150,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
// adjust the y significand upwards
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_y);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_x.w[1]
&& (sig_n_prime192.w[0] == sig_x.w[0])) {
@@ -1179,7 +1179,7 @@ BID128_FUNCTION_ARG2_NORND_CUSTOMRESTYPE (int, bid128_quiet_less_equal,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
+ // if either number is NAN, the comparison is unordered,
// rather than equal : return 0
if (((x.w[1] & MASK_NAN) == MASK_NAN)
|| ((y.w[1] & MASK_NAN) == MASK_NAN)) {
@@ -1205,7 +1205,7 @@ if ((x.w[1] & MASK_INF) == MASK_INF) {
res = 1;
BID_RETURN (res);
}
- // x is pos infinity, it is greater, unless y is positive infinity =>
+ // x is pos infinity, it is greater, unless y is positive infinity =>
// return y!=pos_infinity
else {
res = (((y.w[1] & MASK_INF) == MASK_INF)
@@ -1226,9 +1226,9 @@ sig_x.w[0] = x.w[0];
exp_x = (x.w[1] >> 49) & 0x000000000003fffull;
// CHECK IF X IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_x.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_x.w[1] == 0x0001ed09bead87c0ull)
@@ -1244,9 +1244,9 @@ sig_y.w[1] = y.w[1] & 0x0001ffffffffffffull;
sig_y.w[0] = y.w[0];
// CHECK IF Y IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_y.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_y.w[1] == 0x0001ed09bead87c0ull)
@@ -1259,7 +1259,7 @@ else
// ZERO (CASE4)
// some properties:
// (+ZERO == -ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
// ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || ((sig_x.w[1] == 0) && (sig_x.w[0] == 0))) {
@@ -1290,7 +1290,7 @@ if (((x.w[1] ^ y.w[1]) & MASK_SIGN) == MASK_SIGN) {
BID_RETURN (res);
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if exponents are the same, then we have a simple comparison of the
+ // if exponents are the same, then we have a simple comparison of the
// significands
if (exp_y == exp_x) {
res = (((sig_x.w[1] > sig_y.w[1]) || (sig_x.w[1] == sig_y.w[1] &&
@@ -1301,7 +1301,7 @@ if (exp_y == exp_x) {
MASK_SIGN));
BID_RETURN (res);
}
- // if both components are either bigger or smaller,
+ // if both components are either bigger or smaller,
// it is clear what needs to be done
if ((sig_x.w[1] > sig_y.w[1]
|| (sig_x.w[1] == sig_y.w[1] && sig_x.w[0] > sig_y.w[0]))
@@ -1331,7 +1331,7 @@ if (diff > 0) { // to simplify the loop below,
__mul_128x128_to_256 (sig_n_prime256, sig_x, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_y.w[1]
@@ -1351,7 +1351,7 @@ if (diff > 0) { // to simplify the loop below,
//else { //128 by 64 bit multiply -> 192 bits
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_x);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_y.w[1]
&& (sig_n_prime192.w[0] == sig_y.w[0])) {
@@ -1381,7 +1381,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
__mul_128x128_to_256 (sig_n_prime256, sig_y, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_x.w[1]
@@ -1403,7 +1403,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
// adjust the y significand upwards
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_y);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_x.w[1]
&& (sig_n_prime192.w[0] == sig_x.w[0])) {
@@ -1480,9 +1480,9 @@ sig_x.w[0] = x.w[0];
exp_x = (x.w[1] >> 49) & 0x000000000003fffull;
// CHECK IF X IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_x.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_x.w[1] == 0x0001ed09bead87c0ull)
@@ -1498,9 +1498,9 @@ sig_y.w[1] = y.w[1] & 0x0001ffffffffffffull;
sig_y.w[0] = y.w[0];
// CHECK IF Y IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_y.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_y.w[1] == 0x0001ed09bead87c0ull)
@@ -1513,7 +1513,7 @@ else
// ZERO (CASE4)
// some properties:
// (+ZERO == -ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
// ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || ((sig_x.w[1] == 0) && (sig_x.w[0] == 0))) {
@@ -1544,7 +1544,7 @@ if (((x.w[1] ^ y.w[1]) & MASK_SIGN) == MASK_SIGN) {
BID_RETURN (res);
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if exponents are the same, then we have a simple comparison
+ // if exponents are the same, then we have a simple comparison
// of the significands
if (exp_y == exp_x) {
res = (((sig_x.w[1] > sig_y.w[1])
@@ -1553,7 +1553,7 @@ if (exp_y == exp_x) {
MASK_SIGN));
BID_RETURN (res);
}
- // if both components are either bigger or smaller,
+ // if both components are either bigger or smaller,
// it is clear what needs to be done
if ((sig_x.w[1] > sig_y.w[1]
|| (sig_x.w[1] == sig_y.w[1] && sig_x.w[0] > sig_y.w[0]))
@@ -1583,7 +1583,7 @@ if (diff > 0) { // to simplify the loop below,
__mul_128x128_to_256 (sig_n_prime256, sig_x, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_y.w[1]
@@ -1603,7 +1603,7 @@ if (diff > 0) { // to simplify the loop below,
//else { //128 by 64 bit multiply -> 192 bits
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_x);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_y.w[1]
&& (sig_n_prime192.w[0] == sig_y.w[0])) {
@@ -1633,7 +1633,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
__mul_128x128_to_256 (sig_n_prime256, sig_y, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_x.w[1]
@@ -1655,7 +1655,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
// adjust the y significand upwards
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_y);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_x.w[1]
&& (sig_n_prime192.w[0] == sig_x.w[0])) {
@@ -1683,7 +1683,7 @@ BID128_FUNCTION_ARG2_NORND_CUSTOMRESTYPE (int, bid128_quiet_not_equal,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
+ // if either number is NAN, the comparison is unordered,
// rather than equal : return 0
if (((x.w[1] & MASK_NAN) == MASK_NAN)
|| ((y.w[1] & MASK_NAN) == MASK_NAN)) {
@@ -1722,9 +1722,9 @@ sig_x.w[0] = x.w[0];
exp_x = (x.w[1] >> 49) & 0x000000000003fffull;
// CHECK IF X IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_x.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_x.w[1] == 0x0001ed09bead87c0ull)
@@ -1740,9 +1740,9 @@ sig_y.w[1] = y.w[1] & 0x0001ffffffffffffull;
sig_y.w[0] = y.w[0];
// CHECK IF Y IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_y.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_y.w[1] == 0x0001ed09bead87c0ull)
@@ -1754,7 +1754,7 @@ else
// some properties:
// (+ZERO == -ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
// ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || ((sig_x.w[1] == 0) && (sig_x.w[0] == 0))) {
@@ -1825,7 +1825,7 @@ BID128_FUNCTION_ARG2_NORND_CUSTOMRESTYPE (int, bid128_quiet_not_greater,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
+ // if either number is NAN, the comparison is unordered,
// rather than equal : return 0
if (((x.w[1] & MASK_NAN) == MASK_NAN)
|| ((y.w[1] & MASK_NAN) == MASK_NAN)) {
@@ -1871,9 +1871,9 @@ sig_x.w[0] = x.w[0];
exp_x = (x.w[1] >> 49) & 0x000000000003fffull;
// CHECK IF X IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_x.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_x.w[1] == 0x0001ed09bead87c0ull)
@@ -1889,9 +1889,9 @@ sig_y.w[1] = y.w[1] & 0x0001ffffffffffffull;
sig_y.w[0] = y.w[0];
// CHECK IF Y IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_y.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_y.w[1] == 0x0001ed09bead87c0ull)
@@ -1904,7 +1904,7 @@ else
// ZERO (CASE4)
// some properties:
// (+ZERO == -ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
// ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || ((sig_x.w[1] == 0) && (sig_x.w[0] == 0))) {
@@ -1935,7 +1935,7 @@ if (((x.w[1] ^ y.w[1]) & MASK_SIGN) == MASK_SIGN) {
BID_RETURN (res);
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if exponents are the same, then we have a simple comparison
+ // if exponents are the same, then we have a simple comparison
// of the significands
if (exp_y == exp_x) {
res = (((sig_x.w[1] > sig_y.w[1])
@@ -1944,7 +1944,7 @@ if (exp_y == exp_x) {
MASK_SIGN));
BID_RETURN (res);
}
- // if both components are either bigger or smaller,
+ // if both components are either bigger or smaller,
// it is clear what needs to be done
if ((sig_x.w[1] > sig_y.w[1]
|| (sig_x.w[1] == sig_y.w[1] && sig_x.w[0] > sig_y.w[0]))
@@ -1974,7 +1974,7 @@ if (diff > 0) { // to simplify the loop below,
__mul_128x128_to_256 (sig_n_prime256, sig_x, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_y.w[1]
@@ -1994,7 +1994,7 @@ if (diff > 0) { // to simplify the loop below,
//else { //128 by 64 bit multiply -> 192 bits
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_x);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_y.w[1]
&& (sig_n_prime192.w[0] == sig_y.w[0])) {
@@ -2024,7 +2024,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
__mul_128x128_to_256 (sig_n_prime256, sig_y, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_x.w[1]
@@ -2046,7 +2046,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
// adjust the y significand upwards
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_y);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_x.w[1]
&& (sig_n_prime192.w[0] == sig_x.w[0])) {
@@ -2075,7 +2075,7 @@ BID128_FUNCTION_ARG2_NORND_CUSTOMRESTYPE (int, bid128_quiet_not_less, x,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
+ // if either number is NAN, the comparison is unordered,
// rather than equal : return 1
if (((x.w[1] & MASK_NAN) == MASK_NAN)
|| ((y.w[1] & MASK_NAN) == MASK_NAN)) {
@@ -2123,9 +2123,9 @@ sig_x.w[0] = x.w[0];
exp_x = (x.w[1] >> 49) & 0x000000000003fffull;
// CHECK IF X IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_x.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_x.w[1] == 0x0001ed09bead87c0ull)
@@ -2141,9 +2141,9 @@ sig_y.w[1] = y.w[1] & 0x0001ffffffffffffull;
sig_y.w[0] = y.w[0];
// CHECK IF Y IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_y.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_y.w[1] == 0x0001ed09bead87c0ull)
@@ -2156,7 +2156,7 @@ else
// ZERO (CASE4)
// some properties:
// (+ZERO == -ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
// ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || ((sig_x.w[1] == 0) && (sig_x.w[0] == 0))) {
@@ -2188,7 +2188,7 @@ if (((x.w[1] ^ y.w[1]) & MASK_SIGN) == MASK_SIGN) {
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if exponents are the same, then we have a simple comparison
+ // if exponents are the same, then we have a simple comparison
// of the significands
if (exp_y == exp_x) {
res = (((sig_x.w[1] > sig_y.w[1])
@@ -2197,7 +2197,7 @@ if (exp_y == exp_x) {
MASK_SIGN));
BID_RETURN (res);
}
- // if both components are either bigger or smaller,
+ // if both components are either bigger or smaller,
// it is clear what needs to be done
if (sig_x.w[1] >= sig_y.w[1] && sig_x.w[0] >= sig_y.w[0]
&& exp_x > exp_y) {
@@ -2225,7 +2225,7 @@ if (diff > 0) { // to simplify the loop below,
__mul_128x128_to_256 (sig_n_prime256, sig_x, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_y.w[1]
@@ -2245,7 +2245,7 @@ if (diff > 0) { // to simplify the loop below,
//else { //128 by 64 bit multiply -> 192 bits
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_x);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_y.w[1]
&& (sig_n_prime192.w[0] == sig_y.w[0])) {
@@ -2275,7 +2275,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
__mul_128x128_to_256 (sig_n_prime256, sig_y, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_x.w[1]
@@ -2297,7 +2297,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
// adjust the y significand upwards
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_y);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_x.w[1]
&& (sig_n_prime192.w[0] == sig_x.w[0])) {
@@ -2374,7 +2374,7 @@ BID128_FUNCTION_ARG2_NORND_CUSTOMRESTYPE (int, bid128_signaling_greater,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
+ // if either number is NAN, the comparison is unordered,
// rather than equal : return 0
if (((x.w[1] & MASK_NAN) == MASK_NAN)
|| ((y.w[1] & MASK_NAN) == MASK_NAN)) {
@@ -2417,9 +2417,9 @@ sig_x.w[0] = x.w[0];
exp_x = (x.w[1] >> 49) & 0x000000000003fffull;
// CHECK IF X IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_x.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_x.w[1] == 0x0001ed09bead87c0ull)
@@ -2435,9 +2435,9 @@ sig_y.w[1] = y.w[1] & 0x0001ffffffffffffull;
sig_y.w[0] = y.w[0];
// CHECK IF Y IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_y.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_y.w[1] == 0x0001ed09bead87c0ull)
@@ -2450,7 +2450,7 @@ else
// ZERO (CASE4)
// some properties:
// (+ZERO == -ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
// ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || ((sig_x.w[1] == 0) && (sig_x.w[0] == 0))) {
@@ -2481,7 +2481,7 @@ if (((x.w[1] ^ y.w[1]) & MASK_SIGN) == MASK_SIGN) {
BID_RETURN (res);
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if exponents are the same, then we have a simple comparison
+ // if exponents are the same, then we have a simple comparison
// of the significands
if (exp_y == exp_x) {
res = (((sig_x.w[1] > sig_y.w[1])
@@ -2490,7 +2490,7 @@ if (exp_y == exp_x) {
MASK_SIGN));
BID_RETURN (res);
}
- // if both components are either bigger or smaller,
+ // if both components are either bigger or smaller,
// it is clear what needs to be done
if ((sig_x.w[1] > sig_y.w[1]
|| (sig_x.w[1] == sig_y.w[1] && sig_x.w[0] > sig_y.w[0]))
@@ -2523,7 +2523,7 @@ if (diff > 0) { // to simplify the loop below,
if (diff > 19) { //128 by 128 bit multiply -> 256 bits
__mul_128x128_to_256 (sig_n_prime256, sig_x, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_y.w[1]
@@ -2543,7 +2543,7 @@ if (diff > 0) { // to simplify the loop below,
//else { //128 by 64 bit multiply -> 192 bits
__mul_64x128_to_192 (sig_n_prime192, ten2k64[diff], sig_x);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_y.w[1]
&& (sig_n_prime192.w[0] == sig_y.w[0])) {
@@ -2572,7 +2572,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
// adjust the y significand upwards
__mul_128x128_to_256 (sig_n_prime256, sig_y, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_x.w[1]
@@ -2594,7 +2594,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
// adjust the y significand upwards
__mul_64x128_to_192 (sig_n_prime192, ten2k64[diff], sig_y);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_x.w[1]
&& (sig_n_prime192.w[0] == sig_x.w[0])) {
@@ -2624,7 +2624,7 @@ BID128_FUNCTION_ARG2_NORND_CUSTOMRESTYPE (int,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
+ // if either number is NAN, the comparison is unordered,
// rather than equal : return 1
if (((x.w[1] & MASK_NAN) == MASK_NAN)
|| ((y.w[1] & MASK_NAN) == MASK_NAN)) {
@@ -2669,9 +2669,9 @@ sig_x.w[0] = x.w[0];
exp_x = (x.w[1] >> 49) & 0x000000000003fffull;
// CHECK IF X IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_x.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_x.w[1] == 0x0001ed09bead87c0ull)
@@ -2687,9 +2687,9 @@ sig_y.w[1] = y.w[1] & 0x0001ffffffffffffull;
sig_y.w[0] = y.w[0];
// CHECK IF Y IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_y.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_y.w[1] == 0x0001ed09bead87c0ull)
@@ -2702,7 +2702,7 @@ else
// ZERO (CASE4)
// some properties:
// (+ZERO == -ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
// ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || ((sig_x.w[1] == 0) && (sig_x.w[0] == 0))) {
@@ -2733,7 +2733,7 @@ if (((x.w[1] ^ y.w[1]) & MASK_SIGN) == MASK_SIGN) {
BID_RETURN (res);
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if exponents are the same, then we have a simple comparison
+ // if exponents are the same, then we have a simple comparison
// of the significands
if (exp_y == exp_x) {
res = (((sig_x.w[1] > sig_y.w[1])
@@ -2742,7 +2742,7 @@ if (exp_y == exp_x) {
MASK_SIGN));
BID_RETURN (res);
}
- // if both components are either bigger or smaller,
+ // if both components are either bigger or smaller,
// it is clear what needs to be done
if (sig_x.w[1] >= sig_y.w[1] && sig_x.w[0] >= sig_y.w[0]
&& exp_x > exp_y) {
@@ -2770,7 +2770,7 @@ if (diff > 0) { // to simplify the loop below,
__mul_128x128_to_256 (sig_n_prime256, sig_x, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_y.w[1]
@@ -2790,7 +2790,7 @@ if (diff > 0) { // to simplify the loop below,
//else { //128 by 64 bit multiply -> 192 bits
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_x);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_y.w[1]
&& (sig_n_prime192.w[0] == sig_y.w[0])) {
@@ -2820,7 +2820,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
__mul_128x128_to_256 (sig_n_prime256, sig_y, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_x.w[1]
@@ -2842,7 +2842,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
// adjust the y significand upwards
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_y);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_x.w[1]
&& (sig_n_prime192.w[0] == sig_x.w[0])) {
@@ -2872,7 +2872,7 @@ BID128_FUNCTION_ARG2_NORND_CUSTOMRESTYPE (int,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
+ // if either number is NAN, the comparison is unordered,
// rather than equal : return 1
if (((x.w[1] & MASK_NAN) == MASK_NAN)
|| ((y.w[1] & MASK_NAN) == MASK_NAN)) {
@@ -2915,9 +2915,9 @@ sig_x.w[0] = x.w[0];
exp_x = (x.w[1] >> 49) & 0x000000000003fffull;
// CHECK IF X IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_x.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_x.w[1] == 0x0001ed09bead87c0ull)
@@ -2933,9 +2933,9 @@ sig_y.w[1] = y.w[1] & 0x0001ffffffffffffull;
sig_y.w[0] = y.w[0];
// CHECK IF Y IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_y.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_y.w[1] == 0x0001ed09bead87c0ull)
@@ -2948,7 +2948,7 @@ else
// ZERO (CASE4)
// some properties:
// (+ZERO == -ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
// ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || ((sig_x.w[1] == 0) && (sig_x.w[0] == 0))) {
@@ -2979,7 +2979,7 @@ if (((x.w[1] ^ y.w[1]) & MASK_SIGN) == MASK_SIGN) {
BID_RETURN (res);
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if exponents are the same, then we have a simple comparison
+ // if exponents are the same, then we have a simple comparison
// of the significands
if (exp_y == exp_x) {
res = (((sig_x.w[1] > sig_y.w[1])
@@ -2988,7 +2988,7 @@ if (exp_y == exp_x) {
MASK_SIGN));
BID_RETURN (res);
}
- // if both components are either bigger or smaller,
+ // if both components are either bigger or smaller,
// it is clear what needs to be done
if (sig_x.w[1] >= sig_y.w[1] && sig_x.w[0] >= sig_y.w[0]
&& exp_x > exp_y) {
@@ -3016,7 +3016,7 @@ if (diff > 0) { // to simplify the loop below,
__mul_128x128_to_256 (sig_n_prime256, sig_x, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_y.w[1]
@@ -3036,7 +3036,7 @@ if (diff > 0) { // to simplify the loop below,
//else { //128 by 64 bit multiply -> 192 bits
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_x);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_y.w[1]
&& (sig_n_prime192.w[0] == sig_y.w[0])) {
@@ -3066,7 +3066,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
__mul_128x128_to_256 (sig_n_prime256, sig_y, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_x.w[1]
@@ -3088,7 +3088,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
// adjust the y significand upwards
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_y);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_x.w[1]
&& (sig_n_prime192.w[0] == sig_x.w[0])) {
@@ -3117,7 +3117,7 @@ BID128_FUNCTION_ARG2_NORND_CUSTOMRESTYPE (int, bid128_signaling_less, x,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
+ // if either number is NAN, the comparison is unordered,
// rather than equal : return 0
if (((x.w[1] & MASK_NAN) == MASK_NAN)
|| ((y.w[1] & MASK_NAN) == MASK_NAN)) {
@@ -3162,9 +3162,9 @@ sig_x.w[0] = x.w[0];
exp_x = (x.w[1] >> 49) & 0x000000000003fffull;
// CHECK IF X IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_x.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_x.w[1] == 0x0001ed09bead87c0ull)
@@ -3180,9 +3180,9 @@ sig_y.w[1] = y.w[1] & 0x0001ffffffffffffull;
sig_y.w[0] = y.w[0];
// CHECK IF Y IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_y.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_y.w[1] == 0x0001ed09bead87c0ull)
@@ -3195,7 +3195,7 @@ else
// ZERO (CASE4)
// some properties:
// (+ZERO == -ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
// ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || ((sig_x.w[1] == 0) && (sig_x.w[0] == 0))) {
@@ -3226,7 +3226,7 @@ if (((x.w[1] ^ y.w[1]) & MASK_SIGN) == MASK_SIGN) {
BID_RETURN (res);
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if exponents are the same, then we have a simple comparison
+ // if exponents are the same, then we have a simple comparison
// of the significands
if (exp_y == exp_x) {
res = (((sig_x.w[1] > sig_y.w[1])
@@ -3235,7 +3235,7 @@ if (exp_y == exp_x) {
MASK_SIGN));
BID_RETURN (res);
}
- // if both components are either bigger or smaller,
+ // if both components are either bigger or smaller,
// it is clear what needs to be done
if ((sig_x.w[1] > sig_y.w[1]
|| (sig_x.w[1] == sig_y.w[1] && sig_x.w[0] > sig_y.w[0]))
@@ -3265,7 +3265,7 @@ if (diff > 0) { // to simplify the loop below,
__mul_128x128_to_256 (sig_n_prime256, sig_x, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_y.w[1]
@@ -3285,7 +3285,7 @@ if (diff > 0) { // to simplify the loop below,
//else { //128 by 64 bit multiply -> 192 bits
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_x);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_y.w[1]
&& (sig_n_prime192.w[0] == sig_y.w[0])) {
@@ -3315,7 +3315,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
__mul_128x128_to_256 (sig_n_prime256, sig_y, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_x.w[1]
@@ -3337,7 +3337,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
// adjust the y significand upwards
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_y);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_x.w[1]
&& (sig_n_prime192.w[0] == sig_x.w[0])) {
@@ -3367,7 +3367,7 @@ BID128_FUNCTION_ARG2_NORND_CUSTOMRESTYPE (int,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
+ // if either number is NAN, the comparison is unordered,
// rather than equal : return 0
if (((x.w[1] & MASK_NAN) == MASK_NAN)
|| ((y.w[1] & MASK_NAN) == MASK_NAN)) {
@@ -3410,9 +3410,9 @@ sig_x.w[0] = x.w[0];
exp_x = (x.w[1] >> 49) & 0x000000000003fffull;
// CHECK IF X IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_x.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_x.w[1] == 0x0001ed09bead87c0ull)
@@ -3428,9 +3428,9 @@ sig_y.w[1] = y.w[1] & 0x0001ffffffffffffull;
sig_y.w[0] = y.w[0];
// CHECK IF Y IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_y.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_y.w[1] == 0x0001ed09bead87c0ull)
@@ -3443,7 +3443,7 @@ else
// ZERO (CASE4)
// some properties:
// (+ZERO == -ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
// ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || ((sig_x.w[1] == 0) && (sig_x.w[0] == 0))) {
@@ -3474,7 +3474,7 @@ if (((x.w[1] ^ y.w[1]) & MASK_SIGN) == MASK_SIGN) {
BID_RETURN (res);
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if exponents are the same, then we have a simple comparison
+ // if exponents are the same, then we have a simple comparison
// of the significands
if (exp_y == exp_x) {
res = (((sig_x.w[1] > sig_y.w[1])
@@ -3483,7 +3483,7 @@ if (exp_y == exp_x) {
MASK_SIGN));
BID_RETURN (res);
}
- // if both components are either bigger or smaller,
+ // if both components are either bigger or smaller,
// it is clear what needs to be done
if ((sig_x.w[1] > sig_y.w[1]
|| (sig_x.w[1] == sig_y.w[1] && sig_x.w[0] > sig_y.w[0]))
@@ -3513,7 +3513,7 @@ if (diff > 0) { // to simplify the loop below,
__mul_128x128_to_256 (sig_n_prime256, sig_x, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_y.w[1]
@@ -3533,7 +3533,7 @@ if (diff > 0) { // to simplify the loop below,
//else { //128 by 64 bit multiply -> 192 bits
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_x);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_y.w[1]
&& (sig_n_prime192.w[0] == sig_y.w[0])) {
@@ -3563,7 +3563,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
__mul_128x128_to_256 (sig_n_prime256, sig_y, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_x.w[1]
@@ -3585,7 +3585,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
// adjust the y significand upwards
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_y);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_x.w[1]
&& (sig_n_prime192.w[0] == sig_x.w[0])) {
@@ -3659,9 +3659,9 @@ sig_x.w[0] = x.w[0];
exp_x = (x.w[1] >> 49) & 0x000000000003fffull;
// CHECK IF X IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_x.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_x.w[1] == 0x0001ed09bead87c0ull)
@@ -3677,9 +3677,9 @@ sig_y.w[1] = y.w[1] & 0x0001ffffffffffffull;
sig_y.w[0] = y.w[0];
// CHECK IF Y IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_y.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_y.w[1] == 0x0001ed09bead87c0ull)
@@ -3692,7 +3692,7 @@ else
// ZERO (CASE4)
// some properties:
// (+ZERO == -ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
// ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || ((sig_x.w[1] == 0) && (sig_x.w[0] == 0))) {
@@ -3723,7 +3723,7 @@ if (((x.w[1] ^ y.w[1]) & MASK_SIGN) == MASK_SIGN) {
BID_RETURN (res);
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if exponents are the same, then we have a simple comparison
+ // if exponents are the same, then we have a simple comparison
// of the significands
if (exp_y == exp_x) {
res = (((sig_x.w[1] > sig_y.w[1])
@@ -3732,7 +3732,7 @@ if (exp_y == exp_x) {
MASK_SIGN));
BID_RETURN (res);
}
- // if both components are either bigger or smaller,
+ // if both components are either bigger or smaller,
// it is clear what needs to be done
if ((sig_x.w[1] > sig_y.w[1]
|| (sig_x.w[1] == sig_y.w[1] && sig_x.w[0] > sig_y.w[0]))
@@ -3762,7 +3762,7 @@ if (diff > 0) { // to simplify the loop below,
__mul_128x128_to_256 (sig_n_prime256, sig_x, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_y.w[1]
@@ -3782,7 +3782,7 @@ if (diff > 0) { // to simplify the loop below,
//else { //128 by 64 bit multiply -> 192 bits
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_x);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_y.w[1]
&& (sig_n_prime192.w[0] == sig_y.w[0])) {
@@ -3812,7 +3812,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
__mul_128x128_to_256 (sig_n_prime256, sig_y, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_x.w[1]
@@ -3863,7 +3863,7 @@ BID128_FUNCTION_ARG2_NORND_CUSTOMRESTYPE (int,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
+ // if either number is NAN, the comparison is unordered,
// rather than equal : return 0
if (((x.w[1] & MASK_NAN) == MASK_NAN)
|| ((y.w[1] & MASK_NAN) == MASK_NAN)) {
@@ -3906,9 +3906,9 @@ sig_x.w[0] = x.w[0];
exp_x = (x.w[1] >> 49) & 0x000000000003fffull;
// CHECK IF X IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_x.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_x.w[1] == 0x0001ed09bead87c0ull)
@@ -3924,9 +3924,9 @@ sig_y.w[1] = y.w[1] & 0x0001ffffffffffffull;
sig_y.w[0] = y.w[0];
// CHECK IF Y IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_y.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_y.w[1] == 0x0001ed09bead87c0ull)
@@ -3939,7 +3939,7 @@ else
// ZERO (CASE4)
// some properties:
// (+ZERO == -ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
// ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || ((sig_x.w[1] == 0) && (sig_x.w[0] == 0))) {
@@ -3970,7 +3970,7 @@ if (((x.w[1] ^ y.w[1]) & MASK_SIGN) == MASK_SIGN) {
BID_RETURN (res);
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if exponents are the same, then we have a simple comparison
+ // if exponents are the same, then we have a simple comparison
// of the significands
if (exp_y == exp_x) {
res = (((sig_x.w[1] > sig_y.w[1])
@@ -3979,7 +3979,7 @@ if (exp_y == exp_x) {
MASK_SIGN));
BID_RETURN (res);
}
- // if both components are either bigger or smaller,
+ // if both components are either bigger or smaller,
// it is clear what needs to be done
if ((sig_x.w[1] > sig_y.w[1]
|| (sig_x.w[1] == sig_y.w[1] && sig_x.w[0] > sig_y.w[0]))
@@ -4009,7 +4009,7 @@ if (diff > 0) { // to simplify the loop below,
__mul_128x128_to_256 (sig_n_prime256, sig_x, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_y.w[1]
@@ -4029,7 +4029,7 @@ if (diff > 0) { // to simplify the loop below,
//else { //128 by 64 bit multiply -> 192 bits
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_x);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_y.w[1]
&& (sig_n_prime192.w[0] == sig_y.w[0])) {
@@ -4058,7 +4058,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
// adjust the y significand upwards
__mul_128x128_to_256 (sig_n_prime256, sig_y, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_x.w[1]
@@ -4080,7 +4080,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
// adjust the y significand upwards
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_y);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_x.w[1]
&& (sig_n_prime192.w[0] == sig_x.w[0])) {
@@ -4110,7 +4110,7 @@ BID128_FUNCTION_ARG2_NORND_CUSTOMRESTYPE (int,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
+ // if either number is NAN, the comparison is unordered,
// rather than equal : return 1
if (((x.w[1] & MASK_NAN) == MASK_NAN)
|| ((y.w[1] & MASK_NAN) == MASK_NAN)) {
@@ -4155,9 +4155,9 @@ sig_x.w[0] = x.w[0];
exp_x = (x.w[1] >> 49) & 0x000000000003fffull;
// CHECK IF X IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_x.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_x.w[1] == 0x0001ed09bead87c0ull)
@@ -4173,9 +4173,9 @@ sig_y.w[1] = y.w[1] & 0x0001ffffffffffffull;
sig_y.w[0] = y.w[0];
// CHECK IF Y IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((sig_y.w[1] > 0x0001ed09bead87c0ull)
|| ((sig_y.w[1] == 0x0001ed09bead87c0ull)
@@ -4188,7 +4188,7 @@ else
// ZERO (CASE4)
// some properties:
// (+ZERO == -ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore
// ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || ((sig_x.w[1] == 0) && (sig_x.w[0] == 0))) {
@@ -4220,7 +4220,7 @@ if (((x.w[1] ^ y.w[1]) & MASK_SIGN) == MASK_SIGN) {
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if exponents are the same, then we have a simple comparison
+ // if exponents are the same, then we have a simple comparison
// of the significands
if (exp_y == exp_x) {
res = (((sig_x.w[1] > sig_y.w[1])
@@ -4229,7 +4229,7 @@ if (exp_y == exp_x) {
MASK_SIGN));
BID_RETURN (res);
}
- // if both components are either bigger or smaller,
+ // if both components are either bigger or smaller,
// it is clear what needs to be done
if (sig_x.w[1] >= sig_y.w[1] && sig_x.w[0] >= sig_y.w[0]
&& exp_x > exp_y) {
@@ -4257,7 +4257,7 @@ if (diff > 0) { // to simplify the loop below,
__mul_128x128_to_256 (sig_n_prime256, sig_x, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_y.w[1]
@@ -4277,7 +4277,7 @@ if (diff > 0) { // to simplify the loop below,
//else { //128 by 64 bit multiply -> 192 bits
__mul_64x128_to192 (sig_n_prime192, ten2k64[diff], sig_x);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_y.w[1]
&& (sig_n_prime192.w[0] == sig_y.w[0])) {
@@ -4307,7 +4307,7 @@ if (diff > 19) { //128 by 128 bit multiply -> 256 bits
__mul_128x128_to_256 (sig_n_prime256, sig_y, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_x.w[1]
diff --git a/libgcc/config/libbid/bid128_div.c b/libgcc/config/libbid/bid128_div.c
index 17350f12d80..95346d14080 100644
--- a/libgcc/config/libbid/bid128_div.c
+++ b/libgcc/config/libbid/bid128_div.c
@@ -66,9 +66,9 @@ if ((x.w[1] & 0x7c00000000000000ull) == 0x7c00000000000000ull) {
}
// x is Infinity?
if ((x.w[1] & 0x7800000000000000ull) == 0x7800000000000000ull) {
- // check if y is Inf.
+ // check if y is Inf.
if (((y.w[1] & 0x7c00000000000000ull) == 0x7800000000000000ull))
- // return NaN
+ // return NaN
{
#ifdef SET_STATUS_FLAGS
__set_status_flags (pfpsf, INVALID_EXCEPTION);
@@ -79,7 +79,7 @@ if ((x.w[1] & 0x7800000000000000ull) == 0x7800000000000000ull) {
}
// y is NaN?
if (((y.w[1] & 0x7c00000000000000ull) != 0x7c00000000000000ull))
- // return NaN
+ // return NaN
{
// return +/-Inf
res.w[1] = ((x.w[1] ^ y.w[1]) & 0x8000000000000000ull) |
@@ -525,7 +525,7 @@ if ((x & NAN_MASK64) == NAN_MASK64) {
if (((x) & 0x7800000000000000ull) == 0x7800000000000000ull) {
// check if y is Inf.
if ((((y) & 0x7c00000000000000ull) == 0x7800000000000000ull))
- // return NaN
+ // return NaN
{
#ifdef SET_STATUS_FLAGS
__set_status_flags (pfpsf, INVALID_EXCEPTION);
@@ -984,7 +984,7 @@ if ((x & NAN_MASK64) == NAN_MASK64) {
if ((x & 0x7800000000000000ull) == 0x7800000000000000ull) {
// check if y is Inf.
if (((y.w[1] & 0x7c00000000000000ull) == 0x7800000000000000ull))
- // return NaN
+ // return NaN
{
#ifdef SET_STATUS_FLAGS
__set_status_flags (pfpsf, INVALID_EXCEPTION);
@@ -1432,9 +1432,9 @@ if ((x.w[1] & 0x7c00000000000000ull) == 0x7c00000000000000ull) {
}
// x is Infinity?
if ((x.w[1] & 0x7800000000000000ull) == 0x7800000000000000ull) {
- // check if y is Inf.
+ // check if y is Inf.
if (((y & 0x7c00000000000000ull) == 0x7800000000000000ull))
- // return NaN
+ // return NaN
{
#ifdef SET_STATUS_FLAGS
__set_status_flags (pfpsf, INVALID_EXCEPTION);
@@ -1445,7 +1445,7 @@ if ((x.w[1] & 0x7800000000000000ull) == 0x7800000000000000ull) {
}
// y is NaN?
if (((y & 0x7c00000000000000ull) != 0x7c00000000000000ull))
- // return NaN
+ // return NaN
{
// return +/-Inf
res.w[1] = ((x.w[1] ^ y) & 0x8000000000000000ull) |
diff --git a/libgcc/config/libbid/bid128_fma.c b/libgcc/config/libbid/bid128_fma.c
index cbcf225546f..3ff9c287963 100644
--- a/libgcc/config/libbid/bid128_fma.c
+++ b/libgcc/config/libbid/bid128_fma.c
@@ -22,9 +22,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
. */
/*****************************************************************************
- *
+ *
* BID128 fma x * y + z
- *
+ *
****************************************************************************/
#include "bid_internal.h"
@@ -45,9 +45,9 @@ rounding_correction (unsigned int rnd_mode,
UINT64 C_hi, C_lo;
// general correction from RN to RA, RM, RP, RZ
- // Note: if the result is negative, then is_inexact_lt_midpoint,
- // is_inexact_gt_midpoint, is_midpoint_lt_even, and is_midpoint_gt_even
- // have to be considered as if determined for the absolute value of the
+ // Note: if the result is negative, then is_inexact_lt_midpoint,
+ // is_inexact_gt_midpoint, is_midpoint_lt_even, and is_midpoint_gt_even
+ // have to be considered as if determined for the absolute value of the
// result (so they seem to be reversed)
if (is_inexact_lt_midpoint || is_inexact_gt_midpoint ||
@@ -60,10 +60,10 @@ rounding_correction (unsigned int rnd_mode,
C_hi = res.w[1] & MASK_COEFF;
C_lo = res.w[0];
if ((!sign && ((rnd_mode == ROUNDING_UP && is_inexact_lt_midpoint) ||
- ((rnd_mode == ROUNDING_TIES_AWAY || rnd_mode == ROUNDING_UP) &&
- is_midpoint_gt_even))) ||
+ ((rnd_mode == ROUNDING_TIES_AWAY || rnd_mode == ROUNDING_UP) &&
+ is_midpoint_gt_even))) ||
(sign && ((rnd_mode == ROUNDING_DOWN && is_inexact_lt_midpoint) ||
- ((rnd_mode == ROUNDING_TIES_AWAY || rnd_mode == ROUNDING_DOWN) &&
+ ((rnd_mode == ROUNDING_TIES_AWAY || rnd_mode == ROUNDING_DOWN) &&
is_midpoint_gt_even)))) {
// C = C + 1
C_lo = C_lo + 1;
@@ -85,7 +85,7 @@ rounding_correction (unsigned int rnd_mode,
if (C_lo == 0xffffffffffffffffull)
C_hi--;
// check if we crossed into the lower decade
- if (C_hi == 0x0000314dc6448d93ull && C_lo == 0x38c15b09ffffffffull) {
+ if (C_hi == 0x0000314dc6448d93ull && C_lo == 0x38c15b09ffffffffull) {
// C = 10^33 - 1
if (exp > 0) {
C_hi = 0x0001ed09bead87c0ull; // 10^34 - 1
@@ -304,10 +304,10 @@ add_and_round (int q3,
__mul_128x128_to_256 (R256, P128, C3);
} else if (scale <= 38) { // 10^scale fits in 128 bits
__mul_128x128_to_256 (R256, ten2k128[scale - 20], C3);
- } else if (scale <= 57) { // 39 <= scale <= 57
+ } else if (scale <= 57) { // 39 <= scale <= 57
// 10^scale fits in 192 bits but C3 * 10^scale fits in 223 or 230 bits
- // (10^67 has 223 bits; 10^69 has 230 bits);
- // must split the computation:
+ // (10^67 has 223 bits; 10^69 has 230 bits);
+ // must split the computation:
// 10^scale * C3 = 10*38 * 10^(scale-38) * C3 where 10^38 takes 127
// bits and so 10^(scale-38) * C3 fits in 128 bits with certainty
// Note that 1 <= scale - 38 <= 19 => 10^(scale-38) fits in 64 bits
@@ -317,21 +317,21 @@ add_and_round (int q3,
} else { // 58 <= scale <= 66
// 10^scale takes between 193 and 220 bits,
// and C3 * 10^scale fits in 223 bits (10^67/10^69 has 223/230 bits)
- // must split the computation:
+ // must split the computation:
// 10^scale * C3 = 10*38 * 10^(scale-38) * C3 where 10^38 takes 127
- // bits and so 10^(scale-38) * C3 fits in 128 bits with certainty
+ // bits and so 10^(scale-38) * C3 fits in 128 bits with certainty
// Note that 20 <= scale - 38 <= 30 => 10^(scale-38) fits in 128 bits
// Calculate first 10^(scale-38) * C3, which fits in 128 bits; because
// 10^(scale-38) takes more than 64 bits, C3 will take less than 64
__mul_64x128_to_128 (R128, C3.w[0], ten2k128[scale - 58]);
- // now calculate 10*38 * 10^(scale-38) * C3
+ // now calculate 10*38 * 10^(scale-38) * C3
__mul_128x128_to_256 (R256, R128, ten2k128[18]);
}
- // C3 * 10^scale is now in R256
+ // C3 * 10^scale is now in R256
- // for Cases (15), (16), (17) C4 > C3 * 10^scale because C4 has at least
- // one extra digit; for Cases (2), (3), (4), (5), or (6) any order is
- // possible
+ // for Cases (15), (16), (17) C4 > C3 * 10^scale because C4 has at least
+ // one extra digit; for Cases (2), (3), (4), (5), or (6) any order is
+ // possible
// add/subtract C4 and C3 * 10^scale; the exponent is e4
if (p_sign == z_sign) { // R256 = C4 + R256
// calculate R256 = C4 + C3 * 10^scale = C4 + R256 which is exact,
@@ -342,23 +342,23 @@ add_and_round (int q3,
// R256 = C3 * 10^scale - C4 = R256 - C4 which is exact,
// but may require rounding
- // compare first R256 = C3 * 10^scale and C4
+ // compare first R256 = C3 * 10^scale and C4
if (R256.w[3] > C4.w[3] || (R256.w[3] == C4.w[3] && R256.w[2] > C4.w[2]) ||
(R256.w[3] == C4.w[3] && R256.w[2] == C4.w[2] && R256.w[1] > C4.w[1]) ||
(R256.w[3] == C4.w[3] && R256.w[2] == C4.w[2] && R256.w[1] == C4.w[1] &&
R256.w[0] >= C4.w[0])) { // C3 * 10^scale >= C4
// calculate R256 = C3 * 10^scale - C4 = R256 - C4, which is exact,
- // but may require rounding
+ // but may require rounding
sub256 (R256, C4, &R256);
- // flip p_sign too, because the result has the sign of z
+ // flip p_sign too, because the result has the sign of z
p_sign = z_sign;
} else { // if C4 > C3 * 10^scale
// calculate R256 = C4 - C3 * 10^scale = C4 - R256, which is exact,
- // but may require rounding
+ // but may require rounding
sub256 (C4, R256, &R256);
}
// if the result is pure zero, the sign depends on the rounding mode
- // (x*y and z had opposite signs)
+ // (x*y and z had opposite signs)
if (R256.w[3] == 0x0ull && R256.w[2] == 0x0ull &&
R256.w[1] == 0x0ull && R256.w[0] == 0x0ull) {
if (rnd_mode != ROUNDING_DOWN)
@@ -368,7 +368,7 @@ add_and_round (int q3,
// the exponent is max (e4, expmin)
if (e4 < -6176)
e4 = expmin;
- // assemble result
+ // assemble result
res.w[1] = p_sign | ((UINT64) (e4 + 6176) << 49);
res.w[0] = 0x0;
*ptrres = res;
@@ -424,7 +424,7 @@ add_and_round (int q3,
e4 = e4 + x0 + incr_exp;
if (rnd_mode != ROUNDING_TO_NEAREST) {
// for RM, RP, RZ, RA apply correction in order to determine tininess
- // but do not save the result; apply the correction to
+ // but do not save the result; apply the correction to
// (-1)^p_sign * significand * 10^0
P128.w[1] = p_sign | 0x3040000000000000ull | R128.w[1];
P128.w[0] = R128.w[0];
@@ -442,7 +442,7 @@ add_and_round (int q3,
}
// at this point we have the result rounded with unbounded exponent in
// res and we know its tininess:
- // res = (-1)^p_sign * significand * 10^e4,
+ // res = (-1)^p_sign * significand * 10^e4,
// where q (significand) = ind <= p34
// Note: res is correct only if expmin <= e4 <= expmax
@@ -480,7 +480,7 @@ add_and_round (int q3,
} else if (x0 == ind) { // 1 <= x0 = ind <= p34 = 34
// this is <, =, or > 1/2 ulp
// compare the ind-digit value in the significand of res with
- // 1/2 ulp = 5*10^(ind-1), i.e. determine whether it is
+ // 1/2 ulp = 5*10^(ind-1), i.e. determine whether it is
// less than, equal to, or greater than 1/2 ulp (significand of res)
R128.w[1] = res.w[1] & MASK_COEFF;
R128.w[0] = res.w[0];
@@ -496,12 +496,12 @@ add_and_round (int q3,
is_inexact_gt_midpoint = 1;
}
} else { // if (ind <= 38) {
- if (R128.w[1] < midpoint128[ind - 20].w[1] ||
- (R128.w[1] == midpoint128[ind - 20].w[1] &&
+ if (R128.w[1] < midpoint128[ind - 20].w[1] ||
+ (R128.w[1] == midpoint128[ind - 20].w[1] &&
R128.w[0] < midpoint128[ind - 20].w[0])) { // < 1/2 ulp
lt_half_ulp = 1;
is_inexact_lt_midpoint = 1;
- } else if (R128.w[1] == midpoint128[ind - 20].w[1] &&
+ } else if (R128.w[1] == midpoint128[ind - 20].w[1] &&
R128.w[0] == midpoint128[ind - 20].w[0]) { // = 1/2 ulp
eq_half_ulp = 1;
is_midpoint_gt_even = 1;
@@ -550,7 +550,7 @@ add_and_round (int q3,
res.w[1] =
p_sign | ((UINT64) (e4 + 6176) << 49) | (res.w[1] & MASK_COEFF);
// avoid a double rounding error
- if ((is_inexact_gt_midpoint0 || is_midpoint_lt_even0) &&
+ if ((is_inexact_gt_midpoint0 || is_midpoint_lt_even0) &&
is_midpoint_lt_even) { // double rounding error upward
// res = res - 1
res.w[0]--;
@@ -562,7 +562,7 @@ add_and_round (int q3,
// is not possible in Cases (2)-(6) or (15)-(17) which may get here
is_midpoint_lt_even = 0;
is_inexact_lt_midpoint = 1;
- } else if ((is_inexact_lt_midpoint0 || is_midpoint_gt_even0) &&
+ } else if ((is_inexact_lt_midpoint0 || is_midpoint_gt_even0) &&
is_midpoint_gt_even) { // double rounding error downward
// res = res + 1
res.w[0]++;
@@ -572,7 +572,7 @@ add_and_round (int q3,
is_inexact_gt_midpoint = 1;
} else if (!is_midpoint_lt_even && !is_midpoint_gt_even &&
!is_inexact_lt_midpoint && !is_inexact_gt_midpoint) {
- // if this second rounding was exact the result may still be
+ // if this second rounding was exact the result may still be
// inexact because of the first rounding
if (is_inexact_gt_midpoint0 || is_midpoint_lt_even0) {
is_inexact_gt_midpoint = 1;
@@ -677,7 +677,7 @@ bid128_ext_fma (int *ptr_is_midpoint_lt_even,
UINT256 R256;
// the following are based on the table of special cases for fma; the NaN
- // behavior is similar to that of the IA-64 Architecture fma
+ // behavior is similar to that of the IA-64 Architecture fma
// identify cases where at least one operand is NaN
@@ -725,14 +725,14 @@ bid128_ext_fma (int *ptr_is_midpoint_lt_even,
z.w[1] = z.w[1] & 0xffffc00000000000ull;
z.w[0] = 0x0ull;
}
- if ((z.w[1] & MASK_SNAN) == MASK_SNAN) { // z is SNAN
- // set invalid flag
+ if ((z.w[1] & MASK_SNAN) == MASK_SNAN) { // z is SNAN
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return quiet (z)
+ // return quiet (z)
res.w[1] = z.w[1] & 0xfc003fffffffffffull; // clear out also G[6]-G[16]
res.w[0] = z.w[0];
- } else { // z is QNaN
- // return z
+ } else { // z is QNaN
+ // return z
res.w[1] = z.w[1] & 0xfc003fffffffffffull; // clear out G[6]-G[16]
res.w[0] = z.w[0];
// if x = SNaN signal invalid exception
@@ -756,14 +756,14 @@ bid128_ext_fma (int *ptr_is_midpoint_lt_even,
x.w[1] = x.w[1] & 0xffffc00000000000ull;
x.w[0] = 0x0ull;
}
- if ((x.w[1] & MASK_SNAN) == MASK_SNAN) { // x is SNAN
- // set invalid flag
+ if ((x.w[1] & MASK_SNAN) == MASK_SNAN) { // x is SNAN
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return quiet (x)
+ // return quiet (x)
res.w[1] = x.w[1] & 0xfc003fffffffffffull; // clear out also G[6]-G[16]
res.w[0] = x.w[0];
- } else { // x is QNaN
- // return x
+ } else { // x is QNaN
+ // return x
res.w[1] = x.w[1] & 0xfc003fffffffffffull; // clear out G[6]-G[16]
res.w[0] = x.w[0];
}
@@ -795,7 +795,7 @@ bid128_ext_fma (int *ptr_is_midpoint_lt_even,
// x is non-canonical if coefficient is larger than 10^34 -1
C1.w[1] = 0;
C1.w[0] = 0;
- } else { // canonical
+ } else { // canonical
;
}
}
@@ -809,7 +809,7 @@ bid128_ext_fma (int *ptr_is_midpoint_lt_even,
// non-canonical
y_exp = (y.w[1] << 2) & MASK_EXP; // biased and shifted left 49 bits
C2.w[1] = 0; // significand high
- C2.w[0] = 0; // significand low
+ C2.w[0] = 0; // significand low
} else { // G0_G1 != 11
y_exp = y.w[1] & MASK_EXP; // biased and shifted left 49 bits
if (C2.w[1] > 0x0001ed09bead87c0ull ||
@@ -832,7 +832,7 @@ bid128_ext_fma (int *ptr_is_midpoint_lt_even,
// non-canonical
z_exp = (z.w[1] << 2) & MASK_EXP; // biased and shifted left 49 bits
C3.w[1] = 0; // significand high
- C3.w[0] = 0; // significand low
+ C3.w[0] = 0; // significand low
} else { // G0_G1 != 11
z_exp = z.w[1] & MASK_EXP; // biased and shifted left 49 bits
if (C3.w[1] > 0x0001ed09bead87c0ull ||
@@ -873,7 +873,7 @@ bid128_ext_fma (int *ptr_is_midpoint_lt_even,
res.w[1] = z_sign | MASK_INF;
res.w[0] = 0x0;
} else {
- // return QNaN Indefinite
+ // return QNaN Indefinite
res.w[1] = 0x7c00000000000000ull;
res.w[0] = 0x0000000000000000ull;
// set invalid flag
@@ -1079,7 +1079,7 @@ bid128_ext_fma (int *ptr_is_midpoint_lt_even,
if (scale == 0) {
res.w[1] = z.w[1]; // & MASK_COEFF, which is redundant
res.w[0] = z.w[0];
- } else if (q3 <= 19) { // z fits in 64 bits
+ } else if (q3 <= 19) { // z fits in 64 bits
if (scale <= 19) { // 10^scale fits in 64 bits
// 64 x 64 C3.w[0] * ten2k64[scale]
__mul_64x64_to_128MACH (res, C3.w[0], ten2k64[scale]);
@@ -1087,7 +1087,7 @@ bid128_ext_fma (int *ptr_is_midpoint_lt_even,
// 64 x 128 C3.w[0] * ten2k128[scale - 20]
__mul_128x64_to_128 (res, C3.w[0], ten2k128[scale - 20]);
}
- } else { // z fits in 128 bits, but 10^scale must fit in 64 bits
+ } else { // z fits in 128 bits, but 10^scale must fit in 64 bits
// 64 x 128 ten2k64[scale] * C3
__mul_128x64_to_128 (res, ten2k64[scale], C3);
}
@@ -1104,8 +1104,8 @@ bid128_ext_fma (int *ptr_is_midpoint_lt_even,
} else {
; // continue with x = f, y = f, z = 0 or x = f, y = f, z = f
}
- e1 = (x_exp >> 49) - 6176; // unbiased exponent of x
- e2 = (y_exp >> 49) - 6176; // unbiased exponent of y
+ e1 = (x_exp >> 49) - 6176; // unbiased exponent of x
+ e2 = (y_exp >> 49) - 6176; // unbiased exponent of y
e3 = (z_exp >> 49) - 6176; // unbiased exponent of z
e4 = e1 + e2; // unbiased exponent of the exact x * y
@@ -1294,10 +1294,10 @@ bid128_ext_fma (int *ptr_is_midpoint_lt_even,
e4 = e4 + 1;
if (q4 + e4 == expmin + p34) *pfpsf |= (INEXACT_EXCEPTION | UNDERFLOW_EXCEPTION);
}
- // res is now the coefficient of the result rounded to the destination
+ // res is now the coefficient of the result rounded to the destination
// precision, with unbounded exponent; the exponent is e4; q4=digits(res)
} else { // if (q4 <= p34)
- // C4 * 10^e4 is the result rounded to the destination precision, with
+ // C4 * 10^e4 is the result rounded to the destination precision, with
// unbounded exponent (which is exact)
if ((q4 + e4 <= p34 + expmax) && (e4 > expmax)) {
@@ -1322,8 +1322,8 @@ bid128_ext_fma (int *ptr_is_midpoint_lt_even,
res.w[1] = C4.w[1];
res.w[0] = C4.w[0];
}
- // res is the coefficient of the result rounded to the destination
- // precision, with unbounded exponent (it has q4 digits); the exponent
+ // res is the coefficient of the result rounded to the destination
+ // precision, with unbounded exponent (it has q4 digits); the exponent
// is e4 (exact result)
}
@@ -1396,7 +1396,7 @@ bid128_ext_fma (int *ptr_is_midpoint_lt_even,
}
}
}
- e4 = e4 + x0; // expmin
+ e4 = e4 + x0; // expmin
} else if (x0 == q4) {
// the second rounding is for 0.d(0)d(1)...d(q4-1) * 10^emin
// determine relationship with 1/2 ulp
@@ -1412,12 +1412,12 @@ bid128_ext_fma (int *ptr_is_midpoint_lt_even,
is_inexact_gt_midpoint = 1;
}
} else { // if (q4 <= 34)
- if (res.w[1] < midpoint128[q4 - 20].w[1] ||
- (res.w[1] == midpoint128[q4 - 20].w[1] &&
+ if (res.w[1] < midpoint128[q4 - 20].w[1] ||
+ (res.w[1] == midpoint128[q4 - 20].w[1] &&
res.w[0] < midpoint128[q4 - 20].w[0])) { // < 1/2 ulp
lt_half_ulp = 1;
is_inexact_lt_midpoint = 1;
- } else if (res.w[1] == midpoint128[q4 - 20].w[1] &&
+ } else if (res.w[1] == midpoint128[q4 - 20].w[1] &&
res.w[0] == midpoint128[q4 - 20].w[0]) { // = 1/2 ulp
eq_half_ulp = 1;
is_midpoint_gt_even = 1;
@@ -1444,7 +1444,7 @@ bid128_ext_fma (int *ptr_is_midpoint_lt_even,
is_inexact_lt_midpoint = 1;
}
// avoid a double rounding error
- if ((is_inexact_gt_midpoint0 || is_midpoint_lt_even0) &&
+ if ((is_inexact_gt_midpoint0 || is_midpoint_lt_even0) &&
is_midpoint_lt_even) { // double rounding error upward
// res = res - 1
res.w[0]--;
@@ -1456,7 +1456,7 @@ bid128_ext_fma (int *ptr_is_midpoint_lt_even,
// not possible for f * f + 0
is_midpoint_lt_even = 0;
is_inexact_lt_midpoint = 1;
- } else if ((is_inexact_lt_midpoint0 || is_midpoint_gt_even0) &&
+ } else if ((is_inexact_lt_midpoint0 || is_midpoint_gt_even0) &&
is_midpoint_gt_even) { // double rounding error downward
// res = res + 1
res.w[0]++;
@@ -1466,7 +1466,7 @@ bid128_ext_fma (int *ptr_is_midpoint_lt_even,
is_inexact_gt_midpoint = 1;
} else if (!is_midpoint_lt_even && !is_midpoint_gt_even &&
!is_inexact_lt_midpoint && !is_inexact_gt_midpoint) {
- // if this second rounding was exact the result may still be
+ // if this second rounding was exact the result may still be
// inexact because of the first rounding
if (is_inexact_gt_midpoint0 || is_midpoint_lt_even0) {
is_inexact_gt_midpoint = 1;
@@ -1591,15 +1591,15 @@ bid128_ext_fma (int *ptr_is_midpoint_lt_even,
; // leave res unchanged
} else if (q4 <= 19) { // x * y fits in 64 bits
if (scale <= 19) { // 10^scale fits in 64 bits
- // 64 x 64 C3.w[0] * ten2k64[scale]
+ // 64 x 64 C3.w[0] * ten2k64[scale]
__mul_64x64_to_128MACH (res, C3.w[0], ten2k64[scale]);
- } else { // 10^scale fits in 128 bits
+ } else { // 10^scale fits in 128 bits
// 64 x 128 C3.w[0] * ten2k128[scale - 20]
__mul_128x64_to_128 (res, C3.w[0], ten2k128[scale - 20]);
}
res.w[1] = p_sign | (p_exp & MASK_EXP) | res.w[1];
} else { // x * y fits in 128 bits, but 10^scale must fit in 64 bits
- // 64 x 128 ten2k64[scale] * C3
+ // 64 x 128 ten2k64[scale] * C3
__mul_128x64_to_128 (res, ten2k64[scale], C3);
res.w[1] = p_sign | (p_exp & MASK_EXP) | res.w[1];
}
@@ -1706,7 +1706,7 @@ delta_ge_zero:
res.w[1] = z_sign | ((UINT64) (e3 + 6176) << 49) | C3.w[1];
res.w[0] = C3.w[0];
}
-
+
// use the following to avoid double rounding errors when operating on
// mixed formats in rounding to nearest, and for correcting the result
// if not rounding to nearest
@@ -1727,7 +1727,7 @@ delta_ge_zero:
if (q4 == 1) {
R64 = C4.w[0];
} else {
- // if q4 > 1 then truncate C4 from q4 digits to 1 digit;
+ // if q4 > 1 then truncate C4 from q4 digits to 1 digit;
// x = q4-1, 1 <= x <= 67 and check if this operation is exact
if (q4 <= 18) { // 2 <= q4 <= 18
round64_2_18 (q4, q4 - 1, C4.w[0], &R64, &incr_exp,
@@ -1843,9 +1843,9 @@ delta_ge_zero:
// endif
// endif
// endif
- // endif
- if ((e3 == expmin && (q3 + scale) < p34) ||
- (e3 == expmin && (q3 + scale) == p34 &&
+ // endif
+ if ((e3 == expmin && (q3 + scale) < p34) ||
+ (e3 == expmin && (q3 + scale) == p34 &&
(res.w[1] & MASK_COEFF) == 0x0000314dc6448d93ull && // 10^33_high
res.w[0] == 0x38c15b0a00000000ull && // 10^33_low
z_sign != p_sign)) {
@@ -1892,7 +1892,7 @@ delta_ge_zero:
e3 = e3 - scale;
// now z_sign, z_exp, and res correspond to a z scaled to p34 = 34 digits
- // determine whether x * y is less than, equal to, or greater than
+ // determine whether x * y is less than, equal to, or greater than
// 1/2 ulp (z)
if (q4 <= 19) {
if (C4.w[0] < midpoint64[q4 - 1]) { // < 1/2 ulp
@@ -1903,46 +1903,46 @@ delta_ge_zero:
gt_half_ulp = 1;
}
} else if (q4 <= 38) {
- if (C4.w[2] == 0 && (C4.w[1] < midpoint128[q4 - 20].w[1] ||
- (C4.w[1] == midpoint128[q4 - 20].w[1] &&
+ if (C4.w[2] == 0 && (C4.w[1] < midpoint128[q4 - 20].w[1] ||
+ (C4.w[1] == midpoint128[q4 - 20].w[1] &&
C4.w[0] < midpoint128[q4 - 20].w[0]))) { // < 1/2 ulp
lt_half_ulp = 1;
- } else if (C4.w[2] == 0 && C4.w[1] == midpoint128[q4 - 20].w[1] &&
+ } else if (C4.w[2] == 0 && C4.w[1] == midpoint128[q4 - 20].w[1] &&
C4.w[0] == midpoint128[q4 - 20].w[0]) { // = 1/2 ulp
eq_half_ulp = 1;
} else { // > 1/2 ulp
gt_half_ulp = 1;
}
} else if (q4 <= 58) {
- if (C4.w[3] == 0 && (C4.w[2] < midpoint192[q4 - 39].w[2] ||
- (C4.w[2] == midpoint192[q4 - 39].w[2] &&
- C4.w[1] < midpoint192[q4 - 39].w[1]) ||
- (C4.w[2] == midpoint192[q4 - 39].w[2] &&
- C4.w[1] == midpoint192[q4 - 39].w[1] &&
+ if (C4.w[3] == 0 && (C4.w[2] < midpoint192[q4 - 39].w[2] ||
+ (C4.w[2] == midpoint192[q4 - 39].w[2] &&
+ C4.w[1] < midpoint192[q4 - 39].w[1]) ||
+ (C4.w[2] == midpoint192[q4 - 39].w[2] &&
+ C4.w[1] == midpoint192[q4 - 39].w[1] &&
C4.w[0] < midpoint192[q4 - 39].w[0]))) { // < 1/2 ulp
lt_half_ulp = 1;
- } else if (C4.w[3] == 0 && C4.w[2] == midpoint192[q4 - 39].w[2] &&
- C4.w[1] == midpoint192[q4 - 39].w[1] &&
+ } else if (C4.w[3] == 0 && C4.w[2] == midpoint192[q4 - 39].w[2] &&
+ C4.w[1] == midpoint192[q4 - 39].w[1] &&
C4.w[0] == midpoint192[q4 - 39].w[0]) { // = 1/2 ulp
eq_half_ulp = 1;
} else { // > 1/2 ulp
gt_half_ulp = 1;
}
} else {
- if (C4.w[3] < midpoint256[q4 - 59].w[3] ||
- (C4.w[3] == midpoint256[q4 - 59].w[3] &&
- C4.w[2] < midpoint256[q4 - 59].w[2]) ||
- (C4.w[3] == midpoint256[q4 - 59].w[3] &&
- C4.w[2] == midpoint256[q4 - 59].w[2] &&
- C4.w[1] < midpoint256[q4 - 59].w[1]) ||
- (C4.w[3] == midpoint256[q4 - 59].w[3] &&
- C4.w[2] == midpoint256[q4 - 59].w[2] &&
- C4.w[1] == midpoint256[q4 - 59].w[1] &&
+ if (C4.w[3] < midpoint256[q4 - 59].w[3] ||
+ (C4.w[3] == midpoint256[q4 - 59].w[3] &&
+ C4.w[2] < midpoint256[q4 - 59].w[2]) ||
+ (C4.w[3] == midpoint256[q4 - 59].w[3] &&
+ C4.w[2] == midpoint256[q4 - 59].w[2] &&
+ C4.w[1] < midpoint256[q4 - 59].w[1]) ||
+ (C4.w[3] == midpoint256[q4 - 59].w[3] &&
+ C4.w[2] == midpoint256[q4 - 59].w[2] &&
+ C4.w[1] == midpoint256[q4 - 59].w[1] &&
C4.w[0] < midpoint256[q4 - 59].w[0])) { // < 1/2 ulp
lt_half_ulp = 1;
- } else if (C4.w[3] == midpoint256[q4 - 59].w[3] &&
- C4.w[2] == midpoint256[q4 - 59].w[2] &&
- C4.w[1] == midpoint256[q4 - 59].w[1] &&
+ } else if (C4.w[3] == midpoint256[q4 - 59].w[3] &&
+ C4.w[2] == midpoint256[q4 - 59].w[2] &&
+ C4.w[1] == midpoint256[q4 - 59].w[1] &&
C4.w[0] == midpoint256[q4 - 59].w[0]) { // = 1/2 ulp
eq_half_ulp = 1;
} else { // > 1/2 ulp
@@ -1962,7 +1962,7 @@ delta_ge_zero:
if (res.w[0] == 0x0ull)
res.w[1]++;
// check for rounding overflow, when coeff == 10^34
- if ((res.w[1] & MASK_COEFF) == 0x0001ed09bead87c0ull &&
+ if ((res.w[1] & MASK_COEFF) == 0x0001ed09bead87c0ull &&
res.w[0] == 0x378d8e6400000000ull) { // coefficient = 10^34
e3 = e3 + 1;
// coeff = 10^33
@@ -1978,7 +1978,7 @@ delta_ge_zero:
is_inexact_gt_midpoint = 1; // if (z_sign), as if for absolute value
}
} else { // if (eq_half_ulp && !(res.w[0] & 0x01))
- // leave unchanged
+ // leave unchanged
res.w[1] = z_sign | (z_exp & MASK_EXP) | res.w[1];
is_midpoint_gt_even = 1; // if (z_sign), as if for absolute value
}
@@ -2007,7 +2007,7 @@ delta_ge_zero:
}
} else { // if (p_sign != z_sign)
// consider two cases, because C3 * 10^scale = 10^33 is a special case
- if (res.w[1] != 0x0000314dc6448d93ull ||
+ if (res.w[1] != 0x0000314dc6448d93ull ||
res.w[0] != 0x38c15b0a00000000ull) { // C3 * 10^scale != 10^33
if (lt_half_ulp) {
res.w[1] = z_sign | (z_exp & MASK_EXP) | res.w[1];
@@ -2065,7 +2065,7 @@ delta_ge_zero:
} else { // if C3 * 10^scale = 10^33
e3 = (z_exp >> 49) - 6176;
if (e3 > expmin) {
- // the result is exact if exp > expmin and C4 = d*10^(q4-1),
+ // the result is exact if exp > expmin and C4 = d*10^(q4-1),
// where d = 1, 2, 3, ..., 9; it could be tiny too, but exact
if (q4 == 1) {
// if q4 = 1 the result is exact
@@ -2076,7 +2076,7 @@ delta_ge_zero:
e3 = e3 - 1;
res.w[1] = z_sign | (z_exp & MASK_EXP) | res.w[1];
} else {
- // if q4 > 1 then truncate C4 from q4 digits to 1 digit;
+ // if q4 > 1 then truncate C4 from q4 digits to 1 digit;
// x = q4-1, 1 <= x <= 67 and check if this operation is exact
if (q4 <= 18) { // 2 <= q4 <= 18
round64_2_18 (q4, q4 - 1, C4.w[0], &R64, &incr_exp,
@@ -2121,7 +2121,7 @@ delta_ge_zero:
z_sign | (z_exp & MASK_EXP) | 0x0001ed09bead87c0ull;
res.w[0] = 0x378d8e6400000000ull - R64;
} else {
- // We want R64 to be the top digit of C4, but we actually
+ // We want R64 to be the top digit of C4, but we actually
// obtained (C4 * 10^(-q4+1))RN; a correction may be needed,
// because the top digit is (C4 * 10^(-q4+1))RZ
// however, if incr_exp = 1 then R64 = 10 with certainty
@@ -2200,7 +2200,7 @@ delta_ge_zero:
// tininess is C4 > 050...0 [q4 digits] which is met because
// the msd of C4 is not zero)
// the result is tiny and inexact in all rounding modes;
- // it is either 100...0 or 0999...9 (use lt_half_ulp, eq_half_ulp,
+ // it is either 100...0 or 0999...9 (use lt_half_ulp, eq_half_ulp,
// gt_half_ulp to calculate)
// if (lt_half_ulp || eq_half_ulp) res = 10^33 stays unchanged
@@ -2259,14 +2259,14 @@ delta_ge_zero:
if ((q3 <= delta && delta < p34 && p34 < delta + q4) || // Case (2)
(delta < q3 && p34 < delta + q4)) { // Case (4)
// round first the sum x * y + z with unbounded exponent
- // scale C3 up by scale = p34 - q3, 1 <= scale <= p34-1,
+ // scale C3 up by scale = p34 - q3, 1 <= scale <= p34-1,
// 1 <= scale <= 33
// calculate res = C3 * 10^scale
scale = p34 - q3;
x0 = delta + q4 - p34;
} else if (delta + q4 < q3) { // Case (6)
// make Case (6) look like Case (3) or Case (5) with scale = 0
- // by scaling up C4 by 10^(q3 - delta - q4)
+ // by scaling up C4 by 10^(q3 - delta - q4)
scale = q3 - delta - q4; // 1 <= scale <= 33
if (q4 <= 19) { // 1 <= scale <= 19; C4 fits in 64 bits
if (scale <= 19) { // 10^scale fits in 64 bits
@@ -2285,7 +2285,7 @@ delta_ge_zero:
// e4 does not need adjustment, as it is not used from this point on
scale = 0;
x0 = 0;
- // now Case (6) looks like Case (3) or Case (5) with scale = 0
+ // now Case (6) looks like Case (3) or Case (5) with scale = 0
} else { // if Case (3) or Case (5)
// Note: Case (3) is similar to Case (2), but scale differs and the
// result is exact, unless it is tiny (so x0 = 0 when calculating the
@@ -2395,12 +2395,12 @@ delta_ge_zero:
// R256.w[3] and R256.w[2] are always 0
if (incr_exp) {
// R256 = 10^(q4-x0), 1 <= q4 - x0 <= q4 - 25, 1 <= q4 - x0 <= 43
- if (q4 - x0 <= 19) { // 1 <= q4 - x0 <= 19
+ if (q4 - x0 <= 19) { // 1 <= q4 - x0 <= 19
R256.w[0] = ten2k64[q4 - x0];
// R256.w[1] stays 0
// R256.w[2] stays 0
// R256.w[3] stays 0
- } else { // 20 <= q4 - x0 <= 33
+ } else { // 20 <= q4 - x0 <= 33
R256.w[0] = ten2k128[q4 - x0 - 20].w[0];
R256.w[1] = ten2k128[q4 - x0 - 20].w[1];
// R256.w[2] stays 0
@@ -2440,7 +2440,7 @@ delta_ge_zero:
&is_inexact_gt_midpoint);
// incr_exp is 0 with certainty in this case
// avoid a double rounding error
- if ((is_inexact_gt_midpoint0 || is_midpoint_lt_even0) &&
+ if ((is_inexact_gt_midpoint0 || is_midpoint_lt_even0) &&
is_midpoint_lt_even) { // double rounding error upward
// res = res - 1
res.w[0]--;
@@ -2452,7 +2452,7 @@ delta_ge_zero:
// not possible in Cases (2)-(6) or (15)-(17) which may get here
is_midpoint_lt_even = 0;
is_inexact_lt_midpoint = 1;
- } else if ((is_inexact_lt_midpoint0 || is_midpoint_gt_even0) &&
+ } else if ((is_inexact_lt_midpoint0 || is_midpoint_gt_even0) &&
is_midpoint_gt_even) { // double rounding error downward
// res = res + 1
res.w[0]++;
@@ -2463,7 +2463,7 @@ delta_ge_zero:
} else if (!is_midpoint_lt_even && !is_midpoint_gt_even &&
!is_inexact_lt_midpoint
&& !is_inexact_gt_midpoint) {
- // if this second rounding was exact the result may still be
+ // if this second rounding was exact the result may still be
// inexact because of the first rounding
if (is_inexact_gt_midpoint0 || is_midpoint_lt_even0) {
is_inexact_gt_midpoint = 1;
@@ -2526,7 +2526,7 @@ delta_ge_zero:
res.w[0]--;
if (res.w[0] == 0xffffffffffffffffull)
res.w[1]--;
- // if the result is pure zero, the sign depends on the rounding
+ // if the result is pure zero, the sign depends on the rounding
// mode (x*y and z had opposite signs)
if (res.w[1] == 0x0ull && res.w[0] == 0x0ull) {
if (rnd_mode != ROUNDING_DOWN)
@@ -2557,7 +2557,7 @@ delta_ge_zero:
res.w[1] = res.w[1] - R128.w[1];
if (res.w[0] > tmp64)
res.w[1]--; // borrow
- // if res < 10^33 and exp > expmin need to decrease x0 and
+ // if res < 10^33 and exp > expmin need to decrease x0 and
// increase scale by 1
if (e3 > expmin && ((res.w[1] < 0x0000314dc6448d93ull ||
(res.w[1] == 0x0000314dc6448d93ull &&
@@ -2578,7 +2578,7 @@ delta_ge_zero:
goto case2_repeat;
}
// else this is the result rounded with unbounded exponent;
- // because the result has opposite sign to that of C4 which was
+ // because the result has opposite sign to that of C4 which was
// rounded, need to change the rounding indicators
if (is_inexact_lt_midpoint) {
is_inexact_lt_midpoint = 0;
@@ -2615,7 +2615,7 @@ delta_ge_zero:
res.w[0]--;
if (res.w[0] == 0xffffffffffffffffull)
res.w[1]--;
- // if the result is pure zero, the sign depends on the rounding
+ // if the result is pure zero, the sign depends on the rounding
// mode (x*y and z had opposite signs)
if (res.w[1] == 0x0ull && res.w[0] == 0x0ull) {
if (rnd_mode != ROUNDING_DOWN)
@@ -2647,7 +2647,7 @@ delta_ge_zero:
is_tiny = 1;
}
if (((res.w[1] & 0x7fffffffffffffffull) == 0x0000314dc6448d93ull) &&
- (res.w[0] == 0x38c15b0a00000000ull) && // 10^33*10^-6176
+ (res.w[0] == 0x38c15b0a00000000ull) && // 10^33*10^-6176
(z_sign != p_sign)) is_tiny = 1;
} else if (e3 < expmin) {
// the result is tiny, so we must truncate more of res
@@ -2689,8 +2689,8 @@ delta_ge_zero:
// at this point ind >= x0; because delta >= 2 on this path, the case
// ind = x0 can occur only in Case (2) or case (3), when C3 has one
- // digit (q3 = 1) equal to 1 (C3 = 1), e3 is expmin (e3 = expmin),
- // the signs of x * y and z are opposite, and through cancellation
+ // digit (q3 = 1) equal to 1 (C3 = 1), e3 is expmin (e3 = expmin),
+ // the signs of x * y and z are opposite, and through cancellation
// the most significant decimal digit in res has the weight
// 10^(emin-1); however, it is clear that in this case the most
// significant digit is 9, so the result before rounding is
@@ -2734,7 +2734,7 @@ delta_ge_zero:
}
}
// avoid a double rounding error
- if ((is_inexact_gt_midpoint0 || is_midpoint_lt_even0) &&
+ if ((is_inexact_gt_midpoint0 || is_midpoint_lt_even0) &&
is_midpoint_lt_even) { // double rounding error upward
// res = res - 1
res.w[0]--;
@@ -2746,7 +2746,7 @@ delta_ge_zero:
// not possible in Cases (2)-(6) which may get here
is_midpoint_lt_even = 0;
is_inexact_lt_midpoint = 1;
- } else if ((is_inexact_lt_midpoint0 || is_midpoint_gt_even0) &&
+ } else if ((is_inexact_lt_midpoint0 || is_midpoint_gt_even0) &&
is_midpoint_gt_even) { // double rounding error downward
// res = res + 1
res.w[0]++;
@@ -2756,7 +2756,7 @@ delta_ge_zero:
is_inexact_gt_midpoint = 1;
} else if (!is_midpoint_lt_even && !is_midpoint_gt_even &&
!is_inexact_lt_midpoint && !is_inexact_gt_midpoint) {
- // if this second rounding was exact the result may still be
+ // if this second rounding was exact the result may still be
// inexact because of the first rounding
if (is_inexact_gt_midpoint0 || is_midpoint_lt_even0) {
is_inexact_gt_midpoint = 1;
@@ -2803,7 +2803,7 @@ delta_ge_zero:
}
// now check for significand = 10^34 (may have resulted from going
// back to case2_repeat)
- if (res.w[1] == 0x0001ed09bead87c0ull &&
+ if (res.w[1] == 0x0001ed09bead87c0ull &&
res.w[0] == 0x378d8e6400000000ull) { // if res = 10^34
res.w[1] = 0x0000314dc6448d93ull; // res = 10^33
res.w[0] = 0x38c15b0a00000000ull;
@@ -2834,15 +2834,15 @@ delta_ge_zero:
// we get here only if delta <= 1 in Cases (2), (3), (4), (5), or (6) and
// the signs of x*y and z are opposite; in these cases massive
- // cancellation can occur, so it is better to scale either C3 or C4 and
- // to perform the subtraction before rounding; rounding is performed
- // next, depending on the number of decimal digits in the result and on
+ // cancellation can occur, so it is better to scale either C3 or C4 and
+ // to perform the subtraction before rounding; rounding is performed
+ // next, depending on the number of decimal digits in the result and on
// the exponent value
// Note: overlow is not possible in this case
// this is similar to Cases (15), (16), and (17)
- if (delta + q4 < q3) { // from Case (6)
- // Case (6) with 0<= delta <= 1 is similar to Cases (15), (16), and
+ if (delta + q4 < q3) { // from Case (6)
+ // Case (6) with 0<= delta <= 1 is similar to Cases (15), (16), and
// (17) if we swap (C3, C4), (q3, q4), (e3, e4), (z_sign, p_sign)
// and call add_and_round; delta stays positive
// C4.w[3] = 0 and C4.w[2] = 0, so swap just the low part of C4 with C3
@@ -2862,8 +2862,8 @@ delta_ge_zero:
z_sign = p_sign;
p_sign = tmp_sign;
} else { // from Cases (2), (3), (4), (5)
- // In Cases (2), (3), (4), (5) with 0 <= delta <= 1 C3 has to be
- // scaled up by q4 + delta - q3; this is the same as in Cases (15),
+ // In Cases (2), (3), (4), (5) with 0 <= delta <= 1 C3 has to be
+ // scaled up by q4 + delta - q3; this is the same as in Cases (15),
// (16), and (17) if we just change the sign of delta
delta = -delta;
}
@@ -2925,7 +2925,7 @@ delta_ge_zero:
if (p_sign == z_sign) {
is_inexact_lt_midpoint = 1;
} else { // if (p_sign != z_sign)
- if (res.w[1] != 0x0000314dc6448d93ull ||
+ if (res.w[1] != 0x0000314dc6448d93ull ||
res.w[0] != 0x38c15b0a00000000ull) { // res != 10^33
is_inexact_gt_midpoint = 1;
} else { // res = 10^33 and exact is a special case
@@ -2951,12 +2951,12 @@ delta_ge_zero:
is_inexact_lt_midpoint = 1;
}
} else { // if (20 <= q3 <=34)
- if (C3.w[1] < midpoint128[q3 - 20].w[1] ||
- (C3.w[1] == midpoint128[q3 - 20].w[1] &&
+ if (C3.w[1] < midpoint128[q3 - 20].w[1] ||
+ (C3.w[1] == midpoint128[q3 - 20].w[1] &&
C3.w[0] < midpoint128[q3 - 20].w[0])) { // C3 < 1/2 ulp
// res = 10^33, unchanged
is_inexact_gt_midpoint = 1;
- } else if (C3.w[1] == midpoint128[q3 - 20].w[1] &&
+ } else if (C3.w[1] == midpoint128[q3 - 20].w[1] &&
C3.w[0] == midpoint128[q3 - 20].w[0]) { // C3 = 1/2 ulp
// res = 10^33, unchanged
is_midpoint_lt_even = 1;
@@ -2976,7 +2976,7 @@ delta_ge_zero:
res.w[0] = res.w[0] - 1;
if (res.w[0] == 0xffffffffffffffffull)
res.w[1]--;
- // if it is (10^33-1)*10^e4 then the corect result is
+ // if it is (10^33-1)*10^e4 then the corect result is
// (10^34-1)*10(e4-1)
if (res.w[1] == 0x0000314dc6448d93ull &&
res.w[0] == 0x38c15b09ffffffffull) {
@@ -3074,7 +3074,7 @@ delta_ge_zero:
(delta < p34 && p34 < q4 && q4 < delta + q3)) { // Case (12)
// round C3 to nearest to q3 - x0 digits, where x0 = e4 - e3,
- // 1 <= x0 <= q3 - 1 <= p34 - 1
+ // 1 <= x0 <= q3 - 1 <= p34 - 1
x0 = e4 - e3; // or x0 = delta + q3 - q4
if (q3 <= 18) { // 2 <= q3 <= 18
round64_2_18 (q3, x0, C3.w[0], &R64, &incr_exp,
@@ -3100,7 +3100,7 @@ delta_ge_zero:
__mul_64x128_to_128 (C3, ten2k64[1], P128);
}
e3 = e3 + x0; // this is e4
- // now add/subtract the 256-bit C4 and the new (and shorter) 128-bit C3;
+ // now add/subtract the 256-bit C4 and the new (and shorter) 128-bit C3;
// the result will have the sign of x * y; the exponent is e4
R256.w[3] = 0;
R256.w[2] = 0;
@@ -3110,7 +3110,7 @@ delta_ge_zero:
add256 (C4, R256, &R256);
} else { // if (p_sign != z_sign) { // R256 = C4 - R256
sub256 (C4, R256, &R256); // the result cannot be pure zero
- // because the result has opposite sign to that of R256 which was
+ // because the result has opposite sign to that of R256 which was
// rounded, need to change the rounding indicators
lsb = C4.w[0] & 0x01;
if (is_inexact_lt_midpoint) {
@@ -3164,16 +3164,16 @@ delta_ge_zero:
}
// determine the number of decimal digits in R256
ind = nr_digits256 (R256); // ind >= p34
- // if R256 is sum, then ind > p34; if R256 is a difference, then
+ // if R256 is sum, then ind > p34; if R256 is a difference, then
// ind >= p34; this means that we can calculate the result rounded to
// the destination precision, with unbounded exponent, starting from R256
// and using the indicators from the rounding of C3 to avoid a double
- // rounding error
+ // rounding error
if (ind < p34) {
;
} else if (ind == p34) {
- // the result rounded to the destination precision with
+ // the result rounded to the destination precision with
// unbounded exponent
// is (-1)^p_sign * R256 * 10^e4
res.w[1] = R256.w[1];
@@ -3225,7 +3225,7 @@ delta_ge_zero:
res.w[0] = R128.w[0];
// avoid a double rounding error
- if ((is_inexact_gt_midpoint0 || is_midpoint_lt_even0) &&
+ if ((is_inexact_gt_midpoint0 || is_midpoint_lt_even0) &&
is_midpoint_lt_even) { // double rounding error upward
// res = res - 1
res.w[0]--;
@@ -3238,15 +3238,15 @@ delta_ge_zero:
// (35 digits in all), possibly followed by a number of zeros; this
// not possible in Cases (2)-(6) or (15)-(17) which may get here
// if this is 10^33 - 1 make it 10^34 - 1 and decrement exponent
- if (res.w[1] == 0x0000314dc6448d93ull &&
+ if (res.w[1] == 0x0000314dc6448d93ull &&
res.w[0] == 0x38c15b09ffffffffull) { // 10^33 - 1
res.w[1] = 0x0001ed09bead87c0ull; // 10^34 - 1
res.w[0] = 0x378d8e63ffffffffull;
e4--;
}
- } else if ((is_inexact_lt_midpoint0 || is_midpoint_gt_even0) &&
+ } else if ((is_inexact_lt_midpoint0 || is_midpoint_gt_even0) &&
is_midpoint_gt_even) { // double rounding error downward
- // res = res + 1
+ // res = res + 1
res.w[0]++;
if (res.w[0] == 0)
res.w[1]++;
@@ -3288,7 +3288,7 @@ delta_ge_zero:
}
} else {
// for RM, RP, RZ, RA apply correction in order to determine tininess
- // but do not save the result; apply the correction to
+ // but do not save the result; apply the correction to
// (-1)^p_sign * res * 10^0
P128.w[1] = p_sign | 0x3040000000000000ull | res.w[1];
P128.w[0] = res.w[0];
@@ -3310,7 +3310,7 @@ delta_ge_zero:
// at this point we have the result rounded with unbounded exponent in
// res and we know its tininess:
- // res = (-1)^p_sign * significand * 10^e4,
+ // res = (-1)^p_sign * significand * 10^e4,
// where q (significand) = ind = p34
// Note: res is correct only if expmin <= e4 <= expmax
@@ -3356,7 +3356,7 @@ delta_ge_zero:
} else if (x0 == ind) { // 1 <= x0 = ind <= p34 = 34
// this is <, =, or > 1/2 ulp
// compare the ind-digit value in the significand of res with
- // 1/2 ulp = 5*10^(ind-1), i.e. determine whether it is
+ // 1/2 ulp = 5*10^(ind-1), i.e. determine whether it is
// less than, equal to, or greater than 1/2 ulp (significand of res)
R128.w[1] = res.w[1] & MASK_COEFF;
R128.w[0] = res.w[0];
@@ -3372,12 +3372,12 @@ delta_ge_zero:
is_inexact_gt_midpoint = 1;
}
} else { // if (ind <= 38)
- if (R128.w[1] < midpoint128[ind - 20].w[1] ||
- (R128.w[1] == midpoint128[ind - 20].w[1] &&
+ if (R128.w[1] < midpoint128[ind - 20].w[1] ||
+ (R128.w[1] == midpoint128[ind - 20].w[1] &&
R128.w[0] < midpoint128[ind - 20].w[0])) { // < 1/2 ulp
lt_half_ulp = 1;
is_inexact_lt_midpoint = 1;
- } else if (R128.w[1] == midpoint128[ind - 20].w[1] &&
+ } else if (R128.w[1] == midpoint128[ind - 20].w[1] &&
R128.w[0] == midpoint128[ind - 20].w[0]) { // = 1/2 ulp
eq_half_ulp = 1;
is_midpoint_gt_even = 1;
@@ -3428,7 +3428,7 @@ delta_ge_zero:
p_sign | ((UINT64) (e4 + 6176) << 49) | (res.
w[1] & MASK_COEFF);
// avoid a double rounding error
- if ((is_inexact_gt_midpoint0 || is_midpoint_lt_even0) &&
+ if ((is_inexact_gt_midpoint0 || is_midpoint_lt_even0) &&
is_midpoint_lt_even) { // double rounding error upward
// res = res - 1
res.w[0]--;
@@ -3440,7 +3440,7 @@ delta_ge_zero:
// not possible in this underflow case
is_midpoint_lt_even = 0;
is_inexact_lt_midpoint = 1;
- } else if ((is_inexact_lt_midpoint0 || is_midpoint_gt_even0) &&
+ } else if ((is_inexact_lt_midpoint0 || is_midpoint_gt_even0) &&
is_midpoint_gt_even) { // double rounding error downward
// res = res + 1
res.w[0]++;
@@ -3451,7 +3451,7 @@ delta_ge_zero:
} else if (!is_midpoint_lt_even && !is_midpoint_gt_even &&
!is_inexact_lt_midpoint
&& !is_inexact_gt_midpoint) {
- // if this second rounding was exact the result may still be
+ // if this second rounding was exact the result may still be
// inexact because of the first rounding
if (is_inexact_gt_midpoint0 || is_midpoint_lt_even0) {
is_inexact_gt_midpoint = 1;
@@ -4131,10 +4131,10 @@ bid64qqq_fma (UINT128 x, UINT128 y, UINT128 z
_EXC_INFO_ARG);
#endif
- if ((rnd_mode == ROUNDING_DOWN) || (rnd_mode == ROUNDING_UP) ||
+ if ((rnd_mode == ROUNDING_DOWN) || (rnd_mode == ROUNDING_UP) ||
(rnd_mode == ROUNDING_TO_ZERO) || // no double rounding error is possible
((res.w[HIGH_128W] & MASK_NAN) == MASK_NAN) || //res=QNaN (cannot be SNaN)
- ((res.w[HIGH_128W] & MASK_ANY_INF) == MASK_INF)) { // result is infinity
+ ((res.w[HIGH_128W] & MASK_ANY_INF) == MASK_INF)) { // result is infinity
#if DECIMAL_CALL_BY_REFERENCE
bid128_to_bid64 (&res1, &res _RND_MODE_ARG _EXC_FLAGS_ARG);
#else
@@ -4150,7 +4150,7 @@ bid64qqq_fma (UINT128 x, UINT128 y, UINT128 z
&& ((res1 & MASK_BINARY_SIG1) < 1000000000000000ull)
&& (is_inexact_lt_midpoint0 || is_inexact_gt_midpoint0
|| is_midpoint_lt_even0 || is_midpoint_gt_even0)) {
- // set the inexact flag and the underflow flag
+ // set the inexact flag and the underflow flag
*pfpsf |= (INEXACT_EXCEPTION | UNDERFLOW_EXCEPTION);
} else if (is_inexact_lt_midpoint0 || is_inexact_gt_midpoint0 ||
is_midpoint_lt_even0 || is_midpoint_gt_even0) {
@@ -4184,7 +4184,7 @@ bid64qqq_fma (UINT128 x, UINT128 y, UINT128 z
C.w[0] = res.w[LOW_128W];
if ((C.w[1] == 0x0 && C.w[0] == 0x0) || // result is zero
- (unbexp <= (-398 - 35)) || (unbexp >= (369 + 16))) {
+ (unbexp <= (-398 - 35)) || (unbexp >= (369 + 16))) {
// clear under/overflow
#if DECIMAL_CALL_BY_REFERENCE
bid128_to_bid64 (&res1, &res _RND_MODE_ARG _EXC_FLAGS_ARG);
@@ -4239,7 +4239,7 @@ bid64qqq_fma (UINT128 x, UINT128 y, UINT128 z
C.w[0] >= nr_digits[nr_bits - 1].threshold_lo))
q++;
}
- // if q > 16, round to nearest even to 16 digits (but for underflow it may
+ // if q > 16, round to nearest even to 16 digits (but for underflow it may
// have to be truncated even more)
if (q > 16) {
x0 = q - 16;
@@ -4258,23 +4258,23 @@ bid64qqq_fma (UINT128 x, UINT128 y, UINT128 z
unbexp++;
q = 16; // need to set in case denormalization is necessary
} else {
- // the result does not require a second rounding (and it must have
+ // the result does not require a second rounding (and it must have
// been exact in the first rounding, since q <= 16)
res1 = C.w[0];
}
// avoid a double rounding error
- if ((is_inexact_gt_midpoint0 || is_midpoint_lt_even0) &&
+ if ((is_inexact_gt_midpoint0 || is_midpoint_lt_even0) &&
is_midpoint_lt_even) { // double rounding error upward
- // res = res - 1
- res1--; // res1 becomes odd
+ // res = res - 1
+ res1--; // res1 becomes odd
is_midpoint_lt_even = 0;
is_inexact_lt_midpoint = 1;
if (res1 == 0x00038d7ea4c67fffull) { // 10^15 - 1
- res1 = 0x002386f26fc0ffffull; // 10^16 - 1
+ res1 = 0x002386f26fc0ffffull; // 10^16 - 1
unbexp--;
}
- } else if ((is_inexact_lt_midpoint0 || is_midpoint_gt_even0) &&
+ } else if ((is_inexact_lt_midpoint0 || is_midpoint_gt_even0) &&
is_midpoint_gt_even) { // double rounding error downward
// res = res + 1
res1++; // res1 becomes odd (so it cannot be 10^16)
@@ -4282,7 +4282,7 @@ bid64qqq_fma (UINT128 x, UINT128 y, UINT128 z
is_inexact_gt_midpoint = 1;
} else if (!is_midpoint_lt_even && !is_midpoint_gt_even &&
!is_inexact_lt_midpoint && !is_inexact_gt_midpoint) {
- // if this second rounding was exact the result may still be
+ // if this second rounding was exact the result may still be
// inexact because of the first rounding
if (is_inexact_gt_midpoint0 || is_midpoint_lt_even0) {
is_inexact_gt_midpoint = 1;
@@ -4292,14 +4292,14 @@ bid64qqq_fma (UINT128 x, UINT128 y, UINT128 z
}
} else if (is_midpoint_gt_even &&
(is_inexact_gt_midpoint0 || is_midpoint_lt_even0)) {
- // pulled up to a midpoint
+ // pulled up to a midpoint
is_inexact_lt_midpoint = 1;
is_inexact_gt_midpoint = 0;
is_midpoint_lt_even = 0;
is_midpoint_gt_even = 0;
} else if (is_midpoint_lt_even &&
(is_inexact_lt_midpoint0 || is_midpoint_gt_even0)) {
- // pulled down to a midpoint
+ // pulled down to a midpoint
is_inexact_lt_midpoint = 0;
is_inexact_gt_midpoint = 1;
is_midpoint_lt_even = 0;
@@ -4307,7 +4307,7 @@ bid64qqq_fma (UINT128 x, UINT128 y, UINT128 z
} else {
;
}
- // this is the result rounded correctly to nearest even, with unbounded exp.
+ // this is the result rounded correctly to nearest even, with unbounded exp.
// check for overflow
if (q + unbexp > P16 + expmax16) {
@@ -4320,7 +4320,7 @@ bid64qqq_fma (UINT128 x, UINT128 y, UINT128 z
// 10^(unbexp - expmax16) and the product will fit in 16 decimal digits
scale = unbexp - expmax16;
res1 = res1 * ten2k64[scale]; // res1 * 10^scale
- unbexp = expmax16; // unbexp - scale
+ unbexp = expmax16; // unbexp - scale
} else {
; // continue
}
@@ -4378,13 +4378,13 @@ bid64qqq_fma (UINT128 x, UINT128 y, UINT128 z
is_inexact_lt_midpoint = 1;
}
// avoid a double rounding error
- if ((is_inexact_gt_midpoint0 || is_midpoint_lt_even0) &&
+ if ((is_inexact_gt_midpoint0 || is_midpoint_lt_even0) &&
is_midpoint_lt_even) { // double rounding error upward
// res = res - 1
res1--; // res1 becomes odd
is_midpoint_lt_even = 0;
is_inexact_lt_midpoint = 1;
- } else if ((is_inexact_lt_midpoint0 || is_midpoint_gt_even0) &&
+ } else if ((is_inexact_lt_midpoint0 || is_midpoint_gt_even0) &&
is_midpoint_gt_even) { // double rounding error downward
// res = res + 1
res1++; // res1 becomes odd
@@ -4392,7 +4392,7 @@ bid64qqq_fma (UINT128 x, UINT128 y, UINT128 z
is_inexact_gt_midpoint = 1;
} else if (!is_midpoint_lt_even && !is_midpoint_gt_even &&
!is_inexact_lt_midpoint && !is_inexact_gt_midpoint) {
- // if this rounding was exact the result may still be
+ // if this rounding was exact the result may still be
// inexact because of the previous roundings
if (is_inexact_gt_midpoint0 || is_midpoint_lt_even0) {
is_inexact_gt_midpoint = 1;
diff --git a/libgcc/config/libbid/bid128_minmax.c b/libgcc/config/libbid/bid128_minmax.c
index 9700dc4b988..55604057f9e 100644
--- a/libgcc/config/libbid/bid128_minmax.c
+++ b/libgcc/config/libbid/bid128_minmax.c
@@ -172,7 +172,7 @@ bid128_minnum (UINT128 x, UINT128 y _EXC_FLAGS_PARAM) {
// ZERO (CASE4)
// some properties:
// (+ZERO == -ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => ignore the exponent
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B => ignore the exponent
// field
// (Any non-canonical # is considered 0)
if ((sig_x.w[1] == 0) && (sig_x.w[0] == 0)) {
@@ -202,7 +202,7 @@ bid128_minnum (UINT128 x, UINT128 y _EXC_FLAGS_PARAM) {
BID_RETURN (res);
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if exponents are the same, then we have a simple comparison of
+ // if exponents are the same, then we have a simple comparison of
// the significands
if (exp_y == exp_x) {
res = (((sig_x.w[1] > sig_y.w[1])
@@ -211,7 +211,7 @@ bid128_minnum (UINT128 x, UINT128 y _EXC_FLAGS_PARAM) {
MASK_SIGN)) ? y : x;
BID_RETURN (res);
}
- // if both components are either bigger or smaller, it is clear what
+ // if both components are either bigger or smaller, it is clear what
// needs to be done
if (sig_x.w[1] >= sig_y.w[1] && sig_x.w[0] >= sig_y.w[0]
&& exp_x > exp_y) {
@@ -236,7 +236,7 @@ bid128_minnum (UINT128 x, UINT128 y _EXC_FLAGS_PARAM) {
}
if (diff > 19) { //128 by 128 bit multiply -> 256 bits
__mul_128x128_to_256 (sig_n_prime256, sig_x, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
res = ((((sig_n_prime256.w[3] > 0) || sig_n_prime256.w[2] > 0)
|| (sig_n_prime256.w[1] > sig_y.w[1])
@@ -247,7 +247,7 @@ bid128_minnum (UINT128 x, UINT128 y _EXC_FLAGS_PARAM) {
BID_RETURN (res);
}
__mul_64x128_to_192 (sig_n_prime192, ten2k64[diff], sig_x);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
res =
(((sig_n_prime192.w[2] > 0) || (sig_n_prime192.w[1] > sig_y.w[1])
@@ -265,7 +265,7 @@ bid128_minnum (UINT128 x, UINT128 y _EXC_FLAGS_PARAM) {
if (diff > 19) { //128 by 128 bit multiply -> 256 bits
// adjust the y significand upwards
__mul_128x128_to_256 (sig_n_prime256, sig_y, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
res =
((sig_n_prime256.w[3] != 0 || sig_n_prime256.w[2] != 0
@@ -436,7 +436,7 @@ bid128_minnum_mag (UINT128 x, UINT128 y _EXC_FLAGS_PARAM) {
// ZERO (CASE4)
// some properties:
// (+ZERO == -ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// therefore ignore the exponent field
// (Any non-canonical # is considered 0)
if ((sig_x.w[1] == 0) && (sig_x.w[0] == 0)) {
@@ -465,7 +465,7 @@ bid128_minnum_mag (UINT128 x, UINT128 y _EXC_FLAGS_PARAM) {
|| (sig_x.w[1] == sig_y.w[1]
&& sig_x.w[0] >= sig_y.w[0]))
&& exp_x > exp_y)) {
- // if both components are either bigger or smaller, it is clear what
+ // if both components are either bigger or smaller, it is clear what
// needs to be done; also if the magnitudes are equal
res = y;
BID_RETURN (res);
@@ -491,7 +491,7 @@ bid128_minnum_mag (UINT128 x, UINT128 y _EXC_FLAGS_PARAM) {
}
if (diff > 19) { //128 by 128 bit multiply -> 256 bits
__mul_128x128_to_256 (sig_n_prime256, sig_x, ten2k128[diff - 20]);
- // if positive, return whichever significand is larger
+ // if positive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_y.w[1]
@@ -506,7 +506,7 @@ bid128_minnum_mag (UINT128 x, UINT128 y _EXC_FLAGS_PARAM) {
BID_RETURN (res);
}
__mul_64x128_to_192 (sig_n_prime192, ten2k64[diff], sig_x);
- // if positive, return whichever significand is larger
+ // if positive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_y.w[1]
&& (sig_n_prime192.w[0] == sig_y.w[0])) {
@@ -529,7 +529,7 @@ bid128_minnum_mag (UINT128 x, UINT128 y _EXC_FLAGS_PARAM) {
if (diff > 19) { //128 by 128 bit multiply -> 256 bits
// adjust the y significand upwards
__mul_128x128_to_256 (sig_n_prime256, sig_y, ten2k128[diff - 20]);
- // if positive, return whichever significand is larger
+ // if positive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_x.w[1]
@@ -707,7 +707,7 @@ bid128_maxnum (UINT128 x, UINT128 y _EXC_FLAGS_PARAM) {
// ZERO (CASE4)
// some properties:
// (+ZERO == -ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// therefore ignore the exponent field
// (Any non-canonical # is considered 0)
if ((sig_x.w[1] == 0) && (sig_x.w[0] == 0)) {
@@ -737,7 +737,7 @@ bid128_maxnum (UINT128 x, UINT128 y _EXC_FLAGS_PARAM) {
BID_RETURN (res);
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if exponents are the same, then we have a simple comparison of
+ // if exponents are the same, then we have a simple comparison of
// the significands
if (exp_y == exp_x) {
res = (((sig_x.w[1] > sig_y.w[1]) || (sig_x.w[1] == sig_y.w[1] &&
@@ -745,7 +745,7 @@ bid128_maxnum (UINT128 x, UINT128 y _EXC_FLAGS_PARAM) {
((x.w[1] & MASK_SIGN) == MASK_SIGN)) ? x : y;
BID_RETURN (res);
}
- // if both components are either bigger or smaller, it is clear what
+ // if both components are either bigger or smaller, it is clear what
// needs to be done
if ((sig_x.w[1] > sig_y.w[1]
|| (sig_x.w[1] == sig_y.w[1] && sig_x.w[0] > sig_y.w[0]))
@@ -770,7 +770,7 @@ bid128_maxnum (UINT128 x, UINT128 y _EXC_FLAGS_PARAM) {
}
if (diff > 19) { //128 by 128 bit multiply -> 256 bits
__mul_128x128_to_256 (sig_n_prime256, sig_x, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
res = ((((sig_n_prime256.w[3] > 0) || sig_n_prime256.w[2] > 0)
|| (sig_n_prime256.w[1] > sig_y.w[1])
@@ -781,7 +781,7 @@ bid128_maxnum (UINT128 x, UINT128 y _EXC_FLAGS_PARAM) {
BID_RETURN (res);
}
__mul_64x128_to_192 (sig_n_prime192, ten2k64[diff], sig_x);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
res =
(((sig_n_prime192.w[2] > 0) || (sig_n_prime192.w[1] > sig_y.w[1])
@@ -799,7 +799,7 @@ bid128_maxnum (UINT128 x, UINT128 y _EXC_FLAGS_PARAM) {
if (diff > 19) { //128 by 128 bit multiply -> 256 bits
// adjust the y significand upwards
__mul_128x128_to_256 (sig_n_prime256, sig_y, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
res =
((sig_n_prime256.w[3] != 0 || sig_n_prime256.w[2] != 0
@@ -971,7 +971,7 @@ bid128_maxnum_mag (UINT128 x, UINT128 y _EXC_FLAGS_PARAM) {
// ZERO (CASE4)
// some properties:
// (+ZERO == -ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// therefore ignore the exponent field
// (Any non-canonical # is considered 0)
if ((sig_x.w[1] == 0) && (sig_x.w[0] == 0)) {
@@ -1000,7 +1000,7 @@ bid128_maxnum_mag (UINT128 x, UINT128 y _EXC_FLAGS_PARAM) {
|| (sig_x.w[1] == sig_y.w[1]
&& sig_x.w[0] >= sig_y.w[0]))
&& exp_x > exp_y)) {
- // if both components are either bigger or smaller, it is clear what
+ // if both components are either bigger or smaller, it is clear what
// needs to be done; also if the magnitudes are equal
res = x;
BID_RETURN (res);
@@ -1026,7 +1026,7 @@ bid128_maxnum_mag (UINT128 x, UINT128 y _EXC_FLAGS_PARAM) {
}
if (diff > 19) { //128 by 128 bit multiply -> 256 bits
__mul_128x128_to_256 (sig_n_prime256, sig_x, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_y.w[1]
@@ -1063,7 +1063,7 @@ bid128_maxnum_mag (UINT128 x, UINT128 y _EXC_FLAGS_PARAM) {
if (diff > 19) { //128 by 128 bit multiply -> 256 bits
// adjust the y significand upwards
__mul_128x128_to_256 (sig_n_prime256, sig_y, ten2k128[diff - 20]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime256.w[3] == 0 && (sig_n_prime256.w[2] == 0)
&& sig_n_prime256.w[1] == sig_x.w[1]
diff --git a/libgcc/config/libbid/bid128_mul.c b/libgcc/config/libbid/bid128_mul.c
index a5b84e7f69c..90d6ffd4361 100644
--- a/libgcc/config/libbid/bid128_mul.c
+++ b/libgcc/config/libbid/bid128_mul.c
@@ -140,7 +140,7 @@ bid64qq_mul (UINT128 x, UINT128 y
// x is non-canonical if coefficient is larger than 10^34 -1
C1.w[1] = 0;
C1.w[0] = 0;
- } else { // canonical
+ } else { // canonical
;
}
}
@@ -153,7 +153,7 @@ bid64qq_mul (UINT128 x, UINT128 y
// G0_G1=11 => non-canonical
y_exp = (y.w[HIGH_128W] << 2) & MASK_EXP; // biased and shifted left 49 bits
C2.w[1] = 0; // significand high
- C2.w[0] = 0; // significand low
+ C2.w[0] = 0; // significand low
} else { // G0_G1 != 11
y_exp = y.w[HIGH_128W] & MASK_EXP; // biased and shifted left 49 bits
if (C2.w[1] > 0x0001ed09bead87c0ull ||
@@ -169,7 +169,7 @@ bid64qq_mul (UINT128 x, UINT128 y
p_sign = x_sign ^ y_sign; // sign of the product
true_p_exp = (x_exp >> 49) - 6176 + (y_exp >> 49) - 6176;
- // true_p_exp, p_exp are used only for 0 * 0, 0 * f, or f * 0
+ // true_p_exp, p_exp are used only for 0 * 0, 0 * f, or f * 0
if (true_p_exp < -398)
p_exp = 0; // cannot be less than EXP_MIN
else if (true_p_exp > 369)
@@ -359,7 +359,7 @@ bid128_mul (UINT128 x,
// x is non-canonical if coefficient is larger than 10^34 -1
C1.w[1] = 0;
C1.w[0] = 0;
- } else { // canonical
+ } else { // canonical
;
}
}
@@ -371,7 +371,7 @@ bid128_mul (UINT128 x,
// G0_G1=11 => non-canonical
y_exp = (y.w[1] << 2) & MASK_EXP; // biased and shifted left 49 bits
C2.w[1] = 0; // significand high
- C2.w[0] = 0; // significand low
+ C2.w[0] = 0; // significand low
} else { // G0_G1 != 11
y_exp = y.w[1] & MASK_EXP; // biased and shifted left 49 bits
if (C2.w[1] > 0x0001ed09bead87c0ull ||
@@ -387,7 +387,7 @@ bid128_mul (UINT128 x,
p_sign = x_sign ^ y_sign; // sign of the product
true_p_exp = (x_exp >> 49) - 6176 + (y_exp >> 49) - 6176;
- // true_p_exp, p_exp are used only for 0 * 0, 0 * f, or f * 0
+ // true_p_exp, p_exp are used only for 0 * 0, 0 * f, or f * 0
if (true_p_exp < -6176)
p_exp = 0; // cannot be less than EXP_MIN
else if (true_p_exp > 6111)
diff --git a/libgcc/config/libbid/bid128_next.c b/libgcc/config/libbid/bid128_next.c
index 5c987c73aef..43edc604071 100644
--- a/libgcc/config/libbid/bid128_next.c
+++ b/libgcc/config/libbid/bid128_next.c
@@ -188,7 +188,7 @@ bid128_nextup (UINT128 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
ind = exp + 6176;
// C1 = C1 * 10^ind
if (ind <= 19) { // 1 <= P34 - q1 <= 19 <=> 15 <= q1 <= 33
- if (q1 <= 19) { // 64-bit C1, 64-bit 10^ind
+ if (q1 <= 19) { // 64-bit C1, 64-bit 10^ind
__mul_64x64_to_128MACH (C1, C1.w[0], ten2k64[ind]);
} else { // 20 <= q1 <= 33 => 128-bit C1, 64-bit 10^ind
__mul_128x64_to_128 (C1, ten2k64[ind], C1);
@@ -391,7 +391,7 @@ bid128_nextdown (UINT128 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
ind = exp + 6176;
// C1 = C1 * 10^ind
if (ind <= 19) { // 1 <= P34 - q1 <= 19 <=> 15 <= q1 <= 33
- if (q1 <= 19) { // 64-bit C1, 64-bit 10^ind
+ if (q1 <= 19) { // 64-bit C1, 64-bit 10^ind
__mul_64x64_to_128MACH (C1, C1.w[0], ten2k64[ind]);
} else { // 20 <= q1 <= 33 => 128-bit C1, 64-bit 10^ind
__mul_128x64_to_128 (C1, ten2k64[ind], C1);
@@ -440,7 +440,7 @@ bid128_nextdown (UINT128 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
void
bid128_nextafter (UINT128 * pres, UINT128 * px,
UINT128 *
- py _EXC_FLAGS_PARAM _EXC_MASKS_PARAM _EXC_INFO_PARAM)
+ py _EXC_FLAGS_PARAM _EXC_MASKS_PARAM _EXC_INFO_PARAM)
{
UINT128 x = *px;
UINT128 y = *py;
@@ -597,7 +597,7 @@ bid128_nextafter (UINT128 x,
#endif
BID_SWAP128 (res);
}
- // if the operand x is finite but the result is infinite, signal
+ // if the operand x is finite but the result is infinite, signal
// overflow and inexact
if (((x.w[1] & MASK_SPECIAL) != MASK_SPECIAL)
&& ((res.w[1] & MASK_SPECIAL) == MASK_SPECIAL)) {
@@ -634,9 +634,9 @@ bid128_nextafter (UINT128 x,
#endif
*pfpsf = tmp_fpsf; // restore fpsf
if (res1 && res2) {
- // set the inexact flag
+ // set the inexact flag
*pfpsf |= INEXACT_EXCEPTION;
- // set the underflow flag
+ // set the underflow flag
*pfpsf |= UNDERFLOW_EXCEPTION;
}
BID_RETURN (res);
diff --git a/libgcc/config/libbid/bid128_noncomp.c b/libgcc/config/libbid/bid128_noncomp.c
index 4ef166c81dc..f3b3c22d4b1 100644
--- a/libgcc/config/libbid/bid128_noncomp.c
+++ b/libgcc/config/libbid/bid128_noncomp.c
@@ -83,7 +83,7 @@ bid128_isNormal (UINT128 x _EXC_MASKS_PARAM _EXC_INFO_PARAM) {
res = 0;
BID_RETURN (res);
}
- // unpack x
+ // unpack x
x_exp = x.w[1] & MASK_EXP; // biased and shifted left 49 bit positions
C1_hi = x.w[1] & MASK_COEFF;
C1_lo = x.w[0];
@@ -168,7 +168,7 @@ bid128_isSubnormal (UINT128 x _EXC_MASKS_PARAM _EXC_INFO_PARAM) {
res = 0;
BID_RETURN (res);
}
- // unpack x
+ // unpack x
x_exp = x.w[1] & MASK_EXP; // biased and shifted left 49 bit positions
C1_hi = x.w[1] & MASK_COEFF;
C1_lo = x.w[0];
@@ -343,7 +343,7 @@ bid128_isCanonical (UINT128 x _EXC_MASKS_PARAM _EXC_INFO_PARAM) {
// not NaN or infinity; extract significand to ensure it is canonical
sig_x.w[1] = x.w[1] & 0x0001ffffffffffffull;
sig_x.w[0] = x.w[0];
- // a canonical number has a coefficient < 10^34
+ // a canonical number has a coefficient < 10^34
// (0x0001ed09_bead87c0_378d8e64_00000000)
if ((sig_x.w[1] > 0x0001ed09bead87c0ull) || // significand is non-canonical
((sig_x.w[1] == 0x0001ed09bead87c0ull) && (sig_x.w[0] > 0x378d8e63ffffffffull)) || // significand is non-canonical
@@ -486,7 +486,7 @@ bid128_class (UINT128 x _EXC_MASKS_PARAM _EXC_INFO_PARAM) {
BID_RETURN (res);
}
exp_x = (x.w[1] >> 49) & 0x000000000003fffull;
- // if exponent is less than -6176, the number may be subnormal
+ // if exponent is less than -6176, the number may be subnormal
// (less than the smallest normal value)
// the smallest normal value is 1 x 10^-6143 = 10^33 x 10^-6176
// if (exp_x - 6176 < -6143)
@@ -654,7 +654,7 @@ bid128_totalOrder (UINT128 x,
res = 0; // y is a number, return 1
BID_RETURN (res);
} else {
- // x and y are both +NaN;
+ // x and y are both +NaN;
pyld_x.w[1] = x.w[1] & 0x00003fffffffffffull;
pyld_x.w[0] = x.w[0];
pyld_y.w[1] = y.w[1] & 0x00003fffffffffffull;
@@ -707,7 +707,7 @@ bid128_totalOrder (UINT128 x,
BID_RETURN (res);
}
// OPPOSITE SIGNS (CASE 3)
- // if signs are opposite, return 1 if x is negative
+ // if signs are opposite, return 1 if x is negative
// (if x < y, totalOrder is true)
if (((x.w[1] & MASK_SIGN) == MASK_SIGN) ^ ((y.w[1] & MASK_SIGN) ==
MASK_SIGN)) {
@@ -739,9 +739,9 @@ bid128_totalOrder (UINT128 x,
exp_x = (x.w[1] >> 49) & 0x000000000003fffull;
// CHECK IF x IS CANONICAL
- // 9999999999999999999999999999999999 (decimal) =
+ // 9999999999999999999999999999999999 (decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((((sig_x.w[1] > 0x0001ed09bead87c0ull) ||
((sig_x.w[1] == 0x0001ed09bead87c0ull) &&
@@ -761,9 +761,9 @@ bid128_totalOrder (UINT128 x,
sig_y.w[0] = y.w[0];
// CHECK IF y IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((((sig_y.w[1] > 0x0001ed09bead87c0ull) ||
((sig_y.w[1] == 0x0001ed09bead87c0ull) &&
@@ -778,10 +778,10 @@ bid128_totalOrder (UINT128 x,
}
}
// ZERO (CASE 5)
- // if x and y represent the same entities, and both are negative
+ // if x and y represent the same entities, and both are negative
// return true iff exp_x <= exp_y
if (x_is_zero && y_is_zero) {
- // we know that signs must be the same because we would have caught it
+ // we know that signs must be the same because we would have caught it
// in case3 if signs were different
// totalOrder(x,y) iff exp_x >= exp_y for negative numbers
// totalOrder(x,y) iff exp_x <= exp_y for positive numbers
@@ -818,7 +818,7 @@ bid128_totalOrder (UINT128 x,
}
// if |exp_x - exp_y| < 33, it comes down to the compensated significand
if (exp_x > exp_y) {
- // if exp_x is 33 greater than exp_y, it is definitely larger,
+ // if exp_x is 33 greater than exp_y, it is definitely larger,
// so no need for compensation
if (exp_x - exp_y > 33) {
res = ((x.w[1] & MASK_SIGN) == MASK_SIGN);
@@ -830,12 +830,12 @@ bid128_totalOrder (UINT128 x,
__mul_128x128_to_256 (sig_n_prime256, sig_x,
ten2k128[exp_x - exp_y - 20]);
// the compensated significands are equal (ie "x and y represent the same
- // entities") return 1 if (negative && expx > expy) ||
+ // entities") return 1 if (negative && expx > expy) ||
// (positive && expx < expy)
if ((sig_n_prime256.w[3] == 0) && (sig_n_prime256.w[2] == 0)
&& (sig_n_prime256.w[1] == sig_y.w[1])
&& (sig_n_prime256.w[0] == sig_y.w[0])) {
- // the case exp_x == exp_y cannot occur, because all bits must be
+ // the case exp_x == exp_y cannot occur, because all bits must be
// the same - would have been caught if (x == y)
res = ((exp_x <= exp_y) ^ ((x.w[1] & MASK_SIGN) == MASK_SIGN));
BID_RETURN (res);
@@ -850,7 +850,7 @@ bid128_totalOrder (UINT128 x,
BID_RETURN (res);
}
__mul_64x128_to_192 (sig_n_prime192, ten2k64[exp_x - exp_y], sig_x);
- // if positive, return whichever significand is larger
+ // if positive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_y.w[1]
&& (sig_n_prime192.w[0] == sig_y.w[0])) {
@@ -865,7 +865,7 @@ bid128_totalOrder (UINT128 x,
MASK_SIGN));
BID_RETURN (res);
}
- // if exp_x is 33 less than exp_y, it is definitely smaller,
+ // if exp_x is 33 less than exp_y, it is definitely smaller,
// no need for compensation
if (exp_y - exp_x > 33) {
res = ((x.w[1] & MASK_SIGN) != MASK_SIGN);
@@ -949,7 +949,7 @@ bid128_totalOrderMag (UINT128 x,
res = 0; // y is a number, return 0
BID_RETURN (res);
} else {
- // x and y are both +NaN;
+ // x and y are both +NaN;
pyld_x.w[1] = x.w[1] & 0x00003fffffffffffull;
pyld_x.w[0] = x.w[0];
pyld_y.w[1] = y.w[1] & 0x00003fffffffffffull;
@@ -1022,9 +1022,9 @@ bid128_totalOrderMag (UINT128 x,
exp_x = (x.w[1] >> 49) & 0x000000000003fffull;
// CHECK IF x IS CANONICAL
- // 9999999999999999999999999999999999 (decimal) =
+ // 9999999999999999999999999999999999 (decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((((sig_x.w[1] > 0x0001ed09bead87c0ull) ||
((sig_x.w[1] == 0x0001ed09bead87c0ull) &&
@@ -1044,9 +1044,9 @@ bid128_totalOrderMag (UINT128 x,
sig_y.w[0] = y.w[0];
// CHECK IF y IS CANONICAL
- // 9999999999999999999999999999999999(decimal) =
+ // 9999999999999999999999999999999999(decimal) =
// 1ed09_bead87c0_378d8e63_ffffffff(hexadecimal)
- // [0, 10^34) is the 754r supported canonical range.
+ // [0, 10^34) is the 754r supported canonical range.
// If the value exceeds that, it is interpreted as 0.
if ((((sig_y.w[1] > 0x0001ed09bead87c0ull) ||
((sig_y.w[1] == 0x0001ed09bead87c0ull) &&
@@ -1062,7 +1062,7 @@ bid128_totalOrderMag (UINT128 x,
}
// ZERO (CASE 4)
if (x_is_zero && y_is_zero) {
- // we know that signs must be the same because we would have caught it
+ // we know that signs must be the same because we would have caught it
// in case3 if signs were different
// totalOrder(x,y) iff exp_x <= exp_y for positive numbers
if (exp_x == exp_y) {
@@ -1098,7 +1098,7 @@ bid128_totalOrderMag (UINT128 x,
}
// if |exp_x - exp_y| < 33, it comes down to the compensated significand
if (exp_x > exp_y) {
- // if exp_x is 33 greater than exp_y, it is definitely larger,
+ // if exp_x is 33 greater than exp_y, it is definitely larger,
// so no need for compensation
if (exp_x - exp_y > 33) {
res = 0; // difference cannot be greater than 10^33
@@ -1109,12 +1109,12 @@ bid128_totalOrderMag (UINT128 x,
__mul_128x128_to_256 (sig_n_prime256, sig_x,
ten2k128[exp_x - exp_y - 20]);
// the compensated significands are equal (ie "x and y represent the same
- // entities") return 1 if (negative && expx > expy) ||
+ // entities") return 1 if (negative && expx > expy) ||
// (positive && expx < expy)
if ((sig_n_prime256.w[3] == 0) && (sig_n_prime256.w[2] == 0)
&& (sig_n_prime256.w[1] == sig_y.w[1])
&& (sig_n_prime256.w[0] == sig_y.w[0])) {
- // the case (exp_x == exp_y) cannot occur, because all bits must be
+ // the case (exp_x == exp_y) cannot occur, because all bits must be
// the same - would have been caught if (x == y)
res = (exp_x <= exp_y);
BID_RETURN (res);
@@ -1127,7 +1127,7 @@ bid128_totalOrderMag (UINT128 x,
BID_RETURN (res);
}
__mul_64x128_to_192 (sig_n_prime192, ten2k64[exp_x - exp_y], sig_x);
- // if positive, return whichever significand is larger
+ // if positive, return whichever significand is larger
// (converse if negative)
if ((sig_n_prime192.w[2] == 0) && sig_n_prime192.w[1] == sig_y.w[1]
&& (sig_n_prime192.w[0] == sig_y.w[0])) {
@@ -1140,7 +1140,7 @@ bid128_totalOrderMag (UINT128 x,
&& sig_n_prime192.w[0] < sig_y.w[0])));
BID_RETURN (res);
}
- // if exp_x is 33 less than exp_y, it is definitely smaller,
+ // if exp_x is 33 less than exp_y, it is definitely smaller,
// no need for compensation
if (exp_y - exp_x > 33) {
res = 1;
diff --git a/libgcc/config/libbid/bid128_quantize.c b/libgcc/config/libbid/bid128_quantize.c
index cc1d5d3fd72..092b989baa5 100644
--- a/libgcc/config/libbid/bid128_quantize.c
+++ b/libgcc/config/libbid/bid128_quantize.c
@@ -64,7 +64,7 @@ if ((y.w[1] & 0x7c00000000000000ull) == 0x7c00000000000000ull) {
if ((y.w[1] & 0x7800000000000000ull) == 0x7800000000000000ull) {
// check if x is not Inf.
if (((x.w[1] & 0x7c00000000000000ull) < 0x7800000000000000ull)) {
- // return NaN
+ // return NaN
#ifdef SET_STATUS_FLAGS
// set status flags
__set_status_flags (pfpsf, INVALID_EXCEPTION);
@@ -167,8 +167,8 @@ if ((UINT32) total_digits <= 34) {
if (rnd_mode == 0)
#endif
if (CR.w[0] & 1) {
- // check whether fractional part of initial_P/10^extra_digits is
- // exactly .5 this is the same as fractional part of
+ // check whether fractional part of initial_P/10^extra_digits is
+ // exactly .5 this is the same as fractional part of
// (initial_P + 0.5*10^extra_digits)/10^extra_digits is exactly zero
// get remainder
diff --git a/libgcc/config/libbid/bid128_rem.c b/libgcc/config/libbid/bid128_rem.c
index f3f66c856e7..f1b80d493e9 100644
--- a/libgcc/config/libbid/bid128_rem.c
+++ b/libgcc/config/libbid/bid128_rem.c
@@ -58,7 +58,7 @@ if ((x.w[1] & 0x7c00000000000000ull) == 0x7c00000000000000ull) {
if ((x.w[1] & 0x7800000000000000ull) == 0x7800000000000000ull) {
// check if y is Inf.
if (((y.w[1] & 0x7c00000000000000ull) != 0x7c00000000000000ull))
- // return NaN
+ // return NaN
{
#ifdef SET_STATUS_FLAGS
// set status flags
diff --git a/libgcc/config/libbid/bid128_round_integral.c b/libgcc/config/libbid/bid128_round_integral.c
index 051f8268aa9..cddf0ccdfad 100644
--- a/libgcc/config/libbid/bid128_round_integral.c
+++ b/libgcc/config/libbid/bid128_round_integral.c
@@ -74,7 +74,7 @@ if ((x.w[1] & MASK_SPECIAL) == MASK_SPECIAL) {
// return +inf
res.w[1] = 0x7800000000000000ull;
res.w[0] = 0x0000000000000000ull;
- } else { // x is -inf
+ } else { // x is -inf
// return -inf
res.w[1] = 0xf800000000000000ull;
res.w[0] = 0x0000000000000000ull;
@@ -226,7 +226,7 @@ case ROUNDING_TO_NEAREST:
if ((q + exp) >= 0) { // exp < 0 and 1 <= -exp <= q
// need to shift right -exp digits from the coefficient; exp will be 0
ind = -exp; // 1 <= ind <= 34; ind is a synonym for 'x'
- // chop off ind digits from the lower part of C1
+ // chop off ind digits from the lower part of C1
// C1 = C1 + 1/2 * 10^x where the result C1 fits in 127 bits
tmp64 = C1.w[0];
if (ind <= 19) {
@@ -286,9 +286,9 @@ case ROUNDING_TO_NEAREST:
fstar.w[0] >= ten2mk128[ind - 1].w[0])) {
// set the inexact flag
*pfpsf |= INEXACT_EXCEPTION;
- } // else the result is exact
- } else { // the result is inexact; f2* <= 1/2
- // set the inexact flag
+ } // else the result is exact
+ } else { // the result is inexact; f2* <= 1/2
+ // set the inexact flag
*pfpsf |= INEXACT_EXCEPTION;
}
} else if (ind - 1 <= 21) { // 3 <= ind - 1 <= 21 => 3 <= shift <= 63
@@ -379,7 +379,7 @@ case ROUNDING_TIES_AWAY:
if ((q + exp) >= 0) { // exp < 0 and 1 <= -exp <= q
// need to shift right -exp digits from the coefficient; exp will be 0
ind = -exp; // 1 <= ind <= 34; ind is a synonym for 'x'
- // chop off ind digits from the lower part of C1
+ // chop off ind digits from the lower part of C1
// C1 = C1 + 1/2 * 10^x where the result C1 fits in 127 bits
tmp64 = C1.w[0];
if (ind <= 19) {
@@ -504,9 +504,9 @@ case ROUNDING_TIES_AWAY:
case ROUNDING_DOWN:
if ((q + exp) > 0) { // exp < 0 and 1 <= -exp < q
// need to shift right -exp digits from the coefficient; exp will be 0
- ind = -exp; // 1 <= ind <= 34; ind is a synonym for 'x'
+ ind = -exp; // 1 <= ind <= 34; ind is a synonym for 'x'
// (number of digits to be chopped off)
- // chop off ind digits from the lower part of C1
+ // chop off ind digits from the lower part of C1
// FOR ROUND_TO_NEAREST, WE ADD 1/2 ULP(y) then truncate
// FOR ROUND_TO_ZERO, WE DON'T NEED TO ADD 1/2 ULP
// FOR ROUND_TO_POSITIVE_INFINITY, WE TRUNCATE, THEN ADD 1 IF POSITIVE
@@ -613,9 +613,9 @@ case ROUNDING_DOWN:
case ROUNDING_UP:
if ((q + exp) > 0) { // exp < 0 and 1 <= -exp < q
// need to shift right -exp digits from the coefficient; exp will be 0
- ind = -exp; // 1 <= ind <= 34; ind is a synonym for 'x'
+ ind = -exp; // 1 <= ind <= 34; ind is a synonym for 'x'
// (number of digits to be chopped off)
- // chop off ind digits from the lower part of C1
+ // chop off ind digits from the lower part of C1
// FOR ROUND_TO_NEAREST, WE ADD 1/2 ULP(y) then truncate
// FOR ROUND_TO_ZERO, WE DON'T NEED TO ADD 1/2 ULP
// FOR ROUND_TO_POSITIVE_INFINITY, WE TRUNCATE, THEN ADD 1 IF POSITIVE
@@ -627,7 +627,7 @@ case ROUNDING_UP:
// C1.w[0] = C1.w[0] + midpoint128[ind - 20].w[0];
// C1.w[1] = C1.w[1] + midpoint128[ind - 20].w[1];
// }
- // if (C1.w[0] < tmp64) C1.w[1]++;
+ // if (C1.w[0] < tmp64) C1.w[1]++;
// if carry-out from C1.w[0], increment C1.w[1]
// calculate C* and f*
// C* is actually floor(C*) in this case
@@ -643,10 +643,10 @@ case ROUNDING_UP:
res.w[0] = P256.w[2];
// redundant fstar.w[3] = 0;
// redundant fstar.w[2] = 0;
- // redundant fstar.w[1] = P256.w[1];
+ // redundant fstar.w[1] = P256.w[1];
// redundant fstar.w[0] = P256.w[0];
// fraction f* > 10^(-x) <=> inexact
- // f* is in the right position to be compared with
+ // f* is in the right position to be compared with
// 10^(-x) from ten2mk128[]
if ((P256.w[1] > ten2mk128[ind - 1].w[1])
|| (P256.w[1] == ten2mk128[ind - 1].w[1]
@@ -668,7 +668,7 @@ case ROUNDING_UP:
fstar.w[1] = P256.w[1];
fstar.w[0] = P256.w[0];
// fraction f* > 10^(-x) <=> inexact
- // f* is in the right position to be compared with
+ // f* is in the right position to be compared with
// 10^(-x) from ten2mk128[]
if (fstar.w[2] || fstar.w[1] > ten2mk128[ind - 1].w[1] ||
(fstar.w[1] == ten2mk128[ind - 1].w[1] &&
@@ -690,7 +690,7 @@ case ROUNDING_UP:
fstar.w[1] = P256.w[1];
fstar.w[0] = P256.w[0];
// fraction f* > 10^(-x) <=> inexact
- // f* is in the right position to be compared with
+ // f* is in the right position to be compared with
// 10^(-x) from ten2mk128[]
if (fstar.w[3] || fstar.w[2]
|| fstar.w[1] > ten2mk128[ind - 1].w[1]
@@ -724,7 +724,7 @@ case ROUNDING_TO_ZERO:
// need to shift right -exp digits from the coefficient; exp will be 0
ind = -exp; // 1 <= ind <= 34; ind is a synonym for 'x'
// (number of digits to be chopped off)
- // chop off ind digits from the lower part of C1
+ // chop off ind digits from the lower part of C1
// FOR ROUND_TO_NEAREST, WE ADD 1/2 ULP(y) then truncate
// FOR ROUND_TO_ZERO, WE DON'T NEED TO ADD 1/2 ULP
// FOR ROUND_TO_POSITIVE_INFINITY, WE TRUNCATE, THEN ADD 1 IF POSITIVE
@@ -736,7 +736,7 @@ case ROUNDING_TO_ZERO:
// C1.w[0] = C1.w[0] + midpoint128[ind - 20].w[0];
// C1.w[1] = C1.w[1] + midpoint128[ind - 20].w[1];
// }
- // if (C1.w[0] < tmp64) C1.w[1]++;
+ // if (C1.w[0] < tmp64) C1.w[1]++;
// if carry-out from C1.w[0], increment C1.w[1]
// calculate C* and f*
// C* is actually floor(C*) in this case
@@ -752,10 +752,10 @@ case ROUNDING_TO_ZERO:
res.w[0] = P256.w[2];
// redundant fstar.w[3] = 0;
// redundant fstar.w[2] = 0;
- // redundant fstar.w[1] = P256.w[1];
+ // redundant fstar.w[1] = P256.w[1];
// redundant fstar.w[0] = P256.w[0];
// fraction f* > 10^(-x) <=> inexact
- // f* is in the right position to be compared with
+ // f* is in the right position to be compared with
// 10^(-x) from ten2mk128[]
if ((P256.w[1] > ten2mk128[ind - 1].w[1])
|| (P256.w[1] == ten2mk128[ind - 1].w[1]
@@ -771,7 +771,7 @@ case ROUNDING_TO_ZERO:
fstar.w[1] = P256.w[1];
fstar.w[0] = P256.w[0];
// fraction f* > 10^(-x) <=> inexact
- // f* is in the right position to be compared with
+ // f* is in the right position to be compared with
// 10^(-x) from ten2mk128[]
if (fstar.w[2] || fstar.w[1] > ten2mk128[ind - 1].w[1] ||
(fstar.w[1] == ten2mk128[ind - 1].w[1] &&
@@ -787,7 +787,7 @@ case ROUNDING_TO_ZERO:
fstar.w[1] = P256.w[1];
fstar.w[0] = P256.w[0];
// fraction f* > 10^(-x) <=> inexact
- // f* is in the right position to be compared with
+ // f* is in the right position to be compared with
// 10^(-x) from ten2mk128[]
if (fstar.w[3] || fstar.w[2]
|| fstar.w[1] > ten2mk128[ind - 1].w[1]
@@ -860,7 +860,7 @@ if ((x.w[1] & MASK_NAN) == MASK_NAN) { // x is NAN
// return +inf
res.w[1] = 0x7800000000000000ull;
res.w[0] = 0x0000000000000000ull;
- } else { // x is -inf
+ } else { // x is -inf
// return -inf
res.w[1] = 0xf800000000000000ull;
res.w[0] = 0x0000000000000000ull;
@@ -955,7 +955,7 @@ if (exp >= 0) { // -exp <= 0
} else if ((q + exp) >= 0) { // exp < 0 and 1 <= -exp <= q
// need to shift right -exp digits from the coefficient; the exp will be 0
ind = -exp; // 1 <= ind <= 34; ind is a synonym for 'x'
- // chop off ind digits from the lower part of C1
+ // chop off ind digits from the lower part of C1
// C1 = C1 + 1/2 * 10^x where the result C1 fits in 127 bits
tmp64 = C1.w[0];
if (ind <= 19) {
@@ -1059,13 +1059,13 @@ BID128_FUNCTION_ARG1_NORND (bid128_round_integral_negative, x)
UINT64 x_sign;
UINT64 x_exp;
int exp; // unbiased exponent
- // Note: C1.w[1], C1.w[0] represent x_signif_hi, x_signif_lo
+ // Note: C1.w[1], C1.w[0] represent x_signif_hi, x_signif_lo
// (all are UINT64)
BID_UI64DOUBLE tmp1;
unsigned int x_nr_bits;
int q, ind, shift;
UINT128 C1;
- // UINT128 res is C* at first - represents up to 34 decimal digits ~
+ // UINT128 res is C* at first - represents up to 34 decimal digits ~
// 113 bits
UINT256 fstar;
UINT256 P256;
@@ -1099,7 +1099,7 @@ if ((x.w[1] & MASK_NAN) == MASK_NAN) { // x is NAN
// return +inf
res.w[1] = 0x7800000000000000ull;
res.w[0] = 0x0000000000000000ull;
- } else { // x is -inf
+ } else { // x is -inf
// return -inf
res.w[1] = 0xf800000000000000ull;
res.w[0] = 0x0000000000000000ull;
@@ -1202,9 +1202,9 @@ if (exp >= 0) { // -exp <= 0
BID_RETURN (res);
} else if ((q + exp) > 0) { // exp < 0 and 1 <= -exp < q
// need to shift right -exp digits from the coefficient; the exp will be 0
- ind = -exp; // 1 <= ind <= 34; ind is a synonym for 'x'
+ ind = -exp; // 1 <= ind <= 34; ind is a synonym for 'x'
// (number of digits to be chopped off)
- // chop off ind digits from the lower part of C1
+ // chop off ind digits from the lower part of C1
// FOR ROUND_TO_NEAREST, WE ADD 1/2 ULP(y) then truncate
// FOR ROUND_TO_ZERO, WE DON'T NEED TO ADD 1/2 ULP
// FOR ROUND_TO_POSITIVE_INFINITY, WE TRUNCATE, THEN ADD 1 IF POSITIVE
@@ -1315,13 +1315,13 @@ BID128_FUNCTION_ARG1_NORND (bid128_round_integral_positive, x)
UINT64 x_sign;
UINT64 x_exp;
int exp; // unbiased exponent
- // Note: C1.w[1], C1.w[0] represent x_signif_hi, x_signif_lo
+ // Note: C1.w[1], C1.w[0] represent x_signif_hi, x_signif_lo
// (all are UINT64)
BID_UI64DOUBLE tmp1;
unsigned int x_nr_bits;
int q, ind, shift;
UINT128 C1;
- // UINT128 res is C* at first - represents up to 34 decimal digits ~
+ // UINT128 res is C* at first - represents up to 34 decimal digits ~
// 113 bits
UINT256 fstar;
UINT256 P256;
@@ -1355,7 +1355,7 @@ if ((x.w[1] & MASK_NAN) == MASK_NAN) { // x is NAN
// return +inf
res.w[1] = 0x7800000000000000ull;
res.w[0] = 0x0000000000000000ull;
- } else { // x is -inf
+ } else { // x is -inf
// return -inf
res.w[1] = 0xf800000000000000ull;
res.w[0] = 0x0000000000000000ull;
@@ -1390,7 +1390,7 @@ if ((x.w[1] & 0x6000000000000000ull) == 0x6000000000000000ull) { // G0_G1=11
// test for input equal to zero
if ((C1.w[1] == 0x0ull) && (C1.w[0] == 0x0ull)) {
// x is 0
- // return 0 preserving the sign bit and the preferred exponent
+ // return 0 preserving the sign bit and the preferred exponent
// of MAX(Q(x), 0)
if (x_exp <= (0x1820ull << 49)) {
res.w[1] = (x.w[1] & 0x8000000000000000ull) | 0x3040000000000000ull;
@@ -1405,12 +1405,12 @@ if ((C1.w[1] == 0x0ull) && (C1.w[0] == 0x0ull)) {
// if (exp <= -p) return -0.0 or +1.0
if (x_exp <= 0x2ffc000000000000ull) { // 0x2ffc000000000000ull == -34
if (x_sign) {
- // if negative, return negative 0, because we know the coefficient
+ // if negative, return negative 0, because we know the coefficient
// is non-zero (would have been caught above)
res.w[1] = 0xb040000000000000ull;
res.w[0] = 0x0000000000000000ull;
} else {
- // if positive, return positive 1, because we know coefficient is
+ // if positive, return positive 1, because we know coefficient is
// non-zero (would have been caught above)
res.w[1] = 0x3040000000000000ull;
res.w[0] = 0x0000000000000001ull;
@@ -1458,9 +1458,9 @@ if (exp >= 0) { // -exp <= 0
BID_RETURN (res);
} else if ((q + exp) > 0) { // exp < 0 and 1 <= -exp < q
// need to shift right -exp digits from the coefficient; exp will be 0
- ind = -exp; // 1 <= ind <= 34; ind is a synonym for 'x'
+ ind = -exp; // 1 <= ind <= 34; ind is a synonym for 'x'
// (number of digits to be chopped off)
- // chop off ind digits from the lower part of C1
+ // chop off ind digits from the lower part of C1
// FOR ROUND_TO_NEAREST, WE ADD 1/2 ULP(y) then truncate
// FOR ROUND_TO_ZERO, WE DON'T NEED TO ADD 1/2 ULP
// FOR ROUND_TO_POSITIVE_INFINITY, WE TRUNCATE, THEN ADD 1 IF POSITIVE
@@ -1472,7 +1472,7 @@ if (exp >= 0) { // -exp <= 0
// C1.w[0] = C1.w[0] + midpoint128[ind - 20].w[0];
// C1.w[1] = C1.w[1] + midpoint128[ind - 20].w[1];
// }
- // if (C1.w[0] < tmp64) C1.w[1]++;
+ // if (C1.w[0] < tmp64) C1.w[1]++;
// if carry-out from C1.w[0], increment C1.w[1]
// calculate C* and f*
// C* is actually floor(C*) in this case
@@ -1490,10 +1490,10 @@ if (exp >= 0) { // -exp <= 0
if (!x_sign) { // if positive
// redundant fstar.w[3] = 0;
// redundant fstar.w[2] = 0;
- // redundant fstar.w[1] = P256.w[1];
+ // redundant fstar.w[1] = P256.w[1];
// redundant fstar.w[0] = P256.w[0];
// fraction f* > 10^(-x) <=> inexact
- // f* is in the right position to be compared with
+ // f* is in the right position to be compared with
// 10^(-x) from ten2mk128[]
if ((P256.w[1] > ten2mk128[ind - 1].w[1])
|| (P256.w[1] == ten2mk128[ind - 1].w[1]
@@ -1514,7 +1514,7 @@ if (exp >= 0) { // -exp <= 0
fstar.w[1] = P256.w[1];
fstar.w[0] = P256.w[0];
// fraction f* > 10^(-x) <=> inexact
- // f* is in the right position to be compared with
+ // f* is in the right position to be compared with
// 10^(-x) from ten2mk128[]
if (fstar.w[2] || fstar.w[1] > ten2mk128[ind - 1].w[1] ||
(fstar.w[1] == ten2mk128[ind - 1].w[1] &&
@@ -1535,7 +1535,7 @@ if (exp >= 0) { // -exp <= 0
fstar.w[1] = P256.w[1];
fstar.w[0] = P256.w[0];
// fraction f* > 10^(-x) <=> inexact
- // f* is in the right position to be compared with
+ // f* is in the right position to be compared with
// 10^(-x) from ten2mk128[]
if (fstar.w[3] || fstar.w[2]
|| fstar.w[1] > ten2mk128[ind - 1].w[1]
@@ -1610,7 +1610,7 @@ if ((x.w[1] & MASK_NAN) == MASK_NAN) { // x is NAN
// return +inf
res.w[1] = 0x7800000000000000ull;
res.w[0] = 0x0000000000000000ull;
- } else { // x is -inf
+ } else { // x is -inf
// return -inf
res.w[1] = 0xf800000000000000ull;
res.w[0] = 0x0000000000000000ull;
@@ -1706,7 +1706,7 @@ if (exp >= 0) { // -exp <= 0
// need to shift right -exp digits from the coefficient; the exp will be 0
ind = -exp; // 1 <= ind <= 34; ind is a synonym for 'x'
// (number of digits to be chopped off)
- // chop off ind digits from the lower part of C1
+ // chop off ind digits from the lower part of C1
// FOR ROUND_TO_NEAREST, WE ADD 1/2 ULP(y) then truncate
// FOR ROUND_TO_ZERO, WE DON'T NEED TO ADD 1/2 ULP
// FOR ROUND_TO_POSITIVE_INFINITY, WE TRUNCATE, THEN ADD 1 IF POSITIVE
@@ -1718,7 +1718,7 @@ if (exp >= 0) { // -exp <= 0
// C1.w[0] = C1.w[0] + midpoint128[ind - 20].w[0];
// C1.w[1] = C1.w[1] + midpoint128[ind - 20].w[1];
// }
- // if (C1.w[0] < tmp64) C1.w[1]++;
+ // if (C1.w[0] < tmp64) C1.w[1]++;
// if carry-out from C1.w[0], increment C1.w[1]
// calculate C* and f*
// C* is actually floor(C*) in this case
@@ -1760,14 +1760,14 @@ BID128_FUNCTION_ARG1_NORND (bid128_round_integral_nearest_away, x)
UINT64 x_sign;
UINT64 x_exp;
int exp; // unbiased exponent
- // Note: C1.w[1], C1.w[0] represent x_signif_hi, x_signif_lo
+ // Note: C1.w[1], C1.w[0] represent x_signif_hi, x_signif_lo
// (all are UINT64)
UINT64 tmp64;
BID_UI64DOUBLE tmp1;
unsigned int x_nr_bits;
int q, ind, shift;
UINT128 C1;
- // UINT128 res is C* at first - represents up to 34 decimal digits ~
+ // UINT128 res is C* at first - represents up to 34 decimal digits ~
// 113 bits
// UINT256 fstar;
UINT256 P256;
@@ -1801,7 +1801,7 @@ if ((x.w[1] & MASK_NAN) == MASK_NAN) { // x is NAN
// return +inf
res.w[1] = 0x7800000000000000ull;
res.w[0] = 0x0000000000000000ull;
- } else { // x is -inf
+ } else { // x is -inf
// return -inf
res.w[1] = 0xf800000000000000ull;
res.w[0] = 0x0000000000000000ull;
@@ -1896,7 +1896,7 @@ if (exp >= 0) { // -exp <= 0
} else if ((q + exp) >= 0) { // exp < 0 and 1 <= -exp <= q
// need to shift right -exp digits from the coefficient; the exp will be 0
ind = -exp; // 1 <= ind <= 34; ind is a synonym for 'x'
- // chop off ind digits from the lower part of C1
+ // chop off ind digits from the lower part of C1
// C1 = C1 + 1/2 * 10^x where the result C1 fits in 127 bits
tmp64 = C1.w[0];
if (ind <= 19) {
diff --git a/libgcc/config/libbid/bid128_string.c b/libgcc/config/libbid/bid128_string.c
index 8fc12ee2d76..1ad37503453 100644
--- a/libgcc/config/libbid/bid128_string.c
+++ b/libgcc/config/libbid/bid128_string.c
@@ -45,7 +45,7 @@ bid128_to_string (char *str,
#else
void
-bid128_to_string (char *str, UINT128 x
+bid128_to_string (char *str, UINT128 x
_EXC_FLAGS_PARAM _EXC_MASKS_PARAM _EXC_INFO_PARAM) {
#endif
UINT64 x_sign;
@@ -73,14 +73,14 @@ bid128_to_string (char *str, UINT128 x
if ((x.w[1] & MASK_NAN) == MASK_NAN) { // x is NAN
if ((x.w[1] & MASK_SNAN) == MASK_SNAN) { // x is SNAN
// set invalid flag
- str[0] = ((SINT64)x.w[1]<0)? '-':'+';
+ str[0] = ((SINT64)x.w[1]<0)? '-':'+';
str[1] = 'S';
str[2] = 'N';
str[3] = 'a';
str[4] = 'N';
str[5] = '\0';
} else { // x is QNaN
- str[0] = ((SINT64)x.w[1]<0)? '-':'+';
+ str[0] = ((SINT64)x.w[1]<0)? '-':'+';
str[1] = 'Q';
str[2] = 'N';
str[3] = 'a';
@@ -94,7 +94,7 @@ bid128_to_string (char *str, UINT128 x
str[2] = 'n';
str[3] = 'f';
str[4] = '\0';
- } else { // x is -inf
+ } else { // x is -inf
str[0] = '-';
str[1] = 'I';
str[2] = 'n';
@@ -122,11 +122,11 @@ bid128_to_string (char *str, UINT128 x
}
if (exp >= 0) {
str[len++] = '+';
- len += sprintf (str + len, "%u", exp);// should not use sprintf (should
+ len += sprintf (str + len, "%u", exp);// should not use sprintf (should
// use sophisticated algorithm, since we know range of exp is limited)
str[len++] = '\0';
} else {
- len += sprintf (str + len, "%d", exp);// should not use sprintf (should
+ len += sprintf (str + len, "%d", exp);// should not use sprintf (should
// use sophisticated algorithm, since we know range of exp is limited)
str[len++] = '\0';
}
@@ -150,18 +150,18 @@ bid128_to_string (char *str, UINT128 x
// determine coefficient's representation as a decimal string
// if zero or non-canonical, set coefficient to '0'
- if ((C1.w[1] > 0x0001ed09bead87c0ull) ||
- (C1.w[1] == 0x0001ed09bead87c0ull &&
- (C1.w[0] > 0x378d8e63ffffffffull)) ||
- ((x.w[1] & 0x6000000000000000ull) == 0x6000000000000000ull) ||
+ if ((C1.w[1] > 0x0001ed09bead87c0ull) ||
+ (C1.w[1] == 0x0001ed09bead87c0ull &&
+ (C1.w[0] > 0x378d8e63ffffffffull)) ||
+ ((x.w[1] & 0x6000000000000000ull) == 0x6000000000000000ull) ||
((C1.w[1] == 0) && (C1.w[0] == 0))) {
str[k++] = '0';
} else {
/* ****************************************************
- This takes a bid coefficient in C1.w[1],C1.w[0]
- and put the converted character sequence at location
+ This takes a bid coefficient in C1.w[1],C1.w[0]
+ and put the converted character sequence at location
starting at &(str[k]). The function returns the number
- of MiDi returned. Note that the character sequence
+ of MiDi returned. Note that the character sequence
does not have leading zeros EXCEPT when the input is of
zero value. It will then output 1 character '0'
The algorithm essentailly tries first to get a sequence of
@@ -179,7 +179,7 @@ bid128_to_string (char *str, UINT128 x
18 digits, we set hi = 0, and lo = d to begin with.
We then retrieve from a table, for j = 0, 1, ..., 8
that gives us A and B where c_j 2^(59+6j) = A * 10^18 + B.
- hi += A ; lo += B; After each accumulation into lo, we normalize
+ hi += A ; lo += B; After each accumulation into lo, we normalize
immediately. So at the end, we have the decomposition as we need. */
Tmp = C1.w[0] >> 59;
@@ -311,7 +311,7 @@ bid128_from_string (char *ps _RND_MODE_PARAM _EXC_FLAGS_PARAM
c = *ps;
- // if c is null or not equal to a (radix point, negative sign,
+ // if c is null or not equal to a (radix point, negative sign,
// positive sign, or number) it might be SNaN, sNaN, Infinity
if (!c
|| (c != '.' && c != '-' && c != '+'
@@ -331,8 +331,8 @@ bid128_from_string (char *ps _RND_MODE_PARAM _EXC_FLAGS_PARAM
BID_RETURN (res);
}
// return sNaN
- if (tolower_macro (ps[0]) == 's' && tolower_macro (ps[1]) == 'n' &&
- tolower_macro (ps[2]) == 'a' && tolower_macro (ps[3]) == 'n') {
+ if (tolower_macro (ps[0]) == 's' && tolower_macro (ps[1]) == 'n' &&
+ tolower_macro (ps[2]) == 'a' && tolower_macro (ps[3]) == 'n') {
// case insensitive check for snan
res.w[1] = 0x7e00000000000000ull;
BID_RETURN (res);
@@ -342,11 +342,11 @@ bid128_from_string (char *ps _RND_MODE_PARAM _EXC_FLAGS_PARAM
BID_RETURN (res);
}
}
- // if +Inf, -Inf, +Infinity, or -Infinity (case insensitive check for inf)
- if ((tolower_macro (ps[1]) == 'i' && tolower_macro (ps[2]) == 'n' &&
- tolower_macro (ps[3]) == 'f') && (!ps[4] ||
- (tolower_macro (ps[4]) == 'i' && tolower_macro (ps[5]) == 'n' &&
- tolower_macro (ps[6]) == 'i' && tolower_macro (ps[7]) == 't' &&
+ // if +Inf, -Inf, +Infinity, or -Infinity (case insensitive check for inf)
+ if ((tolower_macro (ps[1]) == 'i' && tolower_macro (ps[2]) == 'n' &&
+ tolower_macro (ps[3]) == 'f') && (!ps[4] ||
+ (tolower_macro (ps[4]) == 'i' && tolower_macro (ps[5]) == 'n' &&
+ tolower_macro (ps[6]) == 'i' && tolower_macro (ps[7]) == 't' &&
tolower_macro (ps[8]) == 'y' && !ps[9]))) { // ci check for infinity
res.w[0] = 0;
@@ -396,17 +396,17 @@ bid128_from_string (char *ps _RND_MODE_PARAM _EXC_FLAGS_PARAM
ps++;
- // for numbers such as 0.0000000000000000000000000000000000001001,
+ // for numbers such as 0.0000000000000000000000000000000000001001,
// we want to count the leading zeros
if (rdx_pt_enc) {
right_radix_leading_zeros++;
}
- // if this character is a radix point, make sure we haven't already
+ // if this character is a radix point, make sure we haven't already
// encountered one
if (*(ps) == '.') {
if (rdx_pt_enc == 0) {
rdx_pt_enc = 1;
- // if this is the first radix point, and the next character is NULL,
+ // if this is the first radix point, and the next character is NULL,
// we have a zero
if (!*(ps + 1)) {
res.w[1] =
@@ -612,7 +612,7 @@ bid128_from_string (char *ps _RND_MODE_PARAM _EXC_FLAGS_PARAM
break;
case ROUNDING_DOWN:
- if(sign_x)
+ if(sign_x)
for (; i < ndigits_total; i++) {
if (buffer[i] > '0') {
carry = 1;
@@ -621,7 +621,7 @@ bid128_from_string (char *ps _RND_MODE_PARAM _EXC_FLAGS_PARAM
}
break;
case ROUNDING_UP:
- if(!sign_x)
+ if(!sign_x)
for (; i < ndigits_total; i++) {
if (buffer[i] > '0') {
carry = 1;
@@ -656,7 +656,7 @@ bid128_from_string (char *ps _RND_MODE_PARAM _EXC_FLAGS_PARAM
}
if (dec_expon == -MAX_FORMAT_DIGITS_128
&& coeff_high > 50000000000000000ull)
- carry = 0;
+ carry = 0;
}
__mul_64x64_to_128_fast (CX, coeff_high, scale_high);
diff --git a/libgcc/config/libbid/bid128_to_int32.c b/libgcc/config/libbid/bid128_to_int32.c
index cea5d0fcb1d..ff43c629bfd 100644
--- a/libgcc/config/libbid/bid128_to_int32.c
+++ b/libgcc/config/libbid/bid128_to_int32.c
@@ -24,7 +24,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "bid_internal.h"
/*****************************************************************************
- * BID128_to_int32_rnint
+ * BID128_to_int32_rnint
****************************************************************************/
BID128_FUNCTION_ARG1_NORND_CUSTOMRESTYPE (int, bid128_to_int32_rnint, x)
diff --git a/libgcc/config/libbid/bid128_to_int64.c b/libgcc/config/libbid/bid128_to_int64.c
index 19826c09011..be6b53ba084 100644
--- a/libgcc/config/libbid/bid128_to_int64.c
+++ b/libgcc/config/libbid/bid128_to_int64.c
@@ -146,7 +146,7 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull) ||
// <=> 0.c(0)c(1)...c(q-1) * 10^20 > 0x50000000000000005, 1<=q<=34
C.w[1] = 0x0000000000000005ull;
C.w[0] = 0000000000000005ull;
- if (q <= 19) { // 1 <= q <= 19 => 1 <= 20-q <= 19 =>
+ if (q <= 19) { // 1 <= q <= 19 => 1 <= 20-q <= 19 =>
// 10^(20-q) is 64-bit, and so is C1
__mul_64x64_to_128MACH (C1, C1.w[0], ten2k64[20 - q]);
} else if (q == 20) {
@@ -179,14 +179,14 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull) ||
__mul_128x64_to_128 (C, ten2k64[q - 20], C); // max 47-bit x 67-bit
}
if (C1.w[1] > C.w[1] || (C1.w[1] == C.w[1] && C1.w[0] >= C.w[0])) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x8000000000000000ull;
BID_RETURN (res);
}
// else cases that can be rounded to a 64-bit int fall through
- // to '1 <= q + exp <= 19'
+ // to '1 <= q + exp <= 19'
}
}
// n is not too large to be converted to int64: -2^63-1/2 <= n < 2^63-1/2
@@ -445,7 +445,7 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
// <=> 0.c(0)c(1)...c(q-1) * 10^20 > 0x50000000000000005, 1<=q<=34
C.w[1] = 0x0000000000000005ull;
C.w[0] = 0000000000000005ull;
- if (q <= 19) { // 1 <= q <= 19 => 1 <= 20-q <= 19 =>
+ if (q <= 19) { // 1 <= q <= 19 => 1 <= 20-q <= 19 =>
// 10^(20-q) is 64-bit, and so is C1
__mul_64x64_to_128MACH (C1, C1.w[0], ten2k64[20 - q]);
} else if (q == 20) {
@@ -478,14 +478,14 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
__mul_128x64_to_128 (C, ten2k64[q - 20], C); // max 47-bit x 67-bit
}
if (C1.w[1] > C.w[1] || (C1.w[1] == C.w[1] && C1.w[0] >= C.w[0])) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x8000000000000000ull;
BID_RETURN (res);
}
// else cases that can be rounded to a 64-bit int fall through
- // to '1 <= q + exp <= 19'
+ // to '1 <= q + exp <= 19'
}
}
// n is not too large to be converted to int64: -2^63-1/2 <= n < 2^63-1/2
@@ -811,7 +811,7 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
// <=> 0.c(0)c(1)...c(q-1) * 10^20 > 0x50000000000000000, 1<=q<=34
C.w[1] = 0x0000000000000005ull;
C.w[0] = 0x0000000000000000ull;
- if (q <= 19) { // 1 <= q <= 19 => 1 <= 20-q <= 19 =>
+ if (q <= 19) { // 1 <= q <= 19 => 1 <= 20-q <= 19 =>
// 10^(20-q) is 64-bit, and so is C1
__mul_64x64_to_128MACH (C1, C1.w[0], ten2k64[20 - q]);
} else if (q == 20) {
@@ -844,14 +844,14 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
__mul_128x64_to_128 (C, ten2k64[q - 20], C); // max 47-bit x 67-bit
}
if (C1.w[1] > C.w[1] || (C1.w[1] == C.w[1] && C1.w[0] >= C.w[0])) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x8000000000000000ull;
BID_RETURN (res);
}
// else cases that can be rounded to a 64-bit int fall through
- // to '1 <= q + exp <= 19'
+ // to '1 <= q + exp <= 19'
}
}
// n is not too large to be converted to int64: -2^63-1 < n < 2^63
@@ -1098,7 +1098,7 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
// <=> 0.c(0)c(1)...c(q-1) * 10^20 > 0x50000000000000000, 1<=q<=34
C.w[1] = 0x0000000000000005ull;
C.w[0] = 0x0000000000000000ull;
- if (q <= 19) { // 1 <= q <= 19 => 1 <= 20-q <= 19 =>
+ if (q <= 19) { // 1 <= q <= 19 => 1 <= 20-q <= 19 =>
// 10^(20-q) is 64-bit, and so is C1
__mul_64x64_to_128MACH (C1, C1.w[0], ten2k64[20 - q]);
} else if (q == 20) {
@@ -1131,14 +1131,14 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
__mul_128x64_to_128 (C, ten2k64[q - 20], C); // max 47-bit x 67-bit
}
if (C1.w[1] > C.w[1] || (C1.w[1] == C.w[1] && C1.w[0] >= C.w[0])) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x8000000000000000ull;
BID_RETURN (res);
}
// else cases that can be rounded to a 64-bit int fall through
- // to '1 <= q + exp <= 19'
+ // to '1 <= q + exp <= 19'
}
}
// n is not too large to be converted to int64: -2^63-1 < n < 2^63
@@ -1393,7 +1393,7 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
// <=> 0.c(0)c(1)...c(q-1) * 10^20 > 0x5000000000000000a, 1<=q<=34
C.w[1] = 0x0000000000000005ull;
C.w[0] = 0x000000000000000aull;
- if (q <= 19) { // 1 <= q <= 19 => 1 <= 20-q <= 19 =>
+ if (q <= 19) { // 1 <= q <= 19 => 1 <= 20-q <= 19 =>
// 10^(20-q) is 64-bit, and so is C1
__mul_64x64_to_128MACH (C1, C1.w[0], ten2k64[20 - q]);
} else if (q == 20) {
@@ -1426,14 +1426,14 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
__mul_128x64_to_128 (C, ten2k64[q - 20], C); // max 47-bit x 67-bit
}
if (C1.w[1] > C.w[1] || (C1.w[1] == C.w[1] && C1.w[0] > C.w[0])) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x8000000000000000ull;
BID_RETURN (res);
}
// else cases that can be rounded to a 64-bit int fall through
- // to '1 <= q + exp <= 19'
+ // to '1 <= q + exp <= 19'
}
}
// n is not too large to be converted to int64: -2^63-1 < n <= 2^63 - 1
@@ -1679,7 +1679,7 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
// <=> 0.c(0)c(1)...c(q-1) * 10^20 > 0x5000000000000000a, 1<=q<=34
C.w[1] = 0x0000000000000005ull;
C.w[0] = 0x000000000000000aull;
- if (q <= 19) { // 1 <= q <= 19 => 1 <= 20-q <= 19 =>
+ if (q <= 19) { // 1 <= q <= 19 => 1 <= 20-q <= 19 =>
// 10^(20-q) is 64-bit, and so is C1
__mul_64x64_to_128MACH (C1, C1.w[0], ten2k64[20 - q]);
} else if (q == 20) {
@@ -1712,14 +1712,14 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
__mul_128x64_to_128 (C, ten2k64[q - 20], C); // max 47-bit x 67-bit
}
if (C1.w[1] > C.w[1] || (C1.w[1] == C.w[1] && C1.w[0] > C.w[0])) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x8000000000000000ull;
BID_RETURN (res);
}
// else cases that can be rounded to a 64-bit int fall through
- // to '1 <= q + exp <= 19'
+ // to '1 <= q + exp <= 19'
}
}
// n is not too large to be converted to int64: -2^63-1 < n <= 2^63 - 1
@@ -1973,7 +1973,7 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
// <=> 0.c(0)c(1)...c(q-1) * 10^20 >= 0x5000000000000000a, 1<=q<=34
C.w[1] = 0x0000000000000005ull;
C.w[0] = 0x000000000000000aull;
- if (q <= 19) { // 1 <= q <= 19 => 1 <= 20-q <= 19 =>
+ if (q <= 19) { // 1 <= q <= 19 => 1 <= 20-q <= 19 =>
// 10^(20-q) is 64-bit, and so is C1
__mul_64x64_to_128MACH (C1, C1.w[0], ten2k64[20 - q]);
} else if (q == 20) {
@@ -2006,14 +2006,14 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
__mul_128x64_to_128 (C, ten2k64[q - 20], C); // max 47-bit x 67-bit
}
if (C1.w[1] > C.w[1] || (C1.w[1] == C.w[1] && C1.w[0] >= C.w[0])) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x8000000000000000ull;
BID_RETURN (res);
}
// else cases that can be rounded to a 64-bit int fall through
- // to '1 <= q + exp <= 19'
+ // to '1 <= q + exp <= 19'
}
}
// n is not too large to be converted to int64: -2^63-1 < n < 2^63
@@ -2209,7 +2209,7 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
// <=> 0.c(0)c(1)...c(q-1) * 10^20 >= 0x5000000000000000a, 1<=q<=34
C.w[1] = 0x0000000000000005ull;
C.w[0] = 0x000000000000000aull;
- if (q <= 19) { // 1 <= q <= 19 => 1 <= 20-q <= 19 =>
+ if (q <= 19) { // 1 <= q <= 19 => 1 <= 20-q <= 19 =>
// 10^(20-q) is 64-bit, and so is C1
__mul_64x64_to_128MACH (C1, C1.w[0], ten2k64[20 - q]);
} else if (q == 20) {
@@ -2242,14 +2242,14 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
__mul_128x64_to_128 (C, ten2k64[q - 20], C); // max 47-bit x 67-bit
}
if (C1.w[1] > C.w[1] || (C1.w[1] == C.w[1] && C1.w[0] >= C.w[0])) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x8000000000000000ull;
BID_RETURN (res);
}
// else cases that can be rounded to a 64-bit int fall through
- // to '1 <= q + exp <= 19'
+ // to '1 <= q + exp <= 19'
}
}
// n is not too large to be converted to int64: -2^63-1 < n < 2^63
@@ -2484,7 +2484,7 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
// <=> 0.c(0)c(1)...c(q-1) * 10^20 >= 0x50000000000000005, 1<=q<=34
C.w[1] = 0x0000000000000005ull;
C.w[0] = 0000000000000005ull;
- if (q <= 19) { // 1 <= q <= 19 => 1 <= 20-q <= 19 =>
+ if (q <= 19) { // 1 <= q <= 19 => 1 <= 20-q <= 19 =>
// 10^(20-q) is 64-bit, and so is C1
__mul_64x64_to_128MACH (C1, C1.w[0], ten2k64[20 - q]);
} else if (q == 20) {
@@ -2517,14 +2517,14 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
__mul_128x64_to_128 (C, ten2k64[q - 20], C); // max 47-bit x 67-bit
}
if (C1.w[1] > C.w[1] || (C1.w[1] == C.w[1] && C1.w[0] >= C.w[0])) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x8000000000000000ull;
BID_RETURN (res);
}
// else cases that can be rounded to a 64-bit int fall through
- // to '1 <= q + exp <= 19'
+ // to '1 <= q + exp <= 19'
}
}
// n is not too large to be converted to int64: -2^63-1/2 <= n < 2^63-1/2
@@ -2763,7 +2763,7 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
// <=> 0.c(0)c(1)...c(q-1) * 10^20 >= 0x50000000000000005, 1<=q<=34
C.w[1] = 0x0000000000000005ull;
C.w[0] = 0000000000000005ull;
- if (q <= 19) { // 1 <= q <= 19 => 1 <= 20-q <= 19 =>
+ if (q <= 19) { // 1 <= q <= 19 => 1 <= 20-q <= 19 =>
// 10^(20-q) is 64-bit, and so is C1
__mul_64x64_to_128MACH (C1, C1.w[0], ten2k64[20 - q]);
} else if (q == 20) {
@@ -2796,14 +2796,14 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
__mul_128x64_to_128 (C, ten2k64[q - 20], C); // max 47-bit x 67-bit
}
if (C1.w[1] > C.w[1] || (C1.w[1] == C.w[1] && C1.w[0] >= C.w[0])) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x8000000000000000ull;
BID_RETURN (res);
}
// else cases that can be rounded to a 64-bit int fall through
- // to '1 <= q + exp <= 19'
+ // to '1 <= q + exp <= 19'
}
}
// n is not too large to be converted to int64: -2^63-1/2 <= n < 2^63-1/2
diff --git a/libgcc/config/libbid/bid128_to_uint32.c b/libgcc/config/libbid/bid128_to_uint32.c
index e039ee29f1d..f92e50c29ef 100644
--- a/libgcc/config/libbid/bid128_to_uint32.c
+++ b/libgcc/config/libbid/bid128_to_uint32.c
@@ -3097,8 +3097,8 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
// res = 0
// else if x > 0
// res = +1
- // else // if x < 0
- // invalid exc
+ // else // if x < 0
+ // invalid exc
ind = q - 1;
if (ind <= 18) { // 0 <= ind <= 18
if ((C1.w[1] == 0) && (C1.w[0] < midpoint64[ind])) {
@@ -3404,8 +3404,8 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
// res = 0
// else if x > 0
// res = +1
- // else // if x < 0
- // invalid exc
+ // else // if x < 0
+ // invalid exc
ind = q - 1;
if (ind <= 18) { // 0 <= ind <= 18
if ((C1.w[1] == 0) && (C1.w[0] < midpoint64[ind])) {
diff --git a/libgcc/config/libbid/bid128_to_uint64.c b/libgcc/config/libbid/bid128_to_uint64.c
index 7627624d5c4..a0d9c227cf0 100644
--- a/libgcc/config/libbid/bid128_to_uint64.c
+++ b/libgcc/config/libbid/bid128_to_uint64.c
@@ -146,7 +146,7 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
// <=> 0.c(0)c(1)...c(q-1) * 10^21 > 0x05, 1<=q<=34
// <=> C * 10^(21-q) > 0x05, 1<=q<=34
if (q == 21) {
- // C > 5
+ // C > 5
if (C1.w[1] != 0 || C1.w[0] > 0x05ull) {
// set invalid flag
*pfpsf |= INVALID_EXCEPTION;
@@ -503,7 +503,7 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
// <=> 0.c(0)c(1)...c(q-1) * 10^21 > 0x05, 1<=q<=34
// <=> C * 10^(21-q) > 0x05, 1<=q<=34
if (q == 21) {
- // C > 5
+ // C > 5
if (C1.w[1] != 0 || C1.w[0] > 0x05ull) {
// set invalid flag
*pfpsf |= INVALID_EXCEPTION;
@@ -1477,7 +1477,7 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
// <=> 0.c(0)c(1)...c(q-1) * 10^21 >= 0x0a, 1<=q<=34
// <=> C * 10^(21-q) >= 0x0a, 1<=q<=34
if (q == 21) {
- // C >= a
+ // C >= a
if (C1.w[1] != 0 || C1.w[0] >= 0x0aull) {
// set invalid flag
*pfpsf |= INVALID_EXCEPTION;
@@ -1502,7 +1502,7 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
// if n > 2^64 - 1 then n is too large
// <=> c(0)c(1)...c(19).c(20)...c(q-1) > 2^64 - 1
// <=> 0.c(0)c(1)...c(19)c(20)...c(q-1) * 10^20 > 2^64 - 1
- // <=> 0.c(0)c(1)...c(19)c(20)...c(q-1) * 10^21 > 10 * (2^64 - 1)
+ // <=> 0.c(0)c(1)...c(19)c(20)...c(q-1) * 10^21 > 10 * (2^64 - 1)
// <=> C * 10^(21-q) > 0x9fffffffffffffff6, 1<=q<=34
if (q == 1) {
// C * 10^20 > 0x9fffffffffffffff6
@@ -1811,7 +1811,7 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
// <=> 0.c(0)c(1)...c(q-1) * 10^21 >= 0x0a, 1<=q<=34
// <=> C * 10^(21-q) >= 0x0a, 1<=q<=34
if (q == 21) {
- // C >= a
+ // C >= a
if (C1.w[1] != 0 || C1.w[0] >= 0x0aull) {
// set invalid flag
*pfpsf |= INVALID_EXCEPTION;
@@ -1836,7 +1836,7 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
// if n > 2^64 - 1 then n is too large
// <=> c(0)c(1)...c(19).c(20)...c(q-1) > 2^64 - 1
// <=> 0.c(0)c(1)...c(19)c(20)...c(q-1) * 10^20 > 2^64 - 1
- // <=> 0.c(0)c(1)...c(19)c(20)...c(q-1) * 10^21 > 10 * (2^64 - 1)
+ // <=> 0.c(0)c(1)...c(19)c(20)...c(q-1) * 10^21 > 10 * (2^64 - 1)
// <=> C * 10^(21-q) > 0x9fffffffffffffff6, 1<=q<=34
if (q == 1) {
// C * 10^20 > 0x9fffffffffffffff6
@@ -2153,7 +2153,7 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
// <=> 0.c(0)c(1)...c(q-1) * 10^21 >= 0x0a, 1<=q<=34
// <=> C * 10^(21-q) >= 0x0a, 1<=q<=34
if (q == 21) {
- // C >= a
+ // C >= a
if (C1.w[1] != 0 || C1.w[0] >= 0x0aull) {
// set invalid flag
*pfpsf |= INVALID_EXCEPTION;
@@ -2438,7 +2438,7 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
// <=> 0.c(0)c(1)...c(q-1) * 10^21 >= 0x0a, 1<=q<=34
// <=> C * 10^(21-q) >= 0x0a, 1<=q<=34
if (q == 21) {
- // C >= a
+ // C >= a
if (C1.w[1] != 0 || C1.w[0] >= 0x0aull) {
// set invalid flag
*pfpsf |= INVALID_EXCEPTION;
@@ -2762,7 +2762,7 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
// <=> 0.c(0)c(1)...c(q-1) * 10^21 >= 0x05, 1<=q<=34
// <=> C * 10^(21-q) >= 0x05, 1<=q<=34
if (q == 21) {
- // C >= 5
+ // C >= 5
if (C1.w[1] != 0 || C1.w[0] >= 0x05ull) {
// set invalid flag
*pfpsf |= INVALID_EXCEPTION;
@@ -3105,7 +3105,7 @@ if ((C1.w[1] > 0x0001ed09bead87c0ull)
// <=> 0.c(0)c(1)...c(q-1) * 10^21 >= 0x05, 1<=q<=34
// <=> C * 10^(21-q) >= 0x05, 1<=q<=34
if (q == 21) {
- // C >= 5
+ // C >= 5
if (C1.w[1] != 0 || C1.w[0] >= 0x05ull) {
// set invalid flag
*pfpsf |= INVALID_EXCEPTION;
diff --git a/libgcc/config/libbid/bid32_to_bid128.c b/libgcc/config/libbid/bid32_to_bid128.c
index 5b5ce9504e1..50e08175a7c 100644
--- a/libgcc/config/libbid/bid32_to_bid128.c
+++ b/libgcc/config/libbid/bid32_to_bid128.c
@@ -24,7 +24,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define BID_128RES
#include "bid_internal.h"
-/*
+/*
* Takes a BID32 as input and converts it to a BID128 and returns it.
*/
TYPE0_FUNCTION_ARGTYPE1_NORND (UINT128, bid32_to_bid128, UINT32, x)
diff --git a/libgcc/config/libbid/bid32_to_bid64.c b/libgcc/config/libbid/bid32_to_bid64.c
index 61b24b29915..8c277d0df28 100644
--- a/libgcc/config/libbid/bid32_to_bid64.c
+++ b/libgcc/config/libbid/bid32_to_bid64.c
@@ -159,7 +159,7 @@ bid64_to_bid32 (UINT64 x _RND_MODE_PARAM _EXC_FLAGS_PARAM
if (rmode == 0) //ROUNDING_TO_NEAREST
#endif
if (coefficient_x & 1) {
- // check whether fractional part of initial_P/10^extra_digits
+ // check whether fractional part of initial_P/10^extra_digits
// is exactly .5
// get remainder
diff --git a/libgcc/config/libbid/bid64_add.c b/libgcc/config/libbid/bid64_add.c
index b303b915ae2..fb71f4f5321 100644
--- a/libgcc/config/libbid/bid64_add.c
+++ b/libgcc/config/libbid/bid64_add.c
@@ -50,7 +50,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
* else
* add sign_a*coefficient_a*10^diff_expon, sign_b*coefficient_b
* in 128-bit integer arithmetic, then round to 16 decimal digits
- *
+ *
*
****************************************************************************/
@@ -460,10 +460,10 @@ bid64_add (UINT64 x,
amount = short_recip_scale[extra_digits];
C0_64 = CT.w[1] >> amount;
- // result coefficient
+ // result coefficient
C64 = C0_64 + coefficient_a;
// filter out difficult (corner) cases
- // this test ensures the number of digits in coefficient_a does not change
+ // this test ensures the number of digits in coefficient_a does not change
// after adding (the appropriately scaled and rounded) coefficient_b
if ((UINT64) (C64 - 1000000000000000ull - 1) >
9000000000000000ull - 2) {
@@ -499,7 +499,7 @@ bid64_add (UINT64 x,
amount = short_recip_scale[extra_digits];
C0_64 = CT.w[1] >> amount;
- // result coefficient
+ // result coefficient
C64 = C0_64 + coefficient_a;
} else if (C64 <= 1000000000000000ull) {
// less than 16 digits in result
@@ -520,7 +520,7 @@ bid64_add (UINT64 x,
amount = short_recip_scale[extra_digits];
C0_64 = CT_new.w[1] >> amount;
- // result coefficient
+ // result coefficient
C64_new = C0_64 + coefficient_a;
if (C64_new < 10000000000000000ull) {
C64 = C64_new;
@@ -540,9 +540,9 @@ bid64_add (UINT64 x,
if (rmode == 0) //ROUNDING_TO_NEAREST
#endif
if (C64 & 1) {
- // check whether fractional part of initial_P/10^extra_digits is
+ // check whether fractional part of initial_P/10^extra_digits is
// exactly .5
- // this is the same as fractional part of
+ // this is the same as fractional part of
// (initial_P + 0.5*10^extra_digits)/10^extra_digits is exactly zero
// get remainder
diff --git a/libgcc/config/libbid/bid64_compare.c b/libgcc/config/libbid/bid64_compare.c
index aebb5cee86c..9f2a3b64902 100644
--- a/libgcc/config/libbid/bid64_compare.c
+++ b/libgcc/config/libbid/bid64_compare.c
@@ -51,7 +51,7 @@ bid64_quiet_equal (UINT64 x,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y, lcv;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
+ // if either number is NAN, the comparison is unordered,
// rather than equal : return 0
if (((x & MASK_NAN) == MASK_NAN) || ((y & MASK_NAN) == MASK_NAN)) {
if ((x & MASK_SNAN) == MASK_SNAN || (y & MASK_SNAN) == MASK_SNAN) {
@@ -107,7 +107,7 @@ bid64_quiet_equal (UINT64 x,
// ZERO (CASE4)
// some properties:
// (+ZERO==-ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// therefore ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || sig_x == 0) {
@@ -171,7 +171,7 @@ bid64_quiet_greater (UINT64 x,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered, rather than equal :
+ // if either number is NAN, the comparison is unordered, rather than equal :
// return 0
if (((x & MASK_NAN) == MASK_NAN) || ((y & MASK_NAN) == MASK_NAN)) {
if ((x & MASK_SNAN) == MASK_SNAN || (y & MASK_SNAN) == MASK_SNAN) {
@@ -193,7 +193,7 @@ bid64_quiet_greater (UINT64 x,
res = 0;
BID_RETURN (res);
} else {
- // x is pos infinity, it is greater, unless y is positive
+ // x is pos infinity, it is greater, unless y is positive
// infinity => return y!=pos_infinity
res = (((y & MASK_INF) != MASK_INF)
|| ((y & MASK_SIGN) == MASK_SIGN));
@@ -236,7 +236,7 @@ bid64_quiet_greater (UINT64 x,
// ZERO (CASE4)
// some properties:
//(+ZERO==-ZERO) => therefore ignore the sign, and neither number is greater
- //(ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore ignore the
+ //(ZERO x 10^A == ZERO x 10^B) for any valid A, B => therefore ignore the
// exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || sig_x == 0) {
@@ -265,7 +265,7 @@ bid64_quiet_greater (UINT64 x,
BID_RETURN (res);
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if both components are either bigger or smaller,
+ // if both components are either bigger or smaller,
// it is clear what needs to be done
if (sig_x > sig_y && exp_x > exp_y) {
res = ((x & MASK_SIGN) != MASK_SIGN);
@@ -309,7 +309,7 @@ bid64_quiet_greater (UINT64 x,
// adjust the y significand upwards
__mul_64x64_to_128MACH (sig_n_prime, sig_y,
mult_factor[exp_y - exp_x]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime.w[1] == 0 && (sig_n_prime.w[0] == sig_x)) {
res = 0;
@@ -406,7 +406,7 @@ bid64_quiet_greater_equal (UINT64 x,
// ZERO (CASE4)
// some properties:
// (+ZERO==-ZERO) => therefore ignore the sign, and neither number is greater
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// therefore ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || sig_x == 0) {
@@ -465,7 +465,7 @@ bid64_quiet_greater_equal (UINT64 x,
res = 1;
BID_RETURN (res);
}
- // if postitive, return whichever significand abs is smaller
+ // if postitive, return whichever significand abs is smaller
// (converse if negative)
res = (((sig_n_prime.w[1] == 0)
&& sig_n_prime.w[0] < sig_y) ^ ((x & MASK_SIGN) !=
@@ -480,7 +480,7 @@ bid64_quiet_greater_equal (UINT64 x,
res = 1;
BID_RETURN (res);
}
- // if positive, return whichever significand abs is smaller
+ // if positive, return whichever significand abs is smaller
// (converse if negative)
res = (((sig_n_prime.w[1] > 0)
|| (sig_x < sig_n_prime.w[0])) ^ ((x & MASK_SIGN) !=
@@ -509,7 +509,7 @@ bid64_quiet_greater_unordered (UINT64 x,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered, rather than equal :
+ // if either number is NAN, the comparison is unordered, rather than equal :
// return 0
if (((x & MASK_NAN) == MASK_NAN) || ((y & MASK_NAN) == MASK_NAN)) {
if ((x & MASK_SNAN) == MASK_SNAN || (y & MASK_SNAN) == MASK_SNAN) {
@@ -531,7 +531,7 @@ bid64_quiet_greater_unordered (UINT64 x,
res = 0;
BID_RETURN (res);
} else {
- // x is pos infinity, it is greater, unless y is positive infinity =>
+ // x is pos infinity, it is greater, unless y is positive infinity =>
// return y!=pos_infinity
res = (((y & MASK_INF) != MASK_INF)
|| ((y & MASK_SIGN) == MASK_SIGN));
@@ -574,7 +574,7 @@ bid64_quiet_greater_unordered (UINT64 x,
// ZERO (CASE4)
// some properties:
// (+ZERO==-ZERO) => therefore ignore the sign, and neither number is greater
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// therefore ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || sig_x == 0) {
@@ -628,7 +628,7 @@ bid64_quiet_greater_unordered (UINT64 x,
// otherwise adjust the x significand upwards
__mul_64x64_to_128MACH (sig_n_prime, sig_x,
mult_factor[exp_x - exp_y]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime.w[1] == 0 && (sig_n_prime.w[0] == sig_y)) {
res = 0;
@@ -657,7 +657,7 @@ bid64_quiet_greater_unordered (UINT64 x,
void
bid64_quiet_less (int *pres, UINT64 * px,
UINT64 *
- py _EXC_FLAGS_PARAM _EXC_MASKS_PARAM _EXC_INFO_PARAM)
+ py _EXC_FLAGS_PARAM _EXC_MASKS_PARAM _EXC_INFO_PARAM)
{
UINT64 x = *px;
UINT64 y = *py;
@@ -739,7 +739,7 @@ bid64_quiet_less (UINT64 x,
// ZERO (CASE4)
// some properties:
// (+ZERO==-ZERO) => therefore ignore the sign, and neither number is greater
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// therefore ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || sig_x == 0) {
@@ -768,7 +768,7 @@ bid64_quiet_less (UINT64 x,
BID_RETURN (res);
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if both components are either bigger or smaller,
+ // if both components are either bigger or smaller,
// it is clear what needs to be done
if (sig_x > sig_y && exp_x >= exp_y) {
res = ((x & MASK_SIGN) == MASK_SIGN);
@@ -799,7 +799,7 @@ bid64_quiet_less (UINT64 x,
res = 0;
BID_RETURN (res);
}
- // if postitive, return whichever significand abs is smaller
+ // if postitive, return whichever significand abs is smaller
// (converse if negative)
res = (((sig_n_prime.w[1] == 0)
&& sig_n_prime.w[0] < sig_y) ^ ((x & MASK_SIGN) ==
@@ -814,7 +814,7 @@ bid64_quiet_less (UINT64 x,
res = 0;
BID_RETURN (res);
}
- // if positive, return whichever significand abs is smaller
+ // if positive, return whichever significand abs is smaller
// (converse if negative)
res = (((sig_n_prime.w[1] > 0)
|| (sig_x < sig_n_prime.w[0])) ^ ((x & MASK_SIGN) ==
@@ -843,7 +843,7 @@ bid64_quiet_less_equal (UINT64 x,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered, rather than equal :
+ // if either number is NAN, the comparison is unordered, rather than equal :
// return 0
if (((x & MASK_NAN) == MASK_NAN) || ((y & MASK_NAN) == MASK_NAN)) {
if ((x & MASK_SNAN) == MASK_SNAN || (y & MASK_SNAN) == MASK_SNAN) {
@@ -865,7 +865,7 @@ bid64_quiet_less_equal (UINT64 x,
res = 1;
BID_RETURN (res);
} else {
- // x is pos infinity, it is greater, unless y is positive infinity =>
+ // x is pos infinity, it is greater, unless y is positive infinity =>
// return y==pos_infinity
res = !(((y & MASK_INF) != MASK_INF)
|| ((y & MASK_SIGN) == MASK_SIGN));
@@ -908,7 +908,7 @@ bid64_quiet_less_equal (UINT64 x,
// ZERO (CASE4)
// some properties:
// (+ZERO==-ZERO) => therefore ignore the sign, and neither number is greater
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// therefore ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || sig_x == 0) {
@@ -967,7 +967,7 @@ bid64_quiet_less_equal (UINT64 x,
res = 1;
BID_RETURN (res);
}
- // if postitive, return whichever significand abs is smaller
+ // if postitive, return whichever significand abs is smaller
// (converse if negative)
res = (((sig_n_prime.w[1] == 0)
&& sig_n_prime.w[0] < sig_y) ^ ((x & MASK_SIGN) ==
@@ -982,7 +982,7 @@ bid64_quiet_less_equal (UINT64 x,
res = 1;
BID_RETURN (res);
}
- // if positive, return whichever significand abs is smaller
+ // if positive, return whichever significand abs is smaller
// (converse if negative)
res = (((sig_n_prime.w[1] > 0)
|| (sig_x < sig_n_prime.w[0])) ^ ((x & MASK_SIGN) ==
@@ -1076,7 +1076,7 @@ bid64_quiet_less_unordered (UINT64 x,
// ZERO (CASE4)
// some properties:
// (+ZERO==-ZERO) => therefore ignore the sign, and neither number is greater
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// therefore ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || sig_x == 0) {
@@ -1135,7 +1135,7 @@ bid64_quiet_less_unordered (UINT64 x,
res = 0;
BID_RETURN (res);
}
- // if postitive, return whichever significand abs is smaller
+ // if postitive, return whichever significand abs is smaller
// (converse if negative)
res = (((sig_n_prime.w[1] == 0)
&& sig_n_prime.w[0] < sig_y) ^ ((x & MASK_SIGN) ==
@@ -1150,7 +1150,7 @@ bid64_quiet_less_unordered (UINT64 x,
res = 0;
BID_RETURN (res);
}
- // if positive, return whichever significand abs is smaller
+ // if positive, return whichever significand abs is smaller
// (converse if negative)
res = (((sig_n_prime.w[1] > 0)
|| (sig_x < sig_n_prime.w[0])) ^ ((x & MASK_SIGN) ==
@@ -1178,7 +1178,7 @@ bid64_quiet_not_equal (UINT64 x,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y, lcv;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
+ // if either number is NAN, the comparison is unordered,
// rather than equal : return 1
if (((x & MASK_NAN) == MASK_NAN) || ((y & MASK_NAN) == MASK_NAN)) {
if ((x & MASK_SNAN) == MASK_SNAN || (y & MASK_SNAN) == MASK_SNAN) {
@@ -1236,7 +1236,7 @@ bid64_quiet_not_equal (UINT64 x,
// ZERO (CASE4)
// some properties:
// (+ZERO==-ZERO) => therefore ignore the sign
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// therefore ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || sig_x == 0) {
@@ -1309,7 +1309,7 @@ bid64_quiet_not_greater (UINT64 x,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
+ // if either number is NAN, the comparison is unordered,
// rather than equal : return 0
if (((x & MASK_NAN) == MASK_NAN) || ((y & MASK_NAN) == MASK_NAN)) {
if ((x & MASK_SNAN) == MASK_SNAN || (y & MASK_SNAN) == MASK_SNAN) {
@@ -1331,7 +1331,7 @@ bid64_quiet_not_greater (UINT64 x,
res = 1;
BID_RETURN (res);
}
- // x is pos infinity, it is greater, unless y is positive
+ // x is pos infinity, it is greater, unless y is positive
// infinity => return y==pos_infinity
else {
res = !(((y & MASK_INF) != MASK_INF)
@@ -1378,9 +1378,9 @@ bid64_quiet_not_greater (UINT64 x,
// ZERO (CASE4)
// some properties:
- // (+ZERO==-ZERO) => therefore ignore the sign, and neither
+ // (+ZERO==-ZERO) => therefore ignore the sign, and neither
// number is greater
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// therefore ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || sig_x == 0) {
@@ -1444,7 +1444,7 @@ bid64_quiet_not_greater (UINT64 x,
res = 1;
BID_RETURN (res);
}
- // if postitive, return whichever significand abs is smaller
+ // if postitive, return whichever significand abs is smaller
// (converse if negative)
{
res = (((sig_n_prime.w[1] == 0)
@@ -1462,7 +1462,7 @@ bid64_quiet_not_greater (UINT64 x,
res = 1;
BID_RETURN (res);
}
- // if positive, return whichever significand abs is smaller
+ // if positive, return whichever significand abs is smaller
// (converse if negative)
{
res = (((sig_n_prime.w[1] > 0)
@@ -1563,9 +1563,9 @@ bid64_quiet_not_less (UINT64 x,
// ZERO (CASE4)
// some properties:
- // (+ZERO==-ZERO) => therefore ignore the sign, and neither
+ // (+ZERO==-ZERO) => therefore ignore the sign, and neither
// number is greater
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// therefore ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || sig_x == 0) {
@@ -1629,7 +1629,7 @@ bid64_quiet_not_less (UINT64 x,
res = 1;
BID_RETURN (res);
}
- // if postitive, return whichever significand abs is smaller
+ // if postitive, return whichever significand abs is smaller
// (converse if negative)
{
res = (((sig_n_prime.w[1] == 0)
@@ -1647,7 +1647,7 @@ bid64_quiet_not_less (UINT64 x,
res = 1;
BID_RETURN (res);
}
- // if positive, return whichever significand abs is smaller
+ // if positive, return whichever significand abs is smaller
// (converse if negative)
{
res = (((sig_n_prime.w[1] > 0)
@@ -1704,7 +1704,7 @@ bid64_quiet_unordered (UINT64 x,
int res;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
+ // if either number is NAN, the comparison is unordered,
// rather than equal : return 0
if (((x & MASK_NAN) == MASK_NAN) || ((y & MASK_NAN) == MASK_NAN)) {
if ((x & MASK_SNAN) == MASK_SNAN || (y & MASK_SNAN) == MASK_SNAN) {
@@ -1739,7 +1739,7 @@ bid64_signaling_greater (UINT64 x,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
+ // if either number is NAN, the comparison is unordered,
// rather than equal : return 0
if (((x & MASK_NAN) == MASK_NAN) || ((y & MASK_NAN) == MASK_NAN)) {
*pfpsf |= INVALID_EXCEPTION; // set invalid exception if NaN
@@ -1759,7 +1759,7 @@ bid64_signaling_greater (UINT64 x,
res = 0;
BID_RETURN (res);
}
- // x is pos infinity, it is greater,
+ // x is pos infinity, it is greater,
// unless y is positive infinity => return y!=pos_infinity
else {
res = (((y & MASK_INF) != MASK_INF)
@@ -1807,7 +1807,7 @@ bid64_signaling_greater (UINT64 x,
// ZERO (CASE4)
// some properties:
// (+ZERO==-ZERO) => therefore ignore the sign, and neither number is greater
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// therefore ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || sig_x == 0) {
@@ -1868,7 +1868,7 @@ bid64_signaling_greater (UINT64 x,
mult_factor[exp_x - exp_y]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime.w[1] == 0 && (sig_n_prime.w[0] == sig_y)) {
res = 0;
@@ -1886,7 +1886,7 @@ bid64_signaling_greater (UINT64 x,
__mul_64x64_to_128MACH (sig_n_prime, sig_y,
mult_factor[exp_y - exp_x]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime.w[1] == 0 && (sig_n_prime.w[0] == sig_x)) {
res = 0;
@@ -1990,7 +1990,7 @@ bid64_signaling_greater_equal (UINT64 x,
// ZERO (CASE4)
// some properties:
// (+ZERO==-ZERO) => therefore ignore the sign, and neither number is greater
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// therefore ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || sig_x == 0) {
@@ -2054,7 +2054,7 @@ bid64_signaling_greater_equal (UINT64 x,
res = 1;
BID_RETURN (res);
}
- // if postitive, return whichever significand abs is smaller
+ // if postitive, return whichever significand abs is smaller
// (converse if negative)
{
res = (((sig_n_prime.w[1] == 0)
@@ -2072,7 +2072,7 @@ bid64_signaling_greater_equal (UINT64 x,
res = 1;
BID_RETURN (res);
}
- // if positive, return whichever significand abs is smaller
+ // if positive, return whichever significand abs is smaller
// (converse if negative)
{
res = (((sig_n_prime.w[1] > 0)
@@ -2103,7 +2103,7 @@ bid64_signaling_greater_unordered (UINT64 x,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
+ // if either number is NAN, the comparison is unordered,
// rather than equal : return 0
if (((x & MASK_NAN) == MASK_NAN) || ((y & MASK_NAN) == MASK_NAN)) {
*pfpsf |= INVALID_EXCEPTION; // set invalid exception if NaN
@@ -2123,7 +2123,7 @@ bid64_signaling_greater_unordered (UINT64 x,
res = 0;
BID_RETURN (res);
}
- // x is pos infinity, it is greater,
+ // x is pos infinity, it is greater,
// unless y is positive infinity => return y!=pos_infinity
else {
res = (((y & MASK_INF) != MASK_INF)
@@ -2171,7 +2171,7 @@ bid64_signaling_greater_unordered (UINT64 x,
// ZERO (CASE4)
// some properties:
// (+ZERO==-ZERO) => therefore ignore the sign, and neither number is greater
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// therefore ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || sig_x == 0) {
@@ -2231,7 +2231,7 @@ bid64_signaling_greater_unordered (UINT64 x,
__mul_64x64_to_128MACH (sig_n_prime, sig_x,
mult_factor[exp_x - exp_y]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime.w[1] == 0 && (sig_n_prime.w[0] == sig_y)) {
res = 0;
@@ -2249,7 +2249,7 @@ bid64_signaling_greater_unordered (UINT64 x,
__mul_64x64_to_128MACH (sig_n_prime, sig_y,
mult_factor[exp_y - exp_x]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime.w[1] == 0 && (sig_n_prime.w[0] == sig_x)) {
res = 0;
@@ -2353,7 +2353,7 @@ bid64_signaling_less (UINT64 x,
// ZERO (CASE4)
// some properties:
// (+ZERO==-ZERO) => therefore ignore the sign, and neither number is greater
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// therefore ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || sig_x == 0) {
@@ -2417,7 +2417,7 @@ bid64_signaling_less (UINT64 x,
res = 0;
BID_RETURN (res);
}
- // if postitive, return whichever significand abs is smaller
+ // if postitive, return whichever significand abs is smaller
// (converse if negative)
{
res = (((sig_n_prime.w[1] == 0)
@@ -2435,7 +2435,7 @@ bid64_signaling_less (UINT64 x,
res = 0;
BID_RETURN (res);
}
- // if positive, return whichever significand abs is smaller
+ // if positive, return whichever significand abs is smaller
// (converse if negative)
{
res = (((sig_n_prime.w[1] > 0)
@@ -2466,7 +2466,7 @@ bid64_signaling_less_equal (UINT64 x,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
+ // if either number is NAN, the comparison is unordered,
// rather than equal : return 0
if (((x & MASK_NAN) == MASK_NAN) || ((y & MASK_NAN) == MASK_NAN)) {
*pfpsf |= INVALID_EXCEPTION; // set invalid exception if NaN
@@ -2486,7 +2486,7 @@ bid64_signaling_less_equal (UINT64 x,
res = 1;
BID_RETURN (res);
}
- // x is pos infinity, it is greater,
+ // x is pos infinity, it is greater,
// unless y is positive infinity => return y==pos_infinity
else {
res = !(((y & MASK_INF) != MASK_INF)
@@ -2534,7 +2534,7 @@ bid64_signaling_less_equal (UINT64 x,
// ZERO (CASE4)
// some properties:
// (+ZERO==-ZERO) => therefore ignore the sign, and neither number is greater
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// therefore ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || sig_x == 0) {
@@ -2598,7 +2598,7 @@ bid64_signaling_less_equal (UINT64 x,
res = 1;
BID_RETURN (res);
}
- // if postitive, return whichever significand abs is smaller
+ // if postitive, return whichever significand abs is smaller
// (converse if negative)
{
res = (((sig_n_prime.w[1] == 0)
@@ -2616,7 +2616,7 @@ bid64_signaling_less_equal (UINT64 x,
res = 1;
BID_RETURN (res);
}
- // if positive, return whichever significand abs is smaller
+ // if positive, return whichever significand abs is smaller
// (converse if negative)
{
res = (((sig_n_prime.w[1] > 0)
@@ -2716,7 +2716,7 @@ bid64_signaling_less_unordered (UINT64 x,
// ZERO (CASE4)
// some properties:
// (+ZERO==-ZERO) => therefore ignore the sign, and neither number is greater
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// therefore ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || sig_x == 0) {
@@ -2780,7 +2780,7 @@ bid64_signaling_less_unordered (UINT64 x,
res = 0;
BID_RETURN (res);
}
- // if postitive, return whichever significand abs is smaller
+ // if postitive, return whichever significand abs is smaller
// (converse if negative)
{
res = (((sig_n_prime.w[1] == 0)
@@ -2798,7 +2798,7 @@ bid64_signaling_less_unordered (UINT64 x,
res = 0;
BID_RETURN (res);
}
- // if positive, return whichever significand abs is smaller
+ // if positive, return whichever significand abs is smaller
// (converse if negative)
{
res = (((sig_n_prime.w[1] > 0)
@@ -2829,7 +2829,7 @@ bid64_signaling_not_greater (UINT64 x,
char x_is_zero = 0, y_is_zero = 0, non_canon_x, non_canon_y;
// NaN (CASE1)
- // if either number is NAN, the comparison is unordered,
+ // if either number is NAN, the comparison is unordered,
// rather than equal : return 0
if (((x & MASK_NAN) == MASK_NAN) || ((y & MASK_NAN) == MASK_NAN)) {
*pfpsf |= INVALID_EXCEPTION; // set invalid exception if NaN
@@ -2849,7 +2849,7 @@ bid64_signaling_not_greater (UINT64 x,
res = 1;
BID_RETURN (res);
}
- // x is pos infinity, it is greater,
+ // x is pos infinity, it is greater,
// unless y is positive infinity => return y==pos_infinity
else {
res = !(((y & MASK_INF) != MASK_INF)
@@ -2897,7 +2897,7 @@ bid64_signaling_not_greater (UINT64 x,
// ZERO (CASE4)
// some properties:
// (+ZERO==-ZERO) => therefore ignore the sign, and neither number is greater
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// therefore ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || sig_x == 0) {
@@ -2961,7 +2961,7 @@ bid64_signaling_not_greater (UINT64 x,
res = 1;
BID_RETURN (res);
}
- // if postitive, return whichever significand abs is smaller
+ // if postitive, return whichever significand abs is smaller
// (converse if negative)
{
res = (((sig_n_prime.w[1] == 0)
@@ -2979,7 +2979,7 @@ bid64_signaling_not_greater (UINT64 x,
res = 1;
BID_RETURN (res);
}
- // if positive, return whichever significand abs is smaller
+ // if positive, return whichever significand abs is smaller
// (converse if negative)
{
res = (((sig_n_prime.w[1] > 0)
@@ -3079,7 +3079,7 @@ bid64_signaling_not_less (UINT64 x,
// ZERO (CASE4)
// some properties:
// (+ZERO==-ZERO) => therefore ignore the sign, and neither number is greater
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// therefore ignore the exponent field
// (Any non-canonical # is considered 0)
if (non_canon_x || sig_x == 0) {
@@ -3143,7 +3143,7 @@ bid64_signaling_not_less (UINT64 x,
res = 1;
BID_RETURN (res);
}
- // if postitive, return whichever significand abs is smaller
+ // if postitive, return whichever significand abs is smaller
// (converse if negative)
{
res = (((sig_n_prime.w[1] == 0)
@@ -3161,7 +3161,7 @@ bid64_signaling_not_less (UINT64 x,
res = 1;
BID_RETURN (res);
}
- // if positive, return whichever significand abs is smaller
+ // if positive, return whichever significand abs is smaller
// (converse if negative)
{
res = (((sig_n_prime.w[1] > 0)
diff --git a/libgcc/config/libbid/bid64_div.c b/libgcc/config/libbid/bid64_div.c
index 4373e6cb133..b9b1a24e7b2 100644
--- a/libgcc/config/libbid/bid64_div.c
+++ b/libgcc/config/libbid/bid64_div.c
@@ -34,7 +34,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
* CA= A*10^(15+j), j=0 for A>=B, 1 otherwise
* Q = 0
* else
- * get Q=(int)(coefficient_x/coefficient_y)
+ * get Q=(int)(coefficient_x/coefficient_y)
* (based on double precision divide)
* check for exact divide case
* Let R = coefficient_x - Q*coefficient_y
@@ -44,8 +44,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
* endif
* if (CA<2^64)
* Q += CA/B (64-bit unsigned divide)
- * else
- * get final Q using double precision divide, followed by 3 integer
+ * else
+ * get final Q using double precision divide, followed by 3 integer
* iterations
* if exact result, eliminate trailing zeros
* check for underflow
@@ -129,7 +129,7 @@ bid64_div (UINT64 x,
if ((x & INFINITY_MASK64) == INFINITY_MASK64) {
// check if y is Inf or NaN
if ((y & INFINITY_MASK64) == INFINITY_MASK64) {
- // y==Inf, return NaN
+ // y==Inf, return NaN
if ((y & NAN_MASK64) == INFINITY_MASK64) { // Inf/Inf
#ifdef SET_STATUS_FLAGS
__set_status_flags (pfpsf, INVALID_EXCEPTION);
@@ -551,7 +551,7 @@ if (!unpack_BID64 (&sign_x, &exponent_x, &CX.w[0], (x))) {
if (((x) & 0x7800000000000000ull) == 0x7800000000000000ull) {
// check if y is Inf.
if (((y.w[1] & 0x7c00000000000000ull) == 0x7800000000000000ull))
- // return NaN
+ // return NaN
{
#ifdef SET_STATUS_FLAGS
__set_status_flags (pfpsf, INVALID_EXCEPTION);
@@ -717,7 +717,7 @@ if (!done) {
__div_256_by_128 (&CQ, &CA4, CY);
}
-
+
#ifdef SET_STATUS_FLAGS
if (CA4.w[0] || CA4.w[1]) {
@@ -894,11 +894,11 @@ if (!done) {
CQ.w[0]++;
if (!CQ.w[0])
CQ.w[1]++;
- break;
+ break;
}
#endif
#endif
-
+
res =
fast_get_BID64_check_OF (sign_x ^ sign_y, diff_expon, CQ.w[0], rnd_mode,
pfpsf);
@@ -970,7 +970,7 @@ if (!unpack_BID128_value (&sign_x, &exponent_x, &CX, x)) {
if ((x.w[1] & 0x7800000000000000ull) == 0x7800000000000000ull) {
// check if y is Inf.
if (((y & 0x7c00000000000000ull) == 0x7800000000000000ull))
- // return NaN
+ // return NaN
{
#ifdef SET_STATUS_FLAGS
__set_status_flags (pfpsf, INVALID_EXCEPTION);
@@ -1120,7 +1120,7 @@ if (__unsigned_compare_gt_128 (CY, CX)) {
CQ.w[0] = (P256.w[2] >> amount) | (P256.w[3] << (64 - amount));
CQ.w[1] = 0;
- __mul_64x64_to_128 (CQ2, CQ.w[0], (power10_table_128[ed2].w[0]));
+ __mul_64x64_to_128 (CQ2, CQ.w[0], (power10_table_128[ed2].w[0]));
__mul_64x64_to_128 (QB256, CQ2.w[0], CY.w[0]);
QB256.w[1] += CQ2.w[0] * CY.w[1] + CQ2.w[1] * CY.w[0];
@@ -1150,7 +1150,7 @@ if (!done) {
__set_status_flags (pfpsf, INEXACT_EXCEPTION);
}
#ifndef LEAVE_TRAILING_ZEROS
- else
+ else
#endif
#else
#ifndef LEAVE_TRAILING_ZEROS
@@ -1330,7 +1330,7 @@ if (!done) {
#endif
#endif
-
+
res =
fast_get_BID64_check_OF (sign_x ^ sign_y, diff_expon, CQ.w[0], rnd_mode,
pfpsf);
@@ -1366,7 +1366,7 @@ extern SINT8 factors[][2];
extern UINT8 packed_10000_zeros[];
-//UINT64* bid64_div128x128(UINT64 res, UINT128 *px, UINT128 *py, unsigned rnd_mode, unsigned *pfpsf)
+//UINT64* bid64_div128x128(UINT64 res, UINT128 *px, UINT128 *py, unsigned rnd_mode, unsigned *pfpsf)
TYPE0_FUNCTION_ARG128_ARG128 (UINT64, bid64qq_div, x, y)
UINT256 CA4 =
@@ -1407,7 +1407,7 @@ if (!unpack_BID128_value (&sign_x, &exponent_x, &CX, x)) {
if ((x.w[1] & 0x7800000000000000ull) == 0x7800000000000000ull) {
// check if y is Inf.
if (((y.w[1] & 0x7c00000000000000ull) == 0x7800000000000000ull))
- // return NaN
+ // return NaN
{
#ifdef SET_STATUS_FLAGS
__set_status_flags (pfpsf, INVALID_EXCEPTION);
@@ -1576,7 +1576,7 @@ if (!done) {
__div_256_by_128 (&CQ, &CA4, CY);
}
-
+
#ifdef SET_STATUS_FLAGS
if (CA4.w[0] || CA4.w[1]) {
@@ -1584,7 +1584,7 @@ if (!done) {
__set_status_flags (pfpsf, INEXACT_EXCEPTION);
}
#ifndef LEAVE_TRAILING_ZEROS
- else
+ else
#endif
#else
#ifndef LEAVE_TRAILING_ZEROS
@@ -1765,7 +1765,7 @@ if (!done) {
#endif
#endif
-
+
res =
fast_get_BID64_check_OF (sign_x ^ sign_y, diff_expon, CQ.w[0], rnd_mode,
pfpsf);
diff --git a/libgcc/config/libbid/bid64_fma.c b/libgcc/config/libbid/bid64_fma.c
index 8bf6cc08415..1a186890b76 100644
--- a/libgcc/config/libbid/bid64_fma.c
+++ b/libgcc/config/libbid/bid64_fma.c
@@ -29,9 +29,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
*
* if multiplication is guranteed exact (short coefficients)
* call the unpacked arg. equivalent of bid64_add(x*y, z)
- * else
+ * else
* get full coefficient_x*coefficient_y product
- * call subroutine to perform addition of 64-bit argument
+ * call subroutine to perform addition of 64-bit argument
* to 128-bit product
*
****************************************************************************/
@@ -174,7 +174,7 @@ bid64_fma (UINT64 x, UINT64 y,
// test if z is Inf of oposite sign
if (((z & 0x7c00000000000000ull) == 0x7800000000000000ull)
&& (((x ^ y) ^ z) & 0x8000000000000000ull)) {
- // return NaN
+ // return NaN
#ifdef SET_STATUS_FLAGS
__set_status_flags (pfpsf, INVALID_EXCEPTION);
#endif
@@ -228,7 +228,7 @@ bid64_fma (UINT64 x, UINT64 y,
BID_RETURN (((x ^ y) & 0x8000000000000000ull) |
0x7800000000000000ull);
}
- // y is 0
+ // y is 0
if (((z & 0x7800000000000000ull) != 0x7800000000000000ull)) {
if (coefficient_z) {
@@ -288,7 +288,7 @@ bid64_fma (UINT64 x, UINT64 y,
tempy.d = (double) coefficient_y;
bin_expon_cy = ((tempy.i & MASK_BINARY_EXPONENT) >> 52);
- // magnitude estimate for coefficient_x*coefficient_y is
+ // magnitude estimate for coefficient_x*coefficient_y is
// 2^(unbiased_bin_expon_cx + unbiased_bin_expon_cx)
bin_expon_product = bin_expon_cx + bin_expon_cy;
@@ -498,8 +498,8 @@ bid64_fma (UINT64 x, UINT64 y,
res =
get_add64 (sign_x ^ sign_y,
- exponent_x + exponent_y - DECIMAL_EXPONENT_BIAS, C64,
- sign_z, exponent_z, coefficient_z,
+ exponent_x + exponent_y - DECIMAL_EXPONENT_BIAS, C64,
+ sign_z, exponent_z, coefficient_z,
rnd_mode, pfpsf);
BID_RETURN (res);
}
diff --git a/libgcc/config/libbid/bid64_minmax.c b/libgcc/config/libbid/bid64_minmax.c
index f7c8e55cf55..5f609da0b9e 100644
--- a/libgcc/config/libbid/bid64_minmax.c
+++ b/libgcc/config/libbid/bid64_minmax.c
@@ -68,7 +68,7 @@ bid64_minnum (UINT64 x, UINT64 y _EXC_FLAGS_PARAM) {
// non-canonical
x = (x & MASK_SIGN) | ((x & MASK_BINARY_EXPONENT2) << 2);
} // else canonical
- } // else canonical
+ } // else canonical
}
// check for non-canonical y
@@ -164,9 +164,9 @@ bid64_minnum (UINT64 x, UINT64 y _EXC_FLAGS_PARAM) {
// ZERO (CASE4)
// some properties:
- // (+ZERO == -ZERO) => therefore
+ // (+ZERO == -ZERO) => therefore
// ignore the sign, and neither number is greater
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// ignore the exponent field
// (Any non-canonical # is considered 0)
if (sig_x == 0) {
@@ -197,7 +197,7 @@ bid64_minnum (UINT64 x, UINT64 y _EXC_FLAGS_PARAM) {
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if both components are either bigger or smaller,
+ // if both components are either bigger or smaller,
// it is clear what needs to be done
if (sig_x > sig_y && exp_x >= exp_y) {
res = ((x & MASK_SIGN) != MASK_SIGN) ? y : x;
@@ -223,7 +223,7 @@ bid64_minnum (UINT64 x, UINT64 y _EXC_FLAGS_PARAM) {
// otherwise adjust the x significand upwards
__mul_64x64_to_128MACH (sig_n_prime, sig_x,
mult_factor[exp_x - exp_y]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime.w[1] == 0 && (sig_n_prime.w[0] == sig_y)) {
res = y;
@@ -287,7 +287,7 @@ bid64_minnum_mag (UINT64 x, UINT64 y _EXC_FLAGS_PARAM) {
// non-canonical
x = (x & MASK_SIGN) | ((x & MASK_BINARY_EXPONENT2) << 2);
} // else canonical
- } // else canonical
+ } // else canonical
}
// check for non-canonical y
@@ -377,9 +377,9 @@ bid64_minnum_mag (UINT64 x, UINT64 y _EXC_FLAGS_PARAM) {
// ZERO (CASE4)
// some properties:
- // (+ZERO == -ZERO) => therefore
+ // (+ZERO == -ZERO) => therefore
// ignore the sign, and neither number is greater
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// ignore the exponent field
// (Any non-canonical # is considered 0)
if (sig_x == 0) {
@@ -391,7 +391,7 @@ bid64_minnum_mag (UINT64 x, UINT64 y _EXC_FLAGS_PARAM) {
BID_RETURN (res);
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if both components are either bigger or smaller,
+ // if both components are either bigger or smaller,
// it is clear what needs to be done
if (sig_x > sig_y && exp_x >= exp_y) {
res = y;
@@ -416,14 +416,14 @@ bid64_minnum_mag (UINT64 x, UINT64 y _EXC_FLAGS_PARAM) {
// otherwise adjust the x significand upwards
__mul_64x64_to_128MACH (sig_n_prime, sig_x,
mult_factor[exp_x - exp_y]);
- // now, sig_n_prime has: sig_x * 10^(exp_x-exp_y), this is
+ // now, sig_n_prime has: sig_x * 10^(exp_x-exp_y), this is
// the compensated signif.
if (sig_n_prime.w[1] == 0 && (sig_n_prime.w[0] == sig_y)) {
// two numbers are equal, return minNum(x,y)
res = ((y & MASK_SIGN) == MASK_SIGN) ? y : x;
BID_RETURN (res);
}
- // now, if compensated_x (sig_n_prime) is greater than y, return y,
+ // now, if compensated_x (sig_n_prime) is greater than y, return y,
// otherwise return x
res = ((sig_n_prime.w[1] != 0) || sig_n_prime.w[0] > sig_y) ? y : x;
BID_RETURN (res);
@@ -479,7 +479,7 @@ bid64_maxnum (UINT64 x, UINT64 y _EXC_FLAGS_PARAM) {
// non-canonical
x = (x & MASK_SIGN) | ((x & MASK_BINARY_EXPONENT2) << 2);
} // else canonical
- } // else canonical
+ } // else canonical
}
// check for non-canonical y
@@ -540,7 +540,7 @@ bid64_maxnum (UINT64 x, UINT64 y _EXC_FLAGS_PARAM) {
// INFINITY (CASE3)
if ((x & MASK_INF) == MASK_INF) {
// if x is neg infinity, there is no way it is greater than y, return y
- // x is pos infinity, it is greater, unless y is positive infinity =>
+ // x is pos infinity, it is greater, unless y is positive infinity =>
// return y!=pos_infinity
if (((x & MASK_SIGN) == MASK_SIGN)) {
res = y;
@@ -576,9 +576,9 @@ bid64_maxnum (UINT64 x, UINT64 y _EXC_FLAGS_PARAM) {
// ZERO (CASE4)
// some properties:
- // (+ZERO == -ZERO) => therefore
+ // (+ZERO == -ZERO) => therefore
// ignore the sign, and neither number is greater
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// ignore the exponent field
// (Any non-canonical # is considered 0)
if (sig_x == 0) {
@@ -609,7 +609,7 @@ bid64_maxnum (UINT64 x, UINT64 y _EXC_FLAGS_PARAM) {
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if both components are either bigger or smaller,
+ // if both components are either bigger or smaller,
// it is clear what needs to be done
if (sig_x > sig_y && exp_x >= exp_y) {
res = ((x & MASK_SIGN) != MASK_SIGN) ? x : y;
@@ -635,7 +635,7 @@ bid64_maxnum (UINT64 x, UINT64 y _EXC_FLAGS_PARAM) {
// otherwise adjust the x significand upwards
__mul_64x64_to_128MACH (sig_n_prime, sig_x,
mult_factor[exp_x - exp_y]);
- // if postitive, return whichever significand is larger
+ // if postitive, return whichever significand is larger
// (converse if negative)
if (sig_n_prime.w[1] == 0 && (sig_n_prime.w[0] == sig_y)) {
res = y;
@@ -698,7 +698,7 @@ bid64_maxnum_mag (UINT64 x, UINT64 y _EXC_FLAGS_PARAM) {
// non-canonical
x = (x & MASK_SIGN) | ((x & MASK_BINARY_EXPONENT2) << 2);
} // else canonical
- } // else canonical
+ } // else canonical
}
// check for non-canonical y
@@ -788,9 +788,9 @@ bid64_maxnum_mag (UINT64 x, UINT64 y _EXC_FLAGS_PARAM) {
// ZERO (CASE4)
// some properties:
- // (+ZERO == -ZERO) => therefore
+ // (+ZERO == -ZERO) => therefore
// ignore the sign, and neither number is greater
- // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
+ // (ZERO x 10^A == ZERO x 10^B) for any valid A, B =>
// ignore the exponent field
// (Any non-canonical # is considered 0)
if (sig_x == 0) {
@@ -802,7 +802,7 @@ bid64_maxnum_mag (UINT64 x, UINT64 y _EXC_FLAGS_PARAM) {
BID_RETURN (res);
}
// REDUNDANT REPRESENTATIONS (CASE6)
- // if both components are either bigger or smaller,
+ // if both components are either bigger or smaller,
// it is clear what needs to be done
if (sig_x > sig_y && exp_x >= exp_y) {
res = x;
@@ -827,14 +827,14 @@ bid64_maxnum_mag (UINT64 x, UINT64 y _EXC_FLAGS_PARAM) {
// otherwise adjust the x significand upwards
__mul_64x64_to_128MACH (sig_n_prime, sig_x,
mult_factor[exp_x - exp_y]);
- // now, sig_n_prime has: sig_x * 10^(exp_x-exp_y),
+ // now, sig_n_prime has: sig_x * 10^(exp_x-exp_y),
// this is the compensated signif.
if (sig_n_prime.w[1] == 0 && (sig_n_prime.w[0] == sig_y)) {
// two numbers are equal, return maxNum(x,y)
res = ((y & MASK_SIGN) == MASK_SIGN) ? x : y;
BID_RETURN (res);
}
- // now, if compensated_x (sig_n_prime) is greater than y return y,
+ // now, if compensated_x (sig_n_prime) is greater than y return y,
// otherwise return x
res = ((sig_n_prime.w[1] != 0) || sig_n_prime.w[0] > sig_y) ? x : y;
BID_RETURN (res);
diff --git a/libgcc/config/libbid/bid64_mul.c b/libgcc/config/libbid/bid64_mul.c
index f6bedfb5c8d..c4159c74bae 100644
--- a/libgcc/config/libbid/bid64_mul.c
+++ b/libgcc/config/libbid/bid64_mul.c
@@ -34,9 +34,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
* else
* get long product: coefficient_x*coefficient_y
* determine number of digits to round off (extra_digits)
- * rounding is performed as a 128x128-bit multiplication by
+ * rounding is performed as a 128x128-bit multiplication by
* 2^M[extra_digits]/10^extra_digits, followed by a shift
- * M[extra_digits] is sufficiently large for required accuracy
+ * M[extra_digits] is sufficiently large for required accuracy
*
****************************************************************************/
@@ -166,7 +166,7 @@ bid64_mul (UINT64 x,
tempy.d = (double) coefficient_y;
bin_expon_cy = ((tempy.i & MASK_BINARY_EXPONENT) >> 52);
- // magnitude estimate for coefficient_x*coefficient_y is
+ // magnitude estimate for coefficient_x*coefficient_y is
// 2^(unbiased_bin_expon_cx + unbiased_bin_expon_cx)
bin_expon_product = bin_expon_cx + bin_expon_cy;
@@ -298,9 +298,9 @@ bid64_mul (UINT64 x,
if (rmode == 0) //ROUNDING_TO_NEAREST
#endif
if ((C64 & 1) && !round_up) {
- // check whether fractional part of initial_P/10^extra_digits
+ // check whether fractional part of initial_P/10^extra_digits
// is exactly .5
- // this is the same as fractional part of
+ // this is the same as fractional part of
// (initial_P + 0.5*10^extra_digits)/10^extra_digits is exactly zero
// get remainder
diff --git a/libgcc/config/libbid/bid64_next.c b/libgcc/config/libbid/bid64_next.c
index 73ffe00bc3a..46d6fae34a7 100644
--- a/libgcc/config/libbid/bid64_next.c
+++ b/libgcc/config/libbid/bid64_next.c
@@ -99,7 +99,7 @@ bid64_nextup (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
} else { // -MAXFP <= x <= -MINFP - 1 ulp OR MINFP <= x <= MAXFP - 1 ulp
// can add/subtract 1 ulp to the significand
- // Note: we could check here if x >= 10^16 to speed up the case q1 =16
+ // Note: we could check here if x >= 10^16 to speed up the case q1 =16
// q1 = nr. of decimal digits in x (1 <= q1 <= 54)
// determine first the nr. of bits in x
if (C1 >= MASK_BINARY_OR2) { // x >= 2^53
@@ -193,17 +193,17 @@ bid64_nextdown (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
UINT64 C1; // C1 represents x_signif (UINT64)
// check for NaNs and infinities
- if ((x & MASK_NAN) == MASK_NAN) { // check for NaN
+ if ((x & MASK_NAN) == MASK_NAN) { // check for NaN
if ((x & 0x0003ffffffffffffull) > 999999999999999ull)
- x = x & 0xfe00000000000000ull; // clear G6-G12 and the payload bits
+ x = x & 0xfe00000000000000ull; // clear G6-G12 and the payload bits
else
- x = x & 0xfe03ffffffffffffull; // clear G6-G12
- if ((x & MASK_SNAN) == MASK_SNAN) { // SNaN
+ x = x & 0xfe03ffffffffffffull; // clear G6-G12
+ if ((x & MASK_SNAN) == MASK_SNAN) { // SNaN
// set invalid flag
*pfpsf |= INVALID_EXCEPTION;
// return quiet (SNaN)
res = x & 0xfdffffffffffffffull;
- } else { // QNaN
+ } else { // QNaN
res = x;
}
BID_RETURN (res);
@@ -244,11 +244,11 @@ bid64_nextdown (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
} else { // -MAXFP + 1ulp <= x <= -MINFP OR MINFP + 1 ulp <= x <= MAXFP
// can add/subtract 1 ulp to the significand
- // Note: we could check here if x >= 10^16 to speed up the case q1 =16
+ // Note: we could check here if x >= 10^16 to speed up the case q1 =16
// q1 = nr. of decimal digits in x (1 <= q1 <= 16)
// determine first the nr. of bits in x
if (C1 >= 0x0020000000000000ull) { // x >= 2^53
- // split the 64-bit value in two 32-bit halves to avoid
+ // split the 64-bit value in two 32-bit halves to avoid
// rounding errors
if (C1 >= 0x0000000100000000ull) { // x >= 2^32
tmp1.d = (double) (C1 >> 32); // exact conversion
@@ -447,7 +447,7 @@ bid64_nextafter (UINT64 x,
*pfpsf |= OVERFLOW_EXCEPTION;
}
// if the result is in (-10^emin, 10^emin), and is different from the
- // operand x, signal underflow and inexact
+ // operand x, signal underflow and inexact
tmp1 = 0x00038d7ea4c68000ull; // +100...0[16] * 10^emin
tmp2 = res & 0x7fffffffffffffffull;
tmp_fpsf = *pfpsf; // save fpsf
diff --git a/libgcc/config/libbid/bid64_noncomp.c b/libgcc/config/libbid/bid64_noncomp.c
index ec633693f62..043a271d388 100644
--- a/libgcc/config/libbid/bid64_noncomp.c
+++ b/libgcc/config/libbid/bid64_noncomp.c
@@ -335,7 +335,7 @@ bid64_abs (UINT64 x _EXC_MASKS_PARAM _EXC_INFO_PARAM) {
BID_RETURN (res);
}
-// copies operand x to destination in the same format as x, but
+// copies operand x to destination in the same format as x, but
// with the sign of y
#if DECIMAL_CALL_BY_REFERENCE
void
@@ -425,7 +425,7 @@ bid64_class (UINT64 x _EXC_MASKS_PARAM _EXC_INFO_PARAM) {
}
// true if the exponents of x and y are the same, false otherwise.
-// The special cases of sameQuantum (NaN, NaN) and sameQuantum (Inf, Inf) are
+// The special cases of sameQuantum (NaN, NaN) and sameQuantum (Inf, Inf) are
// true.
// If exactly one operand is infinite or exactly one operand is NaN, then false
#if DECIMAL_CALL_BY_REFERENCE
@@ -536,7 +536,7 @@ bid64_totalOrder (UINT64 x, UINT64 y _EXC_MASKS_PARAM _EXC_INFO_PARAM) {
res = 0; // y is a number, return 1
BID_RETURN (res);
} else {
- // x and y are both +NaN;
+ // x and y are both +NaN;
// must investigate payload if both quiet or both signaling
// this xnor statement will be true if both x and y are +qNaN or +sNaN
if (!
@@ -547,7 +547,7 @@ bid64_totalOrder (UINT64 x, UINT64 y _EXC_MASKS_PARAM _EXC_INFO_PARAM) {
// are bitwise identical)
pyld_y = y & 0x0003ffffffffffffull;
pyld_x = x & 0x0003ffffffffffffull;
- // if x is zero and y isn't, x has the smaller
+ // if x is zero and y isn't, x has the smaller
// payload definitely (since we know y isn't 0 at this point)
if (pyld_x > 999999999999999ull || pyld_x == 0) {
res = 1;
@@ -561,7 +561,7 @@ bid64_totalOrder (UINT64 x, UINT64 y _EXC_MASKS_PARAM _EXC_INFO_PARAM) {
res = (pyld_x <= pyld_y);
BID_RETURN (res);
} else {
- // return true if y is +qNaN and x is +sNaN
+ // return true if y is +qNaN and x is +sNaN
// (we know they're different bc of xor if_stmt above)
res = ((x & MASK_SNAN) == MASK_SNAN);
BID_RETURN (res);
@@ -581,7 +581,7 @@ bid64_totalOrder (UINT64 x, UINT64 y _EXC_MASKS_PARAM _EXC_INFO_PARAM) {
BID_RETURN (res);
}
// OPPOSITE SIGNS (CASE 3)
- // if signs are opposite, return 1 if x is negative
+ // if signs are opposite, return 1 if x is negative
// (if x sig_y && exp_x >= exp_y) {
res = ((x & MASK_SIGN) == MASK_SIGN);
@@ -681,29 +681,29 @@ bid64_totalOrder (UINT64 x, UINT64 y _EXC_MASKS_PARAM _EXC_INFO_PARAM) {
res = ((x & MASK_SIGN) != MASK_SIGN);
BID_RETURN (res);
}
- // if exp_x is 15 greater than exp_y, it is
+ // if exp_x is 15 greater than exp_y, it is
// definitely larger, so no need for compensation
if (exp_x - exp_y > 15) {
// difference cannot be greater than 10^15
res = ((x & MASK_SIGN) == MASK_SIGN);
BID_RETURN (res);
}
- // if exp_x is 15 less than exp_y, it is
+ // if exp_x is 15 less than exp_y, it is
// definitely smaller, no need for compensation
if (exp_y - exp_x > 15) {
res = ((x & MASK_SIGN) != MASK_SIGN);
BID_RETURN (res);
}
- // if |exp_x - exp_y| < 15, it comes down
+ // if |exp_x - exp_y| < 15, it comes down
// to the compensated significand
if (exp_x > exp_y) {
// otherwise adjust the x significand upwards
__mul_64x64_to_128MACH (sig_n_prime, sig_x,
mult_factor[exp_x - exp_y]);
- // if x and y represent the same entities,
+ // if x and y represent the same entities,
// and both are negative, return true iff exp_x <= exp_y
if (sig_n_prime.w[1] == 0 && (sig_n_prime.w[0] == sig_y)) {
- // case cannot occure, because all bits must
+ // case cannot occure, because all bits must
// be the same - would have been caught if (x==y)
res = (exp_x <= exp_y) ^ ((x & MASK_SIGN) == MASK_SIGN);
BID_RETURN (res);
@@ -718,15 +718,15 @@ bid64_totalOrder (UINT64 x, UINT64 y _EXC_MASKS_PARAM _EXC_INFO_PARAM) {
__mul_64x64_to_128MACH (sig_n_prime, sig_y,
mult_factor[exp_y - exp_x]);
- // if x and y represent the same entities,
+ // if x and y represent the same entities,
// and both are negative, return true iff exp_x <= exp_y
if (sig_n_prime.w[1] == 0 && (sig_n_prime.w[0] == sig_x)) {
- // Cannot occur, because all bits must be the same.
+ // Cannot occur, because all bits must be the same.
// Case would have been caught if (x==y)
res = (exp_x <= exp_y) ^ ((x & MASK_SIGN) == MASK_SIGN);
BID_RETURN (res);
}
- // values are not equal, for positive numbers return 1
+ // values are not equal, for positive numbers return 1
// if x is less than y. 0 otherwise
res = ((sig_n_prime.w[1] > 0)
|| (sig_x < sig_n_prime.w[0])) ^ ((x & MASK_SIGN) ==
@@ -769,7 +769,7 @@ bid64_totalOrderMag (UINT64 x,
} else {
- // x and y are both +NaN;
+ // x and y are both +NaN;
// must investigate payload if both quiet or both signaling
// this xnor statement will be true if both x and y are +qNaN or +sNaN
if (!
@@ -780,7 +780,7 @@ bid64_totalOrderMag (UINT64 x,
// are bitwise identical)
pyld_y = y & 0x0003ffffffffffffull;
pyld_x = x & 0x0003ffffffffffffull;
- // if x is zero and y isn't, x has the smaller
+ // if x is zero and y isn't, x has the smaller
// payload definitely (since we know y isn't 0 at this point)
if (pyld_x > 999999999999999ull || pyld_x == 0) {
res = 1;
@@ -796,7 +796,7 @@ bid64_totalOrderMag (UINT64 x,
BID_RETURN (res);
} else {
- // return true if y is +qNaN and x is +sNaN
+ // return true if y is +qNaN and x is +sNaN
// (we know they're different bc of xor if_stmt above)
res = ((x & MASK_SNAN) == MASK_SNAN);
BID_RETURN (res);
@@ -810,7 +810,7 @@ bid64_totalOrderMag (UINT64 x,
BID_RETURN (res);
}
// SIMPLE (CASE2)
- // if all the bits (except sign bit) are the same,
+ // if all the bits (except sign bit) are the same,
// these numbers are equal.
if ((x & ~MASK_SIGN) == (y & ~MASK_SIGN)) {
res = 1;
@@ -818,7 +818,7 @@ bid64_totalOrderMag (UINT64 x,
}
// INFINITY (CASE3)
if ((x & MASK_INF) == MASK_INF) {
- // x is positive infinity, only return1
+ // x is positive infinity, only return1
// if y is positive infinity as well
res = ((y & MASK_INF) == MASK_INF);
BID_RETURN (res);
@@ -828,7 +828,7 @@ bid64_totalOrderMag (UINT64 x,
res = 1;
BID_RETURN (res);
}
- // if steering bits are 11 (condition will be 0),
+ // if steering bits are 11 (condition will be 0),
// then exponent is G[0:w+1] =>
if ((x & MASK_STEERING_BITS) == MASK_STEERING_BITS) {
exp_x = (x & MASK_BINARY_EXPONENT2) >> 51;
@@ -844,7 +844,7 @@ bid64_totalOrderMag (UINT64 x,
}
}
- // if steering bits are 11 (condition will be 0),
+ // if steering bits are 11 (condition will be 0),
// then exponent is G[0:w+1] =>
if ((y & MASK_STEERING_BITS) == MASK_STEERING_BITS) {
exp_y = (y & MASK_BINARY_EXPONENT2) >> 51;
@@ -861,7 +861,7 @@ bid64_totalOrderMag (UINT64 x,
}
// ZERO (CASE 5)
- // if x and y represent the same entities,
+ // if x and y represent the same entities,
// and both are negative , return true iff exp_x <= exp_y
if (x_is_zero && y_is_zero) {
// totalOrder(x,y) iff exp_x <= exp_y for positive numbers
@@ -888,19 +888,19 @@ bid64_totalOrderMag (UINT64 x,
res = 1;
BID_RETURN (res);
}
- // if exp_x is 15 greater than exp_y, it is definitely
+ // if exp_x is 15 greater than exp_y, it is definitely
// larger, so no need for compensation
if (exp_x - exp_y > 15) {
res = 0; // difference cannot be greater than 10^15
BID_RETURN (res);
}
- // if exp_x is 15 less than exp_y, it is definitely
+ // if exp_x is 15 less than exp_y, it is definitely
// smaller, no need for compensation
if (exp_y - exp_x > 15) {
res = 1;
BID_RETURN (res);
}
- // if |exp_x - exp_y| < 15, it comes down
+ // if |exp_x - exp_y| < 15, it comes down
// to the compensated significand
if (exp_x > exp_y) {
@@ -908,10 +908,10 @@ bid64_totalOrderMag (UINT64 x,
__mul_64x64_to_128MACH (sig_n_prime, sig_x,
mult_factor[exp_x - exp_y]);
- // if x and y represent the same entities,
+ // if x and y represent the same entities,
// and both are negative, return true iff exp_x <= exp_y
if (sig_n_prime.w[1] == 0 && (sig_n_prime.w[0] == sig_y)) {
- // case cannot occur, because all bits
+ // case cannot occur, because all bits
// must be the same - would have been caught if (x==y)
res = (exp_x <= exp_y);
BID_RETURN (res);
@@ -924,13 +924,13 @@ bid64_totalOrderMag (UINT64 x,
__mul_64x64_to_128MACH (sig_n_prime, sig_y,
mult_factor[exp_y - exp_x]);
- // if x and y represent the same entities,
+ // if x and y represent the same entities,
// and both are negative, return true iff exp_x <= exp_y
if (sig_n_prime.w[1] == 0 && (sig_n_prime.w[0] == sig_x)) {
res = (exp_x <= exp_y);
BID_RETURN (res);
}
- // values are not equal, for positive numbers
+ // values are not equal, for positive numbers
// return 1 if x is less than y. 0 otherwise
res = ((sig_n_prime.w[1] > 0) || (sig_x < sig_n_prime.w[0]));
BID_RETURN (res);
diff --git a/libgcc/config/libbid/bid64_quantize.c b/libgcc/config/libbid/bid64_quantize.c
index bc9a3dfd72a..07a265aac49 100644
--- a/libgcc/config/libbid/bid64_quantize.c
+++ b/libgcc/config/libbid/bid64_quantize.c
@@ -100,7 +100,7 @@ bid64_quantize (UINT64 x,
if ((x & 0x7800000000000000ull) == 0x7800000000000000ull) {
#ifdef SET_STATUS_FLAGS
if (((x & 0x7e00000000000000ull) == 0x7e00000000000000ull) // sNaN
- || ((x & 0x7c00000000000000ull) == 0x7800000000000000ull)) //Inf
+ || ((x & 0x7c00000000000000ull) == 0x7800000000000000ull)) //Inf
__set_status_flags (pfpsf, INVALID_EXCEPTION);
#endif
if ((x & NAN_MASK64) != NAN_MASK64)
@@ -156,9 +156,9 @@ bid64_quantize (UINT64 x,
if (rnd_mode == 0)
#endif
if (C64 & 1) {
- // check whether fractional part of initial_P/10^extra_digits
+ // check whether fractional part of initial_P/10^extra_digits
// is exactly .5
- // this is the same as fractional part of
+ // this is the same as fractional part of
// (initial_P + 0.5*10^extra_digits)/10^extra_digits is exactly zero
// get remainder
diff --git a/libgcc/config/libbid/bid64_rem.c b/libgcc/config/libbid/bid64_rem.c
index 7349d2f796c..280a72688af 100644
--- a/libgcc/config/libbid/bid64_rem.c
+++ b/libgcc/config/libbid/bid64_rem.c
@@ -30,12 +30,12 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
* if(exponent_x < exponent_y)
* scale coefficient_y so exponents are aligned
* perform coefficient divide (64-bit integer divide), unless
- * coefficient_y is longer than 64 bits (clearly larger
- * than coefficient_x)
+ * coefficient_y is longer than 64 bits (clearly larger
+ * than coefficient_x)
* else // exponent_x > exponent_y
- * use a loop to scale coefficient_x to 18_digits, divide by
+ * use a loop to scale coefficient_x to 18_digits, divide by
* coefficient_y (64-bit integer divide), calculate remainder
- * as new_coefficient_x and repeat until final remainder is obtained
+ * as new_coefficient_x and repeat until final remainder is obtained
* (when new_exponent_x < exponent_y)
*
****************************************************************************/
diff --git a/libgcc/config/libbid/bid64_round_integral.c b/libgcc/config/libbid/bid64_round_integral.c
index 5a33c429116..1264585d89a 100644
--- a/libgcc/config/libbid/bid64_round_integral.c
+++ b/libgcc/config/libbid/bid64_round_integral.c
@@ -78,7 +78,7 @@ bid64_round_integral_exact (UINT64 x _RND_MODE_PARAM _EXC_FLAGS_PARAM
}
// unpack x
if ((x & MASK_STEERING_BITS) == MASK_STEERING_BITS) {
- // if the steering bits are 11 (condition will be 0), then
+ // if the steering bits are 11 (condition will be 0), then
// the exponent is G[0:w+1]
exp = ((x & MASK_BINARY_EXPONENT2) >> 51) - 398;
C1 = (x & MASK_BINARY_SIG2) | MASK_BINARY_OR2;
@@ -90,7 +90,7 @@ bid64_round_integral_exact (UINT64 x _RND_MODE_PARAM _EXC_FLAGS_PARAM
C1 = (x & MASK_BINARY_SIG1);
}
- // if x is 0 or non-canonical return 0 preserving the sign bit and
+ // if x is 0 or non-canonical return 0 preserving the sign bit and
// the preferred exponent of MAX(Q(x), 0)
if (C1 == 0) {
if (exp < 0)
@@ -135,7 +135,7 @@ bid64_round_integral_exact (UINT64 x _RND_MODE_PARAM _EXC_FLAGS_PARAM
}
break;
case ROUNDING_TO_ZERO:
- // return 0 if (exp <= -p)
+ // return 0 if (exp <= -p)
if (exp <= -16) {
res = x_sign | 0x31c0000000000000ull;
*pfpsf |= INEXACT_EXCEPTION;
@@ -172,7 +172,7 @@ bid64_round_integral_exact (UINT64 x _RND_MODE_PARAM _EXC_FLAGS_PARAM
if ((q + exp) >= 0) { // exp < 0 and 1 <= -exp <= q
// need to shift right -exp digits from the coefficient; exp will be 0
ind = -exp; // 1 <= ind <= 16; ind is a synonym for 'x'
- // chop off ind digits from the lower part of C1
+ // chop off ind digits from the lower part of C1
// C1 = C1 + 1/2 * 10^x where the result C1 fits in 64 bits
// FOR ROUND_TO_NEAREST, WE ADD 1/2 ULP(y) then truncate
C1 = C1 + midpoint64[ind - 1];
@@ -191,10 +191,10 @@ bid64_round_integral_exact (UINT64 x _RND_MODE_PARAM _EXC_FLAGS_PARAM
// shift; C* has p decimal digits, correct by Prop. 1)
// else if floor(C*) is odd C* = floor(C*)-1 (logical right
// shift; C* has p decimal digits, correct by Pr. 1)
- // else
+ // else
// C* = floor(C*) (logical right shift; C has p decimal digits,
// correct by Property 1)
- // n = C* * 10^(e+x)
+ // n = C* * 10^(e+x)
if (ind - 1 <= 2) { // 0 <= ind - 1 <= 2 => shift = 0
res = P128.w[1];
@@ -258,7 +258,7 @@ bid64_round_integral_exact (UINT64 x _RND_MODE_PARAM _EXC_FLAGS_PARAM
if ((q + exp) >= 0) { // exp < 0 and 1 <= -exp <= q
// need to shift right -exp digits from the coefficient; exp will be 0
ind = -exp; // 1 <= ind <= 16; ind is a synonym for 'x'
- // chop off ind digits from the lower part of C1
+ // chop off ind digits from the lower part of C1
// C1 = C1 + 1/2 * 10^x where the result C1 fits in 64 bits
// FOR ROUND_TO_NEAREST, WE ADD 1/2 ULP(y) then truncate
C1 = C1 + midpoint64[ind - 1];
@@ -273,7 +273,7 @@ bid64_round_integral_exact (UINT64 x _RND_MODE_PARAM _EXC_FLAGS_PARAM
__mul_64x64_to_128 (P128, C1, ten2mk64[ind - 1]);
// if (0 < f* < 10^(-x)) then the result is a midpoint
- // C* = floor(C*) - logical right shift; C* has p decimal digits,
+ // C* = floor(C*) - logical right shift; C* has p decimal digits,
// correct by Prop. 1)
// else
// C* = floor(C*) (logical right shift; C has p decimal digits,
@@ -298,7 +298,7 @@ bid64_round_integral_exact (UINT64 x _RND_MODE_PARAM _EXC_FLAGS_PARAM
// the result is inexact
if (ind - 1 <= 2) {
if (fstar.w[0] > 0x8000000000000000ull) {
- // f* > 1/2 and the result may be exact
+ // f* > 1/2 and the result may be exact
// fstar.w[0] - 0x8000000000000000ull is f* - 1/2
if ((fstar.w[0] - 0x8000000000000000ull) > ten2mk64[ind - 1]) {
// set the inexact flag
@@ -337,7 +337,7 @@ bid64_round_integral_exact (UINT64 x _RND_MODE_PARAM _EXC_FLAGS_PARAM
if ((q + exp) > 0) { // exp < 0 and 1 <= -exp < q
// need to shift right -exp digits from the coefficient; exp will be 0
ind = -exp; // 1 <= ind <= 16; ind is a synonym for 'x'
- // chop off ind digits from the lower part of C1
+ // chop off ind digits from the lower part of C1
// C1 fits in 64 bits
// calculate C* and f*
// C* is actually floor(C*) in this case
@@ -352,7 +352,7 @@ bid64_round_integral_exact (UINT64 x _RND_MODE_PARAM _EXC_FLAGS_PARAM
// C* = floor(C*) (logical right shift; C has p decimal digits,
// correct by Property 1)
// if (0 < f* < 10^(-x)) then the result is exact
- // n = C* * 10^(e+x)
+ // n = C* * 10^(e+x)
if (ind - 1 <= 2) { // 0 <= ind - 1 <= 2 => shift = 0
res = P128.w[1];
@@ -390,7 +390,7 @@ bid64_round_integral_exact (UINT64 x _RND_MODE_PARAM _EXC_FLAGS_PARAM
if ((q + exp) > 0) { // exp < 0 and 1 <= -exp < q
// need to shift right -exp digits from the coefficient; exp will be 0
ind = -exp; // 1 <= ind <= 16; ind is a synonym for 'x'
- // chop off ind digits from the lower part of C1
+ // chop off ind digits from the lower part of C1
// C1 fits in 64 bits
// calculate C* and f*
// C* is actually floor(C*) in this case
@@ -405,7 +405,7 @@ bid64_round_integral_exact (UINT64 x _RND_MODE_PARAM _EXC_FLAGS_PARAM
// C* = floor(C*) (logical right shift; C has p decimal digits,
// correct by Property 1)
// if (0 < f* < 10^(-x)) then the result is exact
- // n = C* * 10^(e+x)
+ // n = C* * 10^(e+x)
if (ind - 1 <= 2) { // 0 <= ind - 1 <= 2 => shift = 0
res = P128.w[1];
@@ -443,7 +443,7 @@ bid64_round_integral_exact (UINT64 x _RND_MODE_PARAM _EXC_FLAGS_PARAM
if ((q + exp) >= 0) { // exp < 0 and 1 <= -exp <= q
// need to shift right -exp digits from the coefficient; exp will be 0
ind = -exp; // 1 <= ind <= 16; ind is a synonym for 'x'
- // chop off ind digits from the lower part of C1
+ // chop off ind digits from the lower part of C1
// C1 fits in 127 bits
// calculate C* and f*
// C* is actually floor(C*) in this case
@@ -458,7 +458,7 @@ bid64_round_integral_exact (UINT64 x _RND_MODE_PARAM _EXC_FLAGS_PARAM
// C* = floor(C*) (logical right shift; C has p decimal digits,
// correct by Property 1)
// if (0 < f* < 10^(-x)) then the result is exact
- // n = C* * 10^(e+x)
+ // n = C* * 10^(e+x)
if (ind - 1 <= 2) { // 0 <= ind - 1 <= 2 => shift = 0
res = P128.w[1];
@@ -524,11 +524,11 @@ bid64_round_integral_nearest_even (UINT64 x _EXC_FLAGS_PARAM
if ((x & 0x0003ffffffffffffull) > 999999999999999ull)
x = x & 0xfe00000000000000ull; // clear G6-G12 and the payload bits
else
- x = x & 0xfe03ffffffffffffull; // clear G6-G12
- if ((x & MASK_SNAN) == MASK_SNAN) { // SNaN
- // set invalid flag
+ x = x & 0xfe03ffffffffffffull; // clear G6-G12
+ if ((x & MASK_SNAN) == MASK_SNAN) { // SNaN
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return quiet (SNaN)
+ // return quiet (SNaN)
res = x & 0xfdffffffffffffffull;
} else { // QNaN
res = x;
@@ -589,7 +589,7 @@ bid64_round_integral_nearest_even (UINT64 x _EXC_FLAGS_PARAM
} else if ((q + exp) >= 0) { // exp < 0 and 1 <= -exp <= q
// need to shift right -exp digits from the coefficient; the exp will be 0
ind = -exp; // 1 <= ind <= 16; ind is a synonym for 'x'
- // chop off ind digits from the lower part of C1
+ // chop off ind digits from the lower part of C1
// C1 = C1 + 1/2 * 10^x where the result C1 fits in 64 bits
// FOR ROUND_TO_NEAREST, WE ADD 1/2 ULP(y) then truncate
C1 = C1 + midpoint64[ind - 1];
@@ -608,10 +608,10 @@ bid64_round_integral_nearest_even (UINT64 x _EXC_FLAGS_PARAM
// shift; C* has p decimal digits, correct by Prop. 1)
// else if floor(C*) is odd C* = floor(C*)-1 (logical right
// shift; C* has p decimal digits, correct by Pr. 1)
- // else
+ // else
// C* = floor(C*) (logical right shift; C has p decimal digits,
// correct by Property 1)
- // n = C* * 10^(e+x)
+ // n = C* * 10^(e+x)
if (ind - 1 <= 2) { // 0 <= ind - 1 <= 2 => shift = 0
res = P128.w[1];
@@ -675,11 +675,11 @@ bid64_round_integral_negative (UINT64 x _EXC_FLAGS_PARAM
if ((x & 0x0003ffffffffffffull) > 999999999999999ull)
x = x & 0xfe00000000000000ull; // clear G6-G12 and the payload bits
else
- x = x & 0xfe03ffffffffffffull; // clear G6-G12
- if ((x & MASK_SNAN) == MASK_SNAN) { // SNaN
- // set invalid flag
+ x = x & 0xfe03ffffffffffffull; // clear G6-G12
+ if ((x & MASK_SNAN) == MASK_SNAN) { // SNaN
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return quiet (SNaN)
+ // return quiet (SNaN)
res = x & 0xfdffffffffffffffull;
} else { // QNaN
res = x;
@@ -744,7 +744,7 @@ bid64_round_integral_negative (UINT64 x _EXC_FLAGS_PARAM
} else if ((q + exp) > 0) { // exp < 0 and 1 <= -exp < q
// need to shift right -exp digits from the coefficient; the exp will be 0
ind = -exp; // 1 <= ind <= 16; ind is a synonym for 'x'
- // chop off ind digits from the lower part of C1
+ // chop off ind digits from the lower part of C1
// C1 fits in 64 bits
// calculate C* and f*
// C* is actually floor(C*) in this case
@@ -759,7 +759,7 @@ bid64_round_integral_negative (UINT64 x _EXC_FLAGS_PARAM
// C* = floor(C*) (logical right shift; C has p decimal digits,
// correct by Property 1)
// if (0 < f* < 10^(-x)) then the result is exact
- // n = C* * 10^(e+x)
+ // n = C* * 10^(e+x)
if (ind - 1 <= 2) { // 0 <= ind - 1 <= 2 => shift = 0
res = P128.w[1];
@@ -827,11 +827,11 @@ bid64_round_integral_positive (UINT64 x _EXC_FLAGS_PARAM
if ((x & 0x0003ffffffffffffull) > 999999999999999ull)
x = x & 0xfe00000000000000ull; // clear G6-G12 and the payload bits
else
- x = x & 0xfe03ffffffffffffull; // clear G6-G12
- if ((x & MASK_SNAN) == MASK_SNAN) { // SNaN
- // set invalid flag
+ x = x & 0xfe03ffffffffffffull; // clear G6-G12
+ if ((x & MASK_SNAN) == MASK_SNAN) { // SNaN
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return quiet (SNaN)
+ // return quiet (SNaN)
res = x & 0xfdffffffffffffffull;
} else { // QNaN
res = x;
@@ -896,7 +896,7 @@ bid64_round_integral_positive (UINT64 x _EXC_FLAGS_PARAM
} else if ((q + exp) > 0) { // exp < 0 and 1 <= -exp < q
// need to shift right -exp digits from the coefficient; the exp will be 0
ind = -exp; // 1 <= ind <= 16; ind is a synonym for 'x'
- // chop off ind digits from the lower part of C1
+ // chop off ind digits from the lower part of C1
// C1 fits in 64 bits
// calculate C* and f*
// C* is actually floor(C*) in this case
@@ -911,7 +911,7 @@ bid64_round_integral_positive (UINT64 x _EXC_FLAGS_PARAM
// C* = floor(C*) (logical right shift; C has p decimal digits,
// correct by Property 1)
// if (0 < f* < 10^(-x)) then the result is exact
- // n = C* * 10^(e+x)
+ // n = C* * 10^(e+x)
if (ind - 1 <= 2) { // 0 <= ind - 1 <= 2 => shift = 0
res = P128.w[1];
@@ -978,11 +978,11 @@ bid64_round_integral_zero (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
if ((x & 0x0003ffffffffffffull) > 999999999999999ull)
x = x & 0xfe00000000000000ull; // clear G6-G12 and the payload bits
else
- x = x & 0xfe03ffffffffffffull; // clear G6-G12
- if ((x & MASK_SNAN) == MASK_SNAN) { // SNaN
- // set invalid flag
+ x = x & 0xfe03ffffffffffffull; // clear G6-G12
+ if ((x & MASK_SNAN) == MASK_SNAN) { // SNaN
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return quiet (SNaN)
+ // return quiet (SNaN)
res = x & 0xfdffffffffffffffull;
} else { // QNaN
res = x;
@@ -1043,7 +1043,7 @@ bid64_round_integral_zero (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
} else if ((q + exp) >= 0) { // exp < 0 and 1 <= -exp <= q
// need to shift right -exp digits from the coefficient; the exp will be 0
ind = -exp; // 1 <= ind <= 16; ind is a synonym for 'x'
- // chop off ind digits from the lower part of C1
+ // chop off ind digits from the lower part of C1
// C1 fits in 127 bits
// calculate C* and f*
// C* is actually floor(C*) in this case
@@ -1058,7 +1058,7 @@ bid64_round_integral_zero (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// C* = floor(C*) (logical right shift; C has p decimal digits,
// correct by Property 1)
// if (0 < f* < 10^(-x)) then the result is exact
- // n = C* * 10^(e+x)
+ // n = C* * 10^(e+x)
if (ind - 1 <= 2) { // 0 <= ind - 1 <= 2 => shift = 0
res = P128.w[1];
@@ -1118,11 +1118,11 @@ bid64_round_integral_nearest_away (UINT64 x _EXC_FLAGS_PARAM
if ((x & 0x0003ffffffffffffull) > 999999999999999ull)
x = x & 0xfe00000000000000ull; // clear G6-G12 and the payload bits
else
- x = x & 0xfe03ffffffffffffull; // clear G6-G12
- if ((x & MASK_SNAN) == MASK_SNAN) { // SNaN
- // set invalid flag
+ x = x & 0xfe03ffffffffffffull; // clear G6-G12
+ if ((x & MASK_SNAN) == MASK_SNAN) { // SNaN
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return quiet (SNaN)
+ // return quiet (SNaN)
res = x & 0xfdffffffffffffffull;
} else { // QNaN
res = x;
@@ -1183,7 +1183,7 @@ bid64_round_integral_nearest_away (UINT64 x _EXC_FLAGS_PARAM
} else if ((q + exp) >= 0) { // exp < 0 and 1 <= -exp <= q
// need to shift right -exp digits from the coefficient; the exp will be 0
ind = -exp; // 1 <= ind <= 16; ind is a synonym for 'x'
- // chop off ind digits from the lower part of C1
+ // chop off ind digits from the lower part of C1
// C1 = C1 + 1/2 * 10^x where the result C1 fits in 64 bits
// FOR ROUND_TO_NEAREST, WE ADD 1/2 ULP(y) then truncate
C1 = C1 + midpoint64[ind - 1];
@@ -1198,7 +1198,7 @@ bid64_round_integral_nearest_away (UINT64 x _EXC_FLAGS_PARAM
__mul_64x64_to_128 (P128, C1, ten2mk64[ind - 1]);
// if (0 < f* < 10^(-x)) then the result is a midpoint
- // C* = floor(C*) - logical right shift; C* has p decimal digits,
+ // C* = floor(C*) - logical right shift; C* has p decimal digits,
// correct by Prop. 1)
// else
// C* = floor(C*) (logical right shift; C has p decimal digits,
diff --git a/libgcc/config/libbid/bid64_sqrt.c b/libgcc/config/libbid/bid64_sqrt.c
index b9d1f8eb11b..4da2fd6157f 100644
--- a/libgcc/config/libbid/bid64_sqrt.c
+++ b/libgcc/config/libbid/bid64_sqrt.c
@@ -33,9 +33,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
* - scale coefficient x to between 31 and 33 decimal digits
* - in parallel, check for exact case and return if true
* - get high part of result coefficient using double precision sqrt
- * - compute remainder and refine coefficient in one iteration (which
+ * - compute remainder and refine coefficient in one iteration (which
* modifies it by at most 1)
- * - result exponent is easy to compute from the adjusted arg. exponent
+ * - result exponent is easy to compute from the adjusted arg. exponent
*
****************************************************************************/
@@ -299,7 +299,7 @@ C256.w[0] = A10.w[0];
CS.w[0] = short_sqrt128 (A10);
CS.w[1] = 0;
mul_factor = 0;
- // check for exact result
+ // check for exact result
if (CS.w[0] < 10000000000000000ull) {
if (CS.w[0] * CS.w[0] == A10.w[0]) {
__sqr64_fast (S2, CS.w[0]);
@@ -518,7 +518,7 @@ if (!((rnd_mode) & 3)) {
/*__add_carry_out(M256.w[0], Carry, M256.w[0], C8.w[0]);
M256.w[1] = M256.w[1] + Carry + C8.w[1];
M256.w[0]++;
- if(!M256.w[0])
+ if(!M256.w[0])
{
M256.w[1]++;
}
diff --git a/libgcc/config/libbid/bid64_string.c b/libgcc/config/libbid/bid64_string.c
index 81ac5e275a4..ea94f0a2a66 100644
--- a/libgcc/config/libbid/bid64_string.c
+++ b/libgcc/config/libbid/bid64_string.c
@@ -144,10 +144,10 @@ bid64_to_string (char *ps, UINT64 x
ps[istart++] = '0';
} else {
/* ****************************************************
- This takes a bid coefficient in C1.w[1],C1.w[0]
- and put the converted character sequence at location
+ This takes a bid coefficient in C1.w[1],C1.w[0]
+ and put the converted character sequence at location
starting at &(str[k]). The function returns the number
- of MiDi returned. Note that the character sequence
+ of MiDi returned. Note that the character sequence
does not have leading zeros EXCEPT when the input is of
zero value. It will then output 1 character '0'
The algorithm essentailly tries first to get a sequence of
@@ -165,7 +165,7 @@ bid64_to_string (char *ps, UINT64 x
18 digits, we set hi = 0, and lo = d to begin with.
We then retrieve from a table, for j = 0, 1, ..., 8
that gives us A and B where c_j 2^(59+6j) = A * 10^18 + B.
- hi += A ; lo += B; After each accumulation into lo, we normalize
+ hi += A ; lo += B; After each accumulation into lo, we normalize
immediately. So at the end, we have the decomposition as we need. */
Tmp = coefficient_x >> 59;
@@ -241,12 +241,12 @@ bid64_to_string (char *ps, UINT64 x
#if DECIMAL_CALL_BY_REFERENCE
void
bid64_from_string (UINT64 * pres, char *ps
- _RND_MODE_PARAM _EXC_FLAGS_PARAM
+ _RND_MODE_PARAM _EXC_FLAGS_PARAM
_EXC_MASKS_PARAM _EXC_INFO_PARAM) {
#else
UINT64
bid64_from_string (char *ps
- _RND_MODE_PARAM _EXC_FLAGS_PARAM
+ _RND_MODE_PARAM _EXC_FLAGS_PARAM
_EXC_MASKS_PARAM _EXC_INFO_PARAM) {
#endif
UINT64 sign_x, coefficient_x = 0, rounded = 0, res;
@@ -275,18 +275,18 @@ bid64_from_string (char *ps
// detect special cases (INF or NaN)
if (!c || (c != '.' && c != '-' && c != '+' && (c < '0' || c > '9'))) {
// Infinity?
- if ((tolower_macro (ps[0]) == 'i' && tolower_macro (ps[1]) == 'n' &&
- tolower_macro (ps[2]) == 'f') && (!ps[3] ||
- (tolower_macro (ps[3]) == 'i' &&
- tolower_macro (ps[4]) == 'n' && tolower_macro (ps[5]) == 'i' &&
- tolower_macro (ps[6]) == 't' && tolower_macro (ps[7]) == 'y' &&
+ if ((tolower_macro (ps[0]) == 'i' && tolower_macro (ps[1]) == 'n' &&
+ tolower_macro (ps[2]) == 'f') && (!ps[3] ||
+ (tolower_macro (ps[3]) == 'i' &&
+ tolower_macro (ps[4]) == 'n' && tolower_macro (ps[5]) == 'i' &&
+ tolower_macro (ps[6]) == 't' && tolower_macro (ps[7]) == 'y' &&
!ps[8]))) {
res = 0x7800000000000000ull;
BID_RETURN (res);
}
// return sNaN
- if (tolower_macro (ps[0]) == 's' && tolower_macro (ps[1]) == 'n' &&
- tolower_macro (ps[2]) == 'a' && tolower_macro (ps[3]) == 'n') {
+ if (tolower_macro (ps[0]) == 's' && tolower_macro (ps[1]) == 'n' &&
+ tolower_macro (ps[2]) == 'a' && tolower_macro (ps[3]) == 'n') {
// case insensitive check for snan
res = 0x7e00000000000000ull;
BID_RETURN (res);
@@ -297,10 +297,10 @@ bid64_from_string (char *ps
}
}
// detect +INF or -INF
- if ((tolower_macro (ps[1]) == 'i' && tolower_macro (ps[2]) == 'n' &&
- tolower_macro (ps[3]) == 'f') && (!ps[4] ||
- (tolower_macro (ps[4]) == 'i' && tolower_macro (ps[5]) == 'n' &&
- tolower_macro (ps[6]) == 'i' && tolower_macro (ps[7]) == 't' &&
+ if ((tolower_macro (ps[1]) == 'i' && tolower_macro (ps[2]) == 'n' &&
+ tolower_macro (ps[3]) == 'f') && (!ps[4] ||
+ (tolower_macro (ps[4]) == 'i' && tolower_macro (ps[5]) == 'n' &&
+ tolower_macro (ps[6]) == 'i' && tolower_macro (ps[7]) == 't' &&
tolower_macro (ps[8]) == 'y' && !ps[9]))) {
if (c == '+')
res = 0x7800000000000000ull;
@@ -350,17 +350,17 @@ bid64_from_string (char *ps
// should catch cases such as: 000.0
while (*ps == '0') {
ps++;
- // for numbers such as 0.0000000000000000000000000000000000001001,
+ // for numbers such as 0.0000000000000000000000000000000000001001,
// we want to count the leading zeros
if (rdx_pt_enc) {
right_radix_leading_zeros++;
}
- // if this character is a radix point, make sure we haven't already
+ // if this character is a radix point, make sure we haven't already
// encountered one
if (*(ps) == '.') {
if (rdx_pt_enc == 0) {
rdx_pt_enc = 1;
- // if this is the first radix point, and the next character is NULL,
+ // if this is the first radix point, and the next character is NULL,
// we have a zero
if (!*(ps + 1)) {
res =
@@ -408,8 +408,8 @@ bid64_from_string (char *ps
// coefficient rounding
switch(rnd_mode){
case ROUNDING_TO_NEAREST:
- midpoint = (c == '5' && !(coefficient_x & 1)) ? 1 : 0;
- // if coefficient is even and c is 5, prepare to round up if
+ midpoint = (c == '5' && !(coefficient_x & 1)) ? 1 : 0;
+ // if coefficient is even and c is 5, prepare to round up if
// subsequent digit is nonzero
// if str[MAXDIG+1] > 5, we MUST round up
// if str[MAXDIG+1] == 5 and coefficient is ODD, ROUND UP!
diff --git a/libgcc/config/libbid/bid64_to_bid128.c b/libgcc/config/libbid/bid64_to_bid128.c
index a8daddce6bc..6eb7b0a7820 100644
--- a/libgcc/config/libbid/bid64_to_bid128.c
+++ b/libgcc/config/libbid/bid64_to_bid128.c
@@ -25,7 +25,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "bid_internal.h"
/*
- * Takes a BID64 as input and converts it to a BID128 and returns it.
+ * Takes a BID64 as input and converts it to a BID128 and returns it.
*/
TYPE0_FUNCTION_ARGTYPE1_NORND (UINT128, bid64_to_bid128, UINT64, x)
diff --git a/libgcc/config/libbid/bid64_to_int32.c b/libgcc/config/libbid/bid64_to_int32.c
index 9c33effac05..13892c9c91d 100644
--- a/libgcc/config/libbid/bid64_to_int32.c
+++ b/libgcc/config/libbid/bid64_to_int32.c
@@ -181,9 +181,9 @@ bid64_to_int32_rnint (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// Note: 0x4fffffffb*10^(q-11) has q-1 or q digits, where q <= 16
tmp64 = 0x4fffffffbull * ten2k64[q - 11];
if (C1 >= tmp64) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x80000000;
BID_RETURN (res);
}
@@ -223,7 +223,7 @@ bid64_to_int32_rnint (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = (C1 + 1/2 * 10^x) * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -252,7 +252,7 @@ bid64_to_int32_rnint (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// check for midpoints
if ((fstar.w[1] == 0) && fstar.w[0]
&& (fstar.w[0] <= ten2mk128trunc[ind - 1].w[1])) {
- // ten2mk128trunc[ind -1].w[1] is identical to
+ // ten2mk128trunc[ind -1].w[1] is identical to
// ten2mk128[ind -1].w[1]
// the result is a midpoint; round to nearest
if (Cstar & 0x01) { // Cstar is odd; MP in [EVEN, ODD]
@@ -440,9 +440,9 @@ bid64_to_int32_xrnint (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// Note: 0x4fffffffb*10^(q-11) has q-1 or q digits, where q <= 16
tmp64 = 0x4fffffffbull * ten2k64[q - 11];
if (C1 >= tmp64) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x80000000;
BID_RETURN (res);
}
@@ -486,7 +486,7 @@ bid64_to_int32_xrnint (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = (C1 + 1/2 * 10^x) * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -519,7 +519,7 @@ bid64_to_int32_xrnint (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// f* > 1/2 and the result may be exact
tmp64 = fstar.w[0] - 0x8000000000000000ull; // f* - 1/2
if ((tmp64 > ten2mk128trunc[ind - 1].w[1])) {
- // ten2mk128trunc[ind -1].w[1] is identical to
+ // ten2mk128trunc[ind -1].w[1] is identical to
// ten2mk128[ind -1].w[1]
// set the inexact flag
*pfpsf |= INEXACT_EXCEPTION;
@@ -535,7 +535,7 @@ bid64_to_int32_xrnint (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// Calculate f2* - 1/2
tmp64 = fstar.w[1] - onehalf128[ind - 1];
if (tmp64 || fstar.w[0] > ten2mk128trunc[ind - 1].w[1]) {
- // ten2mk128trunc[ind -1].w[1] is identical to
+ // ten2mk128trunc[ind -1].w[1] is identical to
// ten2mk128[ind -1].w[1]
// set the inexact flag
*pfpsf |= INEXACT_EXCEPTION;
@@ -551,7 +551,7 @@ bid64_to_int32_xrnint (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// check for midpoints
if ((fstar.w[1] == 0) && fstar.w[0]
&& (fstar.w[0] <= ten2mk128trunc[ind - 1].w[1])) {
- // ten2mk128trunc[ind -1].w[1] is identical to
+ // ten2mk128trunc[ind -1].w[1] is identical to
// ten2mk128[ind -1].w[1]
// the result is a midpoint; round to nearest
if (Cstar & 0x01) { // Cstar is odd; MP in [EVEN, ODD]
@@ -739,9 +739,9 @@ bid64_to_int32_floor (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// Note: 0x500000000*10^(q-11) has q-1 or q digits, where q <= 16
tmp64 = 0x500000000ull * ten2k64[q - 11];
if (C1 >= tmp64) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x80000000;
BID_RETURN (res);
}
@@ -770,7 +770,7 @@ bid64_to_int32_floor (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -990,9 +990,9 @@ bid64_to_int32_xfloor (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// Note: 0x500000000*10^(q-11) has q-1 or q digits, where q <= 16
tmp64 = 0x500000000ull * ten2k64[q - 11];
if (C1 >= tmp64) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x80000000;
BID_RETURN (res);
}
@@ -1023,7 +1023,7 @@ bid64_to_int32_xfloor (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -1247,9 +1247,9 @@ bid64_to_int32_ceil (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// Note: 0x4fffffff6*10^(q-11) has q-1 or q digits, where q <= 16
tmp64 = 0x4fffffff6ull * ten2k64[q - 11];
if (C1 > tmp64) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x80000000;
BID_RETURN (res);
}
@@ -1278,7 +1278,7 @@ bid64_to_int32_ceil (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -1312,7 +1312,7 @@ bid64_to_int32_ceil (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
if (fstar.w[1] || fstar.w[0] > ten2mk128trunc[ind - 1].w[1]) {
// ten2mk128trunc[ind -1].w[1] is identical to
// ten2mk128[ind -1].w[1]
- if (!x_sign) { // positive and inexact
+ if (!x_sign) { // positive and inexact
Cstar++;
}
} // else the result is exact
@@ -1498,9 +1498,9 @@ bid64_to_int32_xceil (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// Note: 0x4fffffff6*10^(q-11) has q-1 or q digits, where q <= 16
tmp64 = 0x4fffffff6ull * ten2k64[q - 11];
if (C1 > tmp64) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x80000000;
BID_RETURN (res);
}
@@ -1531,7 +1531,7 @@ bid64_to_int32_xceil (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -1567,7 +1567,7 @@ bid64_to_int32_xceil (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
if (fstar.w[1] || fstar.w[0] > ten2mk128trunc[ind - 1].w[1]) {
// ten2mk128trunc[ind -1].w[1] is identical to
// ten2mk128[ind -1].w[1]
- if (!x_sign) { // positive and inexact
+ if (!x_sign) { // positive and inexact
Cstar++;
}
// set the inexact flag
@@ -1754,9 +1754,9 @@ bid64_to_int32_int (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// Note: 0x500000000*10^(q-11) has q-1 or q digits, where q <= 16
tmp64 = 0x500000000ull * ten2k64[q - 11];
if (C1 >= tmp64) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x80000000;
BID_RETURN (res);
}
@@ -1782,7 +1782,7 @@ bid64_to_int32_int (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -1977,9 +1977,9 @@ bid64_to_int32_xint (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// Note: 0x500000000*10^(q-11) has q-1 or q digits, where q <= 16
tmp64 = 0x500000000ull * ten2k64[q - 11];
if (C1 >= tmp64) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x80000000;
BID_RETURN (res);
}
@@ -2007,7 +2007,7 @@ bid64_to_int32_xint (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -2224,9 +2224,9 @@ bid64_to_int32_rninta (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// Note: 0x4fffffffb*10^(q-11) has q-1 or q digits, where q <= 16
tmp64 = 0x4fffffffbull * ten2k64[q - 11];
if (C1 >= tmp64) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x80000000;
BID_RETURN (res);
}
@@ -2266,7 +2266,7 @@ bid64_to_int32_rninta (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = (C1 + 1/2 * 10^x) * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -2274,7 +2274,7 @@ bid64_to_int32_rninta (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
Cstar = P128.w[1];
// the top Ex bits of 10^(-x) are T* = ten2mk128trunc[ind].w[0], e.g.
// if x=1, T*=ten2mk128trunc[0].w[0]=0x1999999999999999
- // C* = floor(C*)-1 (logical right shift; C* has p decimal digits,
+ // C* = floor(C*)-1 (logical right shift; C* has p decimal digits,
// correct by Pr. 1)
// n = C* * 10^(e+x)
@@ -2463,9 +2463,9 @@ bid64_to_int32_xrninta (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// Note: 0x4fffffffb*10^(q-11) has q-1 or q digits, where q <= 16
tmp64 = 0x4fffffffbull * ten2k64[q - 11];
if (C1 >= tmp64) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x80000000;
BID_RETURN (res);
}
@@ -2509,7 +2509,7 @@ bid64_to_int32_xrninta (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = (C1 + 1/2 * 10^x) * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -2519,7 +2519,7 @@ bid64_to_int32_xrninta (UINT64 x _EXC_FLAGS_PARAM _EXC_MASKS_PARAM
fstar.w[0] = P128.w[0];
// the top Ex bits of 10^(-x) are T* = ten2mk128trunc[ind].w[0], e.g.
// if x=1, T*=ten2mk128trunc[0].w[0]=0x1999999999999999
- // C* = floor(C*)-1 (logical right shift; C* has p decimal digits,
+ // C* = floor(C*)-1 (logical right shift; C* has p decimal digits,
// correct by Pr. 1)
// n = C* * 10^(e+x)
diff --git a/libgcc/config/libbid/bid64_to_int64.c b/libgcc/config/libbid/bid64_to_int64.c
index b8c3dca5cef..1e88263d8c7 100644
--- a/libgcc/config/libbid/bid64_to_int64.c
+++ b/libgcc/config/libbid/bid64_to_int64.c
@@ -194,7 +194,7 @@ bid64_to_int64_rnint (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = (C1 + 1/2 * 10^x) * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -223,7 +223,7 @@ bid64_to_int64_rnint (UINT64 x
// check for midpoints
if ((fstar.w[1] == 0) && fstar.w[0] &&
(fstar.w[0] <= ten2mk128trunc[ind - 1].w[1])) {
- // ten2mk128trunc[ind -1].w[1] is identical to
+ // ten2mk128trunc[ind -1].w[1] is identical to
// ten2mk128[ind -1].w[1]
// the result is a midpoint; round to nearest
if (Cstar & 0x01) { // Cstar is odd; MP in [EVEN, ODD]
@@ -243,8 +243,8 @@ bid64_to_int64_rnint (UINT64 x
else
res = C1;
} else { // if (exp > 0) => 1 <= exp <= 18, 1 <= q <= 16, 2 <= q + exp <= 20
- // (the upper limit of 20 on q + exp is due to the fact that
- // +/-C * 10^exp is guaranteed to fit in 64 bits)
+ // (the upper limit of 20 on q + exp is due to the fact that
+ // +/-C * 10^exp is guaranteed to fit in 64 bits)
// res = +/-C * 10^exp (exact)
if (x_sign)
res = -C1 * ten2k64[exp];
@@ -431,7 +431,7 @@ bid64_to_int64_xrnint (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = (C1 + 1/2 * 10^x) * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -464,7 +464,7 @@ bid64_to_int64_xrnint (UINT64 x
// f* > 1/2 and the result may be exact
tmp64 = fstar.w[0] - 0x8000000000000000ull; // f* - 1/2
if ((tmp64 > ten2mk128trunc[ind - 1].w[1])) {
- // ten2mk128trunc[ind -1].w[1] is identical to
+ // ten2mk128trunc[ind -1].w[1] is identical to
// ten2mk128[ind -1].w[1]
// set the inexact flag
*pfpsf |= INEXACT_EXCEPTION;
@@ -480,7 +480,7 @@ bid64_to_int64_xrnint (UINT64 x
// Calculate f2* - 1/2
tmp64 = fstar.w[1] - onehalf128[ind - 1];
if (tmp64 || fstar.w[0] > ten2mk128trunc[ind - 1].w[1]) {
- // ten2mk128trunc[ind -1].w[1] is identical to
+ // ten2mk128trunc[ind -1].w[1] is identical to
// ten2mk128[ind -1].w[1]
// set the inexact flag
*pfpsf |= INEXACT_EXCEPTION;
@@ -496,7 +496,7 @@ bid64_to_int64_xrnint (UINT64 x
// check for midpoints
if ((fstar.w[1] == 0) && fstar.w[0] &&
(fstar.w[0] <= ten2mk128trunc[ind - 1].w[1])) {
- // ten2mk128trunc[ind -1].w[1] is identical to
+ // ten2mk128trunc[ind -1].w[1] is identical to
// ten2mk128[ind -1].w[1]
// the result is a midpoint; round to nearest
if (Cstar & 0x01) { // Cstar is odd; MP in [EVEN, ODD]
@@ -516,8 +516,8 @@ bid64_to_int64_xrnint (UINT64 x
else
res = C1;
} else { // if (exp > 0) => 1 <= exp <= 18, 1 <= q <= 16, 2 <= q + exp <= 20
- // (the upper limit of 20 on q + exp is due to the fact that
- // +/-C * 10^exp is guaranteed to fit in 64 bits)
+ // (the upper limit of 20 on q + exp is due to the fact that
+ // +/-C * 10^exp is guaranteed to fit in 64 bits)
// res = +/-C * 10^exp (exact)
if (x_sign)
res = -C1 * ten2k64[exp];
@@ -688,7 +688,7 @@ bid64_to_int64_floor (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -740,8 +740,8 @@ bid64_to_int64_floor (UINT64 x
else
res = C1;
} else { // if (exp > 0) => 1 <= exp <= 18, 1 <= q <= 16, 2 <= q + exp <= 20
- // (the upper limit of 20 on q + exp is due to the fact that
- // +/-C * 10^exp is guaranteed to fit in 64 bits)
+ // (the upper limit of 20 on q + exp is due to the fact that
+ // +/-C * 10^exp is guaranteed to fit in 64 bits)
// res = +/-C * 10^exp (exact)
if (x_sign)
res = -C1 * ten2k64[exp];
@@ -914,7 +914,7 @@ bid64_to_int64_xfloor (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -970,8 +970,8 @@ bid64_to_int64_xfloor (UINT64 x
else
res = C1;
} else { // if (exp > 0) => 1 <= exp <= 18, 1 <= q <= 16, 2 <= q + exp <= 20
- // (the upper limit of 20 on q + exp is due to the fact that
- // +/-C * 10^exp is guaranteed to fit in 64 bits)
+ // (the upper limit of 20 on q + exp is due to the fact that
+ // +/-C * 10^exp is guaranteed to fit in 64 bits)
// res = +/-C * 10^exp (exact)
if (x_sign)
res = -C1 * ten2k64[exp];
@@ -989,13 +989,13 @@ bid64_to_int64_xfloor (UINT64 x
#if DECIMAL_CALL_BY_REFERENCE
void
bid64_to_int64_ceil (SINT64 * pres, UINT64 * px
- _EXC_FLAGS_PARAM _EXC_MASKS_PARAM _EXC_INFO_PARAM)
+ _EXC_FLAGS_PARAM _EXC_MASKS_PARAM _EXC_INFO_PARAM)
{
UINT64 x = *px;
#else
SINT64
bid64_to_int64_ceil (UINT64 x
- _EXC_FLAGS_PARAM _EXC_MASKS_PARAM _EXC_INFO_PARAM)
+ _EXC_FLAGS_PARAM _EXC_MASKS_PARAM _EXC_INFO_PARAM)
{
#endif
SINT64 res;
@@ -1142,7 +1142,7 @@ bid64_to_int64_ceil (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -1194,8 +1194,8 @@ bid64_to_int64_ceil (UINT64 x
else
res = C1;
} else { // if (exp > 0) => 1 <= exp <= 18, 1 <= q <= 16, 2 <= q + exp <= 20
- // (the upper limit of 20 on q + exp is due to the fact that
- // +/-C * 10^exp is guaranteed to fit in 64 bits)
+ // (the upper limit of 20 on q + exp is due to the fact that
+ // +/-C * 10^exp is guaranteed to fit in 64 bits)
// res = +/-C * 10^exp (exact)
if (x_sign)
res = -C1 * ten2k64[exp];
@@ -1368,7 +1368,7 @@ bid64_to_int64_xceil (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -1424,8 +1424,8 @@ bid64_to_int64_xceil (UINT64 x
else
res = C1;
} else { // if (exp > 0) => 1 <= exp <= 18, 1 <= q <= 16, 2 <= q + exp <= 20
- // (the upper limit of 20 on q + exp is due to the fact that
- // +/-C * 10^exp is guaranteed to fit in 64 bits)
+ // (the upper limit of 20 on q + exp is due to the fact that
+ // +/-C * 10^exp is guaranteed to fit in 64 bits)
// res = +/-C * 10^exp (exact)
if (x_sign)
res = -C1 * ten2k64[exp];
@@ -1590,7 +1590,7 @@ bid64_to_int64_int (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -1618,8 +1618,8 @@ bid64_to_int64_int (UINT64 x
else
res = C1;
} else { // if (exp > 0) => 1 <= exp <= 18, 1 <= q <= 16, 2 <= q + exp <= 20
- // (the upper limit of 20 on q + exp is due to the fact that
- // +/-C * 10^exp is guaranteed to fit in 64 bits)
+ // (the upper limit of 20 on q + exp is due to the fact that
+ // +/-C * 10^exp is guaranteed to fit in 64 bits)
// res = +/-C * 10^exp (exact)
if (x_sign)
res = -C1 * ten2k64[exp];
@@ -1637,13 +1637,13 @@ bid64_to_int64_int (UINT64 x
#if DECIMAL_CALL_BY_REFERENCE
void
bid64_to_int64_xint (SINT64 * pres, UINT64 * px
- _EXC_FLAGS_PARAM _EXC_MASKS_PARAM _EXC_INFO_PARAM)
+ _EXC_FLAGS_PARAM _EXC_MASKS_PARAM _EXC_INFO_PARAM)
{
UINT64 x = *px;
#else
SINT64
bid64_to_int64_xint (UINT64 x
- _EXC_FLAGS_PARAM _EXC_MASKS_PARAM _EXC_INFO_PARAM)
+ _EXC_FLAGS_PARAM _EXC_MASKS_PARAM _EXC_INFO_PARAM)
{
#endif
SINT64 res;
@@ -1789,7 +1789,7 @@ bid64_to_int64_xint (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -1838,8 +1838,8 @@ bid64_to_int64_xint (UINT64 x
else
res = C1;
} else { // if (exp > 0) => 1 <= exp <= 18, 1 <= q <= 16, 2 <= q + exp <= 20
- // (the upper limit of 20 on q + exp is due to the fact that
- // +/-C * 10^exp is guaranteed to fit in 64 bits)
+ // (the upper limit of 20 on q + exp is due to the fact that
+ // +/-C * 10^exp is guaranteed to fit in 64 bits)
// res = +/-C * 10^exp (exact)
if (x_sign)
res = -C1 * ten2k64[exp];
@@ -2020,7 +2020,7 @@ bid64_to_int64_rninta (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = (C1 + 1/2 * 10^x) * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -2055,8 +2055,8 @@ bid64_to_int64_rninta (UINT64 x
else
res = C1;
} else { // if (exp > 0) => 1 <= exp <= 18, 1 <= q <= 16, 2 <= q + exp <= 20
- // (the upper limit of 20 on q + exp is due to the fact that
- // +/-C * 10^exp is guaranteed to fit in 64 bits)
+ // (the upper limit of 20 on q + exp is due to the fact that
+ // +/-C * 10^exp is guaranteed to fit in 64 bits)
// res = +/-C * 10^exp (exact)
if (x_sign)
res = -C1 * ten2k64[exp];
@@ -2243,7 +2243,7 @@ bid64_to_int64_xrninta (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = (C1 + 1/2 * 10^x) * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -2276,7 +2276,7 @@ bid64_to_int64_xrninta (UINT64 x
// f* > 1/2 and the result may be exact
tmp64 = fstar.w[0] - 0x8000000000000000ull; // f* - 1/2
if ((tmp64 > ten2mk128trunc[ind - 1].w[1])) {
- // ten2mk128trunc[ind -1].w[1] is identical to
+ // ten2mk128trunc[ind -1].w[1] is identical to
// ten2mk128[ind -1].w[1]
// set the inexact flag
*pfpsf |= INEXACT_EXCEPTION;
@@ -2292,7 +2292,7 @@ bid64_to_int64_xrninta (UINT64 x
// Calculate f2* - 1/2
tmp64 = fstar.w[1] - onehalf128[ind - 1];
if (tmp64 || fstar.w[0] > ten2mk128trunc[ind - 1].w[1]) {
- // ten2mk128trunc[ind -1].w[1] is identical to
+ // ten2mk128trunc[ind -1].w[1] is identical to
// ten2mk128[ind -1].w[1]
// set the inexact flag
*pfpsf |= INEXACT_EXCEPTION;
@@ -2316,8 +2316,8 @@ bid64_to_int64_xrninta (UINT64 x
else
res = C1;
} else { // if (exp > 0) => 1 <= exp <= 18, 1 <= q <= 16, 2 <= q + exp <= 20
- // (the upper limit of 20 on q + exp is due to the fact that
- // +/-C * 10^exp is guaranteed to fit in 64 bits)
+ // (the upper limit of 20 on q + exp is due to the fact that
+ // +/-C * 10^exp is guaranteed to fit in 64 bits)
// res = +/-C * 10^exp (exact)
if (x_sign)
res = -C1 * ten2k64[exp];
diff --git a/libgcc/config/libbid/bid64_to_uint32.c b/libgcc/config/libbid/bid64_to_uint32.c
index 22e6bc723b9..b8b0e230d4c 100644
--- a/libgcc/config/libbid/bid64_to_uint32.c
+++ b/libgcc/config/libbid/bid64_to_uint32.c
@@ -153,9 +153,9 @@ bid64_to_uint32_rnint (UINT64 x
// Note: 0x9fffffffb*10^(q-11) has q-1 or q digits, where q <= 16
tmp64 = 0x9fffffffbull * ten2k64[q - 11];
if (C1 >= tmp64) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x80000000;
BID_RETURN (res);
}
@@ -190,7 +190,7 @@ bid64_to_uint32_rnint (UINT64 x
res = 0x00000001; // return +1
}
} else { // if (1 <= q + exp <= 10, 1 <= q <= 16, -15 <= exp <= 9)
- // -2^32-1/2 <= x <= -1 or 1 <= x < 2^32-1/2 so if positive, x can be
+ // -2^32-1/2 <= x <= -1 or 1 <= x < 2^32-1/2 so if positive, x can be
// rounded to nearest to a 32-bit unsigned integer
if (x_sign) { // x <= -1
// set invalid flag
@@ -210,7 +210,7 @@ bid64_to_uint32_rnint (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = (C1 + 1/2 * 10^x) * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -239,7 +239,7 @@ bid64_to_uint32_rnint (UINT64 x
// check for midpoints
if ((fstar.w[1] == 0) && fstar.w[0] &&
(fstar.w[0] <= ten2mk128trunc[ind - 1].w[1])) {
- // ten2mk128trunc[ind -1].w[1] is identical to
+ // ten2mk128trunc[ind -1].w[1] is identical to
// ten2mk128[ind -1].w[1]
// the result is a midpoint; round to nearest
if (Cstar & 0x01) { // Cstar is odd; MP in [EVEN, ODD]
@@ -390,9 +390,9 @@ bid64_to_uint32_xrnint (UINT64 x
// Note: 0x9fffffffb*10^(q-11) has q-1 or q digits, where q <= 16
tmp64 = 0x9fffffffbull * ten2k64[q - 11];
if (C1 >= tmp64) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x80000000;
BID_RETURN (res);
}
@@ -431,7 +431,7 @@ bid64_to_uint32_xrnint (UINT64 x
// set inexact flag
*pfpsf |= INEXACT_EXCEPTION;
} else { // if (1 <= q + exp <= 10, 1 <= q <= 16, -15 <= exp <= 9)
- // -2^32-1/2 <= x <= -1 or 1 <= x < 2^32-1/2 so if positive, x can be
+ // -2^32-1/2 <= x <= -1 or 1 <= x < 2^32-1/2 so if positive, x can be
// rounded to nearest to a 32-bit unsigned integer
if (x_sign) { // x <= -1
// set invalid flag
@@ -451,7 +451,7 @@ bid64_to_uint32_xrnint (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = (C1 + 1/2 * 10^x) * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -484,7 +484,7 @@ bid64_to_uint32_xrnint (UINT64 x
// f* > 1/2 and the result may be exact
tmp64 = fstar.w[0] - 0x8000000000000000ull; // f* - 1/2
if ((tmp64 > ten2mk128trunc[ind - 1].w[1])) {
- // ten2mk128trunc[ind -1].w[1] is identical to
+ // ten2mk128trunc[ind -1].w[1] is identical to
// ten2mk128[ind -1].w[1]
// set the inexact flag
*pfpsf |= INEXACT_EXCEPTION;
@@ -500,7 +500,7 @@ bid64_to_uint32_xrnint (UINT64 x
// Calculate f2* - 1/2
tmp64 = fstar.w[1] - onehalf128[ind - 1];
if (tmp64 || fstar.w[0] > ten2mk128trunc[ind - 1].w[1]) {
- // ten2mk128trunc[ind -1].w[1] is identical to
+ // ten2mk128trunc[ind -1].w[1] is identical to
// ten2mk128[ind -1].w[1]
// set the inexact flag
*pfpsf |= INEXACT_EXCEPTION;
@@ -516,7 +516,7 @@ bid64_to_uint32_xrnint (UINT64 x
// check for midpoints
if ((fstar.w[1] == 0) && fstar.w[0] &&
(fstar.w[0] <= ten2mk128trunc[ind - 1].w[1])) {
- // ten2mk128trunc[ind -1].w[1] is identical to
+ // ten2mk128trunc[ind -1].w[1] is identical to
// ten2mk128[ind -1].w[1]
// the result is a midpoint; round to nearest
if (Cstar & 0x01) { // Cstar is odd; MP in [EVEN, ODD]
@@ -667,9 +667,9 @@ bid64_to_uint32_floor (UINT64 x
// Note: 0xa00000000*10^(q-11) has q-1 or q digits, where q <= 16
tmp64 = 0xa00000000ull * ten2k64[q - 11];
if (C1 >= tmp64) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x80000000;
BID_RETURN (res);
}
@@ -694,7 +694,7 @@ bid64_to_uint32_floor (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -854,9 +854,9 @@ bid64_to_uint32_xfloor (UINT64 x
// Note: 0xa00000000*10^(q-11) has q-1 or q digits, where q <= 16
tmp64 = 0xa00000000ull * ten2k64[q - 11];
if (C1 >= tmp64) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x80000000;
BID_RETURN (res);
}
@@ -883,7 +883,7 @@ bid64_to_uint32_xfloor (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -1064,9 +1064,9 @@ bid64_to_uint32_ceil (UINT64 x
// Note: 0x9fffffff6*10^(q-11) has q-1 or q digits, where q <= 16
tmp64 = 0x9fffffff6ull * ten2k64[q - 11];
if (C1 > tmp64) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x80000000;
BID_RETURN (res);
}
@@ -1085,7 +1085,7 @@ bid64_to_uint32_ceil (UINT64 x
res = 0x00000001;
BID_RETURN (res);
} else { // if (1 <= q + exp <= 10, 1 <= q <= 16, -15 <= exp <= 9)
- // x <= -1 or 1 <= x <= 2^32 - 1 so if positive, x can be
+ // x <= -1 or 1 <= x <= 2^32 - 1 so if positive, x can be
// rounded to nearest to a 32-bit unsigned integer
if (x_sign) { // x <= -1
// set invalid flag
@@ -1104,7 +1104,7 @@ bid64_to_uint32_ceil (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -1283,9 +1283,9 @@ bid64_to_uint32_xceil (UINT64 x
// Note: 0x9fffffff6*10^(q-11) has q-1 or q digits, where q <= 16
tmp64 = 0x9fffffff6ull * ten2k64[q - 11];
if (C1 > tmp64) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x80000000;
BID_RETURN (res);
}
@@ -1306,7 +1306,7 @@ bid64_to_uint32_xceil (UINT64 x
res = 0x00000001;
BID_RETURN (res);
} else { // if (1 <= q + exp <= 10, 1 <= q <= 16, -15 <= exp <= 9)
- // x <= -1 or 1 <= x < 2^32 so if positive, x can be
+ // x <= -1 or 1 <= x < 2^32 so if positive, x can be
// rounded to nearest to a 32-bit unsigned integer
if (x_sign) { // x <= -1
// set invalid flag
@@ -1325,7 +1325,7 @@ bid64_to_uint32_xceil (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -1385,13 +1385,13 @@ bid64_to_uint32_xceil (UINT64 x
#if DECIMAL_CALL_BY_REFERENCE
void
bid64_to_uint32_int (unsigned int *pres, UINT64 * px
- _EXC_FLAGS_PARAM _EXC_MASKS_PARAM _EXC_INFO_PARAM)
+ _EXC_FLAGS_PARAM _EXC_MASKS_PARAM _EXC_INFO_PARAM)
{
UINT64 x = *px;
#else
unsigned int
bid64_to_uint32_int (UINT64 x
- _EXC_FLAGS_PARAM _EXC_MASKS_PARAM _EXC_INFO_PARAM)
+ _EXC_FLAGS_PARAM _EXC_MASKS_PARAM _EXC_INFO_PARAM)
{
#endif
unsigned int res;
@@ -1507,9 +1507,9 @@ bid64_to_uint32_int (UINT64 x
// Note: 0xa00000000*10^(q-11) has q-1 or q digits, where q <= 16
tmp64 = 0xa00000000ull * ten2k64[q - 11];
if (C1 >= tmp64) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x80000000;
BID_RETURN (res);
}
@@ -1525,7 +1525,7 @@ bid64_to_uint32_int (UINT64 x
res = 0x00000000;
BID_RETURN (res);
} else { // if (1 <= q + exp <= 10, 1 <= q <= 16, -15 <= exp <= 9)
- // x <= -1 or 1 <= x < 2^32 so if positive, x can be
+ // x <= -1 or 1 <= x < 2^32 so if positive, x can be
// rounded to nearest to a 32-bit unsigned integer
if (x_sign) { // x <= -1
// set invalid flag
@@ -1544,7 +1544,7 @@ bid64_to_uint32_int (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -1703,9 +1703,9 @@ bid64_to_uint32_xint (UINT64 x
// Note: 0xa00000000*10^(q-11) has q-1 or q digits, where q <= 16
tmp64 = 0xa00000000ull * ten2k64[q - 11];
if (C1 >= tmp64) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x80000000;
BID_RETURN (res);
}
@@ -1723,7 +1723,7 @@ bid64_to_uint32_xint (UINT64 x
res = 0x00000000;
BID_RETURN (res);
} else { // if (1 <= q + exp <= 10, 1 <= q <= 16, -15 <= exp <= 9)
- // x <= -1 or 1 <= x < 2^32 so if positive, x can be
+ // x <= -1 or 1 <= x < 2^32 so if positive, x can be
// rounded to nearest to a 32-bit unsigned integer
if (x_sign) { // x <= -1
// set invalid flag
@@ -1742,7 +1742,7 @@ bid64_to_uint32_xint (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -1922,9 +1922,9 @@ bid64_to_uint32_rninta (UINT64 x
// Note: 0x9fffffffb*10^(q-11) has q-1 or q digits, where q <= 16
tmp64 = 0x9fffffffbull * ten2k64[q - 11];
if (C1 >= tmp64) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x80000000;
BID_RETURN (res);
}
@@ -1959,7 +1959,7 @@ bid64_to_uint32_rninta (UINT64 x
res = 0x00000001; // return +1
}
} else { // if (1 <= q + exp <= 10, 1 <= q <= 16, -15 <= exp <= 9)
- // -2^32-1/2 <= x <= -1 or 1 <= x < 2^32-1/2 so if positive, x can be
+ // -2^32-1/2 <= x <= -1 or 1 <= x < 2^32-1/2 so if positive, x can be
// rounded to nearest to a 32-bit unsigned integer
if (x_sign) { // x <= -1
// set invalid flag
@@ -1979,7 +1979,7 @@ bid64_to_uint32_rninta (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = (C1 + 1/2 * 10^x) * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -2139,9 +2139,9 @@ bid64_to_uint32_xrninta (UINT64 x
// Note: 0x9fffffffb*10^(q-11) has q-1 or q digits, where q <= 16
tmp64 = 0x9fffffffbull * ten2k64[q - 11];
if (C1 >= tmp64) {
- // set invalid flag
+ // set invalid flag
*pfpsf |= INVALID_EXCEPTION;
- // return Integer Indefinite
+ // return Integer Indefinite
res = 0x80000000;
BID_RETURN (res);
}
@@ -2180,7 +2180,7 @@ bid64_to_uint32_xrninta (UINT64 x
// set inexact flag
*pfpsf |= INEXACT_EXCEPTION;
} else { // if (1 <= q + exp <= 10, 1 <= q <= 16, -15 <= exp <= 9)
- // -2^32-1/2 <= x <= -1 or 1 <= x < 2^32-1/2 so if positive, x can be
+ // -2^32-1/2 <= x <= -1 or 1 <= x < 2^32-1/2 so if positive, x can be
// rounded to nearest to a 32-bit unsigned integer
if (x_sign) { // x <= -1
// set invalid flag
@@ -2200,7 +2200,7 @@ bid64_to_uint32_xrninta (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = (C1 + 1/2 * 10^x) * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
diff --git a/libgcc/config/libbid/bid64_to_uint64.c b/libgcc/config/libbid/bid64_to_uint64.c
index 42af4c9bc1e..dc141eefeb6 100644
--- a/libgcc/config/libbid/bid64_to_uint64.c
+++ b/libgcc/config/libbid/bid64_to_uint64.c
@@ -148,7 +148,7 @@ bid64_to_uint64_rnint (UINT64 x
// else cases that can be rounded to a 64-bit int fall through
// to '1 <= q + exp <= 20'
} else { // if (2 <= q <= 16) => 5 <= 21 - q <= 19
- // Note: C * 10^(21-q) has 20 or 21 digits; 0x9fffffffffffffffb
+ // Note: C * 10^(21-q) has 20 or 21 digits; 0x9fffffffffffffffb
// has 21 digits
__mul_64x64_to_128MACH (C, C1, ten2k64[21 - q]);
if (C.w[1] > 0x09 ||
@@ -208,7 +208,7 @@ bid64_to_uint64_rnint (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = (C1 + 1/2 * 10^x) * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -237,7 +237,7 @@ bid64_to_uint64_rnint (UINT64 x
// check for midpoints
if ((fstar.w[1] == 0) && fstar.w[0] &&
(fstar.w[0] <= ten2mk128trunc[ind - 1].w[1])) {
- // ten2mk128trunc[ind -1].w[1] is identical to
+ // ten2mk128trunc[ind -1].w[1] is identical to
// ten2mk128[ind -1].w[1]
// the result is a midpoint; round to nearest
if (Cstar & 0x01) { // Cstar is odd; MP in [EVEN, ODD]
@@ -384,7 +384,7 @@ bid64_to_uint64_xrnint (UINT64 x
// else cases that can be rounded to a 64-bit int fall through
// to '1 <= q + exp <= 20'
} else { // if (2 <= q <= 16) => 5 <= 21 - q <= 19
- // Note: C * 10^(21-q) has 20 or 21 digits; 0x9fffffffffffffffb
+ // Note: C * 10^(21-q) has 20 or 21 digits; 0x9fffffffffffffffb
// has 21 digits
__mul_64x64_to_128MACH (C, C1, ten2k64[21 - q]);
if (C.w[1] > 0x09 ||
@@ -448,7 +448,7 @@ bid64_to_uint64_xrnint (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = (C1 + 1/2 * 10^x) * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -513,7 +513,7 @@ bid64_to_uint64_xrnint (UINT64 x
// check for midpoints
if ((fstar.w[1] == 0) && fstar.w[0] &&
(fstar.w[0] <= ten2mk128trunc[ind - 1].w[1])) {
- // ten2mk128trunc[ind -1].w[1] is identical to
+ // ten2mk128trunc[ind -1].w[1] is identical to
// ten2mk128[ind -1].w[1]
// the result is a midpoint; round to nearest
if (Cstar & 0x01) { // Cstar is odd; MP in [EVEN, ODD]
@@ -659,7 +659,7 @@ bid64_to_uint64_floor (UINT64 x
// else cases that can be rounded to a 64-bit int fall through
// to '1 <= q + exp <= 20'
} else { // if (2 <= q <= 16) => 5 <= 21 - q <= 19
- // Note: C * 10^(21-q) has 20 or 21 digits; 0xa0000000000000000
+ // Note: C * 10^(21-q) has 20 or 21 digits; 0xa0000000000000000
// has 21 digits
__mul_64x64_to_128MACH (C, C1, ten2k64[21 - q]);
if (C.w[1] >= 0x0a) {
@@ -691,7 +691,7 @@ bid64_to_uint64_floor (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -845,7 +845,7 @@ bid64_to_uint64_xfloor (UINT64 x
// else cases that can be rounded to a 64-bit int fall through
// to '1 <= q + exp <= 20'
} else { // if (2 <= q <= 16) => 5 <= 21 - q <= 19
- // Note: C * 10^(21-q) has 20 or 21 digits; 0xa0000000000000000
+ // Note: C * 10^(21-q) has 20 or 21 digits; 0xa0000000000000000
// has 21 digits
__mul_64x64_to_128MACH (C, C1, ten2k64[21 - q]);
if (C.w[1] >= 0x0a) {
@@ -879,7 +879,7 @@ bid64_to_uint64_xfloor (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -1100,7 +1100,7 @@ bid64_to_uint64_ceil (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -1321,7 +1321,7 @@ bid64_to_uint64_xceil (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -1381,13 +1381,13 @@ bid64_to_uint64_xceil (UINT64 x
#if DECIMAL_CALL_BY_REFERENCE
void
bid64_to_uint64_int (UINT64 * pres, UINT64 * px
- _EXC_FLAGS_PARAM _EXC_MASKS_PARAM _EXC_INFO_PARAM)
+ _EXC_FLAGS_PARAM _EXC_MASKS_PARAM _EXC_INFO_PARAM)
{
UINT64 x = *px;
#else
UINT64
bid64_to_uint64_int (UINT64 x
- _EXC_FLAGS_PARAM _EXC_MASKS_PARAM _EXC_INFO_PARAM)
+ _EXC_FLAGS_PARAM _EXC_MASKS_PARAM _EXC_INFO_PARAM)
{
#endif
UINT64 res;
@@ -1498,7 +1498,7 @@ bid64_to_uint64_int (UINT64 x
// else cases that can be rounded to a 64-bit int fall through
// to '1 <= q + exp <= 20'
} else { // if (2 <= q <= 16) => 5 <= 21 - q <= 19
- // Note: C * 10^(21-q) has 20 or 21 digits; 0xa0000000000000000
+ // Note: C * 10^(21-q) has 20 or 21 digits; 0xa0000000000000000
// has 21 digits
__mul_64x64_to_128MACH (C, C1, ten2k64[21 - q]);
if (C.w[1] >= 0x0a) {
@@ -1540,7 +1540,7 @@ bid64_to_uint64_int (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -1693,7 +1693,7 @@ bid64_to_uint64_xint (UINT64 x
// else cases that can be rounded to a 64-bit int fall through
// to '1 <= q + exp <= 20'
} else { // if (2 <= q <= 16) => 5 <= 21 - q <= 19
- // Note: C * 10^(21-q) has 20 or 21 digits; 0xa0000000000000000
+ // Note: C * 10^(21-q) has 20 or 21 digits; 0xa0000000000000000
// has 21 digits
__mul_64x64_to_128MACH (C, C1, ten2k64[21 - q]);
if (C.w[1] >= 0x0a) {
@@ -1737,7 +1737,7 @@ bid64_to_uint64_xint (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = C1 * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -1912,7 +1912,7 @@ bid64_to_uint64_rninta (UINT64 x
// else cases that can be rounded to a 64-bit int fall through
// to '1 <= q + exp <= 20'
} else { // if (2 <= q <= 16) => 5 <= 21 - q <= 19
- // Note: C * 10^(21-q) has 20 or 21 digits; 0x9fffffffffffffffb
+ // Note: C * 10^(21-q) has 20 or 21 digits; 0x9fffffffffffffffb
// has 21 digits
__mul_64x64_to_128MACH (C, C1, ten2k64[21 - q]);
if (C.w[1] > 0x09 ||
@@ -1972,7 +1972,7 @@ bid64_to_uint64_rninta (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = (C1 + 1/2 * 10^x) * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
@@ -2134,7 +2134,7 @@ bid64_to_uint64_xrninta (UINT64 x
// else cases that can be rounded to a 64-bit int fall through
// to '1 <= q + exp <= 20'
} else { // if (2 <= q <= 16) => 5 <= 21 - q <= 19
- // Note: C * 10^(21-q) has 20 or 21 digits; 0x9fffffffffffffffb
+ // Note: C * 10^(21-q) has 20 or 21 digits; 0x9fffffffffffffffb
// has 21 digits
__mul_64x64_to_128MACH (C, C1, ten2k64[21 - q]);
if (C.w[1] > 0x09 ||
@@ -2198,7 +2198,7 @@ bid64_to_uint64_xrninta (UINT64 x
// C* is actually floor(C*) in this case
// C* and f* need shifting and masking, as shown by
// shiftright128[] and maskhigh128[]
- // 1 <= x <= 15
+ // 1 <= x <= 15
// kx = 10^(-x) = ten2mk64[ind - 1]
// C* = (C1 + 1/2 * 10^x) * 10^(-x)
// the approximation of 10^(-x) was rounded up to 54 bits
diff --git a/libgcc/config/libbid/bid_binarydecimal.c b/libgcc/config/libbid/bid_binarydecimal.c
index 6df39f69887..aa416c9eafa 100644
--- a/libgcc/config/libbid/bid_binarydecimal.c
+++ b/libgcc/config/libbid/bid_binarydecimal.c
@@ -144323,7 +144323,7 @@ bid32_to_binary64 (UINT32 x
// Check for exponent underflow and compensate by shifting the product
// Cut off the process at precision+2, since we can't really shift further
-
+
c_prov = z.w[5];
// Round using round-sticky words
@@ -145721,7 +145721,7 @@ binary64_to_bid32 (double x
c_prov = z.w[5];
// Test inexactness and underflow (when testing tininess before rounding)
-
+
if ((z.w[4] != 0) || (z.w[3] != 0)) {
*pfpsf |= INEXACT_EXCEPTION;
if (c_prov < 1000000ull)
@@ -145743,7 +145743,7 @@ binary64_to_bid32 (double x
e_out = e_out + 1;
}
}
-
+
// Check for overflow
if (e_out > 90 + 101) {
@@ -145887,7 +145887,7 @@ binary80_to_bid32 (BINARY80 x
if (c_prov < 1000000ull)
*pfpsf |= UNDERFLOW_EXCEPTION;
}
-
+
// Round using round-sticky words
// If we spill over into the next decade, correct
// Flag underflow where it may be needed even for |result| = SNN
@@ -146520,7 +146520,7 @@ binary80_to_bid64 (BINARY80 x
if (c_prov < 1000000000000000ull)
*pfpsf |= UNDERFLOW_EXCEPTION;
}
-
+
// Round using round-sticky words
// If we spill over into the next decade, correct
// Flag underflow where it may be needed even for |result| = SNN
@@ -146678,7 +146678,7 @@ binary128_to_bid64 (BINARY128 x
if (c_prov < 1000000000000000ull)
*pfpsf |= UNDERFLOW_EXCEPTION;
}
-
+
// Round using round-sticky words
// If we spill over into the next decade, correct
// Flag underflow where it may be needed even for |result| = SNN
diff --git a/libgcc/config/libbid/bid_conf.h b/libgcc/config/libbid/bid_conf.h
index e054a3ff570..587713d9221 100644
--- a/libgcc/config/libbid/bid_conf.h
+++ b/libgcc/config/libbid/bid_conf.h
@@ -567,7 +567,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define DECIMAL_CALL_BY_REFERENCE 0
#endif
-// If DECIMAL_GLOBAL_ROUNDING is defined then the rounding mode is a global
+// If DECIMAL_GLOBAL_ROUNDING is defined then the rounding mode is a global
// variable _IDEC_glbround, otherwise it is passed as a parameter when needed
#ifndef DECIMAL_GLOBAL_ROUNDING
@@ -579,7 +579,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#endif
// If DECIMAL_GLOBAL_EXCEPTION_FLAGS is defined then the exception status flags
-// are represented by a global variable _IDEC_glbflags, otherwise they are
+// are represented by a global variable _IDEC_glbflags, otherwise they are
// passed as a parameter when needed
#ifndef DECIMAL_GLOBAL_EXCEPTION_FLAGS
@@ -591,7 +591,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#endif
// If DECIMAL_ALTERNATE_EXCEPTION_HANDLING is defined then the exception masks
-// are examined and exception handling information is provided to the caller
+// are examined and exception handling information is provided to the caller
// if alternate exception handling is necessary
#ifndef DECIMAL_ALTERNATE_EXCEPTION_HANDLING
@@ -604,15 +604,15 @@ typedef unsigned int _IDEC_flags; // could be a struct with diagnostic info
#if DECIMAL_ALTERNATE_EXCEPTION_HANDLING
// If DECIMAL_GLOBAL_EXCEPTION_MASKS is defined then the exception mask bits
// are represented by a global variable _IDEC_exceptionmasks, otherwise they
- // are passed as a parameter when needed; DECIMAL_GLOBAL_EXCEPTION_MASKS is
+ // are passed as a parameter when needed; DECIMAL_GLOBAL_EXCEPTION_MASKS is
// ignored
// if DECIMAL_ALTERNATE_EXCEPTION_HANDLING is not defined
// **************************************************************************
#define DECIMAL_GLOBAL_EXCEPTION_MASKS 0
// **************************************************************************
- // If DECIMAL_GLOBAL_EXCEPTION_INFO is defined then the alternate exception
- // handling information is represented by a global data structure
+ // If DECIMAL_GLOBAL_EXCEPTION_INFO is defined then the alternate exception
+ // handling information is represented by a global data structure
// _IDEC_glbexcepthandling, otherwise it is passed by reference as a
// parameter when needed; DECIMAL_GLOBAL_EXCEPTION_INFO is ignored
// if DECIMAL_ALTERNATE_EXCEPTION_HANDLING is not defined
@@ -623,9 +623,9 @@ typedef unsigned int _IDEC_flags; // could be a struct with diagnostic info
// Notes: 1) rnd_mode from _RND_MODE_ARG is used by the caller of a function
// from this library, and can be any name
-// 2) rnd_mode and prnd_mode from _RND_MODE_PARAM are fixed names
+// 2) rnd_mode and prnd_mode from _RND_MODE_PARAM are fixed names
// and *must* be used in the library functions
-// 3) _IDEC_glbround is the fixed name for the global variable holding
+// 3) _IDEC_glbround is the fixed name for the global variable holding
// the rounding mode
#if !DECIMAL_GLOBAL_ROUNDING
@@ -649,10 +649,10 @@ typedef unsigned int _IDEC_flags; // could be a struct with diagnostic info
#endif
// Notes: 1) pfpsf from _EXC_FLAGS_ARG is used by the caller of a function
-// from this library, and can be any name
-// 2) pfpsf from _EXC_FLAGS_PARAM is a fixed name and *must* be used
+// from this library, and can be any name
+// 2) pfpsf from _EXC_FLAGS_PARAM is a fixed name and *must* be used
// in the library functions
-// 3) _IDEC_glbflags is the fixed name for the global variable holding
+// 3) _IDEC_glbflags is the fixed name for the global variable holding
// the floating-point status flags
#if !DECIMAL_GLOBAL_EXCEPTION_FLAGS
#define _EXC_FLAGS_ARG , pfpsf
@@ -686,7 +686,7 @@ extern BID_THREAD _IDEC_excepthandling _IDEC_glbexcepthandling;
// from this library, and can be any name
// 2) exc_mask and pexc_mask from _EXC_MASKS_PARAM are fixed names
// and *must* be used in the library functions
- // 3) _IDEC_glbexceptionmasks is the fixed name for the global
+ // 3) _IDEC_glbexceptionmasks is the fixed name for the global
// variable holding the floating-point exception masks
#if !DECIMAL_GLOBAL_EXCEPTION_MASKS
#if DECIMAL_CALL_BY_REFERENCE
@@ -704,9 +704,9 @@ extern BID_THREAD _IDEC_excepthandling _IDEC_glbexcepthandling;
// Notes: 1) pexc_info from _EXC_INFO_ARG is used by the caller of a function
// from this library, and can be any name
- // 2) pexc_info from _EXC_INFO_PARAM is a fixed name and *must* be
+ // 2) pexc_info from _EXC_INFO_PARAM is a fixed name and *must* be
// used in the library functions
- // 3) _IDEC_glbexcepthandling is the fixed name for the global
+ // 3) _IDEC_glbexcepthandling is the fixed name for the global
// variable holding the floating-point exception information
#if !DECIMAL_GLOBAL_EXCEPTION_INFO
#define _EXC_INFO_ARG , pexc_info
diff --git a/libgcc/config/libbid/bid_div_macros.h b/libgcc/config/libbid/bid_div_macros.h
index 42a31ce930a..f4222d6aab8 100644
--- a/libgcc/config/libbid/bid_div_macros.h
+++ b/libgcc/config/libbid/bid_div_macros.h
@@ -27,7 +27,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "bid_internal.h"
#define FENCE __fence
-//#define FENCE
+//#define FENCE
//#define DOUBLE_EXTENDED_ON
@@ -53,7 +53,7 @@ __div_128_by_128 (UINT128 * pCQ, UINT128 * pCR, UINT128 CX, UINT128 CY) {
pCR->w[0] = CX.w[0] - pCQ->w[0] * CY.w[0];
} else {
- // This path works for CX<2^116 only
+ // This path works for CX<2^116 only
// 2^64
d64.i = 0x43f0000000000000;
@@ -328,7 +328,7 @@ __div_128_by_128 (UINT128 * pCQ, UINT128 * pCR, UINT128 CX0, UINT128 CY) {
if (CY.w[1] < (UINT64) (1 << (64 - 51))
&& (__unsigned_compare_gt_128 (CX, CY51))) {
- // Q > 2^51
+ // Q > 2^51
// 2^(-49)*CX/CY
d49.i = 0x3ce0000000000000ull;
@@ -397,7 +397,7 @@ __div_256_by_128 (UINT128 * pCQ, UINT256 * pCA4, UINT128 CY) {
int_double t64, d49, d60;
double lx, ly, lq, d128, d192;
- // the quotient is assumed to be at most 113 bits,
+ // the quotient is assumed to be at most 113 bits,
// as needed by BID128 divide routines
// initial dividend
@@ -467,7 +467,7 @@ __div_256_by_128 (UINT128 * pCQ, UINT256 * pCA4, UINT128 CY) {
&&
(__unsigned_compare_gt_128 (CA4, CY51))))
{
- // Q > 2^51
+ // Q > 2^51
// 2^(-49)*CA4/CY
d49.i = 0x3ce0000000000000ull;
diff --git a/libgcc/config/libbid/bid_dpd.c b/libgcc/config/libbid/bid_dpd.c
index 9e1e552cd68..a21baae122f 100644
--- a/libgcc/config/libbid/bid_dpd.c
+++ b/libgcc/config/libbid/bid_dpd.c
@@ -598,7 +598,7 @@ bid_to_bid128 (UINT128 bq) {
if ((comb & 0x1f000) == 0x1f000) { //NaN
ba &= 0xfe003fffffffffffULL; // make exponent 0
- bcoeff &= 0x00003fffffffffffull; // NaN payloat is only T.
+ bcoeff &= 0x00003fffffffffffull; // NaN payloat is only T.
if ((bcoeff > 0x0000314dc6448d93ULL) || // significand is non-canonical
((bcoeff == 0x0000314dc6448d93ULL)
&& (bb >= 0x38c15b0a00000000ULL))
@@ -660,7 +660,7 @@ bid32_canonize (UINT32 ba) {
if ((comb & 0x7c0) == 0x7c0) { //NaN
ba &= 0xfe0fffff; // make exponent 0
- bcoeff &= 0x000fffff; // NaN payloat is only T.
+ bcoeff &= 0x000fffff; // NaN payloat is only T.
if (bcoeff >= 1000000)
ba &= 0xfff00000; //treat non-canonical significand
return ba;
@@ -698,7 +698,7 @@ bid64_canonize (UINT64 ba) {
if ((comb & 0x1f00) == 0x1f00) { //NaN
ba &= 0xfe03ffffffffffffULL; // make exponent 0
- bcoeff &= 0x0003ffffffffffffull; // NaN payloat is only T.
+ bcoeff &= 0x0003ffffffffffffull; // NaN payloat is only T.
if (bcoeff >= 1000000000000000ull)
ba &= 0xfe00000000000000ull; // treat non canonical significand and zero G6-G12
return ba;
@@ -742,7 +742,7 @@ bid128_canonize (UINT128 bq) {
if ((comb & 0x1f000) == 0x1f000) { //NaN
ba &= 0xfe003fffffffffffULL; // make exponent 0
- bcoeff &= 0x00003fffffffffffull; // NaN payload is only T.
+ bcoeff &= 0x00003fffffffffffull; // NaN payload is only T.
if ((bcoeff > 0x0000314dc6448d93ULL) || // significand is non-canonical
((bcoeff == 0x0000314dc6448d93ULL)
diff --git a/libgcc/config/libbid/bid_flag_operations.c b/libgcc/config/libbid/bid_flag_operations.c
index a84848447c5..0954f4b998a 100644
--- a/libgcc/config/libbid/bid_flag_operations.c
+++ b/libgcc/config/libbid/bid_flag_operations.c
@@ -30,7 +30,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
// Note the following definitions from bid_conf.h: if the status flags are
// global, they have a fixed name recognized by the library functions:
// _IDEC_glbflags; pfpsf, defined as &_IDEC_glbflags, can be used instead; no
-// argument is passed for the status flags to the library functions; if the
+// argument is passed for the status flags to the library functions; if the
// status flags are local then they are passed as an arument, always by
// reference, to the library functions
//
@@ -67,7 +67,7 @@ void
lowerFlags (_IDEC_flags * pflagsmask _EXC_FLAGS_PARAM) {
// *pflagsmask is the logical OR of the flags to be cleared, e.g.
// *pflagsmask =INVALID_EXCEPTION | ZERO_DIVIDE_EXCEPTION | OVERFLOW_EXCEPTION
- // UNDERFLOW_EXCEPTION | INEXACT_EXCEPTION to clear all five IEEE 754R
+ // UNDERFLOW_EXCEPTION | INEXACT_EXCEPTION to clear all five IEEE 754R
// exception flags
*pfpsf = *pfpsf & ~(*pflagsmask & BID_IEEE_FLAGS);
}
@@ -75,8 +75,8 @@ lowerFlags (_IDEC_flags * pflagsmask _EXC_FLAGS_PARAM) {
void
lowerFlags (_IDEC_flags flagsmask _EXC_FLAGS_PARAM) {
// flagsmask is the logical OR of the flags to be cleared, e.g.
- // flagsmask = INVALID_EXCEPTION | ZERO_DIVIDE_EXCEPTION | OVERFLOW_EXCEPTION
- // UNDERFLOW_EXCEPTION | INEXACT_EXCEPTION to clear all five IEEE 754R
+ // flagsmask = INVALID_EXCEPTION | ZERO_DIVIDE_EXCEPTION | OVERFLOW_EXCEPTION
+ // UNDERFLOW_EXCEPTION | INEXACT_EXCEPTION to clear all five IEEE 754R
// exception flags
*pfpsf = *pfpsf & ~(flagsmask & BID_IEEE_FLAGS);
}
@@ -86,10 +86,10 @@ lowerFlags (_IDEC_flags flagsmask _EXC_FLAGS_PARAM) {
void
testFlags (_IDEC_flags * praised,
_IDEC_flags * pflagsmask _EXC_FLAGS_PARAM) {
- // *praised is a pointer to the result, i.e. the logical OR of the flags
+ // *praised is a pointer to the result, i.e. the logical OR of the flags
// selected by *pflagsmask that are set; e.g. if
// *pflagsmask = INVALID_EXCEPTION | UNDERFLOW_EXCEPTION | INEXACT_EXCEPTION
- // and only the invalid and inexact flags are raised (set) then upon return
+ // and only the invalid and inexact flags are raised (set) then upon return
// *praised = INVALID_EXCEPTION | INEXACT_EXCEPTION
*praised = *pfpsf & (*pflagsmask & BID_IEEE_FLAGS);
}
@@ -97,7 +97,7 @@ testFlags (_IDEC_flags * praised,
_IDEC_flags
testFlags (_IDEC_flags flagsmask _EXC_FLAGS_PARAM) {
_IDEC_flags raised;
- // the raturn value raised is the logical OR of the flags
+ // the raturn value raised is the logical OR of the flags
// selected by flagsmask, that are set; e.g. if
// flagsmask = INVALID_EXCEPTION | UNDERFLOW_EXCEPTION | INEXACT_EXCEPTION and
// only the invalid and inexact flags are raised (set) then the return value
@@ -156,9 +156,9 @@ void
restoreFlags (_IDEC_flags flagsvalues,
_IDEC_flags flagsmask _EXC_FLAGS_PARAM) {
// restore the status flags selected by flagsmask to the values speciafied
- // (as a logical OR) in flagsvalues; e.g. if
+ // (as a logical OR) in flagsvalues; e.g. if
// flagsmask = INVALID_EXCEPTION | UNDERFLOW_EXCEPTION | INEXACT_EXCEPTION
- // and only the invalid and inexact flags are raised (set) in flagsvalues
+ // and only the invalid and inexact flags are raised (set) in flagsvalues
// then upon return the invalid status flag will be set, the underflow status
// flag will be clear, and the inexact status flag will be set
*pfpsf = *pfpsf & ~(flagsmask & BID_IEEE_FLAGS);
@@ -176,7 +176,7 @@ saveFlags (_IDEC_flags * pflagsvalues,
// *pflagsmask; e.g. if
// *pflagsmask = INVALID_EXCEPTION | UNDERFLOW_EXCEPTION | INEXACT_EXCEPTION
// and only the invalid and inexact flags are raised (set) in the status word,
- // then upon return the value in *pflagsvalues will have the invalid status
+ // then upon return the value in *pflagsvalues will have the invalid status
// flag set, the underflow status flag clear, and the inexact status flag set
*pflagsvalues = *pfpsf & (*pflagsmask & BID_IEEE_FLAGS);
}
@@ -184,11 +184,11 @@ saveFlags (_IDEC_flags * pflagsvalues,
_IDEC_flags
saveFlags (_IDEC_flags flagsmask _EXC_FLAGS_PARAM) {
_IDEC_flags flagsvalues;
- // return the status flags specified (as a logical OR) in flagsmask; e.g. if
+ // return the status flags specified (as a logical OR) in flagsmask; e.g. if
// flagsmask = INVALID_EXCEPTION | UNDERFLOW_EXCEPTION | INEXACT_EXCEPTION
// and only the invalid and inexact flags are raised (set) in the status word,
- // then the return value will have the invalid status flag set, the
- // underflow status flag clear, and the inexact status flag set
+ // then the return value will have the invalid status flag set, the
+ // underflow status flag clear, and the inexact status flag set
flagsvalues = *pfpsf & (flagsmask & BID_IEEE_FLAGS);
return (flagsvalues);
}
diff --git a/libgcc/config/libbid/bid_from_int.c b/libgcc/config/libbid/bid_from_int.c
index 5c53320e063..3f52effc73d 100644
--- a/libgcc/config/libbid/bid_from_int.c
+++ b/libgcc/config/libbid/bid_from_int.c
@@ -102,15 +102,15 @@ bid64_from_int64 (SINT64 x
res =
x_sign | 0x6c70000000000000ull | (C & 0x0007ffffffffffffull);
}
- } else { // |C| >= 10^16 and the result may be inexact
+ } else { // |C| >= 10^16 and the result may be inexact
// the smallest |C| is 10^16 which has 17 decimal digits
// the largest |C| is 0x8000000000000000 = 9223372036854775808 w/ 19 digits
- if (C < 0x16345785d8a0000ull) { // x < 10^17
+ if (C < 0x16345785d8a0000ull) { // x < 10^17
q = 17;
ind = 1; // number of digits to remove for q = 17
} else if (C < 0xde0b6b3a7640000ull) { // C < 10^18
q = 18;
- ind = 2; // number of digits to remove for q = 18
+ ind = 2; // number of digits to remove for q = 18
} else { // C < 10^19
q = 19;
ind = 3; // number of digits to remove for q = 19
@@ -162,7 +162,7 @@ bid64_from_int64 (SINT64 x
}
if (res < 0x0020000000000000ull) { // res < 2^53
res = x_sign | (((UINT64) ind + 398) << 53) | res;
- } else { // res >= 2^53
+ } else { // res >= 2^53
res =
x_sign | 0x6000000000000000ull | (((UINT64) ind + 398) << 51) |
(res & 0x0007ffffffffffffull);
@@ -200,15 +200,15 @@ bid64_from_uint64 (UINT64 x
} else { // x >= 2^53
res = 0x6c70000000000000ull | (x & 0x0007ffffffffffffull);
}
- } else { // x >= 10^16 and the result may be inexact
+ } else { // x >= 10^16 and the result may be inexact
// the smallest x is 10^16 which has 17 decimal digits
// the largest x is 0xffffffffffffffff = 18446744073709551615 w/ 20 digits
- if (x < 0x16345785d8a0000ull) { // x < 10^17
+ if (x < 0x16345785d8a0000ull) { // x < 10^17
q = 17;
ind = 1; // number of digits to remove for q = 17
} else if (x < 0xde0b6b3a7640000ull) { // x < 10^18
q = 18;
- ind = 2; // number of digits to remove for q = 18
+ ind = 2; // number of digits to remove for q = 18
} else if (x < 0x8ac7230489e80000ull) { // x < 10^19
q = 19;
ind = 3; // number of digits to remove for q = 19
@@ -262,7 +262,7 @@ bid64_from_uint64 (UINT64 x
}
if (res < 0x0020000000000000ull) { // res < 2^53
res = (((UINT64) ind + 398) << 53) | res;
- } else { // res >= 2^53
+ } else { // res >= 2^53
res = 0x6000000000000000ull | (((UINT64) ind + 398) << 51) |
(res & 0x0007ffffffffffffull);
}
diff --git a/libgcc/config/libbid/bid_gcc_intrinsics.h b/libgcc/config/libbid/bid_gcc_intrinsics.h
index 71f8c3e964f..b9c8b1260de 100644
--- a/libgcc/config/libbid/bid_gcc_intrinsics.h
+++ b/libgcc/config/libbid/bid_gcc_intrinsics.h
@@ -290,17 +290,17 @@ union decimal32 {
_Decimal32 d;
UINT32 i;
};
-
+
union decimal64 {
_Decimal64 d;
UINT64 i;
};
-
+
union decimal128 {
_Decimal128 d;
UINT128 i;
};
-
+
#if BID_HAS_TF_MODE
union float128 {
TFtype f;
diff --git a/libgcc/config/libbid/bid_inline_add.h b/libgcc/config/libbid/bid_inline_add.h
index 9ca41a2f89e..c353c7f5a33 100644
--- a/libgcc/config/libbid/bid_inline_add.h
+++ b/libgcc/config/libbid/bid_inline_add.h
@@ -26,31 +26,31 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
* Helper add functions (for fma)
*
* __BID_INLINE__ UINT64 get_add64(
- * UINT64 sign_x, int exponent_x, UINT64 coefficient_x,
- * UINT64 sign_y, int exponent_y, UINT64 coefficient_y,
+ * UINT64 sign_x, int exponent_x, UINT64 coefficient_x,
+ * UINT64 sign_y, int exponent_y, UINT64 coefficient_y,
* int rounding_mode)
*
* __BID_INLINE__ UINT64 get_add128(
- * UINT64 sign_x, int exponent_x, UINT64 coefficient_x,
- * UINT64 sign_y, int final_exponent_y, UINT128 CY,
+ * UINT64 sign_x, int exponent_x, UINT64 coefficient_x,
+ * UINT64 sign_y, int final_exponent_y, UINT128 CY,
* int extra_digits, int rounding_mode)
*
*****************************************************************************
*
* Algorithm description:
*
- * get_add64: same as BID64 add, but arguments are unpacked and there
+ * get_add64: same as BID64 add, but arguments are unpacked and there
* are no special case checks
*
- * get_add128: add 64-bit coefficient to 128-bit product (which contains
- * 16+extra_digits decimal digits),
+ * get_add128: add 64-bit coefficient to 128-bit product (which contains
+ * 16+extra_digits decimal digits),
* return BID64 result
- * - the exponents are compared and the two coefficients are
+ * - the exponents are compared and the two coefficients are
* properly aligned for addition/subtraction
* - multiple paths are needed
* - final result exponent is calculated and the lower term is
- * rounded first if necessary, to avoid manipulating
- * coefficients longer than 128 bits
+ * rounded first if necessary, to avoid manipulating
+ * coefficients longer than 128 bits
*
****************************************************************************/
@@ -67,7 +67,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
///////////////////////////////////////////////////////////////////////
//
-// get_add64() is essentially the same as bid_add(), except that
+// get_add64() is essentially the same as bid_add(), except that
// the arguments are unpacked
//
//////////////////////////////////////////////////////////////////////
@@ -327,13 +327,13 @@ get_add64 (UINT64 sign_x, int exponent_x, UINT64 coefficient_x,
amount = short_recip_scale[extra_digits];
C0_64 = CT.w[1] >> amount;
- // result coefficient
+ // result coefficient
C64 = C0_64 + coefficient_a;
// filter out difficult (corner) cases
- // the following test is equivalent to
- // ( (initial_coefficient_a + Ts) < P_ca &&
- // (initial_coefficient_a + Ts) > P_ca_m1 ),
- // which ensures the number of digits in coefficient_a does not change
+ // the following test is equivalent to
+ // ( (initial_coefficient_a + Ts) < P_ca &&
+ // (initial_coefficient_a + Ts) > P_ca_m1 ),
+ // which ensures the number of digits in coefficient_a does not change
// after adding (the appropriately scaled and rounded) coefficient_b
if ((UINT64) (C64 - 1000000000000000ull - 1) >
9000000000000000ull - 2) {
@@ -371,7 +371,7 @@ get_add64 (UINT64 sign_x, int exponent_x, UINT64 coefficient_x,
amount = short_recip_scale[extra_digits];
C0_64 = CT.w[1] >> amount;
- // result coefficient
+ // result coefficient
C64 = C0_64 + coefficient_a;
} else if (C64 <= 1000000000000000ull) {
// less than 16 digits in result
@@ -392,7 +392,7 @@ get_add64 (UINT64 sign_x, int exponent_x, UINT64 coefficient_x,
amount = short_recip_scale[extra_digits];
C0_64 = CT_new.w[1] >> amount;
- // result coefficient
+ // result coefficient
C64_new = C0_64 + coefficient_a;
if (C64_new < 10000000000000000ull) {
C64 = C64_new;
@@ -412,9 +412,9 @@ get_add64 (UINT64 sign_x, int exponent_x, UINT64 coefficient_x,
if (rmode == 0) //ROUNDING_TO_NEAREST
#endif
if (C64 & 1) {
- // check whether fractional part of initial_P/10^extra_digits
+ // check whether fractional part of initial_P/10^extra_digits
// is exactly .5
- // this is the same as fractional part of
+ // this is the same as fractional part of
// (initial_P + 0.5*10^extra_digits)/10^extra_digits is exactly zero
// get remainder
@@ -555,7 +555,7 @@ __bid_full_round64 (UINT64 sign, int exponent, UINT128 P,
if (rmode == 0) //ROUNDING_TO_NEAREST
#endif
if (C64 & 1) {
- // check whether fractional part of initial_P/10^extra_digits
+ // check whether fractional part of initial_P/10^extra_digits
// is exactly .5
// get remainder
@@ -666,7 +666,7 @@ __bid_full_round64_remainder (UINT64 sign, int exponent, UINT128 P,
if (rmode == 0) //ROUNDING_TO_NEAREST
#endif
if (!remainder_P && (C64 & 1)) {
- // check whether fractional part of initial_P/10^extra_digits
+ // check whether fractional part of initial_P/10^extra_digits
// is exactly .5
// get remainder
@@ -889,7 +889,7 @@ get_add128 (UINT64 sign_x, int exponent_x, UINT64 coefficient_x,
return __bid_full_round64 (sign_y, exponent_y, CT, extra_digits,
rounding_mode, fpsc);
}
- // diff_dec2+extra_digits is the number of digits to eliminate from
+ // diff_dec2+extra_digits is the number of digits to eliminate from
// argument CY
diff_dec2 = exponent_x - final_exponent_y;
@@ -1006,7 +1006,7 @@ get_add128 (UINT64 sign_x, int exponent_x, UINT64 coefficient_x,
CX.w[0] = (coefficient_x + sign_x) ^ sign_x;
CX.w[1] = sign_x;
- // check whether CY (rounded to 16 digits) and CX have
+ // check whether CY (rounded to 16 digits) and CX have
// any digits in the same position
diff_dec2 = final_exponent_y - exponent_x;
@@ -1224,7 +1224,7 @@ BID_normalize (UINT64 sign_z, int exponent_z,
//////////////////////////////////////////////////////////////////////////
//
-// 0*10^ey + cz*10^ez, eyX1) || (X1>X0)) ? 1 : 0; \
}
-// increment C128 and check for rounding overflow:
+// increment C128 and check for rounding overflow:
// if (C_128) = 10^34 then (C_128) = 10^33 and increment the exponent
#define INCREMENT(C_128, exp) \
{ \
@@ -191,8 +191,8 @@ UINT64 X1, X0=X; \
} \
}
// decrement C128 and check for rounding underflow, but only at the
-// boundary: if C_128 = 10^33 - 1 and exp > 0 then C_128 = 10^34 - 1
-// and decrement the exponent
+// boundary: if C_128 = 10^33 - 1 and exp > 0 then C_128 = 10^34 - 1
+// and decrement the exponent
#define DECREMENT(C_128, exp) \
{ \
C_128.w[0]--; \
@@ -322,7 +322,7 @@ UINT64 CXH, CXL, CYH, CYL, PL, PH, PM; \
\
(P) = PH + (PM>>32); \
}
-// get full 64x64bit product
+// get full 64x64bit product
//
#define __mul_64x64_to_128_full(P, CX, CY) \
{ \
@@ -1012,7 +1012,7 @@ get_BID64 (UINT64 sgn, int expon, UINT64 coeff, int rmode,
//
-// No overflow/underflow checking
+// No overflow/underflow checking
//
__BID_INLINE__ UINT64
fast_get_BID64 (UINT64 sgn, int expon, UINT64 coeff) {
@@ -1129,7 +1129,7 @@ fast_get_BID64_check_OF (UINT64 sgn, int expon, UINT64 coeff, int rmode,
//
-// No overflow/underflow checking
+// No overflow/underflow checking
// or checking for coefficients equal to 10^16 (after rounding)
//
__BID_INLINE__ UINT64
@@ -1222,7 +1222,7 @@ get_BID64_UF (UINT64 sgn, int expon, UINT64 coeff, UINT64 R, int rmode,
amount = recip_scale[extra_digits];
C64 = QH >> amount;
- //__shr_128(C128, Q_high, amount);
+ //__shr_128(C128, Q_high, amount);
#ifndef IEEE_ROUND_NEAREST_TIES_AWAY
#ifndef IEEE_ROUND_NEAREST
@@ -1301,7 +1301,7 @@ get_BID64_UF (UINT64 sgn, int expon, UINT64 coeff, UINT64 R, int rmode,
//
-// This pack macro doesnot check for coefficients above 2^53
+// This pack macro doesnot check for coefficients above 2^53
//
__BID_INLINE__ UINT64
get_BID64_small_mantissa (UINT64 sgn, int expon, UINT64 coeff,
@@ -1799,7 +1799,7 @@ unpack_BID128_value (UINT64 * psign_x, int *pexponent_x,
pcoefficient_x->w[1] = x.w[1] & SINFINITY_MASK64;
}
*pexponent_x = 0;
- return 0; // NaN or Infinity
+ return 0; // NaN or Infinity
}
coeff.w[0] = x.w[0];
@@ -1853,7 +1853,7 @@ unpack_BID128 (UINT64 * psign_x, int *pexponent_x,
pcoefficient_x->w[0] = 0;
}
*pexponent_x = 0;
- return 0; // NaN or Infinity
+ return 0; // NaN or Infinity
}
coeff.w[0] = px->w[0];
@@ -2060,8 +2060,8 @@ get_BID128 (UINT128 * pres, UINT64 sgn, int expon, UINT128 coeff,
//
-// Macro used for conversions from string
-// (no additional arguments given for rounding mode, status flags)
+// Macro used for conversions from string
+// (no additional arguments given for rounding mode, status flags)
//
__BID_INLINE__ UINT128 *
get_BID128_string (UINT128 * pres, UINT64 sgn, int expon, UINT128 coeff) {
@@ -2183,7 +2183,7 @@ unpack_BID32 (UINT32 * psign_x, int *pexponent_x,
}
//
-// General pack macro for BID32
+// General pack macro for BID32
//
__BID_INLINE__ UINT32
get_BID32 (UINT32 sgn, int expon, UINT64 coeff, int rmode,
diff --git a/libgcc/config/libbid/bid_round.c b/libgcc/config/libbid/bid_round.c
index 20482b5295e..7a9ee72fc3f 100644
--- a/libgcc/config/libbid/bid_round.c
+++ b/libgcc/config/libbid/bid_round.c
@@ -47,15 +47,15 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
* Note: assume invalid encodings are not passed to this function
*
* Round a number C with q decimal digits, represented as a binary integer
- * to q - x digits. Six different routines are provided for different values
- * of q. The maximum value of q used in the library is q = 3 * P - 1 where
- * P = 16 or P = 34 (so q <= 111 decimal digits).
+ * to q - x digits. Six different routines are provided for different values
+ * of q. The maximum value of q used in the library is q = 3 * P - 1 where
+ * P = 16 or P = 34 (so q <= 111 decimal digits).
* The partitioning is based on the following, where Kx is the scaled
* integer representing the value of 10^(-x) rounded up to a number of bits
* sufficient to ensure correct rounding:
*
* --------------------------------------------------------------------------
- * q x max. value of a max number min. number
+ * q x max. value of a max number min. number
* of bits in C of bits in Kx
* --------------------------------------------------------------------------
*
@@ -99,7 +99,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
* GROUP 6: 384 bits
* round384_97_115 ()
*
- * 97 [1,96] 10^97 - 1 < 2^322.23 323 324
+ * 97 [1,96] 10^97 - 1 < 2^322.23 323 324
* ... ... ... ... ...
* 115 [1,114] 10^115 - 1 < 2^382.03 383 384
*
@@ -126,7 +126,7 @@ round64_2_18 (int q,
int ind;
// Note:
- // In round128_2_18() positive numbers with 2 <= q <= 18 will be
+ // In round128_2_18() positive numbers with 2 <= q <= 18 will be
// rounded to nearest only for 1 <= x <= 3:
// x = 1 or x = 2 when q = 17
// x = 2 or x = 3 when q = 18
@@ -229,7 +229,7 @@ round128_19_38 (int q,
int ind;
// Note:
- // In round128_19_38() positive numbers with 19 <= q <= 38 will be
+ // In round128_19_38() positive numbers with 19 <= q <= 38 will be
// rounded to nearest only for 1 <= x <= 23:
// x = 3 or x = 4 when q = 19
// x = 4 or x = 5 when q = 20
@@ -249,11 +249,11 @@ round128_19_38 (int q,
// round a number C with q decimal digits, 19 <= q <= 38
// to q - x digits, 1 <= x <= 37
// C = C + 1/2 * 10^x where the result C fits in 128 bits
- // (because the largest value is 99999999999999999999999999999999999999 +
+ // (because the largest value is 99999999999999999999999999999999999999 +
// 5000000000000000000000000000000000000 =
// 0x4efe43b0c573e7e68a043d8fffffffff, which fits is 127 bits)
- ind = x - 1; // 0 <= ind <= 36
+ ind = x - 1; // 0 <= ind <= 36
if (ind <= 18) { // if 0 <= ind <= 18
tmp64 = C.w[0];
C.w[0] = C.w[0] + midpoint64[ind];
@@ -275,7 +275,7 @@ round128_19_38 (int q,
// Cstar = P256 >> Ex
// fstar = low Ex bits of P256
shift = Ex128m128[ind]; // in [2, 63] but have to consider two cases
- if (ind <= 18) { // if 0 <= ind <= 18
+ if (ind <= 18) { // if 0 <= ind <= 18
Cstar.w[0] = (P256.w[2] >> shift) | (P256.w[3] << (64 - shift));
Cstar.w[1] = (P256.w[3] >> shift);
fstar.w[0] = P256.w[0];
@@ -410,7 +410,7 @@ round192_39_57 (int q,
int ind;
// Note:
- // In round192_39_57() positive numbers with 39 <= q <= 57 will be
+ // In round192_39_57() positive numbers with 39 <= q <= 57 will be
// rounded to nearest only for 5 <= x <= 42:
// x = 23 or x = 24 or x = 5 or x = 6 when q = 39
// x = 24 or x = 25 or x = 6 or x = 7 when q = 40
@@ -478,7 +478,7 @@ round192_39_57 (int q,
// Cstar = P384 >> Ex
// fstar = low Ex bits of P384
shift = Ex192m192[ind]; // in [1, 63] but have to consider three cases
- if (ind <= 18) { // if 0 <= ind <= 18
+ if (ind <= 18) { // if 0 <= ind <= 18
Cstar.w[2] = (P384.w[5] >> shift);
Cstar.w[1] = (P384.w[5] << (64 - shift)) | (P384.w[4] >> shift);
Cstar.w[0] = (P384.w[4] << (64 - shift)) | (P384.w[3] >> shift);
@@ -676,7 +676,7 @@ round256_58_76 (int q,
int ind;
// Note:
- // In round256_58_76() positive numbers with 58 <= q <= 76 will be
+ // In round256_58_76() positive numbers with 58 <= q <= 76 will be
// rounded to nearest only for 24 <= x <= 61:
// x = 42 or x = 43 or x = 24 or x = 25 when q = 58
// x = 43 or x = 44 or x = 25 or x = 26 when q = 59
@@ -695,7 +695,7 @@ round256_58_76 (int q,
// (because the largest value is 9999999999999999999999999999999999999999
// 999999999999999999999999999999999999 + 500000000000000000000000000
// 000000000000000000000000000000000000000000000000 =
- // 0x1736ca15d27a56cae15cf0e7b403d1f2bd6ebb0a50dc83ffffffffffffffffff,
+ // 0x1736ca15d27a56cae15cf0e7b403d1f2bd6ebb0a50dc83ffffffffffffffffff,
// which fits in 253 bits)
ind = x - 1; // 0 <= ind <= 74
if (ind <= 18) { // if 0 <= ind <= 18
@@ -790,7 +790,7 @@ round256_58_76 (int q,
// Cstar = P512 >> Ex
// fstar = low Ex bits of P512
shift = Ex256m256[ind]; // in [0, 63] but have to consider four cases
- if (ind <= 18) { // if 0 <= ind <= 18
+ if (ind <= 18) { // if 0 <= ind <= 18
Cstar.w[3] = (P512.w[7] >> shift);
Cstar.w[2] = (P512.w[7] << (64 - shift)) | (P512.w[6] >> shift);
Cstar.w[1] = (P512.w[6] << (64 - shift)) | (P512.w[5] >> shift);
diff --git a/libgcc/config/libbid/bid_sqrt_macros.h b/libgcc/config/libbid/bid_sqrt_macros.h
index 496ce6f0393..0fe8ad5d8cb 100644
--- a/libgcc/config/libbid/bid_sqrt_macros.h
+++ b/libgcc/config/libbid/bid_sqrt_macros.h
@@ -282,7 +282,7 @@ long_sqrt128 (UINT128 * pCS, UINT256 C256) {
if (ES.w[0])
ES.w[1]--;
- // A*RS*eps
+ // A*RS*eps
__mul_128x128_to_256 (AE, ES, ARS1);
__add_carry_out (S.w[0], CY, ARS00.w[0], AE.w[0]);
@@ -290,7 +290,7 @@ long_sqrt128 (UINT128 * pCS, UINT256 C256) {
__add_carry_in_out (S.w[2], CY, ARS00.w[2], AE.w[2], CY);
S.w[3] = ARS00.w[3] + AE.w[3] + CY;
} else {
- // A*RS*eps
+ // A*RS*eps
__mul_128x128_to_256 (AE, ES, ARS1);
__sub_borrow_out (S.w[0], CY, ARS00.w[0], AE.w[0]);
diff --git a/libgcc/config/lm32/_divsi3.c b/libgcc/config/lm32/_divsi3.c
index e2063574973..15487538ee7 100644
--- a/libgcc/config/lm32/_divsi3.c
+++ b/libgcc/config/lm32/_divsi3.c
@@ -1,22 +1,22 @@
/* _divsi3 for Lattice Mico32.
- Contributed by Jon Beniston
-
+ Contributed by Jon Beniston
+
Copyright (C) 2009-2024 Free Software Foundation, Inc.
This file is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3, or (at your option) any
later version.
-
+
This file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
-
+
Under Section 7 of GPL version 3, you are granted additional
permissions described in the GCC Runtime Library Exception, version
3.1, as published by the Free Software Foundation.
-
+
You should have received a copy of the GNU General Public License and
a copy of the GCC Runtime Library Exception along with this program;
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
diff --git a/libgcc/config/lm32/_modsi3.c b/libgcc/config/lm32/_modsi3.c
index 0e40abeec62..d00b23186e5 100644
--- a/libgcc/config/lm32/_modsi3.c
+++ b/libgcc/config/lm32/_modsi3.c
@@ -1,22 +1,22 @@
/* _modsi3 for Lattice Mico32.
- Contributed by Jon Beniston
-
+ Contributed by Jon Beniston
+
Copyright (C) 2009-2024 Free Software Foundation, Inc.
This file is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3, or (at your option) any
later version.
-
+
This file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
-
+
Under Section 7 of GPL version 3, you are granted additional
permissions described in the GCC Runtime Library Exception, version
3.1, as published by the Free Software Foundation.
-
+
You should have received a copy of the GNU General Public License and
a copy of the GCC Runtime Library Exception along with this program;
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
diff --git a/libgcc/config/lm32/_mulsi3.c b/libgcc/config/lm32/_mulsi3.c
index 62fe8917f77..8594ee628f7 100644
--- a/libgcc/config/lm32/_mulsi3.c
+++ b/libgcc/config/lm32/_mulsi3.c
@@ -1,22 +1,22 @@
/* _mulsi3 for Lattice Mico32.
- Contributed by Jon Beniston
-
+ Contributed by Jon Beniston
+
Copyright (C) 2009-2024 Free Software Foundation, Inc.
This file is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3, or (at your option) any
later version.
-
+
This file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
-
+
Under Section 7 of GPL version 3, you are granted additional
permissions described in the GCC Runtime Library Exception, version
3.1, as published by the Free Software Foundation.
-
+
You should have received a copy of the GNU General Public License and
a copy of the GCC Runtime Library Exception along with this program;
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
diff --git a/libgcc/config/lm32/_udivmodsi4.c b/libgcc/config/lm32/_udivmodsi4.c
index b83dfe79fc9..ed8bcce96b5 100644
--- a/libgcc/config/lm32/_udivmodsi4.c
+++ b/libgcc/config/lm32/_udivmodsi4.c
@@ -1,22 +1,22 @@
/* _udivmodsi4 for Lattice Mico32.
- Contributed by Jon Beniston
-
+ Contributed by Jon Beniston
+
Copyright (C) 2009-2024 Free Software Foundation, Inc.
This file is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3, or (at your option) any
later version.
-
+
This file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
-
+
Under Section 7 of GPL version 3, you are granted additional
permissions described in the GCC Runtime Library Exception, version
3.1, as published by the Free Software Foundation.
-
+
You should have received a copy of the GNU General Public License and
a copy of the GCC Runtime Library Exception along with this program;
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
diff --git a/libgcc/config/lm32/_udivsi3.c b/libgcc/config/lm32/_udivsi3.c
index 0b28fa60d88..bf7cb424d24 100644
--- a/libgcc/config/lm32/_udivsi3.c
+++ b/libgcc/config/lm32/_udivsi3.c
@@ -1,22 +1,22 @@
/* _udivsi3 for Lattice Mico32.
- Contributed by Jon Beniston
-
+ Contributed by Jon Beniston
+
Copyright (C) 2009-2024 Free Software Foundation, Inc.
This file is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3, or (at your option) any
later version.
-
+
This file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
-
+
Under Section 7 of GPL version 3, you are granted additional
permissions described in the GCC Runtime Library Exception, version
3.1, as published by the Free Software Foundation.
-
+
You should have received a copy of the GNU General Public License and
a copy of the GCC Runtime Library Exception along with this program;
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
diff --git a/libgcc/config/lm32/_umodsi3.c b/libgcc/config/lm32/_umodsi3.c
index b254da2e284..5b16e0ae577 100644
--- a/libgcc/config/lm32/_umodsi3.c
+++ b/libgcc/config/lm32/_umodsi3.c
@@ -1,22 +1,22 @@
/* _umodsi3 for Lattice Mico32.
- Contributed by Jon Beniston
-
+ Contributed by Jon Beniston
+
Copyright (C) 2009-2024 Free Software Foundation, Inc.
This file is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3, or (at your option) any
later version.
-
+
This file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
-
+
Under Section 7 of GPL version 3, you are granted additional
permissions described in the GCC Runtime Library Exception, version
3.1, as published by the Free Software Foundation.
-
+
You should have received a copy of the GNU General Public License and
a copy of the GCC Runtime Library Exception along with this program;
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
diff --git a/libgcc/config/lm32/libgcc_lm32.h b/libgcc/config/lm32/libgcc_lm32.h
index 55e1d954568..e057af24e96 100644
--- a/libgcc/config/lm32/libgcc_lm32.h
+++ b/libgcc/config/lm32/libgcc_lm32.h
@@ -1,29 +1,29 @@
/* Integer arithmetic support for Lattice Mico32.
- Contributed by Jon Beniston
-
+ Contributed by Jon Beniston
+
Copyright (C) 2009-2024 Free Software Foundation, Inc.
This file is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3, or (at your option) any
later version.
-
+
This file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
-
+
Under Section 7 of GPL version 3, you are granted additional
permissions described in the GCC Runtime Library Exception, version
3.1, as published by the Free Software Foundation.
-
+
You should have received a copy of the GNU General Public License and
a copy of the GCC Runtime Library Exception along with this program;
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
. */
#ifndef LIBGCC_LM32_H
-#define LIBGCC_LM32_H
+#define LIBGCC_LM32_H
/* Types. */
diff --git a/libgcc/config/m32r/initfini.c b/libgcc/config/m32r/initfini.c
index 77d5af5be50..2866a6da34b 100644
--- a/libgcc/config/m32r/initfini.c
+++ b/libgcc/config/m32r/initfini.c
@@ -50,7 +50,7 @@ static func_ptr __DTOR_LIST__[1]
= { (func_ptr) (-1) };
/* Run all the global destructors on exit from the program. */
-
+
/* Some systems place the number of pointers in the first word of the
table. On SVR4 however, that word is -1. In all cases, the table is
null-terminated. On SVR4, we start from the beginning of the list and
diff --git a/libgcc/config/m68k/fpgnulib.c b/libgcc/config/m68k/fpgnulib.c
index 04f62998f6e..70bfd442d75 100644
--- a/libgcc/config/m68k/fpgnulib.c
+++ b/libgcc/config/m68k/fpgnulib.c
@@ -79,7 +79,7 @@
#define SIGNX(fp) ((fp.l.upper) & SIGNBIT)
#define MANTXMASK 0x7FFFFFFFL /* mask of upper part */
-union double_long
+union double_long
{
double d;
struct {
@@ -269,7 +269,7 @@ __extendsfdf2 (float a1)
dl.l.upper |= exp << 20;
dl.l.upper |= mant >> 3;
dl.l.lower = mant << 29;
-
+
return dl.d;
}
@@ -363,13 +363,13 @@ __fixdfsi (double a1)
dl1.d = a1;
- if (!dl1.l.upper && !dl1.l.lower)
+ if (!dl1.l.upper && !dl1.l.lower)
return 0;
exp = EXPD (dl1) - EXCESSD - 31;
l = MANTD (dl1);
- if (exp > 0)
+ if (exp > 0)
{
/* Return largest integer. */
return SIGND (dl1) ? 0x80000000L : 0x7fffffffL;
diff --git a/libgcc/config/microblaze/divsi3_table.c b/libgcc/config/microblaze/divsi3_table.c
index 2caf4bc59b0..a0a02be9bf0 100644
--- a/libgcc/config/microblaze/divsi3_table.c
+++ b/libgcc/config/microblaze/divsi3_table.c
@@ -1,5 +1,5 @@
/* Table for software lookup divide for Xilinx MicroBlaze.
-
+
Copyright (C) 2009-2024 Free Software Foundation, Inc.
Contributed by Michael Eager .
@@ -23,40 +23,40 @@
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
. */
-
+
unsigned char _divsi3_table[] =
{
- 0, 0/1, 0/2, 0/3, 0/4, 0/5, 0/6, 0/7,
+ 0, 0/1, 0/2, 0/3, 0/4, 0/5, 0/6, 0/7,
0/8, 0/9, 0/10, 0/11, 0/12, 0/13, 0/14, 0/15,
- 0, 1/1, 1/2, 1/3, 1/4, 1/5, 1/6, 1/7,
+ 0, 1/1, 1/2, 1/3, 1/4, 1/5, 1/6, 1/7,
1/8, 1/9, 1/10, 1/11, 1/12, 1/13, 1/14, 1/15,
- 0, 2/1, 2/2, 2/3, 2/4, 2/5, 2/6, 2/7,
+ 0, 2/1, 2/2, 2/3, 2/4, 2/5, 2/6, 2/7,
2/8, 2/9, 2/10, 2/11, 2/12, 2/13, 2/14, 2/15,
- 0, 3/1, 3/2, 3/3, 3/4, 3/5, 3/6, 3/7,
+ 0, 3/1, 3/2, 3/3, 3/4, 3/5, 3/6, 3/7,
3/8, 3/9, 3/10, 3/11, 3/12, 3/13, 3/14, 3/15,
- 0, 4/1, 4/2, 4/3, 4/4, 4/5, 4/6, 4/7,
+ 0, 4/1, 4/2, 4/3, 4/4, 4/5, 4/6, 4/7,
4/8, 4/9, 4/10, 4/11, 4/12, 4/13, 4/14, 4/15,
- 0, 5/1, 5/2, 5/3, 5/4, 5/5, 5/6, 5/7,
+ 0, 5/1, 5/2, 5/3, 5/4, 5/5, 5/6, 5/7,
5/8, 5/9, 5/10, 5/11, 5/12, 5/13, 5/14, 5/15,
- 0, 6/1, 6/2, 6/3, 6/4, 6/5, 6/6, 6/7,
+ 0, 6/1, 6/2, 6/3, 6/4, 6/5, 6/6, 6/7,
6/8, 6/9, 6/10, 6/11, 6/12, 6/13, 6/14, 6/15,
- 0, 7/1, 7/2, 7/3, 7/4, 7/5, 7/6, 7/7,
+ 0, 7/1, 7/2, 7/3, 7/4, 7/5, 7/6, 7/7,
7/8, 7/9, 7/10, 7/11, 7/12, 7/13, 7/14, 7/15,
- 0, 8/1, 8/2, 8/3, 8/4, 8/5, 8/6, 8/7,
+ 0, 8/1, 8/2, 8/3, 8/4, 8/5, 8/6, 8/7,
8/8, 8/9, 8/10, 8/11, 8/12, 8/13, 8/14, 8/15,
- 0, 9/1, 9/2, 9/3, 9/4, 9/5, 9/6, 9/7,
+ 0, 9/1, 9/2, 9/3, 9/4, 9/5, 9/6, 9/7,
9/8, 9/9, 9/10, 9/11, 9/12, 9/13, 9/14, 9/15,
- 0, 10/1, 10/2, 10/3, 10/4, 10/5, 10/6, 10/7,
+ 0, 10/1, 10/2, 10/3, 10/4, 10/5, 10/6, 10/7,
10/8, 10/9, 10/10, 10/11, 10/12, 10/13, 10/14, 10/15,
- 0, 11/1, 11/2, 11/3, 11/4, 11/5, 11/6, 11/7,
+ 0, 11/1, 11/2, 11/3, 11/4, 11/5, 11/6, 11/7,
11/8, 11/9, 11/10, 11/11, 11/12, 11/13, 11/14, 11/15,
- 0, 12/1, 12/2, 12/3, 12/4, 12/5, 12/6, 12/7,
+ 0, 12/1, 12/2, 12/3, 12/4, 12/5, 12/6, 12/7,
12/8, 12/9, 12/10, 12/11, 12/12, 12/13, 12/14, 12/15,
- 0, 13/1, 13/2, 13/3, 13/4, 13/5, 13/6, 13/7,
+ 0, 13/1, 13/2, 13/3, 13/4, 13/5, 13/6, 13/7,
13/8, 13/9, 13/10, 13/11, 13/12, 13/13, 13/14, 13/15,
- 0, 14/1, 14/2, 14/3, 14/4, 14/5, 14/6, 14/7,
+ 0, 14/1, 14/2, 14/3, 14/4, 14/5, 14/6, 14/7,
14/8, 14/9, 14/10, 14/11, 14/12, 14/13, 14/14, 14/15,
- 0, 15/1, 15/2, 15/3, 15/4, 15/5, 15/6, 15/7,
+ 0, 15/1, 15/2, 15/3, 15/4, 15/5, 15/6, 15/7,
15/8, 15/9, 15/10, 15/11, 15/12, 15/13, 15/14, 15/15,
};
diff --git a/libgcc/config/msp430/mpy.c b/libgcc/config/msp430/mpy.c
index 3842d86fc35..6cb30c80ce1 100644
--- a/libgcc/config/msp430/mpy.c
+++ b/libgcc/config/msp430/mpy.c
@@ -20,7 +20,7 @@ __mulhi3 (int x, int y)
rv += x;
x <<= 1;
y >>= 1;
- }
+ }
return neg ? - rv : rv;
}
diff --git a/libgcc/config/nios2/lib2-mul.c b/libgcc/config/nios2/lib2-mul.c
index 4d6abea31e3..f5d1eb0a5ac 100644
--- a/libgcc/config/nios2/lib2-mul.c
+++ b/libgcc/config/nios2/lib2-mul.c
@@ -29,14 +29,14 @@ __mulsi3 (SItype a, SItype b)
{
SItype res = 0;
USItype cnt = a;
-
+
while (cnt)
{
if (cnt & 1)
- res += b;
+ res += b;
b <<= 1;
cnt >>= 1;
}
-
+
return res;
}
diff --git a/libgcc/config/nios2/lib2-nios2.h b/libgcc/config/nios2/lib2-nios2.h
index 3d2e3b37627..9a17d72cc6f 100644
--- a/libgcc/config/nios2/lib2-nios2.h
+++ b/libgcc/config/nios2/lib2-nios2.h
@@ -1,5 +1,5 @@
/* Integer arithmetic support for Altera Nios II.
-
+
Copyright (C) 2012-2024 Free Software Foundation, Inc.
Contributed by Altera and Mentor Graphics, Inc.
@@ -7,16 +7,16 @@
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3, or (at your option) any
later version.
-
+
This file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
-
+
Under Section 7 of GPL version 3, you are granted additional
permissions described in the GCC Runtime Library Exception, version
3.1, as published by the Free Software Foundation.
-
+
You should have received a copy of the GNU General Public License and
a copy of the GCC Runtime Library Exception along with this program;
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
diff --git a/libgcc/config/nios2/linux-atomic.c b/libgcc/config/nios2/linux-atomic.c
index 26308ce64c0..9bb25575fbc 100644
--- a/libgcc/config/nios2/linux-atomic.c
+++ b/libgcc/config/nios2/linux-atomic.c
@@ -160,7 +160,7 @@ int HIDDEN
__sync_val_compare_and_swap_4 (int *ptr, int oldval, int newval)
{
int actual_oldval, fail;
-
+
while (1)
{
actual_oldval = *ptr;
@@ -169,7 +169,7 @@ __sync_val_compare_and_swap_4 (int *ptr, int oldval, int newval)
return actual_oldval;
fail = __kernel_cmpxchg (actual_oldval, newval, ptr);
-
+
if (!fail)
return oldval;
}
diff --git a/libgcc/config/nios2/linux-unwind.h b/libgcc/config/nios2/linux-unwind.h
index 3fee5b6fa18..0556869384a 100644
--- a/libgcc/config/nios2/linux-unwind.h
+++ b/libgcc/config/nios2/linux-unwind.h
@@ -86,17 +86,17 @@ nios2_fallback_frame_state (struct _Unwind_Context *context,
/* The sequential registers. */
for (i = 1; i < 24; i++)
NIOS2_REG (i, gregs[i-1]);
-
+
/* The random registers. The kernel stores these in a funny order
in the gregs array. */
NIOS2_REG (RA_REGNO, gregs[23]);
NIOS2_REG (FP_REGNO, gregs[24]);
NIOS2_REG (GP_REGNO, gregs[25]);
NIOS2_REG (EA_REGNO, gregs[27]);
-
+
fs->retaddr_column = EA_REGNO;
fs->signal_frame = 1;
-
+
return _URC_NO_REASON;
}
#undef NIOS2_REG
diff --git a/libgcc/config/pa/fptr.c b/libgcc/config/pa/fptr.c
index 03cec14f1d4..90f520ff1ae 100644
--- a/libgcc/config/pa/fptr.c
+++ b/libgcc/config/pa/fptr.c
@@ -67,7 +67,7 @@ _dl_read_access_allowed (unsigned int addr)
/* __canonicalize_funcptr_for_compare must be hidden so that it is not
placed in the dynamic symbol table. Like millicode functions, it
- must be linked into all binaries in order access the got table of
+ must be linked into all binaries in order access the got table of
that binary. However, we don't use the millicode calling convention
and the routine must be a normal function so that it can be compiled
as pic code. */
diff --git a/libgcc/config/pa/linux-atomic.c b/libgcc/config/pa/linux-atomic.c
index 14e09c4c06f..03ebccfc070 100644
--- a/libgcc/config/pa/linux-atomic.c
+++ b/libgcc/config/pa/linux-atomic.c
@@ -24,9 +24,9 @@ a copy of the GCC Runtime Library Exception along with this program;
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
. */
-#define EFAULT 14
+#define EFAULT 14
#define EBUSY 16
-#define ENOSYS 251
+#define ENOSYS 251
#define _ASM_EFAULT "-14"
@@ -306,7 +306,7 @@ __sync_val_compare_and_swap_4 (volatile void *ptr, unsigned int oldval,
{
long fail;
unsigned int actual_oldval;
-
+
while (1)
{
actual_oldval = atomic_load_4 ((volatile unsigned int *)ptr);
@@ -315,7 +315,7 @@ __sync_val_compare_and_swap_4 (volatile void *ptr, unsigned int oldval,
return actual_oldval;
fail = __kernel_cmpxchg (ptr, actual_oldval, newval);
-
+
if (__builtin_expect (!fail, 1))
return actual_oldval;
}
diff --git a/libgcc/config/pa/linux-unwind.h b/libgcc/config/pa/linux-unwind.h
index 3b823f690f6..107f2384f92 100644
--- a/libgcc/config/pa/linux-unwind.h
+++ b/libgcc/config/pa/linux-unwind.h
@@ -49,8 +49,8 @@ pa32_read_access_ok (void *p)
In 2.4, the signal trampoline is 4 words, and (CONTEXT)->ra should
point directly at the beginning of the trampoline and struct rt_sigframe.
- In <= 2.6.5-rc2-pa3, the signal trampoline is 9 words, and
- (CONTEXT)->ra points at the 4th word in the trampoline structure. This
+ In <= 2.6.5-rc2-pa3, the signal trampoline is 9 words, and
+ (CONTEXT)->ra points at the 4th word in the trampoline structure. This
is wrong, it should point at the 5th word. This is fixed in 2.6.5-rc2-pa4.
To detect these cases, we first take (CONTEXT)->ra, align it to 64-bytes
diff --git a/libgcc/config/pa/quadlib.c b/libgcc/config/pa/quadlib.c
index 9ecc8e09468..ca193330da3 100644
--- a/libgcc/config/pa/quadlib.c
+++ b/libgcc/config/pa/quadlib.c
@@ -79,7 +79,7 @@ _U_Qfne (long double a, long double b)
{
return (_U_Qfcmp (a, b, QCMP_EQ) == 0);
}
-
+
int
_U_Qfgt (long double a, long double b)
{
diff --git a/libgcc/config/riscv/atomic.c b/libgcc/config/riscv/atomic.c
index bb5c33dfe2e..d477edc635d 100644
--- a/libgcc/config/riscv/atomic.c
+++ b/libgcc/config/riscv/atomic.c
@@ -1,5 +1,5 @@
/* Legacy sub-word atomics for RISC-V.
-
+
Copyright (C) 2016-2024 Free Software Foundation, Inc.
This file is part of GCC.
diff --git a/libgcc/config/rl78/vregs.h b/libgcc/config/rl78/vregs.h
index f1bc5c24761..5a7edbf90a7 100644
--- a/libgcc/config/rl78/vregs.h
+++ b/libgcc/config/rl78/vregs.h
@@ -60,7 +60,7 @@ r23 = 0xffeef
.type \name , @function
\name:
.endm
-
+
/* Start a function in its own section, so that it
can be subject to linker garbage collection. */
.macro START_FUNC name
@@ -68,12 +68,12 @@ r23 = 0xffeef
START_ANOTHER_FUNC \name
.endm
-.macro END_ANOTHER_FUNC name
+.macro END_ANOTHER_FUNC name
.size \name , . - \name
.endm
/* End the function. Set the size. */
-.macro END_FUNC name
+.macro END_FUNC name
END_ANOTHER_FUNC \name
.popsection
.endm
diff --git a/libgcc/config/rs6000/aix-unwind.h b/libgcc/config/rs6000/aix-unwind.h
index 4c053477c92..f634ea7f930 100644
--- a/libgcc/config/rs6000/aix-unwind.h
+++ b/libgcc/config/rs6000/aix-unwind.h
@@ -110,7 +110,7 @@ typedef struct {
uint pad1 [4];
vstate_t vstate;
char bumper [BUMPER_SIZE];
- int mark;
+ int mark;
} extended_context_t;
typedef struct {
@@ -160,7 +160,7 @@ ucontext_for (struct _Unwind_Context *context)
switch (*(ra + 18))
{
/* AIX 5.2 */
- case 0x835a0520: /* lwz r26,1312(r26) */
+ case 0x835a0520: /* lwz r26,1312(r26) */
return (ucontext_t *)(context->cfa + 0x70);
/* AIX 5.3 */
diff --git a/libgcc/config/rs6000/darwin-asm.h b/libgcc/config/rs6000/darwin-asm.h
index 9af56e02a74..9cb2e783bec 100644
--- a/libgcc/config/rs6000/darwin-asm.h
+++ b/libgcc/config/rs6000/darwin-asm.h
@@ -2,17 +2,17 @@
* assembly files.
*
* Copyright (C) 2004-2024 Free Software Foundation, Inc.
- *
+ *
* This file is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 3, or (at your option) any
* later version.
- *
+ *
* This file is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
- *
+ *
* Under Section 7 of GPL version 3, you are granted additional
* permissions described in the GCC Runtime Library Exception, version
* 3.1, as published by the Free Software Foundation.
@@ -21,7 +21,7 @@
* a copy of the GCC Runtime Library Exception along with this program;
* see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
* .
- */
+ */
/* These are donated from /usr/include/architecture/ppc . */
diff --git a/libgcc/config/rs6000/darwin-crt2.c b/libgcc/config/rs6000/darwin-crt2.c
index 4cd8e3c2439..5cd57b87219 100644
--- a/libgcc/config/rs6000/darwin-crt2.c
+++ b/libgcc/config/rs6000/darwin-crt2.c
@@ -59,10 +59,10 @@ typedef struct _Sinfo_Node {
} _Tinfo_Node ;
/* KeyMgr 3.x is the first one supporting GCC3 stuff natively. */
-#define KEYMGR_API_MAJOR_GCC3 3
+#define KEYMGR_API_MAJOR_GCC3 3
/* ... with these keys. */
#define KEYMGR_GCC3_LIVE_IMAGE_LIST 301 /* loaded images */
-#define KEYMGR_GCC3_DW2_OBJ_LIST 302 /* Dwarf2 object list */
+#define KEYMGR_GCC3_DW2_OBJ_LIST 302 /* Dwarf2 object list */
/* Node of KEYMGR_GCC3_LIVE_IMAGE_LIST. Info about each resident image. */
struct live_images {
@@ -79,15 +79,15 @@ struct live_images {
/* These routines are used only on Darwin versions before 10.2.
- Later versions have equivalent code in the system.
+ Later versions have equivalent code in the system.
Eventually, they might go away, although it might be a long time... */
-static void darwin_unwind_dyld_remove_image_hook
+static void darwin_unwind_dyld_remove_image_hook
(struct mach_header *m, unsigned long s);
-static void darwin_unwind_dyld_remove_image_hook
+static void darwin_unwind_dyld_remove_image_hook
(struct mach_header *m, unsigned long s);
extern void __darwin_gcc3_preregister_frame_info (void);
-
+
static void
darwin_unwind_dyld_add_image_hook (struct mach_header *mh, unsigned long slide)
{
diff --git a/libgcc/config/rs6000/darwin-fallback.c b/libgcc/config/rs6000/darwin-fallback.c
index 4e8a61da188..274a66c4027 100644
--- a/libgcc/config/rs6000/darwin-fallback.c
+++ b/libgcc/config/rs6000/darwin-fallback.c
@@ -72,7 +72,7 @@ interpret_libc (reg_unit gprs[32], struct _Unwind_Context *context)
/* For each supported Libc, we have to track the code flow
all the way back into the kernel.
-
+
This code is believed to support all released Libc/Libsystem builds since
Jaguar 6C115, including all the security updates. To be precise,
@@ -84,7 +84,7 @@ interpret_libc (reg_unit gprs[32], struct _Unwind_Context *context)
262~1 63~32 6I34-6I35
262~1 63~64 6L29-6L60
262.4.1~1 63~84 6L123-6R172
-
+
320~1 71~101 7B85-7D28
320~1 71~266 7F54-7F56
320~1 71~288 7F112
@@ -92,7 +92,7 @@ interpret_libc (reg_unit gprs[32], struct _Unwind_Context *context)
320.1.3~1 71.1.1~29 7H60-7H105
320.1.3~1 71.1.1~30 7H110-7H113
320.1.3~1 71.1.1~31 7H114
-
+
That's a big table! It would be insane to try to keep track of
every little detail, so we just read the code itself and do what
it would do.
@@ -101,7 +101,7 @@ interpret_libc (reg_unit gprs[32], struct _Unwind_Context *context)
for (;;)
{
uint32_t ins = *pc++;
-
+
if ((ins & 0xFC000003) == 0x48000000) /* b instruction */
{
pc += ((((int32_t) ins & 0x3FFFFFC) ^ 0x2000000) - 0x2000004) / 4;
@@ -128,7 +128,7 @@ interpret_libc (reg_unit gprs[32], struct _Unwind_Context *context)
}
if ((ins & 0xFC0007FF) == 0x7C000378) /* or, including mr */
{
- gprs [ins >> 16 & 0x1F] = (gprs [ins >> 11 & 0x1F]
+ gprs [ins >> 16 & 0x1F] = (gprs [ins >> 11 & 0x1F]
| gprs [ins >> 21 & 0x1F]);
continue;
}
@@ -248,7 +248,7 @@ interpret_libc (reg_unit gprs[32], struct _Unwind_Context *context)
#define UC_DUAL 50
#define UC_DUAL_VEC 55
-struct gcc_ucontext
+struct gcc_ucontext
{
int onstack;
sigset_t sigmask;
@@ -260,7 +260,7 @@ struct gcc_ucontext
struct gcc_mcontext32 *mcontext;
};
-struct gcc_float_vector_state
+struct gcc_float_vector_state
{
double fpregs[32];
uint32_t fpscr_pad;
@@ -332,12 +332,12 @@ handle_syscall (_Unwind_FrameState *fs, const reg_unit gprs[32],
_Unwind_Ptr new_cfa;
int i;
static _Unwind_Ptr return_addr;
-
+
/* Yay! We're in a Libc that we understand, and it's made a
system call. In Jaguar, this is a direct system call with value 103;
in Panther and Tiger it is a SYS_syscall call for system call number 184,
and in Leopard it is a direct syscall with number 184. */
-
+
if (gprs[0] == 0x67 /* SYS_SIGRETURN */)
{
uctx = (struct gcc_ucontext *) gprs[3];
@@ -387,7 +387,7 @@ handle_syscall (_Unwind_FrameState *fs, const reg_unit gprs[32],
float_vector_state = &m64->fvs;
new_cfa = m64->gpr[1][1];
-
+
set_offset (R_CR2, &m64->cr);
for (i = 0; i < 32; i++)
set_offset (i, m64->gpr[i] + 1);
@@ -396,7 +396,7 @@ handle_syscall (_Unwind_FrameState *fs, const reg_unit gprs[32],
set_offset (R_CTR, m64->ctr + 1);
if (is_vector)
set_offset (R_VRSAVE, &m64->vrsave);
-
+
/* Sometimes, srr0 points to the instruction that caused the exception,
and sometimes to the next instruction to be executed; we want
the latter. */
@@ -413,7 +413,7 @@ handle_syscall (_Unwind_FrameState *fs, const reg_unit gprs[32],
int i;
float_vector_state = &m->fvs;
-
+
new_cfa = m->gpr[1];
set_offset (R_CR2, &m->cr);
@@ -440,7 +440,7 @@ handle_syscall (_Unwind_FrameState *fs, const reg_unit gprs[32],
fs->regs.cfa_how = CFA_REG_OFFSET;
fs->regs.cfa_reg = __LIBGCC_STACK_POINTER_REGNUM__;
fs->regs.cfa_offset = new_cfa - old_cfa;;
-
+
/* The choice of column for the return address is somewhat tricky.
Fortunately, the actual choice is private to this file, and
the space it's reserved from is the GCC register space, not the
@@ -455,7 +455,7 @@ handle_syscall (_Unwind_FrameState *fs, const reg_unit gprs[32],
for (i = 0; i < 32; i++)
set_offset (32 + i, float_vector_state->fpregs + i);
set_offset (R_SPEFSCR, &float_vector_state->fpscr);
-
+
if (is_vector)
{
for (i = 0; i < 32; i++)
diff --git a/libgcc/config/rs6000/ibm-ldouble.c b/libgcc/config/rs6000/ibm-ldouble.c
index 83873d43318..50e99f7fea5 100644
--- a/libgcc/config/rs6000/ibm-ldouble.c
+++ b/libgcc/config/rs6000/ibm-ldouble.c
@@ -177,7 +177,7 @@ IBM128_TYPE
__gcc_qmul (double a, double b, double c, double d)
{
double xh, xl, t, tau, u, v, w;
-
+
t = a * c; /* Highest order double term. */
if (unlikely (t == 0) /* Preserve -0. */
@@ -185,7 +185,7 @@ __gcc_qmul (double a, double b, double c, double d)
return t;
/* Sum terms of two highest orders. */
-
+
/* Use fused multiply-add to get low part of a * c. */
#ifndef __NO_FPRS__
asm ("fmsub %0,%1,%2,%3" : "=f"(tau) : "f"(a), "f"(c), "f"(t));
@@ -209,9 +209,9 @@ IBM128_TYPE
__gcc_qdiv (double a, double b, double c, double d)
{
double xh, xl, s, sigma, t, tau, u, v, w;
-
+
t = a / c; /* highest order double term */
-
+
if (unlikely (t == 0) /* Preserve -0. */
|| nonfinite (t))
return t;
@@ -230,7 +230,7 @@ __gcc_qdiv (double a, double b, double c, double d)
s = c * t; /* (s,sigma) = c*t exactly. */
w = -(-b + d * t); /* Written to get fnmsub for speed, but not
numerically necessary. */
-
+
/* Use fused multiply-add to get low part of c * t. */
#ifndef __NO_FPRS__
asm ("fmsub %0,%1,%2,%3" : "=f"(sigma) : "f"(c), "f"(t), "f"(s));
@@ -238,7 +238,7 @@ __gcc_qdiv (double a, double b, double c, double d)
sigma = fmsub (c, t, s);
#endif
v = a - s;
-
+
tau = ((v-sigma)+w)/c; /* Correction to t. */
u = t + tau;
diff --git a/libgcc/config/rs6000/sfp-exceptions.c b/libgcc/config/rs6000/sfp-exceptions.c
index 0b95378b11a..8d59f00bacc 100644
--- a/libgcc/config/rs6000/sfp-exceptions.c
+++ b/libgcc/config/rs6000/sfp-exceptions.c
@@ -26,7 +26,7 @@
emulation routines for IEEE 128-bit floating point on pre-ISA 3.0 machines
without the IEEE 128-bit floating point support. */
-#ifndef __NO_FPRS__
+#ifndef __NO_FPRS__
void
__sfp_handle_exceptions (int _fex)
diff --git a/libgcc/config/rs6000/sfp-machine.h b/libgcc/config/rs6000/sfp-machine.h
index 9975fbf60eb..f0ede0e042a 100644
--- a/libgcc/config/rs6000/sfp-machine.h
+++ b/libgcc/config/rs6000/sfp-machine.h
@@ -137,7 +137,7 @@ void __sfp_handle_exceptions (int);
respective FP_EX_* bit. Note, the ISA labels bits from msb to lsb,
so 22 ISA bits above is 22 bits below when counted from the lsb. */
# define FP_TRAPPING_EXCEPTIONS ((_fpscr.i << 22) & FP_EX_ALL)
-
+
# define FP_RND_NEAREST 0x0
# define FP_RND_ZERO 0x1
# define FP_RND_PINF 0x2
@@ -147,7 +147,7 @@ void __sfp_handle_exceptions (int);
# define _FP_DECL_EX \
union { unsigned long long i; double d; } _fpscr __attribute__ ((unused)) = \
{ .i = FP_RND_NEAREST }
-
+
#define FP_INIT_ROUNDMODE \
do { \
__asm__ __volatile__ ("mffs %0" \
diff --git a/libgcc/config/s390/32/_fixsfdi.c b/libgcc/config/s390/32/_fixsfdi.c
index 299fcbfc7fb..e69fe393b16 100644
--- a/libgcc/config/s390/32/_fixsfdi.c
+++ b/libgcc/config/s390/32/_fixsfdi.c
@@ -87,7 +87,7 @@ __fixsfdi (float a1)
}
/* Number big number & +/- inf */
- if (exp >= 40) {
+ if (exp >= 40) {
/* Don't throw an exception for -1p+63 */
if (!SIGN (fl1) || exp > 40 || FRAC (fl1) != 0)
/* C99 Annex F.4 requires an "invalid" exception to be thrown. */
diff --git a/libgcc/config/s390/32/_fixunsdfdi.c b/libgcc/config/s390/32/_fixunsdfdi.c
index c50157781f0..1f40667544b 100644
--- a/libgcc/config/s390/32/_fixunsdfdi.c
+++ b/libgcc/config/s390/32/_fixunsdfdi.c
@@ -74,7 +74,7 @@ __fixunsdfdi (double a1)
/* Negative. */
if (SIGN (dl1))
- {
+ {
/* Value is <= -1.0
C99 Annex F.4 requires an "invalid" exception to be thrown. */
if (EXPD (dl1) >= EXPONENT_BIAS)
diff --git a/libgcc/config/s390/32/_fixunssfdi.c b/libgcc/config/s390/32/_fixunssfdi.c
index 205a9659aa7..f33a023cf96 100644
--- a/libgcc/config/s390/32/_fixunssfdi.c
+++ b/libgcc/config/s390/32/_fixunssfdi.c
@@ -70,7 +70,7 @@ __fixunssfdi (float a1)
/* Negative. */
if (SIGN (fl1))
- {
+ {
/* Value is <= -1.0
C99 Annex F.4 requires an "invalid" exception to be thrown. */
if (EXP (fl1) >= EXPONENT_BIAS)
@@ -89,7 +89,7 @@ __fixunssfdi (float a1)
if ((EXP (fl1) == 0xff) && (FRAC (fl1) != 0)) /* NaN */
{
/* C99 Annex F.4 requires an "invalid" exception to be thrown. */
- fexceptdiv (0.0, 0.0);
+ fexceptdiv (0.0, 0.0);
return 0x0ULL;
}
diff --git a/libgcc/config/sol2/gmon.c b/libgcc/config/sol2/gmon.c
index 7b30174a3e1..26c38ca99eb 100644
--- a/libgcc/config/sol2/gmon.c
+++ b/libgcc/config/sol2/gmon.c
@@ -234,7 +234,7 @@ asm(".globl _mcount\n"
" ret\n");
#elif defined __x86_64__
/* See GLIBC for additional information about this technique. */
-asm(".globl _mcount\n"
+asm(".globl _mcount\n"
" .type _mcount, @function\n"
"_mcount:\n"
/* The compiler calls _mcount after the prologue, and does not
@@ -289,7 +289,7 @@ asm(".globl _mcount\n"
3) if builtin_return_address worked, this could be portable.
However, it would really have to be optimized for arguments of 0
and 1 and do something like what we have here in order to avoid the
- trap per function call performance hit.
+ trap per function call performance hit.
4) the atexit and monsetup calls prevent this from simply
being a leaf routine that doesn't do a "save" (and would thus have
access to %o7 and %i7 directly) but the call to write() at the end
diff --git a/libgcc/config/sparc/crtfastmath.c b/libgcc/config/sparc/crtfastmath.c
index a67ef20b917..4f8cdcc1d00 100644
--- a/libgcc/config/sparc/crtfastmath.c
+++ b/libgcc/config/sparc/crtfastmath.c
@@ -6,12 +6,12 @@
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 3, or (at your option) any
* later version.
- *
+ *
* This file is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
- *
+ *
* Under Section 7 of GPL version 3, you are granted additional
* permissions described in the GCC Runtime Library Exception, version
* 3.1, as published by the Free Software Foundation.
diff --git a/libgcc/config/stormy16/lib2funcs.c b/libgcc/config/stormy16/lib2funcs.c
index 4c56dc5df3e..33bfefbb725 100644
--- a/libgcc/config/stormy16/lib2funcs.c
+++ b/libgcc/config/stormy16/lib2funcs.c
@@ -179,7 +179,7 @@ SItype
__ashlsi3 (SItype a, SItype b)
{
word_type i;
-
+
if (b & 16)
a <<= 16;
if (b & 8)
@@ -195,7 +195,7 @@ SItype
__ashrsi3 (SItype a, SItype b)
{
word_type i;
-
+
if (b & 16)
a >>= 16;
if (b & 8)
@@ -211,7 +211,7 @@ USItype
__lshrsi3 (USItype a, USItype b)
{
word_type i;
-
+
if (b & 16)
a >>= 16;
if (b & 8)
diff --git a/libgcc/config/visium/memcpy.c b/libgcc/config/visium/memcpy.c
index 265b0d6371e..146d2672155 100644
--- a/libgcc/config/visium/memcpy.c
+++ b/libgcc/config/visium/memcpy.c
@@ -416,7 +416,7 @@ do { \
static inline void
-__int_memcpy (void *__restrict s1, const void *__restrict s2, size_t n)
+__int_memcpy (void *__restrict s1, const void *__restrict s2, size_t n)
{
int value = n;
int loop_var;
@@ -556,7 +556,7 @@ __int_memcpy (void *__restrict s1, const void *__restrict s2, size_t n)
}
static inline void
-__shrt_int_memcpy (void *__restrict s1, const void *__restrict s2, size_t n)
+__shrt_int_memcpy (void *__restrict s1, const void *__restrict s2, size_t n)
{
int value = n;
int loop_var;
@@ -697,7 +697,7 @@ __shrt_int_memcpy (void *__restrict s1, const void *__restrict s2, size_t n)
static inline void
-__byte_memcpy (void *__restrict s1, const void *__restrict s2, size_t n)
+__byte_memcpy (void *__restrict s1, const void *__restrict s2, size_t n)
{
int value = n;
int loop_var;
diff --git a/libgcc/config/xtensa/unwind-dw2-xtensa.c b/libgcc/config/xtensa/unwind-dw2-xtensa.c
index 21106f3d604..60520b47376 100644
--- a/libgcc/config/xtensa/unwind-dw2-xtensa.c
+++ b/libgcc/config/xtensa/unwind-dw2-xtensa.c
@@ -278,7 +278,7 @@ extract_cie_info (const struct dwarf_cie *cie, struct _Unwind_Context *context,
else if (aug[0] == 'P')
{
_Unwind_Ptr personality;
-
+
p = read_encoded_value (context, *p, p + 1, &personality);
fs->personality = (_Unwind_Personality_Fn) personality;
aug += 1;
diff --git a/libgcc/crtstuff.c b/libgcc/crtstuff.c
index 38d3859a73c..aeac22bf1e4 100644
--- a/libgcc/crtstuff.c
+++ b/libgcc/crtstuff.c
@@ -84,7 +84,7 @@ call_ ## FUNC (void) \
(defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__))
#define BSD_DL_ITERATE_PHDR_AVAILABLE
#endif
-
+
#if defined(OBJECT_FORMAT_ELF) \
&& !defined(OBJECT_FORMAT_FLAT) \
&& defined(HAVE_LD_EH_FRAME_HDR) \
diff --git a/libgcc/dfp-bit.c b/libgcc/dfp-bit.c
index 4f012ac47d5..216b78ca665 100644
--- a/libgcc/dfp-bit.c
+++ b/libgcc/dfp-bit.c
@@ -181,7 +181,7 @@ d32_compare_op (dfp_binary_func op, _Decimal32 arg_a, _Decimal32 arg_b)
b32.c = arg_b;
decSingleToWider (&a32.f, &a);
decSingleToWider (&b32.f, &b);
- return dfp_compare_op (op, a, b);
+ return dfp_compare_op (op, a, b);
}
#else
/* decFloat comparisons are supported for decDouble (64 bits) and
@@ -193,7 +193,7 @@ dnn_compare_op (dfp_binary_func op, DFP_C_TYPE arg_a, DFP_C_TYPE arg_b)
a.c = arg_a;
b.c = arg_b;
- return dfp_compare_op (op, a.f, b.f);
+ return dfp_compare_op (op, a.f, b.f);
}
#endif
@@ -624,7 +624,7 @@ DFP_TO_BFP (DFP_C_TYPE f)
return STR_TO_BFP (buf, NULL);
}
#endif
-
+
#if defined (L_sf_to_sd) || defined (L_sf_to_dd) || defined (L_sf_to_td) \
|| defined (L_df_to_sd) || defined (L_df_to_dd) || defined (L_df_to_td) \
|| defined (L_kf_to_sd) || defined (L_kf_to_dd) || defined (L_kf_to_td) \
diff --git a/libgcc/dfp-bit.h b/libgcc/dfp-bit.h
index b3048f63e60..959643e8aa0 100644
--- a/libgcc/dfp-bit.h
+++ b/libgcc/dfp-bit.h
@@ -57,7 +57,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
IEEE_TYPE: the corresponding (encoded) IEEE754 type;
(eg decimal32)
-
+
TO_INTERNAL: the name of the decNumber function to convert an
encoded value into the decNumber internal representation;
@@ -257,7 +257,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
BFP_VIA_TYPE: Type to which to cast a variable of BPF_TYPE for a
call to sprintf.
-
+
STR_TO_BFP: The function to read the value from a string. */
#if BFP_KIND == 1
@@ -411,7 +411,7 @@ extern _Float128 __strtoieee128 (const char *, char **);
#elif WIDTH_TO == 128
#define DFP_TO_DFP DPD_BID_NAME(__dpd_extendsdtd2,__bid_extendsdtd2)
#endif
-#elif WIDTH == 64
+#elif WIDTH == 64
#if WIDTH_TO == 32
#define DFP_TO_DFP DPD_BID_NAME(__dpd_truncddsd2,__bid_truncddsd2)
#elif WIDTH_TO == 128
diff --git a/libgcc/fp-bit.c b/libgcc/fp-bit.c
index 63713ba0a59..504adc0b694 100644
--- a/libgcc/fp-bit.c
+++ b/libgcc/fp-bit.c
@@ -1,5 +1,5 @@
/* This is a software floating point library which can be used
- for targets without hardware floating point.
+ for targets without hardware floating point.
Copyright (C) 1994-2024 Free Software Foundation, Inc.
This file is part of GCC.
@@ -137,7 +137,7 @@ makenan (void)
{
#ifdef TFLOAT
return & __thenan_tf;
-#elif defined FLOAT
+#elif defined FLOAT
return & __thenan_sf;
#else
return & __thenan_df;
@@ -168,7 +168,7 @@ iszero (const fp_number_type * x)
return x->class == CLASS_ZERO;
}
-INLINE
+INLINE
static void
flip_sign ( fp_number_type * x)
{
@@ -443,11 +443,11 @@ unpack_d (FLO_union_type * src, fp_number_type * dst)
#endif
src = &swapped;
#endif
-
+
#if defined TFLOAT && defined HALFFRACBITS
{
halffractype high, low;
-
+
high = src->value_raw >> HALFSHIFT;
low = src->value_raw & (((fractype)1 << HALFSHIFT) - 1);
@@ -823,11 +823,11 @@ _fpmul_parts ( fp_number_type * a,
x >>= 1;
}
}
-#elif defined(FLOAT)
+#elif defined(FLOAT)
/* Multiplying two USIs to get a UDI, we're safe. */
{
UDItype answer = (UDItype)a->fraction.ll * (UDItype)b->fraction.ll;
-
+
high = answer >> BITS_PER_SI;
low = answer;
}
@@ -1316,7 +1316,7 @@ si_to_float (SItype arg_a)
USItype uarg;
int shift;
in.normal_exp = FRACBITS + NGARDS;
- if (in.sign)
+ if (in.sign)
{
/* Special case for minint, since there is no +ve integer
representation for it */
@@ -1458,7 +1458,7 @@ negate (FLO_type arg_a)
SFtype
__make_fp(fp_class_type class,
unsigned int sign,
- int exp,
+ int exp,
USItype frac)
{
fp_number_type in;
@@ -1572,7 +1572,7 @@ df_to_tf (DFtype arg_a)
TFtype
__make_tp(fp_class_type class,
unsigned int sign,
- int exp,
+ int exp,
UTItype frac)
{
fp_number_type in;
diff --git a/libgcc/libgcov-driver-system.c b/libgcc/libgcov-driver-system.c
index 45a12c55ea0..e2e515ee5a1 100644
--- a/libgcc/libgcov-driver-system.c
+++ b/libgcc/libgcov-driver-system.c
@@ -232,7 +232,7 @@ allocate_filename_struct (struct gcov_filename *gf)
/* Get file name relocation prefix. Non-absolute values are ignored. */
gcov_prefix = getenv("GCOV_PREFIX");
prefix_length = gcov_prefix ? strlen (gcov_prefix) : 0;
-
+
/* Remove an unnecessary trailing '/' */
if (prefix_length && IS_DIR_SEPARATOR (gcov_prefix[prefix_length - 1]))
prefix_length--;
diff --git a/libgcc/libgcov-driver.c b/libgcc/libgcov-driver.c
index 2ea39321095..eaed5c8c053 100644
--- a/libgcc/libgcov-driver.c
+++ b/libgcc/libgcov-driver.c
@@ -720,7 +720,7 @@ __gcov_dump_one (struct gcov_root *root)
return;
gcov_do_dump (root->list, root->run_counted, 0);
-
+
root->dumped = 1;
root->run_counted = 1;
}
@@ -729,7 +729,7 @@ __gcov_dump_one (struct gcov_root *root)
struct gcov_root __gcov_root;
/* Exactly one of these will be live in the process image. */
-struct gcov_master __gcov_master =
+struct gcov_master __gcov_master =
{GCOV_VERSION, 0};
/* Dynamic pool for gcov_kvp structures. */
diff --git a/libgcc/libgcov.h b/libgcc/libgcov.h
index 9d83a27ed90..d51d77975ae 100644
--- a/libgcc/libgcov.h
+++ b/libgcc/libgcov.h
@@ -230,7 +230,7 @@ struct gcov_info
gcov_merge_fn merge[GCOV_COUNTERS]; /* merge functions (null for
unused) */
-
+
gcov_unsigned_t n_functions; /* number of functions */
#ifndef IN_GCOV_TOOL
@@ -268,7 +268,7 @@ struct indirect_call_tuple
/* Pointer to counters. */
gcov_type *counters;
};
-
+
/* Exactly one of these will be active in the process. */
extern struct gcov_master __gcov_master;
extern struct gcov_kvp *__gcov_kvp_dynamic_pool;
diff --git a/libgcc/unwind-dw2.c b/libgcc/unwind-dw2.c
index 5f33f80670a..8ac0588a19d 100644
--- a/libgcc/unwind-dw2.c
+++ b/libgcc/unwind-dw2.c
@@ -68,7 +68,7 @@
waste. However, some runtime libraries supplied with ICC do contain such
an unorthodox transition, as well as the unwind info to match. This loss
of register restoration doesn't matter in practice, because the exception
- is caught in the native unix abi, where all of the xmm registers are
+ is caught in the native unix abi, where all of the xmm registers are
call clobbered.
Ideally, we'd record some bit to notice when we're failing to restore some
diff --git a/libstdc++-v3/include/backward/auto_ptr.h b/libstdc++-v3/include/backward/auto_ptr.h
index 271a64d1de0..659bbfb3364 100644
--- a/libstdc++-v3/include/backward/auto_ptr.h
+++ b/libstdc++-v3/include/backward/auto_ptr.h
@@ -48,7 +48,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
struct auto_ptr_ref
{
_Tp1* _M_ptr;
-
+
explicit
auto_ptr_ref(_Tp1* __p): _M_ptr(__p) { }
} _GLIBCXX11_DEPRECATED;
@@ -94,11 +94,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
private:
_Tp* _M_ptr;
-
+
public:
/// The pointed-to type.
typedef _Tp element_type;
-
+
/**
* @brief An %auto_ptr is usually constructed from a raw pointer.
* @param __p A pointer (defaults to NULL).
@@ -174,7 +174,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* prohibited. [17.4.3.6]/2
*/
~auto_ptr() { delete _M_ptr; }
-
+
/**
* @brief Smart pointer dereferencing.
*
@@ -184,12 +184,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* what happens when you dereference one of those...)
*/
element_type&
- operator*() const throw()
+ operator*() const throw()
{
__glibcxx_assert(_M_ptr != 0);
- return *_M_ptr;
+ return *_M_ptr;
}
-
+
/**
* @brief Smart pointer dereferencing.
*
@@ -197,12 +197,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* automatically cause to be dereferenced.
*/
element_type*
- operator->() const throw()
+ operator->() const throw()
{
__glibcxx_assert(_M_ptr != 0);
- return _M_ptr;
+ return _M_ptr;
}
-
+
/**
* @brief Bypassing the smart pointer.
* @return The raw pointer being managed.
@@ -215,7 +215,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
*/
element_type*
get() const throw() { return _M_ptr; }
-
+
/**
* @brief Bypassing the smart pointer.
* @return The raw pointer being managed.
@@ -234,7 +234,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_M_ptr = 0;
return __tmp;
}
-
+
/**
* @brief Forcibly deletes the managed object.
* @param __p A pointer (defaults to NULL).
@@ -251,8 +251,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_M_ptr = __p;
}
}
-
- /**
+
+ /**
* @brief Automatic conversions
*
* These operations are supposed to convert an %auto_ptr into and from
@@ -269,7 +269,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
*/
auto_ptr(auto_ptr_ref __ref) throw()
: _M_ptr(__ref._M_ptr) { }
-
+
auto_ptr&
operator=(auto_ptr_ref __ref) throw()
{
@@ -280,7 +280,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
}
return *this;
}
-
+
template
operator auto_ptr_ref<_Tp1>() throw()
{ return auto_ptr_ref<_Tp1>(this->release()); }
diff --git a/libstdc++-v3/include/backward/binders.h b/libstdc++-v3/include/backward/binders.h
index ab670a8f926..e0e1d89e7fc 100644
--- a/libstdc++-v3/include/backward/binders.h
+++ b/libstdc++-v3/include/backward/binders.h
@@ -173,7 +173,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
typedef typename _Operation::second_argument_type _Arg2_type;
return binder2nd<_Operation>(__fn, _Arg2_type(__x));
- }
+ }
/** @} */
_GLIBCXX_END_NAMESPACE_VERSION
diff --git a/libstdc++-v3/include/backward/hash_fun.h b/libstdc++-v3/include/backward/hash_fun.h
index fe311baadf9..2c474bd7b5a 100644
--- a/libstdc++-v3/include/backward/hash_fun.h
+++ b/libstdc++-v3/include/backward/hash_fun.h
@@ -94,7 +94,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
template<>
struct hash
- {
+ {
size_t
operator()(char __x) const
{ return __x; }
@@ -102,7 +102,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
template<>
struct hash
- {
+ {
size_t
operator()(unsigned char __x) const
{ return __x; }
@@ -134,15 +134,15 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
template<>
struct hash
- {
- size_t
- operator()(int __x) const
+ {
+ size_t
+ operator()(int __x) const
{ return __x; }
};
template<>
struct hash
- {
+ {
size_t
operator()(unsigned int __x) const
{ return __x; }
diff --git a/libstdc++-v3/include/backward/hashtable.h b/libstdc++-v3/include/backward/hashtable.h
index 536962b67c4..4f1f63ab256 100644
--- a/libstdc++-v3/include/backward/hashtable.h
+++ b/libstdc++-v3/include/backward/hashtable.h
@@ -77,7 +77,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_Val _M_val;
};
- template >
class hashtable;
@@ -108,7 +108,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
typedef std::size_t size_type;
typedef _Val& reference;
typedef _Val* pointer;
-
+
_Node* _M_cur;
_Hashtable* _M_ht;
@@ -160,7 +160,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
typedef std::size_t size_type;
typedef const _Val& reference;
typedef const _Val* pointer;
-
+
const _Node* _M_cur;
const _Hashtable* _M_ht;
@@ -233,7 +233,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
return pos == __last ? *(__last - 1) : *pos;
}
- // Forward declaration of operator==.
+ // Forward declaration of operator==.
template
class hashtable;
@@ -251,7 +251,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// allocator type are identical. This is because, for hashtables,
// this extra storage is negligible. Additionally, a base class
// wouldn't serve any other purposes; it wouldn't, for example,
- // simplify the exception-handling code.
+ // simplify the exception-handling code.
template
class hashtable
@@ -312,7 +312,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_ExtractKey _M_get_key;
_Vector_type _M_buckets;
size_type _M_num_elements;
-
+
public:
typedef _Hashtable_iterator<_Val, _Key, _HashFcn, _ExtractKey,
_EqualKey, _Alloc>
@@ -542,7 +542,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
const size_type __n = _M_bkt_num_key(__key);
size_type __result = 0;
-
+
for (const _Node* __cur = _M_buckets[__n]; __cur;
__cur = __cur->_M_next)
if (_M_equals(_M_get_key(__cur->_M_val), __key))
@@ -558,7 +558,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
size_type
erase(const key_type& __key);
-
+
void
erase(const iterator& __it);
@@ -632,7 +632,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_Alloc_traits::destroy(__a, &__n->_M_val);
_M_put_node(__n);
}
-
+
void
_M_erase_bucket(const size_type __n, _Node* __first, _Node* __last);
@@ -716,7 +716,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// Check same length of lists
for (; __cur1 && __cur2;
__cur1 = __cur1->_M_next, __cur2 = __cur2->_M_next)
- { }
+ { }
if (__cur1 || __cur2)
return false;
// Now check one's elements are in the other
@@ -761,11 +761,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
const size_type __n = _M_bkt_num(__obj);
_Node* __first = _M_buckets[__n];
-
+
for (_Node* __cur = __first; __cur; __cur = __cur->_M_next)
if (_M_equals(_M_get_key(__cur->_M_val), _M_get_key(__obj)))
return std::pair(iterator(__cur, this), false);
-
+
_Node* __tmp = _M_new_node(__obj);
__tmp->_M_next = __first;
_M_buckets[__n] = __tmp;
@@ -780,7 +780,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
const size_type __n = _M_bkt_num(__obj);
_Node* __first = _M_buckets[__n];
-
+
for (_Node* __cur = __first; __cur; __cur = __cur->_M_next)
if (_M_equals(_M_get_key(__cur->_M_val), _M_get_key(__obj)))
{
@@ -807,11 +807,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
size_type __n = _M_bkt_num(__obj);
_Node* __first = _M_buckets[__n];
-
+
for (_Node* __cur = __first; __cur; __cur = __cur->_M_next)
if (_M_equals(_M_get_key(__cur->_M_val), _M_get_key(__obj)))
return __cur->_M_val;
-
+
_Node* __tmp = _M_new_node(__obj);
__tmp->_M_next = __first;
_M_buckets[__n] = __tmp;
@@ -943,7 +943,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
const size_type __n = _M_bkt_num(__p->_M_val);
_Node* __cur = _M_buckets[__n];
-
+
if (__cur == __p)
{
_M_buckets[__n] = __cur->_M_next;
@@ -1141,7 +1141,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
_Node* __local_copy = _M_new_node(__cur->_M_val);
_M_buckets[__i] = __local_copy;
-
+
for (_Node* __next = __cur->_M_next;
__next;
__cur = __next, __next = __cur->_M_next)
diff --git a/libstdc++-v3/include/bits/basic_ios.h b/libstdc++-v3/include/bits/basic_ios.h
index 8954ad16d63..0fb950299b4 100644
--- a/libstdc++-v3/include/bits/basic_ios.h
+++ b/libstdc++-v3/include/bits/basic_ios.h
@@ -55,7 +55,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
/**
* @brief Template class basic_ios, virtual base class for all
- * stream classes.
+ * stream classes.
* @ingroup io
*
* @tparam _CharT Type of character stream.
@@ -473,7 +473,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* accessible to users.
*/
basic_ios()
- : ios_base(), _M_tie(0), _M_fill(char_type()), _M_fill_init(false),
+ : ios_base(), _M_tie(0), _M_fill(char_type()), _M_fill_init(false),
_M_streambuf(0), _M_ctype(0), _M_num_put(0), _M_num_get(0)
{ }
diff --git a/libstdc++-v3/include/bits/basic_string.h b/libstdc++-v3/include/bits/basic_string.h
index 28b3e536185..e2ae62665f6 100644
--- a/libstdc++-v3/include/bits/basic_string.h
+++ b/libstdc++-v3/include/bits/basic_string.h
@@ -1228,7 +1228,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11
{ _M_set_length(0); }
/**
- * Returns true if the %string is empty. Equivalent to
+ * Returns true if the %string is empty. Equivalent to
* *this == ""
.
*/
_GLIBCXX_NODISCARD _GLIBCXX20_CONSTEXPR
@@ -4156,7 +4156,7 @@ _GLIBCXX_END_NAMESPACE_CXX11
basic_istream&
getline(basic_istream& __in, basic_string& __str,
wchar_t __delim);
-#endif
+#endif
_GLIBCXX_END_NAMESPACE_VERSION
} // namespace
@@ -4414,7 +4414,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11
inline string
to_string(float __val)
{
- const int __n =
+ const int __n =
__gnu_cxx::__numeric_traits::__max_exponent10 + 20;
return __gnu_cxx::__to_xstring(&std::vsnprintf, __n,
"%f", __val);
@@ -4424,7 +4424,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11
inline string
to_string(double __val)
{
- const int __n =
+ const int __n =
__gnu_cxx::__numeric_traits::__max_exponent10 + 20;
return __gnu_cxx::__to_xstring(&std::vsnprintf, __n,
"%f", __val);
@@ -4434,7 +4434,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11
inline string
to_string(long double __val)
{
- const int __n =
+ const int __n =
__gnu_cxx::__numeric_traits::__max_exponent10 + 20;
return __gnu_cxx::__to_xstring(&std::vsnprintf, __n,
"%Lf", __val);
@@ -4443,12 +4443,12 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11
#endif // _GLIBCXX_USE_C99_STDIO
#if defined(_GLIBCXX_USE_WCHAR_T) && _GLIBCXX_USE_C99_WCHAR
- inline int
+ inline int
stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
{ return __gnu_cxx::__stoa(&std::wcstol, "stoi", __str.c_str(),
__idx, __base); }
- inline long
+ inline long
stol(const wstring& __str, size_t* __idx = 0, int __base = 10)
{ return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(),
__idx, __base); }
diff --git a/libstdc++-v3/include/bits/char_traits.h b/libstdc++-v3/include/bits/char_traits.h
index fa922e535ce..1cd05e52a1a 100644
--- a/libstdc++-v3/include/bits/char_traits.h
+++ b/libstdc++-v3/include/bits/char_traits.h
@@ -107,7 +107,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
*
* See https://gcc.gnu.org/onlinedocs/libstdc++/manual/strings.html#strings.string.character_types
* for advice on how to make use of this class for @a unusual character
- * types. Also, check out include/ext/pod_char_traits.h.
+ * types. Also, check out include/ext/pod_char_traits.h.
*/
template
struct char_traits
@@ -945,7 +945,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
static _GLIBCXX20_CONSTEXPR char_type*
copy(char_type* __s1, const char_type* __s2, size_t __n)
- {
+ {
if (__n == 0)
return __s1;
#if __cplusplus >= 202002L
diff --git a/libstdc++-v3/include/bits/gslice.h b/libstdc++-v3/include/bits/gslice.h
index 90e21fdf6bf..4300a190e98 100644
--- a/libstdc++-v3/include/bits/gslice.h
+++ b/libstdc++-v3/include/bits/gslice.h
@@ -79,7 +79,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* @param __l Array of dimension lengths.
* @param __s Array of dimension strides between array elements.
*/
- gslice(size_t __o, const valarray& __l,
+ gslice(size_t __o, const valarray& __l,
const valarray& __s);
// XXX: the IS says the copy-ctor and copy-assignment operators are
@@ -100,7 +100,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
/// Return array of sizes of slice dimensions.
valarray size() const;
-
+
/// Return array of array strides for each dimension.
valarray stride() const;
@@ -122,7 +122,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
void
_M_increment_use()
{ ++_M_count; }
-
+
size_t
_M_decrement_use()
{ return --_M_count; }
diff --git a/libstdc++-v3/include/bits/hashtable.h b/libstdc++-v3/include/bits/hashtable.h
index efc155bdfa4..f1a5490b5ff 100644
--- a/libstdc++-v3/include/bits/hashtable.h
+++ b/libstdc++-v3/include/bits/hashtable.h
@@ -177,7 +177,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* Pattern" (CRTP) technique, but uses a reconstructed, not
* explicitly passed, template pattern.
*
- * Base class templates are:
+ * Base class templates are:
* - __detail::_Hashtable_base
* - __detail::_Map_base
* - __detail::_Insert
@@ -1705,7 +1705,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
__x._M_buckets = _M_buckets;
_M_buckets = &_M_single_bucket;
- }
+ }
else
std::swap(_M_buckets, __x._M_buckets);
diff --git a/libstdc++-v3/include/bits/hashtable_policy.h b/libstdc++-v3/include/bits/hashtable_policy.h
index a91a9cfde24..5d79e2ba26f 100644
--- a/libstdc++-v3/include/bits/hashtable_policy.h
+++ b/libstdc++-v3/include/bits/hashtable_policy.h
@@ -1042,7 +1042,7 @@ namespace __detail
insert(const_iterator __hint, const value_type& __v)
{
__hashtable& __h = _M_conjure_hashtable();
- __node_gen_type __node_gen(__h);
+ __node_gen_type __node_gen(__h);
return __h._M_insert(__hint, __v, __node_gen, __unique_keys{});
}
diff --git a/libstdc++-v3/include/bits/ios_base.h b/libstdc++-v3/include/bits/ios_base.h
index 1418b18830a..f5cbfb3f85a 100644
--- a/libstdc++-v3/include/bits/ios_base.h
+++ b/libstdc++-v3/include/bits/ios_base.h
@@ -56,8 +56,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// as permitted (but not required) in the standard, in order to provide
// better type safety in iostream calls. A side effect is that in C++98
// expressions involving them are not compile-time constants.
- enum _Ios_Fmtflags
- {
+ enum _Ios_Fmtflags
+ {
_S_boolalpha = 1L << 0,
_S_dec = 1L << 1,
_S_fixed = 1L << 2,
@@ -125,7 +125,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
#endif
enum __attribute__((__flag_enum__)) _Ios_Openmode
- {
+ {
_S_app = 1L << 0,
_S_ate = 1L << 1,
_S_bin = 1L << 2,
@@ -177,7 +177,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
enum _Ios_Iostate
- {
+ {
_S_goodbit = 0,
_S_badbit = 1L << 0,
_S_eofbit = 1L << 1,
@@ -223,12 +223,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{ return __a = __a ^ __b; }
- enum _Ios_Seekdir
- {
+ enum _Ios_Seekdir
+ {
_S_beg = 0,
_S_cur = _GLIBCXX_STDIO_SEEK_CUR,
_S_end = _GLIBCXX_STDIO_SEEK_END,
- _S_ios_seekdir_end = 1L << 16
+ _S_ios_seekdir_end = 1L << 16
};
#if __cplusplus >= 201103L
@@ -282,7 +282,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
#endif
public:
- /**
+ /**
* @brief These are thrown to indicate problems with io.
* @ingroup exceptions
*
@@ -611,7 +611,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// 0 => OK to delete.
int
- _M_remove_reference()
+ _M_remove_reference()
{
// Be race-detector-friendly. For more info see bits/c++config.
_GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_M_refcount);
diff --git a/libstdc++-v3/include/bits/locale_facets_nonio.h b/libstdc++-v3/include/bits/locale_facets_nonio.h
index 298ffc10ed3..5a90e1e6ac6 100644
--- a/libstdc++-v3/include/bits/locale_facets_nonio.h
+++ b/libstdc++-v3/include/bits/locale_facets_nonio.h
@@ -143,7 +143,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
private:
__timepunct_cache&
operator=(const __timepunct_cache&);
-
+
explicit
__timepunct_cache(const __timepunct_cache&);
};
@@ -1034,7 +1034,7 @@ _GLIBCXX_END_NAMESPACE_CXX11
private:
__moneypunct_cache&
operator=(const __moneypunct_cache&);
-
+
explicit
__moneypunct_cache(const __moneypunct_cache&);
};
@@ -1646,7 +1646,7 @@ _GLIBCXX_BEGIN_NAMESPACE_LDBL_OR_CXX11
template
iter_type
_M_extract(iter_type __s, iter_type __end, ios_base& __io,
- ios_base::iostate& __err, string& __digits) const;
+ ios_base::iostate& __err, string& __digits) const;
};
template
diff --git a/libstdc++-v3/include/bits/localefwd.h b/libstdc++-v3/include/bits/localefwd.h
index cee5c4d5134..3ba6e2614c2 100644
--- a/libstdc++-v3/include/bits/localefwd.h
+++ b/libstdc++-v3/include/bits/localefwd.h
@@ -47,7 +47,7 @@ namespace std _GLIBCXX_VISIBILITY(default)
{
_GLIBCXX_BEGIN_NAMESPACE_VERSION
- /**
+ /**
* @defgroup locales Locales
*
* Classes and functions for internationalization and localization.
diff --git a/libstdc++-v3/include/bits/mask_array.h b/libstdc++-v3/include/bits/mask_array.h
index 341b828f700..63ea9375d5a 100644
--- a/libstdc++-v3/include/bits/mask_array.h
+++ b/libstdc++-v3/include/bits/mask_array.h
@@ -71,7 +71,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
/// Copy constructor. Both slices refer to the same underlying array.
mask_array (const mask_array&);
-
+
/// Assignment operator. Assigns elements to corresponding elements
/// of @a a.
mask_array& operator=(const mask_array&);
diff --git a/libstdc++-v3/include/bits/ostream_insert.h b/libstdc++-v3/include/bits/ostream_insert.h
index c92504eed65..7302b81d48a 100644
--- a/libstdc++-v3/include/bits/ostream_insert.h
+++ b/libstdc++-v3/include/bits/ostream_insert.h
@@ -52,7 +52,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__ostream_write(basic_ostream<_CharT, _Traits>& __out,
const _CharT* __s, streamsize __n)
{
- typedef basic_ostream<_CharT, _Traits> __ostream_type;
+ typedef basic_ostream<_CharT, _Traits> __ostream_type;
typedef typename __ostream_type::ios_base __ios_base;
const streamsize __put = __out.rdbuf()->sputn(__s, __n);
@@ -64,7 +64,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
inline void
__ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n)
{
- typedef basic_ostream<_CharT, _Traits> __ostream_type;
+ typedef basic_ostream<_CharT, _Traits> __ostream_type;
typedef typename __ostream_type::ios_base __ios_base;
const _CharT __c = __out.fill();
diff --git a/libstdc++-v3/include/bits/postypes.h b/libstdc++-v3/include/bits/postypes.h
index cf5f30187fd..8a2f4dbc937 100644
--- a/libstdc++-v3/include/bits/postypes.h
+++ b/libstdc++-v3/include/bits/postypes.h
@@ -61,7 +61,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* implementation defined type.
* Note: In versions of GCC up to and including GCC 3.3, streamoff
* was typedef long.
- */
+ */
#ifdef __INT64_TYPE__
typedef __INT64_TYPE__ streamoff;
#else
diff --git a/libstdc++-v3/include/bits/random.h b/libstdc++-v3/include/bits/random.h
index 5fda21af882..1f39f0a90be 100644
--- a/libstdc++-v3/include/bits/random.h
+++ b/libstdc++-v3/include/bits/random.h
@@ -348,7 +348,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* A random number generator that produces pseudorandom numbers via
* linear function:
* @f[
- * x_{i+1}\leftarrow(ax_{i} + c) \bmod m
+ * x_{i+1}\leftarrow(ax_{i} + c) \bmod m
* @f]
*
* The template parameter @p _UIntType must be an unsigned integral type
@@ -562,7 +562,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* This algorithm was originally invented by Makoto Matsumoto and
* Takuji Nishimura.
*
- * @tparam __w Word size, the number of bits in each element of
+ * @tparam __w Word size, the number of bits in each element of
* the state vector.
* @tparam __n The degree of recursion.
* @tparam __m The period parameter.
@@ -800,7 +800,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* A discrete random number generator that produces pseudorandom
* numbers using:
* @f[
- * x_{i}\leftarrow(x_{i - s} - x_{i - r} - carry_{i-1}) \bmod m
+ * x_{i}\leftarrow(x_{i - s} - x_{i - r} - carry_{i-1}) \bmod m
* @f]
*
* The size of the state is @f$r@f$
@@ -2108,7 +2108,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* The formula for the normal probability density function is
* @f[
* p(x|\mu,\sigma) = \frac{1}{\sigma \sqrt{2 \pi}}
- * e^{- \frac{{x - \mu}^ {2}}{2 \sigma ^ {2}} }
+ * e^{- \frac{{x - \mu}^ {2}}{2 \sigma ^ {2}} }
* @f]
*
* @headerfile random
@@ -2335,7 +2335,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* The formula for the normal probability mass function is
* @f[
* p(x|m,s) = \frac{1}{sx\sqrt{2\pi}}
- * \exp{-\frac{(\ln{x} - m)^2}{2s^2}}
+ * \exp{-\frac{(\ln{x} - m)^2}{2s^2}}
* @f]
*
* @headerfile random
@@ -2560,7 +2560,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* The formula for the gamma probability density function is:
* @f[
* p(x|\alpha,\beta) = \frac{1}{\beta\Gamma(\alpha)}
- * (x/\beta)^{\alpha - 1} e^{-x/\beta}
+ * (x/\beta)^{\alpha - 1} e^{-x/\beta}
* @f]
*
* @headerfile random
@@ -3247,7 +3247,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* @f[
* p(x|m,n) = \frac{\Gamma((m+n)/2)}{\Gamma(m/2)\Gamma(n/2)}
* (\frac{m}{n})^{m/2} x^{(m/2)-1}
- * (1 + \frac{mx}{n})^{-(m+n)/2}
+ * (1 + \frac{mx}{n})^{-(m+n)/2}
* @f]
*
* @headerfile random
@@ -3486,7 +3486,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* The formula for the normal probability mass function is:
* @f[
* p(x|n) = \frac{1}{\sqrt(n\pi)} \frac{\Gamma((n+1)/2)}{\Gamma(n/2)}
- * (1 + \frac{x^2}{n}) ^{-(n+1)/2}
+ * (1 + \frac{x^2}{n}) ^{-(n+1)/2}
* @f]
*
* @headerfile random
@@ -3605,7 +3605,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
typedef typename std::gamma_distribution::param_type
param_type;
-
+
const result_type __g = _M_gd(__urng, param_type(__p.n() / 2, 2));
return _M_nd(__urng) * std::sqrt(__p.n() / __g);
}
@@ -5097,7 +5097,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* The formula for the normal probability density function is:
* @f[
* p(x|\alpha,\beta) = \frac{\alpha}{\beta} (\frac{x}{\beta})^{\alpha-1}
- * \exp{(-(\frac{x}{\beta})^\alpha)}
+ * \exp{(-(\frac{x}{\beta})^\alpha)}
* @f]
*
* @headerfile random
@@ -5314,7 +5314,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* The formula for the normal probability mass function is
* @f[
* p(x|a,b) = \frac{1}{b}
- * \exp( \frac{a-x}{b} - \exp(\frac{a-x}{b}))
+ * \exp( \frac{a-x}{b} - \exp(\frac{a-x}{b}))
* @f]
*
* @headerfile random
@@ -6048,7 +6048,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
#if __cpp_impl_three_way_comparison < 201907L
/**
- * @brief Return true if two piecewise constant distributions have
+ * @brief Return true if two piecewise constant distributions have
* different parameters.
*/
template
diff --git a/libstdc++-v3/include/bits/regex.h b/libstdc++-v3/include/bits/regex.h
index e7e352020d5..68ff479c905 100644
--- a/libstdc++-v3/include/bits/regex.h
+++ b/libstdc++-v3/include/bits/regex.h
@@ -923,7 +923,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11
/// @endcond
{
typedef iterator_traits<_BiIter> __iter_traits;
-
+
public:
typedef typename __iter_traits::value_type value_type;
typedef typename __iter_traits::difference_type difference_type;
diff --git a/libstdc++-v3/include/bits/slice_array.h b/libstdc++-v3/include/bits/slice_array.h
index 50ed758726a..a01e1744de9 100644
--- a/libstdc++-v3/include/bits/slice_array.h
+++ b/libstdc++-v3/include/bits/slice_array.h
@@ -94,7 +94,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// _GLIBCXX_RESOLVE_LIB_DEFECTS
// 543. valarray slice default constructor
inline
- slice::slice()
+ slice::slice()
: _M_off(0), _M_sz(0), _M_st(0) {}
inline
diff --git a/libstdc++-v3/include/bits/specfun.h b/libstdc++-v3/include/bits/specfun.h
index 580436e44a7..44fa1194c50 100644
--- a/libstdc++-v3/include/bits/specfun.h
+++ b/libstdc++-v3/include/bits/specfun.h
@@ -157,7 +157,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* @f]
* is generally found to be within 10-15 for 64-bit double on
* linux-x86_64 systems over most of the ranges of validity.
- *
+ *
* @todo Provide accuracy comparisons on a per-function basis for a small
* number of targets.
*
diff --git a/libstdc++-v3/include/bits/stl_algo.h b/libstdc++-v3/include/bits/stl_algo.h
index c10f8aa6395..04bdaa66981 100644
--- a/libstdc++-v3/include/bits/stl_algo.h
+++ b/libstdc++-v3/include/bits/stl_algo.h
@@ -200,7 +200,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__tailSize -= __remainder;
// __first here is always pointing to one past the last element of
// next possible match.
- _RandomAccessIter __backTrack = __first;
+ _RandomAccessIter __backTrack = __first;
while (__unary_pred(--__backTrack))
{
if (--__remainder == 0)
@@ -732,7 +732,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__glibcxx_function_requires(_UnaryPredicateConcept<_Predicate,
typename iterator_traits<_InputIterator>::value_type>)
__glibcxx_requires_valid_range(__first, __last);
-
+
for (; __first != __last; ++__first)
if (__pred(*__first))
{
@@ -1313,7 +1313,7 @@ _GLIBCXX_BEGIN_INLINE_ABI_NAMESPACE(_V2)
* @param __last A forward iterator.
* @return first + (last - middle).
*
- * Rotates the elements of the range @p [__first,__last) by
+ * Rotates the elements of the range @p [__first,__last) by
* @p (__middle - __first) positions so that the element at @p __middle
* is moved to @p __first, the element at @p __middle+1 is moved to
* @p __first+1 and so on for each element in the range
@@ -1354,13 +1354,13 @@ _GLIBCXX_END_INLINE_ABI_NAMESPACE(_V2)
* @return An iterator designating the end of the resulting sequence.
*
* Copies the elements of the range @p [__first,__last) to the
- * range beginning at @result, rotating the copied elements by
+ * range beginning at @result, rotating the copied elements by
* @p (__middle-__first) positions so that the element at @p __middle
* is moved to @p __result, the element at @p __middle+1 is moved
* to @p __result+1 and so on for each element in the range @p
* [__first,__last).
*
- * Performs
+ * Performs
* @p *(__result+(n+(__last-__middle))%(__last-__first))=*(__first+n)
* for each @p n in the range @p [0,__last-__first).
*/
@@ -1605,7 +1605,7 @@ _GLIBCXX_END_INLINE_ABI_NAMESPACE(_V2)
++__result_real_last;
++__first;
}
-
+
std::__make_heap(__result_first, __result_real_last, __comp);
while (__first != __last)
{
@@ -3362,7 +3362,7 @@ _GLIBCXX_END_INLINE_ABI_NAMESPACE(_V2)
* @ingroup sorting_algorithms
* @param __first Start of range.
* @param __last End of range.
- * @return make_pair(m, M), where m is the first iterator i in
+ * @return make_pair(m, M), where m is the first iterator i in
* [__first, __last) such that no other element in the range is
* smaller, and where M is the last iterator i in [__first, __last)
* such that no other element in the range is larger.
@@ -3390,7 +3390,7 @@ _GLIBCXX_END_INLINE_ABI_NAMESPACE(_V2)
* @param __first Start of range.
* @param __last End of range.
* @param __comp Comparison functor.
- * @return make_pair(m, M), where m is the first iterator i in
+ * @return make_pair(m, M), where m is the first iterator i in
* [__first, __last) such that no other element in the range is
* smaller, and where M is the last iterator i in [__first, __last)
* such that no other element in the range is larger.
@@ -4907,7 +4907,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO
typename iterator_traits<_InputIterator2>::value_type>)
__glibcxx_function_requires(_LessThanOpConcept<
typename iterator_traits<_InputIterator2>::value_type,
- typename iterator_traits<_InputIterator1>::value_type>)
+ typename iterator_traits<_InputIterator1>::value_type>)
__glibcxx_requires_sorted_set(__first1, __last1, __first2);
__glibcxx_requires_sorted_set(__first2, __last2, __first1);
__glibcxx_requires_irreflexive2(__first1, __last1);
@@ -5390,7 +5390,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO
typename iterator_traits<_InputIterator2>::value_type>)
__glibcxx_function_requires(_LessThanOpConcept<
typename iterator_traits<_InputIterator2>::value_type,
- typename iterator_traits<_InputIterator1>::value_type>)
+ typename iterator_traits<_InputIterator1>::value_type>)
__glibcxx_requires_sorted_set(__first1, __last1, __first2);
__glibcxx_requires_sorted_set(__first2, __last2, __first1);
__glibcxx_requires_irreflexive2(__first1, __last1);
@@ -5483,7 +5483,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO
++__first1;
++__first2;
}
- return std::copy(__first2, __last2,
+ return std::copy(__first2, __last2,
std::copy(__first1, __last1, __result));
}
@@ -5525,7 +5525,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO
typename iterator_traits<_InputIterator2>::value_type>)
__glibcxx_function_requires(_LessThanOpConcept<
typename iterator_traits<_InputIterator2>::value_type,
- typename iterator_traits<_InputIterator1>::value_type>)
+ typename iterator_traits<_InputIterator1>::value_type>)
__glibcxx_requires_sorted_set(__first1, __last1, __first2);
__glibcxx_requires_sorted_set(__first2, __last2, __first1);
__glibcxx_requires_irreflexive2(__first1, __last1);
diff --git a/libstdc++-v3/include/bits/stl_function.h b/libstdc++-v3/include/bits/stl_function.h
index c9123ccecae..8c77471fbf5 100644
--- a/libstdc++-v3/include/bits/stl_function.h
+++ b/libstdc++-v3/include/bits/stl_function.h
@@ -117,10 +117,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
struct unary_function
{
/// @c argument_type is the type of the argument
- typedef _Arg argument_type;
+ typedef _Arg argument_type;
/// @c result_type is the return type
- typedef _Result result_type;
+ typedef _Result result_type;
} _GLIBCXX11_DEPRECATED;
/**
@@ -131,7 +131,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
struct binary_function
{
/// @c first_argument_type is the type of the first argument
- typedef _Arg1 first_argument_type;
+ typedef _Arg1 first_argument_type;
/// @c second_argument_type is the type of the second argument
typedef _Arg2 second_argument_type;
diff --git a/libstdc++-v3/include/bits/stl_heap.h b/libstdc++-v3/include/bits/stl_heap.h
index 9c1214a2b21..c4bb7a968b8 100644
--- a/libstdc++-v3/include/bits/stl_heap.h
+++ b/libstdc++-v3/include/bits/stl_heap.h
@@ -360,7 +360,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__parent--;
}
}
-
+
/**
* @brief Construct a heap over a range.
* @param __first Start of heap.
@@ -505,7 +505,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__glibcxx_requires_irreflexive(__first, __last);
__gnu_cxx::__ops::_Iter_less_iter __comp;
- return __first +
+ return __first +
std::__is_heap_until(__first, std::distance(__first, __last), __comp);
}
diff --git a/libstdc++-v3/include/bits/stl_iterator.h b/libstdc++-v3/include/bits/stl_iterator.h
index 46e0d4619f1..5962ab3af3b 100644
--- a/libstdc++-v3/include/bits/stl_iterator.h
+++ b/libstdc++-v3/include/bits/stl_iterator.h
@@ -1598,10 +1598,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_GLIBCXX17_CONSTEXPR move_iterator
operator-(difference_type __n) const
{ return move_iterator(_M_current - __n); }
-
+
_GLIBCXX17_CONSTEXPR move_iterator&
operator-=(difference_type __n)
- {
+ {
_M_current -= __n;
return *this;
}
diff --git a/libstdc++-v3/include/bits/stl_iterator_base_funcs.h b/libstdc++-v3/include/bits/stl_iterator_base_funcs.h
index 0ee50aae993..c0defba4da4 100644
--- a/libstdc++-v3/include/bits/stl_iterator_base_funcs.h
+++ b/libstdc++-v3/include/bits/stl_iterator_base_funcs.h
@@ -244,7 +244,7 @@ _GLIBCXX_END_NAMESPACE_CONTAINER
_GLIBCXX_NODISCARD [[__gnu__::__always_inline__]]
inline _GLIBCXX17_CONSTEXPR _BidirectionalIterator
prev(_BidirectionalIterator __x, typename
- iterator_traits<_BidirectionalIterator>::difference_type __n = 1)
+ iterator_traits<_BidirectionalIterator>::difference_type __n = 1)
{
// concept requirements
__glibcxx_function_requires(_BidirectionalIteratorConcept<
diff --git a/libstdc++-v3/include/bits/stringfwd.h b/libstdc++-v3/include/bits/stringfwd.h
index 8f9a32dcb3b..55dd747f238 100644
--- a/libstdc++-v3/include/bits/stringfwd.h
+++ b/libstdc++-v3/include/bits/stringfwd.h
@@ -76,10 +76,10 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11
_GLIBCXX_END_NAMESPACE_CXX11
/// A string of @c char
- typedef basic_string string;
+ typedef basic_string string;
/// A string of @c wchar_t
- typedef basic_string wstring;
+ typedef basic_string wstring;
#ifdef _GLIBCXX_USE_CHAR8_T
/// A string of @c char8_t
@@ -88,10 +88,10 @@ _GLIBCXX_END_NAMESPACE_CXX11
#if __cplusplus >= 201103L
/// A string of @c char16_t
- typedef basic_string u16string;
+ typedef basic_string u16string;
/// A string of @c char32_t
- typedef basic_string u32string;
+ typedef basic_string u32string;
#endif
/** @} */
diff --git a/libstdc++-v3/include/bits/unordered_map.h b/libstdc++-v3/include/bits/unordered_map.h
index 01aa31a94ea..8607944d565 100644
--- a/libstdc++-v3/include/bits/unordered_map.h
+++ b/libstdc++-v3/include/bits/unordered_map.h
@@ -91,7 +91,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
* @tparam _Hash Hashing function object type, defaults to hash<_Value>.
* @tparam _Pred Predicate function object type, defaults
* to equal_to<_Value>.
- * @tparam _Alloc Allocator type, defaults to
+ * @tparam _Alloc Allocator type, defaults to
* std::allocator>.
*
* Meets the requirements of a container, and
@@ -458,7 +458,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
*
* @param __k Key to use for finding a possibly existing pair in
* the unordered_map.
- * @param __args Arguments used to generate the .second for a
+ * @param __args Arguments used to generate the .second for a
* new pair instance.
*
* @return A pair, of which the first element is an iterator that points
@@ -498,7 +498,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
* should be inserted.
* @param __k Key to use for finding a possibly existing pair in
* the unordered_map.
- * @param __args Arguments used to generate the .second for a
+ * @param __args Arguments used to generate the .second for a
* new pair instance.
* @return An iterator that points to the element with key of the
* std::pair built from @a __args (may or may not be that
@@ -544,8 +544,8 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
* @param __x Pair to be inserted (see std::make_pair for easy
* creation of pairs).
*
- * @return A pair, of which the first element is an iterator that
- * points to the possibly inserted pair, and the second is
+ * @return A pair, of which the first element is an iterator that
+ * points to the possibly inserted pair, and the second is
* a bool that is true if the pair was actually inserted.
*
* This function attempts to insert a (key, value) %pair into the
@@ -641,18 +641,18 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
* @brief Attempts to insert a std::pair into the %unordered_map.
* @param __k Key to use for finding a possibly existing pair in
* the map.
- * @param __obj Argument used to generate the .second for a pair
+ * @param __obj Argument used to generate the .second for a pair
* instance.
*
- * @return A pair, of which the first element is an iterator that
- * points to the possibly inserted pair, and the second is
+ * @return A pair, of which the first element is an iterator that
+ * points to the possibly inserted pair, and the second is
* a bool that is true if the pair was actually inserted.
*
* This function attempts to insert a (key, value) %pair into the
* %unordered_map. An %unordered_map relies on unique keys and thus a
* %pair is only inserted if its first element (the key) is not already
* present in the %unordered_map.
- * If the %pair was already in the %unordered_map, the .second of
+ * If the %pair was already in the %unordered_map, the .second of
* the %pair is assigned from __obj.
*
* Insertion requires amortized constant time.
@@ -686,14 +686,14 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
* pair should be inserted.
* @param __k Key to use for finding a possibly existing pair in
* the unordered_map.
- * @param __obj Argument used to generate the .second for a pair
+ * @param __obj Argument used to generate the .second for a pair
* instance.
* @return An iterator that points to the element with key of
* @a __x (may or may not be the %pair passed in).
*
* This function is not concerned about whether the insertion took place,
* and thus does not return a boolean like the single-argument insert()
- * does.
+ * does.
* If the %pair was already in the %unordered map, the .second of
* the %pair is assigned from __obj.
* Note that the first parameter is only a hint and can
@@ -1038,7 +1038,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
size_type
bucket(const key_type& __key) const
{ return _M_h.bucket(__key); }
-
+
/**
* @brief Returns a read/write iterator pointing to the first bucket
* element.
@@ -1938,7 +1938,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
size_type
bucket(const key_type& __key) const
{ return _M_h.bucket(__key); }
-
+
/**
* @brief Returns a read/write iterator pointing to the first bucket
* element.
diff --git a/libstdc++-v3/include/bits/valarray_after.h b/libstdc++-v3/include/bits/valarray_after.h
index 380839cccef..ea0e846f421 100644
--- a/libstdc++-v3/include/bits/valarray_after.h
+++ b/libstdc++-v3/include/bits/valarray_after.h
@@ -50,14 +50,14 @@ namespace __detail
{
public:
typedef typename _Dom::value_type value_type;
-
+
_GBase (const _Dom& __e, const valarray& __i)
: _M_expr (__e), _M_index(__i) {}
-
+
value_type
operator[] (size_t __i) const
{ return _M_expr[_M_index[__i]]; }
-
+
size_t
size () const
{ return _M_index.size(); }
@@ -72,14 +72,14 @@ namespace __detail
{
public:
typedef _Tp value_type;
-
+
_GBase (_Array<_Tp> __a, const valarray& __i)
: _M_array (__a), _M_index(__i) {}
-
+
value_type
operator[] (size_t __i) const
{ return _M_array._M_data[_M_index[__i]]; }
-
+
size_t
size () const
{ return _M_index.size(); }
@@ -95,7 +95,7 @@ namespace __detail
{
typedef _GBase<_Dom> _Base;
typedef typename _Base::value_type value_type;
-
+
_GClos (const _Dom& __e, const valarray& __i)
: _Base (__e, __i) {}
};
@@ -106,7 +106,7 @@ namespace __detail
{
typedef _GBase<_Array<_Tp> > _Base;
typedef typename _Base::value_type value_type;
-
+
_GClos (_Array<_Tp> __a, const valarray& __i)
: _Base (__a, __i) {}
};
@@ -122,11 +122,11 @@ namespace __detail
_IBase (const _Dom& __e, const valarray& __i)
: _M_expr (__e), _M_index (__i) {}
-
+
value_type
operator[] (size_t __i) const
{ return _M_expr[_M_index[__i]]; }
-
+
size_t
size() const
{ return _M_index.size(); }
@@ -142,7 +142,7 @@ namespace __detail
{
typedef _IBase<_Dom> _Base;
typedef typename _Base::value_type value_type;
-
+
_IClos (const _Dom& __e, const valarray& __i)
: _Base (__e, __i) {}
};
@@ -153,12 +153,12 @@ namespace __detail
{
typedef _IBase > _Base;
typedef _Tp value_type;
-
+
_IClos (const valarray<_Tp>& __a, const valarray& __i)
: _Base (__a, __i) {}
};
} // namespace __detail
-
+
//
// class _Expr
//
diff --git a/libstdc++-v3/include/bits/valarray_array.h b/libstdc++-v3/include/bits/valarray_array.h
index 0c143313882..ce21c32bc8e 100644
--- a/libstdc++-v3/include/bits/valarray_array.h
+++ b/libstdc++-v3/include/bits/valarray_array.h
@@ -160,13 +160,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
while (__n--)
*__a++ = __t;
}
-
+
// fill strided array __a[<__n-1 : __s>] with __t
template
inline void
__valarray_fill(_Tp* __restrict__ __a, size_t __n,
size_t __s, const _Tp& __t)
- {
+ {
for (size_t __i = 0; __i < __n; ++__i, __a += __s)
*__a = __t;
}
@@ -180,7 +180,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
for (size_t __j = 0; __j < __n; ++__j, ++__i)
__a[*__i] = __t;
}
-
+
// copy plain array __a[<__n>] in __b[<__n>]
// For non-fundamental types, it is wrong to say 'memcpy()'
template
@@ -339,9 +339,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
explicit _Array(_Tp* const __restrict__);
explicit _Array(const valarray<_Tp>&);
_Array(const _Tp* __restrict__, size_t);
-
+
_Tp* begin() const;
-
+
_Tp* const __restrict__ _M_data;
};
diff --git a/libstdc++-v3/include/bits/valarray_before.h b/libstdc++-v3/include/bits/valarray_before.h
index c6eabd2a16d..2c439f73e48 100644
--- a/libstdc++-v3/include/bits/valarray_before.h
+++ b/libstdc++-v3/include/bits/valarray_before.h
@@ -504,7 +504,7 @@ namespace __detail
{ return _Oper()(_M_expr[__i]); }
size_t size() const { return _M_expr.size(); }
-
+
private:
typename _ValArrayRef<_Arg>::__type _M_expr;
};
@@ -692,14 +692,14 @@ namespace __detail
{
public:
typedef typename _Dom::value_type value_type;
-
+
_SBase (const _Dom& __e, const slice& __s)
: _M_expr (__e), _M_slice (__s) {}
-
+
value_type
operator[] (size_t __i) const
{ return _M_expr[_M_slice.start () + __i * _M_slice.stride ()]; }
-
+
size_t
size() const
{ return _M_slice.size (); }
@@ -714,15 +714,15 @@ namespace __detail
{
public:
typedef _Tp value_type;
-
+
_SBase (_Array<_Tp> __a, const slice& __s)
: _M_array (__a._M_data+__s.start()), _M_size (__s.size()),
_M_stride (__s.stride()) {}
-
+
value_type
operator[] (size_t __i) const
{ return _M_array._M_data[__i * _M_stride]; }
-
+
size_t
size() const
{ return _M_size; }
@@ -739,7 +739,7 @@ namespace __detail
{
typedef _SBase<_Dom> _Base;
typedef typename _Base::value_type value_type;
-
+
_SClos (const _Dom& __e, const slice& __s) : _Base (__e, __s) {}
};
@@ -749,7 +749,7 @@ namespace __detail
{
typedef _SBase<_Array<_Tp> > _Base;
typedef _Tp value_type;
-
+
_SClos (_Array<_Tp> __a, const slice& __s) : _Base (__a, __s) {}
};
} // namespace __detail
diff --git a/libstdc++-v3/include/c_compatibility/stdint.h b/libstdc++-v3/include/c_compatibility/stdint.h
index 8923db83edd..fec69009f53 100644
--- a/libstdc++-v3/include/c_compatibility/stdint.h
+++ b/libstdc++-v3/include/c_compatibility/stdint.h
@@ -82,7 +82,7 @@ namespace std
using ::intmax_t;
using ::intptr_t;
-
+
using ::uint8_t;
using ::uint16_t;
using ::uint32_t;
diff --git a/libstdc++-v3/include/c_compatibility/wchar.h b/libstdc++-v3/include/c_compatibility/wchar.h
index c618b1779c6..d7420dd1745 100644
--- a/libstdc++-v3/include/c_compatibility/wchar.h
+++ b/libstdc++-v3/include/c_compatibility/wchar.h
@@ -111,6 +111,6 @@ using std::wcstoull;
#endif //_GLIBCXX_USE_WCHAR_T
-#endif
+#endif
#endif
diff --git a/libstdc++-v3/include/debug/debug.h b/libstdc++-v3/include/debug/debug.h
index 3d1f0979557..4c881259ca2 100644
--- a/libstdc++-v3/include/debug/debug.h
+++ b/libstdc++-v3/include/debug/debug.h
@@ -46,8 +46,8 @@
* @brief GNU debug code, replaces standard behavior with debug behavior.
*/
namespace std
-{
- namespace __debug { }
+{
+ namespace __debug { }
}
/** @namespace __gnu_debug
diff --git a/libstdc++-v3/include/ext/atomicity.h b/libstdc++-v3/include/ext/atomicity.h
index 964a63438d3..624258670ac 100644
--- a/libstdc++-v3/include/ext/atomicity.h
+++ b/libstdc++-v3/include/ext/atomicity.h
@@ -126,4 +126,4 @@ _GLIBCXX_END_NAMESPACE_VERSION
#define _GLIBCXX_WRITE_MEM_BARRIER __atomic_thread_fence (__ATOMIC_RELEASE)
#endif
-#endif
+#endif
diff --git a/libstdc++-v3/include/ext/bitmap_allocator.h b/libstdc++-v3/include/ext/bitmap_allocator.h
index 45b2283ca30..c23fe2dc95f 100644
--- a/libstdc++-v3/include/ext/bitmap_allocator.h
+++ b/libstdc++-v3/include/ext/bitmap_allocator.h
@@ -57,7 +57,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
*
* It is to be used only for built-in types or PODs. Notable
* differences are:
- *
+ *
* 1. Not all accessor functions are present.
* 2. Used ONLY for PODs.
* 3. No Allocator template argument. Uses ::operator new() to get
@@ -225,8 +225,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
typedef std::ptrdiff_t difference_type;
};
- enum
- {
+ enum
+ {
bits_per_byte = 8,
bits_per_block = sizeof(std::size_t) * std::size_t(bits_per_byte)
};
@@ -278,42 +278,42 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// _Tp should be a pointer type.
template
- class _Inclusive_between
+ class _Inclusive_between
{
typedef _Tp pointer;
pointer _M_ptr_value;
typedef typename std::pair<_Tp, _Tp> _Block_pair;
-
+
public:
- _Inclusive_between(pointer __ptr) : _M_ptr_value(__ptr)
+ _Inclusive_between(pointer __ptr) : _M_ptr_value(__ptr)
{ }
-
- bool
+
+ bool
operator()(_Block_pair __bp) const throw()
{
- if (std::less_equal()(_M_ptr_value, __bp.second)
+ if (std::less_equal()(_M_ptr_value, __bp.second)
&& std::greater_equal()(_M_ptr_value, __bp.first))
return true;
else
return false;
}
};
-
+
// Used to pass a Functor to functions by reference.
template
- class _Functor_Ref
+ class _Functor_Ref
{
_Functor& _M_fref;
-
+
public:
typedef typename _Functor::argument_type argument_type;
typedef typename _Functor::result_type result_type;
- _Functor_Ref(_Functor& __fref) : _M_fref(__fref)
+ _Functor_Ref(_Functor& __fref) : _M_fref(__fref)
{ }
- result_type
- operator()(argument_type __arg)
+ result_type
+ operator()(argument_type __arg)
{ return _M_fref(__arg); }
};
@@ -325,7 +325,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// _Tp should be a pointer type, and _Alloc is the Allocator for
// the vector.
template
- class _Ffit_finder
+ class _Ffit_finder
{
typedef std::pair<_Tp, _Tp> _Block_pair;
typedef __detail::__mini_vector<_Block_pair> _BPVector;
@@ -341,7 +341,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_Ffit_finder() : _M_pbitmap(0), _M_data_offset(0)
{ }
- bool
+ bool
operator()(_Block_pair __bp) throw()
{
using std::size_t;
@@ -375,7 +375,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
}
return false;
}
-
+
std::size_t*
_M_get() const throw()
{ return _M_pbitmap; }
@@ -404,15 +404,15 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
std::size_t* _M_curr_bmap;
std::size_t* _M_last_bmap_in_block;
_Index_type _M_curr_index;
-
+
public:
// Use the 2nd parameter with care. Make sure that such an
// entry exists in the vector before passing that particular
// index to this ctor.
_Bitmap_counter(_BPVector& Rvbp, long __index = -1) : _M_vbp(Rvbp)
{ this->_M_reset(__index); }
-
- void
+
+ void
_M_reset(long __index = -1) throw()
{
if (__index == -1)
@@ -425,26 +425,26 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_M_curr_index = __index;
_M_curr_bmap = reinterpret_cast
(_M_vbp[_M_curr_index].first) - 1;
-
+
_GLIBCXX_DEBUG_ASSERT(__index <= (long)_M_vbp.size() - 1);
-
+
_M_last_bmap_in_block = _M_curr_bmap
- - ((_M_vbp[_M_curr_index].second
- - _M_vbp[_M_curr_index].first + 1)
+ - ((_M_vbp[_M_curr_index].second
+ - _M_vbp[_M_curr_index].first + 1)
/ std::size_t(bits_per_block) - 1);
}
-
+
// Dangerous Function! Use with extreme care. Pass to this
// function ONLY those values that are known to be correct,
// otherwise this will mess up big time.
void
_M_set_internal_bitmap(std::size_t* __new_internal_marker) throw()
{ _M_curr_bmap = __new_internal_marker; }
-
+
bool
_M_finished() const throw()
{ return(_M_curr_bmap == 0); }
-
+
_Bitmap_counter&
operator++() throw()
{
@@ -459,12 +459,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
--_M_curr_bmap;
return *this;
}
-
+
std::size_t*
_M_get() const throw()
{ return _M_curr_bmap; }
-
- pointer
+
+ pointer
_M_base() const throw()
{ return _M_vbp[_M_curr_index].first; }
@@ -475,7 +475,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* ((reinterpret_cast(this->_M_base())
- _M_curr_bmap) - 1);
}
-
+
_Index_type
_M_where() const throw()
{ return _M_curr_index; }
@@ -484,18 +484,18 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
/** @brief Mark a memory address as allocated by re-setting the
* corresponding bit in the bit-map.
*/
- inline void
+ inline void
__bit_allocate(std::size_t* __pbmap, std::size_t __pos) throw()
{
std::size_t __mask = 1 << __pos;
__mask = ~__mask;
*__pbmap &= __mask;
}
-
+
/** @brief Mark a memory address as free by setting the
* corresponding bit in the bit-map.
*/
- inline void
+ inline void
__bit_free(std::size_t* __pbmap, std::size_t __pos) throw()
{
std::size_t __mask = 1 << __pos;
@@ -582,10 +582,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__free_list.pop_back();
}
}
-
+
// Just add the block to the list of free lists unconditionally.
iterator __temp = __detail::__lower_bound
- (__free_list.begin(), __free_list.end(),
+ (__free_list.begin(), __free_list.end(),
*__addr, _LT_pointer_compare());
// We may insert the new free list before _temp;
@@ -603,12 +603,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* @return true if the wastage incurred is acceptable, else returns
* false.
*/
- bool
+ bool
_M_should_i_give(std::size_t __block_size,
std::size_t __required_size) throw()
{
const std::size_t __max_wastage_percentage = 36;
- if (__block_size >= __required_size &&
+ if (__block_size >= __required_size &&
(((__block_size - __required_size) * 100 / __block_size)
< __max_wastage_percentage))
return true;
@@ -623,7 +623,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* @param __addr The pointer to the memory block that was given
* by a call to the _M_get function.
*/
- inline void
+ inline void
_M_insert(std::size_t* __addr) throw()
{
#if defined __GTHREADS
@@ -634,7 +634,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
this->_M_validate(reinterpret_cast(__addr) - 1);
// See discussion as to why this is 1!
}
-
+
/** @brief This function gets a block of memory of the specified
* size from the free list.
*
@@ -649,13 +649,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
/** @brief This function just clears the internal Free List, and
* gives back all the memory to the OS.
*/
- void
+ void
_M_clear();
};
// Forward declare the class.
- template
+ template
class bitmap_allocator;
// Specialize for void:
@@ -709,7 +709,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
struct aligned_size
{
enum
- {
+ {
modulus = _BSize % _AlignSize,
value = _BSize + (modulus ? _AlignSize - (modulus) : 0)
};
@@ -740,7 +740,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
#if defined _GLIBCXX_DEBUG
// Complexity: O(lg(N)). Where, N is the number of block of size
// sizeof(value_type).
- void
+ void
_S_check_for_free_blocks() throw()
{
typedef typename __detail::_Ffit_finder<_Alloc_block*> _FFF;
@@ -761,7 +761,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* is the number of blocks of size sizeof(value_type) within
* the newly acquired block. Having a tight bound.
*/
- void
+ void
_S_refill_pool() _GLIBCXX_THROW(std::bad_alloc)
{
using std::size_t;
@@ -771,8 +771,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
const size_t __num_bitmaps = (_S_block_size
/ size_t(__detail::bits_per_block));
- const size_t __size_to_allocate = sizeof(size_t)
- + _S_block_size * sizeof(_Alloc_block)
+ const size_t __size_to_allocate = sizeof(size_t)
+ + _S_block_size * sizeof(_Alloc_block)
+ __num_bitmaps * sizeof(size_t);
size_t* __temp =
@@ -781,13 +781,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
++__temp;
// The Header information goes at the Beginning of the Block.
- _Block_pair __bp =
+ _Block_pair __bp =
std::make_pair(reinterpret_cast<_Alloc_block*>
- (__temp + __num_bitmaps),
+ (__temp + __num_bitmaps),
reinterpret_cast<_Alloc_block*>
- (__temp + __num_bitmaps)
+ (__temp + __num_bitmaps)
+ _S_block_size - 1);
-
+
// Fill the Vector with this information.
_S_mem_blocks.push_back(__bp);
@@ -820,7 +820,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* function to have a complexity referred to commonly as:
* Amortized Constant time.
*/
- pointer
+ pointer
_M_allocate_single_object() _GLIBCXX_THROW(std::bad_alloc)
{
using std::size_t;
@@ -865,10 +865,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// Now, get the address of the bit we marked as allocated.
pointer __ret = reinterpret_cast
(__bpi->first + __fff._M_offset() + __nz_bit);
- size_t* __puse_count =
+ size_t* __puse_count =
reinterpret_cast
(__bpi->first) - (__detail::__num_bitmaps(*__bpi) + 1);
-
+
++(*__puse_count);
return __ret;
}
@@ -911,7 +911,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* close to each other and this case is handled in O(1) time by
* the deallocate function.
*/
- void
+ void
_M_deallocate_single_object(pointer __p) throw()
{
using std::size_t;
@@ -952,16 +952,16 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// Get the position of the iterator that has been found.
const size_t __rotate = (__displacement
% size_t(__detail::bits_per_block));
- size_t* __bitmapC =
+ size_t* __bitmapC =
reinterpret_cast
(_S_mem_blocks[__diff].first) - 1;
__bitmapC -= (__displacement / size_t(__detail::bits_per_block));
-
+
__detail::__bit_free(__bitmapC, __rotate);
size_t* __puse_count = reinterpret_cast
(_S_mem_blocks[__diff].first)
- (__detail::__num_bitmaps(_S_mem_blocks[__diff]) + 1);
-
+
_GLIBCXX_DEBUG_ASSERT(*__puse_count != 0);
--(*__puse_count);
@@ -969,7 +969,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
if (__builtin_expect(*__puse_count == 0, false))
{
_S_block_size /= 2;
-
+
// We can safely remove this block.
// _Block_pair __bp = _S_mem_blocks[__diff];
this->_M_insert(__puse_count);
@@ -982,7 +982,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// free list, and hence had been erased from the vector,
// so the size of the vector gets reduced by 1.
if ((_Difference_type)_S_last_request._M_where() >= __diff--)
- _S_last_request._M_reset(__diff);
+ _S_last_request._M_reset(__diff);
// If the Index into the vector of the region of memory
// that might hold the next address that will be passed to
@@ -1011,7 +1011,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
~bitmap_allocator() _GLIBCXX_USE_NOEXCEPT
{ }
- _GLIBCXX_NODISCARD pointer
+ _GLIBCXX_NODISCARD pointer
allocate(size_type __n)
{
if (__n > this->max_size())
@@ -1029,17 +1029,17 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
if (__builtin_expect(__n == 1, true))
return this->_M_allocate_single_object();
else
- {
+ {
const size_type __b = __n * sizeof(value_type);
return reinterpret_cast(::operator new(__b));
}
}
- _GLIBCXX_NODISCARD pointer
+ _GLIBCXX_NODISCARD pointer
allocate(size_type __n, typename bitmap_allocator::const_pointer)
{ return allocate(__n); }
- void
+ void
deallocate(pointer __p, size_type __n) throw()
{
if (__builtin_expect(__p != 0, true))
@@ -1060,15 +1060,15 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
}
}
- pointer
+ pointer
address(reference __r) const _GLIBCXX_NOEXCEPT
{ return std::__addressof(__r); }
- const_pointer
+ const_pointer
address(const_reference __r) const _GLIBCXX_NOEXCEPT
{ return std::__addressof(__r); }
- size_type
+ size_type
max_size() const _GLIBCXX_USE_NOEXCEPT
{ return size_type(-1) / sizeof(value_type); }
@@ -1079,31 +1079,31 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
template
- void
+ void
destroy(_Up* __p)
{ __p->~_Up(); }
#else
- void
+ void
construct(pointer __p, const_reference __data)
{ ::new((void *)__p) value_type(__data); }
- void
+ void
destroy(pointer __p)
{ __p->~value_type(); }
#endif
};
template
- bool
- operator==(const bitmap_allocator<_Tp1>&,
+ bool
+ operator==(const bitmap_allocator<_Tp1>&,
const bitmap_allocator<_Tp2>&) throw()
{ return true; }
-
+
#if __cpp_impl_three_way_comparison < 201907L
template
- bool
- operator!=(const bitmap_allocator<_Tp1>&,
- const bitmap_allocator<_Tp2>&) throw()
+ bool
+ operator!=(const bitmap_allocator<_Tp1>&,
+ const bitmap_allocator<_Tp2>&) throw()
{ return false; }
#endif
@@ -1117,7 +1117,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
= 2 * std::size_t(__detail::bits_per_block);
template
- typename bitmap_allocator<_Tp>::_BPVector::size_type
+ typename bitmap_allocator<_Tp>::_BPVector::size_type
bitmap_allocator<_Tp>::_S_last_dealloc_index = 0;
template
@@ -1134,4 +1134,4 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_GLIBCXX_END_NAMESPACE_VERSION
} // namespace __gnu_cxx
-#endif
+#endif
diff --git a/libstdc++-v3/include/ext/codecvt_specializations.h b/libstdc++-v3/include/ext/codecvt_specializations.h
index 7306c7d3ac0..0da3a89e26f 100644
--- a/libstdc++-v3/include/ext/codecvt_specializations.h
+++ b/libstdc++-v3/include/ext/codecvt_specializations.h
@@ -53,11 +53,11 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11
class encoding_state
{
public:
- // Types:
+ // Types:
// NB: A conversion descriptor subsumes and enhances the
// functionality of a simple state type such as mbstate_t.
typedef iconv_t descriptor_type;
-
+
protected:
// Name of internal character set encoding.
std::string _M_int_enc;
@@ -83,15 +83,15 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11
int _M_bytes;
public:
- explicit
- encoding_state()
+ explicit
+ encoding_state()
: _M_in_desc(0), _M_out_desc(0), _M_ext_bom(0), _M_int_bom(0), _M_bytes(0)
{ }
- explicit
- encoding_state(const char* __int, const char* __ext,
+ explicit
+ encoding_state(const char* __int, const char* __ext,
int __ibom = 0, int __ebom = 0, int __bytes = 1)
- : _M_int_enc(__int), _M_ext_enc(__ext), _M_in_desc(0), _M_out_desc(0),
+ : _M_int_enc(__int), _M_ext_enc(__ext), _M_in_desc(0), _M_out_desc(0),
_M_ext_bom(__ebom), _M_int_bom(__ibom), _M_bytes(__bytes)
{ init(); }
@@ -115,17 +115,17 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11
}
~encoding_state()
- { destroy(); }
+ { destroy(); }
bool
good() const throw()
- {
+ {
const descriptor_type __err = (iconv_t)(-1);
- bool __test = _M_in_desc && _M_in_desc != __err;
+ bool __test = _M_in_desc && _M_in_desc != __err;
__test &= _M_out_desc && _M_out_desc != __err;
return __test;
}
-
+
int
character_ratio() const
{ return _M_bytes; }
@@ -134,7 +134,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11
internal_encoding() const
{ return _M_int_enc; }
- int
+ int
internal_bom() const
{ return _M_int_bom; }
@@ -142,7 +142,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11
external_encoding() const
{ return _M_ext_enc; }
- int
+ int
external_bom() const
{ return _M_ext_bom; }
@@ -192,12 +192,12 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11
destroy() throw()
{
const descriptor_type __err = (iconv_t)(-1);
- if (_M_in_desc && _M_in_desc != __err)
+ if (_M_in_desc && _M_in_desc != __err)
{
iconv_close(_M_in_desc);
_M_in_desc = 0;
}
- if (_M_out_desc && _M_out_desc != __err)
+ if (_M_out_desc && _M_out_desc != __err)
{
iconv_close(_M_out_desc);
_M_out_desc = 0;
@@ -235,7 +235,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
class codecvt<_InternT, _ExternT, encoding_state>
: public __codecvt_abstract_base<_InternT, _ExternT, encoding_state>
{
- public:
+ public:
// Types:
typedef codecvt_base::result result;
typedef _InternT intern_type;
@@ -246,52 +246,52 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// Data Members:
static locale::id id;
- explicit
+ explicit
codecvt(size_t __refs = 0)
: __codecvt_abstract_base(__refs)
{ }
- explicit
+ explicit
codecvt(state_type& __enc, size_t __refs = 0)
: __codecvt_abstract_base(__refs)
{ }
protected:
- virtual
+ virtual
~codecvt() { }
virtual result
- do_out(state_type& __state, const intern_type* __from,
+ do_out(state_type& __state, const intern_type* __from,
const intern_type* __from_end, const intern_type*& __from_next,
extern_type* __to, extern_type* __to_end,
extern_type*& __to_next) const;
virtual result
- do_unshift(state_type& __state, extern_type* __to,
+ do_unshift(state_type& __state, extern_type* __to,
extern_type* __to_end, extern_type*& __to_next) const;
virtual result
- do_in(state_type& __state, const extern_type* __from,
+ do_in(state_type& __state, const extern_type* __from,
const extern_type* __from_end, const extern_type*& __from_next,
- intern_type* __to, intern_type* __to_end,
+ intern_type* __to, intern_type* __to_end,
intern_type*& __to_next) const;
- virtual int
+ virtual int
do_encoding() const throw();
- virtual bool
+ virtual bool
do_always_noconv() const throw();
- virtual int
- do_length(state_type&, const extern_type* __from,
+ virtual int
+ do_length(state_type&, const extern_type* __from,
const extern_type* __end, size_t __max) const;
- virtual int
+ virtual int
do_max_length() const throw();
};
template
- locale::id
+ locale::id
codecvt<_InternT, _ExternT, encoding_state>::id;
// This adaptor works around the signature problems of the second
@@ -308,7 +308,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
template
codecvt_base::result
codecvt<_InternT, _ExternT, encoding_state>::
- do_out(state_type& __state, const intern_type* __from,
+ do_out(state_type& __state, const intern_type* __from,
const intern_type* __from_end, const intern_type*& __from_next,
extern_type* __to, extern_type* __to_end,
extern_type*& __to_next) const
@@ -320,8 +320,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
const size_t __fmultiple = sizeof(intern_type);
size_t __fbytes = __fmultiple * (__from_end - __from);
const size_t __tmultiple = sizeof(extern_type);
- size_t __tbytes = __tmultiple * (__to_end - __to);
-
+ size_t __tbytes = __tmultiple * (__to_end - __to);
+
// Argument list for iconv specifies a byte sequence. Thus,
// all to/from arrays must be brutally casted to char*.
char* __cto = reinterpret_cast(__to);
@@ -335,7 +335,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// merry way.
int __int_bom = __state.internal_bom();
if (__int_bom)
- {
+ {
size_t __size = __from_end - __from;
intern_type* __cfixed = static_cast
(__builtin_alloca(sizeof(intern_type) * (__size + 1)));
@@ -343,14 +343,14 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
char_traits::copy(__cfixed + 1, __from, __size);
__cfrom = reinterpret_cast(__cfixed);
__conv = __iconv_adaptor(iconv, __desc, &__cfrom,
- &__fbytes, &__cto, &__tbytes);
+ &__fbytes, &__cto, &__tbytes);
}
else
{
intern_type* __cfixed = const_cast(__from);
__cfrom = reinterpret_cast(__cfixed);
- __conv = __iconv_adaptor(iconv, __desc, &__cfrom, &__fbytes,
- &__cto, &__tbytes);
+ __conv = __iconv_adaptor(iconv, __desc, &__cfrom, &__fbytes,
+ &__cto, &__tbytes);
}
if (__conv != size_t(-1))
@@ -359,7 +359,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__to_next = reinterpret_cast(__cto);
__ret = codecvt_base::ok;
}
- else
+ else
{
if (__fbytes < __fmultiple * (__from_end - __from))
{
@@ -371,13 +371,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__ret = codecvt_base::error;
}
}
- return __ret;
+ return __ret;
}
template
codecvt_base::result
codecvt<_InternT, _ExternT, encoding_state>::
- do_unshift(state_type& __state, extern_type* __to,
+ do_unshift(state_type& __state, extern_type* __to,
extern_type* __to_end, extern_type*& __to_next) const
{
result __ret = codecvt_base::error;
@@ -385,14 +385,14 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
const descriptor_type& __desc = __state.in_descriptor();
const size_t __tmultiple = sizeof(intern_type);
- size_t __tlen = __tmultiple * (__to_end - __to);
-
+ size_t __tlen = __tmultiple * (__to_end - __to);
+
// Argument list for iconv specifies a byte sequence. Thus,
// all to/from arrays must be brutally casted to char*.
char* __cto = reinterpret_cast(__to);
size_t __conv = __iconv_adaptor(iconv,__desc, 0, 0,
- &__cto, &__tlen);
-
+ &__cto, &__tlen);
+
if (__conv != size_t(-1))
{
__to_next = reinterpret_cast(__cto);
@@ -403,20 +403,20 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
else
__ret = codecvt_base::partial;
}
- else
+ else
__ret = codecvt_base::error;
}
- return __ret;
+ return __ret;
}
-
+
template
codecvt_base::result
codecvt<_InternT, _ExternT, encoding_state>::
- do_in(state_type& __state, const extern_type* __from,
+ do_in(state_type& __state, const extern_type* __from,
const extern_type* __from_end, const extern_type*& __from_next,
- intern_type* __to, intern_type* __to_end,
+ intern_type* __to, intern_type* __to_end,
intern_type*& __to_next) const
- {
+ {
result __ret = codecvt_base::error;
if (__state.good())
{
@@ -424,8 +424,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
const size_t __fmultiple = sizeof(extern_type);
size_t __flen = __fmultiple * (__from_end - __from);
const size_t __tmultiple = sizeof(intern_type);
- size_t __tlen = __tmultiple * (__to_end - __to);
-
+ size_t __tlen = __tmultiple * (__to_end - __to);
+
// Argument list for iconv specifies a byte sequence. Thus,
// all to/from arrays must be brutally casted to char*.
char* __cto = reinterpret_cast(__to);
@@ -439,7 +439,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// merry way.
int __ext_bom = __state.external_bom();
if (__ext_bom)
- {
+ {
size_t __size = __from_end - __from;
extern_type* __cfixed = static_cast
(__builtin_alloca(sizeof(extern_type) * (__size + 1)));
@@ -447,24 +447,24 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
char_traits::copy(__cfixed + 1, __from, __size);
__cfrom = reinterpret_cast(__cfixed);
__conv = __iconv_adaptor(iconv, __desc, &__cfrom,
- &__flen, &__cto, &__tlen);
+ &__flen, &__cto, &__tlen);
}
else
{
extern_type* __cfixed = const_cast(__from);
__cfrom = reinterpret_cast(__cfixed);
__conv = __iconv_adaptor(iconv, __desc, &__cfrom,
- &__flen, &__cto, &__tlen);
+ &__flen, &__cto, &__tlen);
}
-
+
if (__conv != size_t(-1))
{
__from_next = reinterpret_cast(__cfrom);
__to_next = reinterpret_cast(__cto);
__ret = codecvt_base::ok;
}
- else
+ else
{
if (__flen < static_cast(__from_end - __from))
{
@@ -476,37 +476,37 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__ret = codecvt_base::error;
}
}
- return __ret;
+ return __ret;
}
-
+
template
- int
+ int
codecvt<_InternT, _ExternT, encoding_state>::
do_encoding() const throw()
{
int __ret = 0;
if (sizeof(_ExternT) <= sizeof(_InternT))
__ret = sizeof(_InternT) / sizeof(_ExternT);
- return __ret;
+ return __ret;
}
-
+
template
- bool
+ bool
codecvt<_InternT, _ExternT, encoding_state>::
do_always_noconv() const throw()
{ return false; }
-
+
template
- int
+ int
codecvt<_InternT, _ExternT, encoding_state>::
- do_length(state_type&, const extern_type* __from,
+ do_length(state_type&, const extern_type* __from,
const extern_type* __end, size_t __max) const
{ return std::min(__max, static_cast(__end - __from)); }
// _GLIBCXX_RESOLVE_LIB_DEFECTS
// 74. Garbled text for codecvt::do_max_length
template
- int
+ int
codecvt<_InternT, _ExternT, encoding_state>::
do_max_length() const throw()
{ return 1; }
diff --git a/libstdc++-v3/include/ext/concurrence.h b/libstdc++-v3/include/ext/concurrence.h
index 8191e7abe04..5f8ecccf030 100644
--- a/libstdc++-v3/include/ext/concurrence.h
+++ b/libstdc++-v3/include/ext/concurrence.h
@@ -34,7 +34,7 @@
#endif
#include
-#include
+#include
#include
#include
#include
@@ -51,7 +51,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// _S_mutex multi-threaded code that requires additional support
// from gthr.h or abstraction layers in concurrence.h.
// _S_atomic multi-threaded code using atomic operations.
- enum _Lock_policy { _S_single, _S_mutex, _S_atomic };
+ enum _Lock_policy { _S_single, _S_mutex, _S_atomic };
// Compile time constant that indicates prefered locking policy in
// the current configuration.
@@ -116,8 +116,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__throw_concurrence_wait_error()
{ _GLIBCXX_THROW_OR_ABORT(__concurrence_wait_error()); }
#endif
-
- class __mutex
+
+ class __mutex
{
private:
#if __GTHREADS && defined __GTHREAD_MUTEX_INIT
@@ -130,8 +130,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__mutex& operator=(const __mutex&);
public:
- __mutex()
- {
+ __mutex()
+ {
#if __GTHREADS && ! defined __GTHREAD_MUTEX_INIT
if (__gthread_active_p())
__GTHREAD_MUTEX_INIT_FUNCTION(&_M_mutex);
@@ -139,12 +139,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
}
#if __GTHREADS && ! defined __GTHREAD_MUTEX_INIT
- ~__mutex()
- {
+ ~__mutex()
+ {
if (__gthread_active_p())
- __gthread_mutex_destroy(&_M_mutex);
+ __gthread_mutex_destroy(&_M_mutex);
}
-#endif
+#endif
void lock()
{
@@ -156,7 +156,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
}
#endif
}
-
+
void unlock()
{
#if __GTHREADS
@@ -172,7 +172,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{ return &_M_mutex; }
};
- class __recursive_mutex
+ class __recursive_mutex
{
private:
#if __GTHREADS && defined __GTHREAD_RECURSIVE_MUTEX_INIT
@@ -185,8 +185,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__recursive_mutex& operator=(const __recursive_mutex&);
public:
- __recursive_mutex()
- {
+ __recursive_mutex()
+ {
#if __GTHREADS && ! defined __GTHREAD_RECURSIVE_MUTEX_INIT
if (__gthread_active_p())
__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION(&_M_mutex);
@@ -202,7 +202,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
#endif
void lock()
- {
+ {
#if __GTHREADS
if (__gthread_active_p())
{
@@ -211,9 +211,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
}
#endif
}
-
+
void unlock()
- {
+ {
#if __GTHREADS
if (__gthread_active_p())
{
@@ -263,8 +263,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__cond& operator=(const __cond&);
public:
- __cond()
- {
+ __cond()
+ {
#if __GTHREADS && ! defined __GTHREAD_COND_INIT
if (__gthread_active_p())
__GTHREAD_COND_INIT_FUNCTION(&_M_cond);
@@ -272,12 +272,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
}
#if __GTHREADS && ! defined __GTHREAD_COND_INIT
- ~__cond()
- {
+ ~__cond()
+ {
if (__gthread_active_p())
- __gthread_cond_destroy(&_M_cond);
+ __gthread_cond_destroy(&_M_cond);
}
-#endif
+#endif
void broadcast()
{
diff --git a/libstdc++-v3/include/ext/debug_allocator.h b/libstdc++-v3/include/ext/debug_allocator.h
index 12b8725ee83..15d0fe02602 100644
--- a/libstdc++-v3/include/ext/debug_allocator.h
+++ b/libstdc++-v3/include/ext/debug_allocator.h
@@ -87,7 +87,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// _M_extra is the number of objects that correspond to the
// extra space where debug information is stored.
size_type _M_extra;
-
+
_Alloc _M_allocator;
template(__res);
*__ps = __n;
return __res + _M_extra;
diff --git a/libstdc++-v3/include/ext/extptr_allocator.h b/libstdc++-v3/include/ext/extptr_allocator.h
index dba60917a67..92d5ca800da 100644
--- a/libstdc++-v3/include/ext/extptr_allocator.h
+++ b/libstdc++-v3/include/ext/extptr_allocator.h
@@ -63,7 +63,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// Note the non-standard pointer types.
typedef _Pointer_adapter<_Relative_pointer_impl<_Tp> > pointer;
- typedef _Pointer_adapter<_Relative_pointer_impl >
+ typedef _Pointer_adapter<_Relative_pointer_impl >
const_pointer;
typedef _Tp& reference;
@@ -74,7 +74,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
struct rebind
{ typedef _ExtPtr_allocator<_Up> other; };
- _ExtPtr_allocator() _GLIBCXX_USE_NOEXCEPT
+ _ExtPtr_allocator() _GLIBCXX_USE_NOEXCEPT
: _M_real_alloc() { }
_ExtPtr_allocator(const _ExtPtr_allocator& __rarg) _GLIBCXX_USE_NOEXCEPT
@@ -115,7 +115,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{ construct(__p.get(), std::forward<_Args>(__args)...); }
template
- void
+ void
destroy(_Up* __p)
{ __p->~_Up(); }
diff --git a/libstdc++-v3/include/ext/malloc_allocator.h b/libstdc++-v3/include/ext/malloc_allocator.h
index 2a58847b8a9..03cce3916bb 100644
--- a/libstdc++-v3/include/ext/malloc_allocator.h
+++ b/libstdc++-v3/include/ext/malloc_allocator.h
@@ -48,7 +48,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* @brief An allocator that uses malloc.
* @ingroup allocators
*
- * This is precisely the allocator defined in the C++ Standard.
+ * This is precisely the allocator defined in the C++ Standard.
* - all allocation calls malloc
* - all deallocation calls free
*/
@@ -154,7 +154,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
#if __cplusplus <= 201703L
size_type
- max_size() const _GLIBCXX_USE_NOEXCEPT
+ max_size() const _GLIBCXX_USE_NOEXCEPT
{ return _M_max_size(); }
#if __cplusplus >= 201103L
@@ -165,7 +165,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
template
- void
+ void
destroy(_Up* __p)
noexcept(std::is_nothrow_destructible<_Up>::value)
{ __p->~_Up(); }
diff --git a/libstdc++-v3/include/ext/mt_allocator.h b/libstdc++-v3/include/ext/mt_allocator.h
index 77f7dcd2762..32421180522 100644
--- a/libstdc++-v3/include/ext/mt_allocator.h
+++ b/libstdc++-v3/include/ext/mt_allocator.h
@@ -71,13 +71,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// NB: In any case must be >= sizeof(_Block_record), that
// is 4 on 32 bit machines and 8 on 64 bit machines.
size_t _M_align;
-
+
// Allocation requests (after round-up to power of 2) below
// this value will be handled by the allocator. A raw new/
// call will be used for requests larger than this value.
// NB: Must be much smaller than _M_chunk_size and in any
// case <= 32768.
- size_t _M_max_bytes;
+ size_t _M_max_bytes;
// Size in bytes of the smallest bin.
// NB: Must be a power of 2 and >= _M_align (and of course
@@ -89,7 +89,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// value. Based on previous discussions on the libstdc++
// mailing list we have chosen the value below.
// See http://gcc.gnu.org/ml/libstdc++/2001-07/msg00077.html
- // NB: At least one order of magnitude > _M_max_bytes.
+ // NB: At least one order of magnitude > _M_max_bytes.
size_t _M_chunk_size;
// The maximum number of supported threads. For
@@ -107,40 +107,40 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// _M_freelist_headroom % of the freelist, we move these
// records back to the global pool.
size_t _M_freelist_headroom;
-
+
// Set to true forces all allocations to use new().
- bool _M_force_new;
-
+ bool _M_force_new;
+
explicit
_Tune()
: _M_align(_S_align), _M_max_bytes(_S_max_bytes), _M_min_bin(_S_min_bin),
- _M_chunk_size(_S_chunk_size), _M_max_threads(_S_max_threads),
- _M_freelist_headroom(_S_freelist_headroom),
+ _M_chunk_size(_S_chunk_size), _M_max_threads(_S_max_threads),
+ _M_freelist_headroom(_S_freelist_headroom),
_M_force_new(std::getenv("GLIBCXX_FORCE_NEW") ? true : false)
{ }
explicit
- _Tune(size_t __align, size_t __maxb, size_t __minbin, size_t __chunk,
- size_t __maxthreads, size_t __headroom, bool __force)
+ _Tune(size_t __align, size_t __maxb, size_t __minbin, size_t __chunk,
+ size_t __maxthreads, size_t __headroom, bool __force)
: _M_align(__align), _M_max_bytes(__maxb), _M_min_bin(__minbin),
_M_chunk_size(__chunk), _M_max_threads(__maxthreads),
_M_freelist_headroom(__headroom), _M_force_new(__force)
{ }
};
-
+
struct _Block_address
{
void* _M_initial;
_Block_address* _M_next;
};
-
+
const _Tune&
_M_get_options() const
{ return _M_options; }
void
_M_set_options(_Tune __t)
- {
+ {
if (!_M_init)
_M_options = __t;
}
@@ -157,16 +157,16 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_M_get_align()
{ return _M_options._M_align; }
- explicit
- __pool_base()
+ explicit
+ __pool_base()
: _M_options(_Tune()), _M_binmap(0), _M_init(false) { }
- explicit
+ explicit
__pool_base(const _Tune& __options)
: _M_options(__options), _M_binmap(0), _M_init(false) { }
private:
- explicit
+ explicit
__pool_base(const __pool_base&);
__pool_base&
@@ -175,7 +175,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
protected:
// Configuration options.
_Tune _M_options;
-
+
_Binmap_type* _M_binmap;
// Configuration of the pool object via _M_options can happen
@@ -211,7 +211,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// A list of the initial addresses of all allocated blocks.
_Block_address* _M_address;
};
-
+
void
_M_initialize_once()
{
@@ -222,27 +222,27 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
void
_M_destroy() throw();
- char*
+ char*
_M_reserve_block(size_t __bytes, const size_t __thread_id);
-
+
void
_M_reclaim_block(char* __p, size_t __bytes) throw ();
-
- size_t
+
+ size_t
_M_get_thread_id() { return 0; }
-
+
const _Bin_record&
_M_get_bin(size_t __which)
{ return _M_bin[__which]; }
-
+
void
_M_adjust_freelist(const _Bin_record&, _Block_record*, size_t)
{ }
- explicit __pool()
+ explicit __pool()
: _M_bin(0), _M_bin_size(1) { }
- explicit __pool(const __pool_base::_Tune& __tune)
+ explicit __pool(const __pool_base::_Tune& __tune)
: __pool_base(__tune), _M_bin(0), _M_bin_size(1) { }
private:
@@ -250,14 +250,14 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// power of 2 size. Memory to this "array" is allocated in
// _M_initialize().
_Bin_record* _M_bin;
-
+
// Actual value calculated in _M_initialize().
- size_t _M_bin_size;
+ size_t _M_bin_size;
void
_M_initialize();
};
-
+
#ifdef __GTHREADS
/// Specialization for thread enabled, via gthreads.h.
template<>
@@ -277,27 +277,27 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
// Points to next free thread id record. NULL if last record in list.
_Thread_record* _M_next;
-
+
// Thread id ranging from 1 to _S_max_threads.
size_t _M_id;
};
-
+
union _Block_record
{
// Points to the block_record of the next free block.
_Block_record* _M_next;
-
+
// The thread id of the thread which has requested this block.
size_t _M_thread_id;
};
-
+
struct _Bin_record
{
// An "array" of pointers to the first free block for each
// thread id. Memory to this "array" is allocated in
// _S_initialize() for _S_max_threads + global pool 0.
_Block_record** _M_first;
-
+
// A list of the initial addresses of all allocated blocks.
_Block_address* _M_address;
@@ -312,13 +312,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// for _S_max_threads + global pool 0.
size_t* _M_free;
size_t* _M_used;
-
+
// Each bin has its own mutex which is used to ensure data
// integrity while changing "ownership" on a block. The mutex
// is initialized in _S_initialize().
__gthread_mutex_t* _M_mutex;
};
-
+
// XXX GLIBCXX_ABI Deprecated
void
_M_initialize(__destroy_handler);
@@ -333,18 +333,18 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
void
_M_destroy() throw();
- char*
+ char*
_M_reserve_block(size_t __bytes, const size_t __thread_id);
-
+
void
_M_reclaim_block(char* __p, size_t __bytes) throw ();
-
+
const _Bin_record&
_M_get_bin(size_t __which)
{ return _M_bin[__which]; }
-
+
void
- _M_adjust_freelist(const _Bin_record& __bin, _Block_record* __block,
+ _M_adjust_freelist(const _Bin_record& __bin, _Block_record* __block,
size_t __thread_id)
{
if (__gthread_active_p())
@@ -359,16 +359,16 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
void
_M_destroy_thread_key(void*) throw ();
- size_t
+ size_t
_M_get_thread_id();
- explicit __pool()
- : _M_bin(0), _M_bin_size(1), _M_thread_freelist(0)
+ explicit __pool()
+ : _M_bin(0), _M_bin_size(1), _M_thread_freelist(0)
{ }
- explicit __pool(const __pool_base::_Tune& __tune)
- : __pool_base(__tune), _M_bin(0), _M_bin_size(1),
- _M_thread_freelist(0)
+ explicit __pool(const __pool_base::_Tune& __tune)
+ : __pool_base(__tune), _M_bin(0), _M_bin_size(1),
+ _M_thread_freelist(0)
{ }
private:
@@ -392,10 +392,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
struct __common_pool
{
typedef _PoolTp<_Thread> pool_type;
-
+
static pool_type&
_S_get_pool()
- {
+ {
static pool_type _S_pool;
return _S_pool;
}
@@ -405,7 +405,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
struct __common_pool_base;
template class _PoolTp>
- struct __common_pool_base<_PoolTp, false>
+ struct __common_pool_base<_PoolTp, false>
: public __common_pool<_PoolTp, false>
{
using __common_pool<_PoolTp, false>::_S_get_pool;
@@ -416,7 +416,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
static bool __init;
if (__builtin_expect(__init == false, false))
{
- _S_get_pool()._M_initialize_once();
+ _S_get_pool()._M_initialize_once();
__init = true;
}
}
@@ -428,14 +428,14 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
: public __common_pool<_PoolTp, true>
{
using __common_pool<_PoolTp, true>::_S_get_pool;
-
+
static void
- _S_initialize()
+ _S_initialize()
{ _S_get_pool()._M_initialize_once(); }
static void
_S_initialize_once()
- {
+ {
static bool __init;
if (__builtin_expect(__init == false, false))
{
@@ -449,7 +449,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// Double check initialization. May be necessary on some
// systems for proper construction when not compiling with
// thread flags.
- _S_get_pool()._M_initialize_once();
+ _S_get_pool()._M_initialize_once();
__init = true;
}
}
@@ -460,7 +460,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
template class _PoolTp, bool _Thread>
struct __common_pool_policy : public __common_pool_base<_PoolTp, _Thread>
{
- template class _PoolTp1 = _PoolTp,
+ template class _PoolTp1 = _PoolTp,
bool _Thread1 = _Thread>
struct _M_rebind
{ typedef __common_pool_policy<_PoolTp1, _Thread1> other; };
@@ -468,14 +468,14 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
using __common_pool_base<_PoolTp, _Thread>::_S_get_pool;
using __common_pool_base<_PoolTp, _Thread>::_S_initialize_once;
};
-
+
template class _PoolTp, bool _Thread>
struct __per_type_pool
{
typedef _Tp value_type;
typedef _PoolTp<_Thread> pool_type;
-
+
static pool_type&
_S_get_pool()
{
@@ -501,8 +501,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
struct __per_type_pool_base;
template class _PoolTp>
- struct __per_type_pool_base<_Tp, _PoolTp, false>
- : public __per_type_pool<_Tp, _PoolTp, false>
+ struct __per_type_pool_base<_Tp, _PoolTp, false>
+ : public __per_type_pool<_Tp, _PoolTp, false>
{
using __per_type_pool<_Tp, _PoolTp, false>::_S_get_pool;
@@ -512,7 +512,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
static bool __init;
if (__builtin_expect(__init == false, false))
{
- _S_get_pool()._M_initialize_once();
+ _S_get_pool()._M_initialize_once();
__init = true;
}
}
@@ -520,18 +520,18 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
#ifdef __GTHREADS
template class _PoolTp>
- struct __per_type_pool_base<_Tp, _PoolTp, true>
- : public __per_type_pool<_Tp, _PoolTp, true>
+ struct __per_type_pool_base<_Tp, _PoolTp, true>
+ : public __per_type_pool<_Tp, _PoolTp, true>
{
using __per_type_pool<_Tp, _PoolTp, true>::_S_get_pool;
static void
- _S_initialize()
+ _S_initialize()
{ _S_get_pool()._M_initialize_once(); }
static void
_S_initialize_once()
- {
+ {
static bool __init;
if (__builtin_expect(__init == false, false))
{
@@ -545,7 +545,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// Double check initialization. May be necessary on some
// systems for proper construction when not compiling with
// thread flags.
- _S_get_pool()._M_initialize_once();
+ _S_get_pool()._M_initialize_once();
__init = true;
}
}
@@ -554,10 +554,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
/// Policy for individual __pool objects.
template class _PoolTp, bool _Thread>
- struct __per_type_pool_policy
+ struct __per_type_pool_policy
: public __per_type_pool_base<_Tp, _PoolTp, _Thread>
{
- template class _PoolTp1 = _PoolTp,
+ template class _PoolTp1 = _PoolTp,
bool _Thread1 = _Thread>
struct _M_rebind
{ typedef __per_type_pool_policy<_Tp1, _PoolTp1, _Thread1> other; };
@@ -569,7 +569,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
/// Base class for _Tp dependent member functions.
template
- class __mt_alloc_base
+ class __mt_alloc_base
{
public:
typedef std::size_t size_type;
@@ -595,7 +595,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{ return std::__addressof(__x); }
size_type
- max_size() const _GLIBCXX_USE_NOEXCEPT
+ max_size() const _GLIBCXX_USE_NOEXCEPT
{ return size_type(-1) / sizeof(_Tp); }
#if __cplusplus >= 201103L
@@ -605,16 +605,16 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
template
- void
+ void
destroy(_Up* __p) { __p->~_Up(); }
#else
// _GLIBCXX_RESOLVE_LIB_DEFECTS
// 402. wrong new expression in [some_] allocator::construct
- void
- construct(pointer __p, const _Tp& __val)
+ void
+ construct(pointer __p, const _Tp& __val)
{ ::new((void *)__p) _Tp(__val); }
- void
+ void
destroy(pointer __p) { __p->~_Tp(); }
#endif
};
@@ -636,7 +636,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* Further details:
* https://gcc.gnu.org/onlinedocs/libstdc++/manual/mt_allocator.html
*/
- template >
class __mt_alloc : public __mt_alloc_base<_Tp>
{
@@ -653,7 +653,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
template
struct rebind
- {
+ {
typedef typename _Poolp1::template _M_rebind<_Tp1>::other pol_type;
typedef __mt_alloc<_Tp1, pol_type> other;
};
@@ -675,11 +675,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
const __pool_base::_Tune
_M_get_options()
- {
+ {
// Return a copy, not a reference, for external consumption.
return __policy_type::_S_get_pool()._M_get_options();
}
-
+
void
_M_set_options(__pool_base::_Tune __t)
{ __policy_type::_S_get_pool()._M_set_options(__t); }
@@ -713,11 +713,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
void* __ret = ::operator new(__bytes);
return static_cast<_Tp*>(__ret);
}
-
+
// Round up to power of 2 and figure out which bin to use.
const size_type __which = __pool._M_get_binmap(__bytes);
const size_type __thread_id = __pool._M_get_thread_id();
-
+
// Find out if we have blocks on our freelist. If so, go ahead
// and use them directly without having to lock anything.
char* __c;
@@ -729,7 +729,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
typedef typename __pool_type::_Block_record _Block_record;
_Block_record* __block = __bin._M_first[__thread_id];
__bin._M_first[__thread_id] = __block->_M_next;
-
+
__pool._M_adjust_freelist(__bin, __block, __thread_id);
__c = reinterpret_cast(__block) + __pool._M_get_align();
}
@@ -740,7 +740,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
}
return static_cast<_Tp*>(static_cast(__c));
}
-
+
template
void
__mt_alloc<_Tp, _Poolp>::
@@ -767,12 +767,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__pool._M_reclaim_block(reinterpret_cast(__p), __bytes);
}
}
-
+
template
inline bool
operator==(const __mt_alloc<_Tp, _Poolp>&, const __mt_alloc<_Tp, _Poolp>&)
{ return true; }
-
+
#if __cpp_impl_three_way_comparison < 201907L
template
inline bool
diff --git a/libstdc++-v3/include/ext/pod_char_traits.h b/libstdc++-v3/include/ext/pod_char_traits.h
index 83386c85680..05389a270cd 100644
--- a/libstdc++-v3/include/ext/pod_char_traits.h
+++ b/libstdc++-v3/include/ext/pod_char_traits.h
@@ -147,7 +147,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
static char_type*
move(char_type* __s1, const char_type* __s2, size_t __n)
- {
+ {
if (__n == 0)
return __s1;
return static_cast
@@ -183,7 +183,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{ return __c1 == __c2; }
static int_type
- eof()
+ eof()
{
int_type __r = { static_cast::__value,
diff --git a/libstdc++-v3/include/ext/pointer.h b/libstdc++-v3/include/ext/pointer.h
index ae0a9a1280c..ae45e1f91e8 100644
--- a/libstdc++-v3/include/ext/pointer.h
+++ b/libstdc++-v3/include/ext/pointer.h
@@ -60,10 +60,10 @@ namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
{
_GLIBCXX_BEGIN_NAMESPACE_VERSION
- /**
+ /**
* @brief A storage policy for use with _Pointer_adapter<> which yields a
* standard pointer.
- *
+ *
* A _Storage_policy is required to provide 4 things:
* 1) A get() API for returning the stored pointer value.
* 2) An set() API for storing a pointer value.
@@ -71,28 +71,28 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* 4) An operator<() to support pointer comparison.
* 5) An operator==() to support pointer comparison.
*/
- template
- class _Std_pointer_impl
+ template
+ class _Std_pointer_impl
{
public:
// the type this pointer points to.
typedef _Tp element_type;
-
+
// A method to fetch the pointer value as a standard T* value;
- inline _Tp*
- get() const
+ inline _Tp*
+ get() const
{ return _M_value; }
-
+
// A method to set the pointer value, from a standard T* value;
- inline void
- set(element_type* __arg)
+ inline void
+ set(element_type* __arg)
{ _M_value = __arg; }
-
+
// Comparison of pointers
inline bool
operator<(const _Std_pointer_impl& __rarg) const
{ return (_M_value < __rarg._M_value); }
-
+
inline bool
operator==(const _Std_pointer_impl& __rarg) const
{ return (_M_value == __rarg._M_value); }
@@ -105,7 +105,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* @brief A storage policy for use with _Pointer_adapter<> which stores
* the pointer's address as an offset value which is relative to
* its own address.
- *
+ *
* This is intended for pointers within shared memory regions which
* might be mapped at different addresses by different processes.
* For null pointers, a value of 1 is used. (0 is legitimate
@@ -114,14 +114,14 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* there is no reason why any normal pointer would point 1 byte into
* its own pointer address.
*/
- template
- class _Relative_pointer_impl
+ template
+ class _Relative_pointer_impl
{
public:
typedef _Tp element_type;
-
+
_Tp*
- get() const
+ get() const
{
if (_M_diff == 1)
return 0;
@@ -129,17 +129,17 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
return reinterpret_cast<_Tp*>(reinterpret_cast(this)
+ _M_diff);
}
-
- void
+
+ void
set(_Tp* __arg)
{
if (!__arg)
_M_diff = 1;
else
- _M_diff = reinterpret_cast(__arg)
+ _M_diff = reinterpret_cast(__arg)
- reinterpret_cast(this);
}
-
+
// Comparison of pointers
inline bool
operator<(const _Relative_pointer_impl& __rarg) const
@@ -155,17 +155,17 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
typedef __UINTPTR_TYPE__ uintptr_t;
uintptr_t _M_diff;
};
-
+
/**
* Relative_pointer_impl needs a specialization for const T because of
* the casting done during pointer arithmetic.
*/
- template
- class _Relative_pointer_impl
+ template
+ class _Relative_pointer_impl
{
public:
typedef const _Tp element_type;
-
+
const _Tp*
get() const
{
@@ -175,17 +175,17 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
return reinterpret_cast
(reinterpret_cast(this) + _M_diff);
}
-
- void
+
+ void
set(const _Tp* __arg)
{
if (!__arg)
_M_diff = 1;
else
- _M_diff = reinterpret_cast(__arg)
+ _M_diff = reinterpret_cast(__arg)
- reinterpret_cast(this);
}
-
+
// Comparison of pointers
inline bool
operator<(const _Relative_pointer_impl& __rarg) const
@@ -196,7 +196,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
operator==(const _Relative_pointer_impl& __rarg) const
{ return (reinterpret_cast(this->get())
== reinterpret_cast(__rarg.get())); }
-
+
private:
typedef __UINTPTR_TYPE__ uintptr_t;
uintptr_t _M_diff;
@@ -208,25 +208,25 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* _Pointer_adapter for cases of void*, const void*, and so on.
*/
struct _Invalid_type { };
-
+
template
- struct _Reference_type
+ struct _Reference_type
{ typedef _Tp& reference; };
- template<>
- struct _Reference_type
+ template<>
+ struct _Reference_type
{ typedef _Invalid_type& reference; };
- template<>
- struct _Reference_type
+ template<>
+ struct _Reference_type
{ typedef const _Invalid_type& reference; };
- template<>
- struct _Reference_type
+ template<>
+ struct _Reference_type
{ typedef volatile _Invalid_type& reference; };
- template<>
- struct _Reference_type
+ template<>
+ struct _Reference_type
{ typedef const volatile _Invalid_type& reference; };
/**
@@ -234,14 +234,14 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* std::iterator_traits<> is normally specialized for const T*, so
* that value_type is still T.
*/
- template
- struct _Unqualified_type
+ template
+ struct _Unqualified_type
{ typedef _Tp type; };
-
- template
- struct _Unqualified_type
+
+ template
+ struct _Unqualified_type
{ typedef _Tp type; };
-
+
/**
* The following provides an 'alternative pointer' that works with
* the containers when specified as the pointer typedef of the
@@ -275,7 +275,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* const _Tp* const == const _Pointer_adapter<_Std_pointer_impl >;
*/
template
- class _Pointer_adapter : public _Storage_policy
+ class _Pointer_adapter : public _Storage_policy
{
public:
typedef typename _Storage_policy::element_type element_type;
@@ -287,8 +287,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
typedef _Pointer_adapter pointer;
typedef typename _Reference_type::reference reference;
- // Reminder: 'const' methods mean that the method is valid when the
- // pointer is immutable, and has nothing to do with whether the
+ // Reminder: 'const' methods mean that the method is valid when the
+ // pointer is immutable, and has nothing to do with whether the
// 'pointee' is const.
// Default Constructor (Convert from element_type*)
@@ -296,7 +296,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{ _Storage_policy::set(__arg); }
// Copy constructor from _Pointer_adapter of same type.
- _Pointer_adapter(const _Pointer_adapter& __arg)
+ _Pointer_adapter(const _Pointer_adapter& __arg)
{ _Storage_policy::set(__arg.get()); }
// Convert from _Up* if conversion to element_type* is valid.
@@ -312,39 +312,39 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// Destructor
~_Pointer_adapter() { }
-
+
// Assignment operator
_Pointer_adapter&
- operator=(const _Pointer_adapter& __arg)
+ operator=(const _Pointer_adapter& __arg)
{
- _Storage_policy::set(__arg.get());
- return *this;
+ _Storage_policy::set(__arg.get());
+ return *this;
}
template
_Pointer_adapter&
operator=(const _Pointer_adapter<_Up>& __arg)
{
- _Storage_policy::set(__arg.get());
- return *this;
+ _Storage_policy::set(__arg.get());
+ return *this;
}
template
_Pointer_adapter&
operator=(_Up* __arg)
{
- _Storage_policy::set(__arg);
- return *this;
+ _Storage_policy::set(__arg);
+ return *this;
}
// Operator*, returns element_type&
- inline reference
- operator*() const
+ inline reference
+ operator*() const
{ return *(_Storage_policy::get()); }
// Operator->, returns element_type*
- inline element_type*
- operator->() const
+ inline element_type*
+ operator->() const
{ return _Storage_policy::get(); }
// Operator[], returns a element_type& to the item at that loc.
@@ -362,45 +362,45 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
public:
operator __unspecified_bool_type() const
{
- return _Storage_policy::get() == 0 ? 0 :
- &_Pointer_adapter::operator->;
+ return _Storage_policy::get() == 0 ? 0 :
+ &_Pointer_adapter::operator->;
}
// ! operator (for: if (!ptr)...)
inline bool
- operator!() const
+ operator!() const
{ return (_Storage_policy::get() == 0); }
#endif
-
+
// Pointer differences
- inline friend std::ptrdiff_t
- operator-(const _Pointer_adapter& __lhs, element_type* __rhs)
+ inline friend std::ptrdiff_t
+ operator-(const _Pointer_adapter& __lhs, element_type* __rhs)
{ return (__lhs.get() - __rhs); }
-
- inline friend std::ptrdiff_t
- operator-(element_type* __lhs, const _Pointer_adapter& __rhs)
+
+ inline friend std::ptrdiff_t
+ operator-(element_type* __lhs, const _Pointer_adapter& __rhs)
{ return (__lhs - __rhs.get()); }
-
+
template
- inline friend std::ptrdiff_t
- operator-(const _Pointer_adapter& __lhs, _Up* __rhs)
+ inline friend std::ptrdiff_t
+ operator-(const _Pointer_adapter& __lhs, _Up* __rhs)
{ return (__lhs.get() - __rhs); }
-
+
template
- inline friend std::ptrdiff_t
+ inline friend std::ptrdiff_t
operator-(_Up* __lhs, const _Pointer_adapter& __rhs)
{ return (__lhs - __rhs.get()); }
template
- inline std::ptrdiff_t
- operator-(const _Pointer_adapter<_Up>& __rhs) const
+ inline std::ptrdiff_t
+ operator-(const _Pointer_adapter<_Up>& __rhs) const
{ return (_Storage_policy::get() - __rhs.get()); }
-
+
// Pointer math
// Note: There is a reason for all this overloading based on different
// integer types. In some libstdc++-v3 test cases, a templated
// operator+ is declared which can match any types. This operator
- // tends to "steal" the recognition of _Pointer_adapter's own operator+
+ // tends to "steal" the recognition of _Pointer_adapter's own operator+
// unless the integer type matches perfectly.
#define _CXX_POINTER_ARITH_OPERATOR_SET(INT_TYPE) \
@@ -430,7 +430,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
return *this; \
} \
// END of _CXX_POINTER_ARITH_OPERATOR_SET macro
-
+
// Expand into the various pointer arithmetic operators needed.
_CXX_POINTER_ARITH_OPERATOR_SET(short);
_CXX_POINTER_ARITH_OPERATOR_SET(unsigned short);
@@ -447,30 +447,30 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
#endif
// Mathematical Manipulators
- inline _Pointer_adapter&
+ inline _Pointer_adapter&
operator++()
{
- _Storage_policy::set(_Storage_policy::get() + 1);
+ _Storage_policy::set(_Storage_policy::get() + 1);
return *this;
}
-
- inline _Pointer_adapter
+
+ inline _Pointer_adapter
operator++(int)
{
_Pointer_adapter __tmp(*this);
_Storage_policy::set(_Storage_policy::get() + 1);
return __tmp;
}
-
- inline _Pointer_adapter&
- operator--()
+
+ inline _Pointer_adapter&
+ operator--()
{
- _Storage_policy::set(_Storage_policy::get() - 1);
+ _Storage_policy::set(_Storage_policy::get() - 1);
return *this;
}
-
+
inline _Pointer_adapter
- operator--(int)
+ operator--(int)
{
_Pointer_adapter __tmp(*this);
_Storage_policy::set(_Storage_policy::get() - 1);
@@ -504,7 +504,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{ return __lhs.get() OPERATOR __rhs.get(); } \
\
// End GCC_CXX_POINTER_COMPARISON_OPERATION_SET Macro
-
+
// Expand into the various comparison operators needed.
_GCC_CXX_POINTER_COMPARISON_OPERATION_SET(==)
_GCC_CXX_POINTER_COMPARISON_OPERATION_SET(!=)
@@ -517,22 +517,22 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
template
inline bool
operator==(const _Pointer_adapter<_Tp>& __lhs, int __rhs)
- { return __lhs.get() == reinterpret_cast(__rhs); }
+ { return __lhs.get() == reinterpret_cast(__rhs); }
template
inline bool
operator==(int __lhs, const _Pointer_adapter<_Tp>& __rhs)
- { return __rhs.get() == reinterpret_cast(__lhs); }
+ { return __rhs.get() == reinterpret_cast(__lhs); }
template
inline bool
operator!=(const _Pointer_adapter<_Tp>& __lhs, int __rhs)
- { return __lhs.get() != reinterpret_cast(__rhs); }
+ { return __lhs.get() != reinterpret_cast(__rhs); }
template
inline bool
operator!=(int __lhs, const _Pointer_adapter<_Tp>& __rhs)
- { return __rhs.get() != reinterpret_cast(__lhs); }
+ { return __rhs.get() != reinterpret_cast(__lhs); }
/**
* Comparison operators for _Pointer_adapter defer to the base class'
@@ -540,38 +540,38 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
*/
template
inline bool
- operator==(const _Pointer_adapter<_Tp>& __lhs,
+ operator==(const _Pointer_adapter<_Tp>& __lhs,
const _Pointer_adapter<_Tp>& __rhs)
{ return __lhs._Tp::operator==(__rhs); }
template
inline bool
- operator<=(const _Pointer_adapter<_Tp>& __lhs,
+ operator<=(const _Pointer_adapter<_Tp>& __lhs,
const _Pointer_adapter<_Tp>& __rhs)
{ return __lhs._Tp::operator<(__rhs) || __lhs._Tp::operator==(__rhs); }
template
inline bool
- operator!=(const _Pointer_adapter<_Tp>& __lhs,
+ operator!=(const _Pointer_adapter<_Tp>& __lhs,
const _Pointer_adapter<_Tp>& __rhs)
{ return !(__lhs._Tp::operator==(__rhs)); }
template
inline bool
- operator>(const _Pointer_adapter<_Tp>& __lhs,
+ operator>(const _Pointer_adapter<_Tp>& __lhs,
const _Pointer_adapter<_Tp>& __rhs)
{ return !(__lhs._Tp::operator<(__rhs) || __lhs._Tp::operator==(__rhs)); }
template
inline bool
- operator>=(const _Pointer_adapter<_Tp>& __lhs,
+ operator>=(const _Pointer_adapter<_Tp>& __lhs,
const _Pointer_adapter<_Tp>& __rhs)
{ return !(__lhs._Tp::operator<(__rhs)); }
#if _GLIBCXX_HOSTED
template
inline std::basic_ostream<_CharT, _Traits>&
- operator<<(std::basic_ostream<_CharT, _Traits>& __os,
+ operator<<(std::basic_ostream<_CharT, _Traits>& __os,
const _Pointer_adapter<_StoreT>& __p)
{ return (__os << __p.get()); }
#endif // HOSTED
diff --git a/libstdc++-v3/include/ext/pool_allocator.h b/libstdc++-v3/include/ext/pool_allocator.h
index 679b4b3d276..9b66e8a7985 100644
--- a/libstdc++-v3/include/ext/pool_allocator.h
+++ b/libstdc++-v3/include/ext/pool_allocator.h
@@ -82,27 +82,27 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
enum { _S_align = 8 };
enum { _S_max_bytes = 128 };
enum { _S_free_list_size = (size_t)_S_max_bytes / (size_t)_S_align };
-
+
union _Obj
{
union _Obj* _M_free_list_link;
char _M_client_data[1]; // The client sees this.
};
-
+
static _Obj* volatile _S_free_list[_S_free_list_size];
// Chunk allocation state.
static char* _S_start_free;
static char* _S_end_free;
- static size_t _S_heap_size;
-
+ static size_t _S_heap_size;
+
size_t
_M_round_up(size_t __bytes)
{ return ((__bytes + (size_t)_S_align - 1) & ~((size_t)_S_align - 1)); }
-
+
_GLIBCXX_CONST _Obj* volatile*
_M_get_free_list(size_t __bytes) throw ();
-
+
__mutex&
_M_get_mutex() throw ();
@@ -110,7 +110,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// free list.
void*
_M_refill(size_t __n);
-
+
// Allocates a chunk for nobjs of size size. nobjs may be reduced
// if it is inconvenient to allocate the requested number.
char*
@@ -165,7 +165,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{ return std::__addressof(__x); }
size_type
- max_size() const _GLIBCXX_USE_NOEXCEPT
+ max_size() const _GLIBCXX_USE_NOEXCEPT
{ return std::size_t(-1) / sizeof(_Tp); }
#if __cplusplus >= 201103L
@@ -175,16 +175,16 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
template
- void
+ void
destroy(_Up* __p) { __p->~_Up(); }
#else
// _GLIBCXX_RESOLVE_LIB_DEFECTS
// 402. wrong new expression in [some_] allocator::construct
- void
- construct(pointer __p, const _Tp& __val)
+ void
+ construct(pointer __p, const _Tp& __val)
{ ::new((void *)__p) _Tp(__val); }
- void
+ void
destroy(pointer __p) { __p->~_Tp(); }
#endif
@@ -192,7 +192,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
allocate(size_type __n, const void* = 0);
void
- deallocate(pointer __p, size_type __n);
+ deallocate(pointer __p, size_type __n);
};
template
@@ -248,7 +248,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
else
{
_Obj* volatile* __free_list = _M_get_free_list(__bytes);
-
+
__scoped_lock sentry(_M_get_mutex());
_Obj* __restrict__ __result = *__free_list;
if (__builtin_expect(__result == 0, 0))
diff --git a/libstdc++-v3/include/ext/ropeimpl.h b/libstdc++-v3/include/ext/ropeimpl.h
index 8298a22f7f4..82b36f8a73b 100644
--- a/libstdc++-v3/include/ext/ropeimpl.h
+++ b/libstdc++-v3/include/ext/ropeimpl.h
@@ -321,7 +321,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_S_char_ptr_len(const _CharT* __s)
{
const _CharT* __p = __s;
-
+
while (!_S_is0(*__p))
++__p;
return (__p - __s);
@@ -351,7 +351,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
if (!_S_is_basic_char_type((_CharT*)0))
std::_Destroy(__s, __s + __n, __a);
-
+
// This has to be a static member, so this gets a bit messy
__a.deallocate(__s,
_Rope_RopeLeaf<_CharT, _Alloc>::_S_rounded_up_size(__n));
@@ -494,7 +494,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__left->
_M_get_allocator());
size_t __depth = __result->_M_depth;
-
+
if (__depth > 20
&& (__result->_M_size < 1000
|| __depth > size_t(__detail::_S_max_rope_depth)))
@@ -602,7 +602,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
if (__orig_size + __slen <= size_t(_S_copy_max)
&& __detail::_S_leaf == __r->_M_tag)
{
- __result = _S_destr_leaf_concat_char_iter((_RopeLeaf*)__r, __s,
+ __result = _S_destr_leaf_concat_char_iter((_RopeLeaf*)__r, __s,
__slen);
return __result;
}
@@ -643,7 +643,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
return __result;
}
#endif /* !__GC */
-
+
template
typename rope<_CharT, _Alloc>::_RopeRep*
rope<_CharT, _Alloc>::
@@ -719,7 +719,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
size_t __len = __base->_M_size;
size_t __adj_endp1;
const size_t __lazy_threshold = 128;
-
+
if (__endp1 >= __len)
{
if (0 == __start)
@@ -729,7 +729,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
}
else
__adj_endp1 = __len;
-
+
}
else
__adj_endp1 = __endp1;
@@ -743,7 +743,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_RopeRep* __right = __c->_M_right;
size_t __left_len = __left->_M_size;
_RopeRep* __result;
-
+
if (__adj_endp1 <= __left_len)
return _S_substring(__left, __start, __endp1);
else if (__start >= __left_len)
@@ -753,7 +753,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__start,
__left_len));
_Self_destruct_ptr __right_result(_S_substring(__right, 0,
- __endp1
+ __endp1
- __left_len));
__result = _S_concat(__left_result, __right_result);
return __result;
@@ -798,7 +798,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__adj_endp1 - __start,
__base->_M_get_allocator());
return __result;
-
+
} // *** else fall through: ***
}
case __detail::_S_function:
@@ -809,7 +809,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
if (__start >= __adj_endp1)
return 0;
__result_len = __adj_endp1 - __start;
-
+
if (__result_len > __lazy_threshold)
goto lazy;
__section = (_CharT*)
@@ -842,12 +842,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
private:
_CharT* _M_buf_ptr;
public:
-
+
_Rope_flatten_char_consumer(_CharT* __buffer)
{ _M_buf_ptr = __buffer; }
~_Rope_flatten_char_consumer() {}
-
+
bool
operator()(const _CharT* __leaf, std::size_t __n)
{
@@ -865,12 +865,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_CharT _M_pattern;
public:
std::size_t _M_count; // Number of nonmatching characters
-
+
_Rope_find_char_char_consumer(_CharT __p)
: _M_pattern(__p), _M_count(0) {}
-
+
~_Rope_find_char_char_consumer() {}
-
+
bool
operator()(const _CharT* __leaf, std::size_t __n)
{
@@ -986,7 +986,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
char __f = __o.fill();
std::size_t __i;
-
+
for (__i = 0; __i < __n; __i++)
__o.put(__f);
}
@@ -1017,7 +1017,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
size_t __rope_len = __r.size();
_Rope_insert_char_consumer<_CharT, _Traits> __c(__o);
bool __is_simple = _Rope_is_simple((_CharT*)0);
-
+
if (__rope_len < __w)
__pad_len = __w - __rope_len;
else
@@ -1125,7 +1125,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_RopeConcatenation* __c = (_RopeConcatenation*)__r;
_RopeRep* __left = __c->_M_left;
_RopeRep* __right = __c->_M_right;
-
+
#ifdef __GC
printf("Concatenation %p (depth = %d, len = %ld, %s balanced)\n",
__r, __r->_M_depth, __r->_M_size,
@@ -1143,7 +1143,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
else
{
const char* __kind;
-
+
switch (__r->_M_tag)
{
case __detail::_S_leaf:
@@ -1171,7 +1171,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_Self_destruct_ptr __prefix(_S_substring(__r, 0, __max_len));
_CharT __buffer[__max_len + 1];
bool __too_big = __r->_M_size > __prefix->_M_size;
-
+
_S_flatten(__prefix, __buffer);
__buffer[__prefix->_M_size] = _S_eos((_CharT*)0);
printf("%s%s\n", (char*)__buffer,
@@ -1212,7 +1212,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// __forest[__i]._M_size >= _S_min_len[__i]
// __forest[__i]._M_depth = __i
// References from forest are included in refcount.
-
+
for (__i = 0; __i <= int(__detail::_S_max_rope_depth); ++__i)
__forest[__i] = 0;
__try
@@ -1239,7 +1239,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_S_unref(__forest[__i]);
__throw_exception_again;
}
-
+
if (__result->_M_depth > int(__detail::_S_max_rope_depth))
std::__throw_length_error(__N("rope::_S_balance"));
return(__result);
@@ -1258,7 +1258,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
_RopeConcatenation* __c = (_RopeConcatenation*)__r;
-
+
_S_add_to_forest(__c->_M_left, __forest);
_S_add_to_forest(__c->_M_right, __forest);
}
@@ -1274,7 +1274,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_RopeRep* __too_tiny = 0; // included in refcount
int __i; // forest[0..__i-1] is empty
std::size_t __s = __r->_M_size;
-
+
for (__i = 0; __s >= _S_min_len[__i+1]/* not this bucket */; ++__i)
{
if (0 != __forest[__i])
@@ -1324,7 +1324,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_S_fetch(_RopeRep* __r, size_type __i)
{
__GC_CONST _CharT* __cstr = __r->_M_c_string;
-
+
if (0 != __cstr)
return __cstr[__i];
for(;;)
@@ -1336,12 +1336,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_RopeConcatenation* __c = (_RopeConcatenation*)__r;
_RopeRep* __left = __c->_M_left;
std::size_t __left_len = __left->_M_size;
-
+
if (__i >= __left_len)
{
__i -= __left_len;
__r = __c->_M_right;
- }
+ }
else
__r = __left;
}
@@ -1356,14 +1356,14 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
_RopeFunction* __f = (_RopeFunction*)__r;
_CharT __result;
-
+
(*(__f->_M_fn))(__i, 1, &__result);
return __result;
}
}
}
}
-
+
#ifndef __GC
// Return a uniquely referenced character slot for the given
// position, or 0 if that's not possible.
@@ -1374,7 +1374,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
_RopeRep* __clrstack[__detail::_S_max_rope_depth];
std::size_t __csptr = 0;
-
+
for(;;)
{
if (__r->_M_ref_count > 1)
@@ -1386,14 +1386,14 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_RopeConcatenation* __c = (_RopeConcatenation*)__r;
_RopeRep* __left = __c->_M_left;
std::size_t __left_len = __left->_M_size;
-
+
if (__c->_M_c_string != 0)
__clrstack[__csptr++] = __c;
if (__i >= __left_len)
{
__i -= __left_len;
__r = __c->_M_right;
- }
+ }
else
__r = __left;
}
@@ -1431,7 +1431,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
std::size_t __left_len;
std::size_t __right_len;
-
+
if (0 == __right)
return 0 != __left;
if (0 == __left)
@@ -1596,21 +1596,21 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
else
__result = power(__base_rope, __exponent,
_Rope_Concat_fn<_CharT, _Alloc>());
-
+
if (0 != __remainder)
__result += __remainder_rope;
}
else
__result = __remainder_rope;
-
+
this->_M_tree_ptr = __result._M_tree_ptr;
this->_M_tree_ptr->_M_ref_nonnil();
}
-
+
template
_CharT
rope<_CharT, _Alloc>::_S_empty_c_str[1];
-
+
template
const _CharT*
rope<_CharT, _Alloc>::
@@ -1635,7 +1635,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__gthread_mutex_unlock (&this->_M_tree_ptr->_M_c_string_lock);
return(__result);
}
-
+
template
const _CharT* rope<_CharT, _Alloc>::
replace_with_c_str()
@@ -1660,7 +1660,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
}
// Algorithm specializations. More should be added.
-
+
template // was templated on CharT and Alloc
void // VC++ workaround
_Rope_rotate(_Rope_iterator __first,
@@ -1669,7 +1669,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
typedef typename _Rope_iterator::value_type _CharT;
typedef typename _Rope_iterator::_allocator_type _Alloc;
-
+
rope<_CharT, _Alloc>& __r(__first.container());
rope<_CharT, _Alloc> __prefix = __r.substr(0, __first.index());
rope<_CharT, _Alloc> __suffix =
diff --git a/libstdc++-v3/include/ext/sso_string_base.h b/libstdc++-v3/include/ext/sso_string_base.h
index 07cc54b69ea..69e1eda6870 100644
--- a/libstdc++-v3/include/ext/sso_string_base.h
+++ b/libstdc++-v3/include/ext/sso_string_base.h
@@ -47,7 +47,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
typedef __vstring_utility<_CharT, _Traits, _Alloc> _Util_Base;
typedef typename _Util_Base::_CharT_alloc_type _CharT_alloc_type;
typedef typename _CharT_alloc_type::size_type size_type;
-
+
private:
// Data Members:
typename _Util_Base::template _Alloc_hider<_CharT_alloc_type>
@@ -55,7 +55,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
size_type _M_string_length;
enum { _S_local_capacity = 15 };
-
+
union
{
_CharT _M_local_data[_S_local_capacity + 1];
@@ -81,7 +81,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// Create & Destroy
_CharT*
_M_create(size_type&, size_type);
-
+
void
_M_dispose()
{
@@ -97,7 +97,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// requires special behaviour if _InIterator is an integral type
template
void
- _M_construct_aux(_InIterator __beg, _InIterator __end,
+ _M_construct_aux(_InIterator __beg, _InIterator __end,
std::__false_type)
{
typedef typename std::iterator_traits<_InIterator>::iterator_category
@@ -129,7 +129,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
void
_M_construct(_InIterator __beg, _InIterator __end,
std::input_iterator_tag);
-
+
// For forward_iterators up to random_access_iterators, used for
// string::iterator, _CharT*, etc.
template
@@ -160,7 +160,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_M_capacity() const
{
return _M_is_local() ? size_type(_S_local_capacity)
- : _M_allocated_capacity;
+ : _M_allocated_capacity;
}
bool
@@ -406,7 +406,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_M_data()[__len++] = *__beg;
++__beg;
}
-
+
__try
{
while (__beg != __end)
@@ -546,7 +546,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
size_type __len2)
{
const size_type __how_much = _M_length() - __pos - __len1;
-
+
size_type __new_capacity = _M_length() + __len2 - __len1;
_CharT* __r = _M_create(__new_capacity, _M_capacity());
@@ -557,7 +557,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
if (__how_much)
this->_S_copy(__r + __pos + __len2,
_M_data() + __pos + __len1, __how_much);
-
+
_M_dispose();
_M_data(__r);
_M_capacity(__new_capacity);
diff --git a/libstdc++-v3/include/ext/throw_allocator.h b/libstdc++-v3/include/ext/throw_allocator.h
index a113a0f0ae5..79946f4887e 100644
--- a/libstdc++-v3/include/ext/throw_allocator.h
+++ b/libstdc++-v3/include/ext/throw_allocator.h
@@ -400,7 +400,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
auto beg = __b.map_construct().begin();
auto end = __b.map_construct().end();
for (; beg != end; ++beg)
- __b.log_to_string(error, *beg);
+ __b.log_to_string(error, *beg);
}
#endif
return os << error;
@@ -868,7 +868,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
}
template
- void
+ void
destroy(_Up* __p)
{
erase_construct(__p);
diff --git a/libstdc++-v3/include/ext/type_traits.h b/libstdc++-v3/include/ext/type_traits.h
index 651dfd62f3b..304e539d317 100644
--- a/libstdc++-v3/include/ext/type_traits.h
+++ b/libstdc++-v3/include/ext/type_traits.h
@@ -47,7 +47,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// Define a nested type if some predicate holds.
template
- struct __enable_if
+ struct __enable_if
{ };
template
@@ -68,12 +68,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// Given an integral builtin type, return the corresponding unsigned type.
template
struct __add_unsigned
- {
+ {
private:
typedef __enable_if::__value, _Tp> __if_type;
-
+
public:
- typedef typename __if_type::__type __type;
+ typedef typename __if_type::__type __type;
};
template<>
@@ -111,12 +111,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// Given an integral builtin type, return the corresponding signed type.
template
struct __remove_unsigned
- {
+ {
private:
typedef __enable_if::__value, _Tp> __if_type;
-
+
public:
- typedef typename __if_type::__type __type;
+ typedef typename __if_type::__type __type;
};
template<>
@@ -277,4 +277,4 @@ _GLIBCXX_END_NAMESPACE_VERSION
#pragma GCC diagnostic pop
-#endif
+#endif
diff --git a/libstdc++-v3/include/ext/vstring.h b/libstdc++-v3/include/ext/vstring.h
index 22b9a1db842..c7b7cc18b4e 100644
--- a/libstdc++-v3/include/ext/vstring.h
+++ b/libstdc++-v3/include/ext/vstring.h
@@ -50,18 +50,18 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
/**
* @class __versa_string vstring.h
- * @brief Template class __versa_string.
+ * @brief Template class __versa_string.
* @ingroup extensions
*
* Data structure managing sequences of characters and
- * character-like objects.
+ * character-like objects.
*/
template class _Base>
class __versa_string
: private _Base<_CharT, _Traits, _Alloc>
{
- typedef _Base<_CharT, _Traits, _Alloc> __vstring_base;
+ typedef _Base<_CharT, _Traits, _Alloc> __vstring_base;
typedef typename __vstring_base::_CharT_alloc_type _CharT_alloc_type;
typedef __alloc_traits<_CharT_alloc_type> _CharT_alloc_traits;
@@ -252,14 +252,14 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
/**
* @brief Destroy the string instance.
*/
- ~__versa_string() _GLIBCXX_NOEXCEPT { }
+ ~__versa_string() _GLIBCXX_NOEXCEPT { }
/**
* @brief Assign the value of @a str to this string.
* @param __str Source string.
*/
__versa_string&
- operator=(const __versa_string& __str)
+ operator=(const __versa_string& __str)
{ return this->assign(__str); }
#if __cplusplus >= 201103L
@@ -295,7 +295,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* @param __s Source null-terminated string.
*/
__versa_string&
- operator=(const _CharT* __s)
+ operator=(const _CharT* __s)
{ return this->assign(__s); }
/**
@@ -306,9 +306,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* (*this)[0] == @a __c.
*/
__versa_string&
- operator=(_CharT __c)
- {
- this->assign(1, __c);
+ operator=(_CharT __c)
+ {
+ this->assign(1, __c);
return *this;
}
@@ -521,7 +521,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{ this->_M_clear(); }
/**
- * Returns true if the %string is empty. Equivalent to
+ * Returns true if the %string is empty. Equivalent to
* *this == ""
.
*/
_GLIBCXX_NODISCARD bool
@@ -673,7 +673,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
*/
__versa_string&
operator+=(_CharT __c)
- {
+ {
this->push_back(__c);
return *this;
}
@@ -792,7 +792,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
*/
void
push_back(_CharT __c)
- {
+ {
const size_type __size = this->size();
if (__size + 1 > this->capacity() || this->_M_is_shared())
this->_M_mutate(__size, size_type(0), 0, size_type(1));
@@ -948,7 +948,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_GLIBCXX_DEBUG_PEDASSERT(__p >= _M_ibegin() && __p <= _M_iend());
const size_type __pos = __p - _M_ibegin();
this->replace(__p, __p, __n, __c);
- return iterator(this->_M_data() + __pos);
+ return iterator(this->_M_data() + __pos);
}
#else
/**
@@ -1150,7 +1150,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
#if __cplusplus >= 201103L
insert(const_iterator __p, _CharT __c)
#else
- insert(iterator __p, _CharT __c)
+ insert(iterator __p, _CharT __c)
#endif
{
_GLIBCXX_DEBUG_PEDASSERT(__p >= _M_ibegin() && __p <= _M_iend());
@@ -1177,7 +1177,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
*/
__versa_string&
erase(size_type __pos = 0, size_type __n = npos)
- {
+ {
this->_M_erase(_M_check(__pos, "__versa_string::erase"),
_M_limit(__pos, __n));
return *this;
@@ -1195,7 +1195,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
#if __cplusplus >= 201103L
erase(const_iterator __position)
#else
- erase(iterator __position)
+ erase(iterator __position)
#endif
{
_GLIBCXX_DEBUG_PEDASSERT(__position >= _M_ibegin()
@@ -1331,7 +1331,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* Removes the characters in the range [pos,pos + n1) from this
* string. In place, the characters of @a __s are inserted. If
* @a pos is beyond end of string, out_of_range is thrown. If
- * the length of result exceeds max_size(), length_error is thrown.
+ * the length of result exceeds max_size(), length_error is thrown.
* The value of the string doesn't change if an error is thrown.
*/
__versa_string&
@@ -1429,7 +1429,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
#if __cplusplus >= 201103L
replace(const_iterator __i1, const_iterator __i2, const _CharT* __s)
#else
- replace(iterator __i1, iterator __i2, const _CharT* __s)
+ replace(iterator __i1, iterator __i2, const _CharT* __s)
#endif
{
__glibcxx_requires_string(__s);
@@ -1569,7 +1569,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
return this->replace(__i1 - _M_ibegin(), __i2 - __i1,
__k1.base(), __k2 - __k1);
}
-
+
#if __cplusplus >= 201103L
/**
* @brief Replace range of characters with initializer_list.
@@ -2676,7 +2676,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
inline basic_istream<_CharT, _Traits>&
getline(basic_istream<_CharT, _Traits>& __is,
__gnu_cxx::__versa_string<_CharT, _Traits, _Alloc, _Base>& __str)
- { return getline(__is, __str, __is.widen('\n')); }
+ { return getline(__is, __str, __is.widen('\n')); }
_GLIBCXX_END_NAMESPACE_VERSION
} // namespace
@@ -2796,12 +2796,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
#endif // _GLIBCXX_USE_C99_STDIO
#if defined(_GLIBCXX_USE_WCHAR_T) && _GLIBCXX_USE_C99_WCHAR
- inline int
+ inline int
stoi(const __wvstring& __str, std::size_t* __idx = 0, int __base = 10)
{ return __gnu_cxx::__stoa(&std::wcstol, "stoi", __str.c_str(),
__idx, __base); }
- inline long
+ inline long
stol(const __wvstring& __str, std::size_t* __idx = 0, int __base = 10)
{ return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(),
__idx, __base); }
diff --git a/libstdc++-v3/include/ext/vstring_fwd.h b/libstdc++-v3/include/ext/vstring_fwd.h
index 8c646045c6b..8cab7f204f2 100644
--- a/libstdc++-v3/include/ext/vstring_fwd.h
+++ b/libstdc++-v3/include/ext/vstring_fwd.h
@@ -58,7 +58,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
typedef __versa_string __vstring;
typedef __vstring __sso_string;
- typedef
+ typedef
__versa_string,
std::allocator, __rc_string_base> __rc_string;
@@ -71,13 +71,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
#if __cplusplus >= 201103L
typedef __versa_string __u16vstring;
typedef __u16vstring __u16sso_string;
- typedef
+ typedef
__versa_string,
std::allocator, __rc_string_base> __u16rc_string;
typedef __versa_string __u32vstring;
typedef __u32vstring __u32sso_string;
- typedef
+ typedef
__versa_string,
std::allocator, __rc_string_base> __u32rc_string;
#endif // C++11
diff --git a/libstdc++-v3/include/parallel/algobase.h b/libstdc++-v3/include/parallel/algobase.h
index b46ed610661..4c0377bd6c0 100644
--- a/libstdc++-v3/include/parallel/algobase.h
+++ b/libstdc++-v3/include/parallel/algobase.h
@@ -75,7 +75,7 @@ namespace __parallel
template
pair<_RAIter1, _RAIter2>
__mismatch_switch(_RAIter1 __begin1, _RAIter1 __end1,
- _RAIter2 __begin2, _Predicate __pred,
+ _RAIter2 __begin2, _Predicate __pred,
random_access_iterator_tag, random_access_iterator_tag)
{
if (_GLIBCXX_PARALLEL_CONDITION(true))
@@ -153,7 +153,7 @@ namespace __parallel
template
pair<_RAIter1, _RAIter2>
__mismatch_switch(_RAIter1 __begin1, _RAIter1 __end1,
- _RAIter2 __begin2, _RAIter2 __end2, _Predicate __pred,
+ _RAIter2 __begin2, _RAIter2 __end2, _Predicate __pred,
random_access_iterator_tag, random_access_iterator_tag)
{
if (_GLIBCXX_PARALLEL_CONDITION(true))
@@ -202,14 +202,14 @@ namespace __parallel
// Sequential fallback
template
inline bool
- equal(_IIter1 __begin1, _IIter1 __end1, _IIter2 __begin2,
+ equal(_IIter1 __begin1, _IIter1 __end1, _IIter2 __begin2,
__gnu_parallel::sequential_tag)
{ return _GLIBCXX_STD_A::equal(__begin1, __end1, __begin2); }
// Sequential fallback
template
inline bool
- equal(_IIter1 __begin1, _IIter1 __end1, _IIter2 __begin2,
+ equal(_IIter1 __begin1, _IIter1 __end1, _IIter2 __begin2,
_Predicate __pred, __gnu_parallel::sequential_tag)
{ return _GLIBCXX_STD_A::equal(__begin1, __end1, __begin2, __pred); }
@@ -232,7 +232,7 @@ namespace __parallel
template
_GLIBCXX20_CONSTEXPR
inline bool
- equal(_IIter1 __begin1, _IIter1 __end1, _IIter2 __begin2,
+ equal(_IIter1 __begin1, _IIter1 __end1, _IIter2 __begin2,
_Predicate __pred)
{
#if __cplusplus > 201703L
@@ -281,7 +281,7 @@ namespace __parallel
template
inline bool
__equal_switch(_RAIter1 __begin1, _RAIter1 __end1,
- _RAIter2 __begin2, _RAIter2 __end2, _Predicate __pred,
+ _RAIter2 __begin2, _RAIter2 __end2, _Predicate __pred,
random_access_iterator_tag, random_access_iterator_tag)
{
if (_GLIBCXX_PARALLEL_CONDITION(true))
@@ -338,8 +338,8 @@ namespace __parallel
// Sequential fallback
template
inline bool
- lexicographical_compare(_IIter1 __begin1, _IIter1 __end1,
- _IIter2 __begin2, _IIter2 __end2,
+ lexicographical_compare(_IIter1 __begin1, _IIter1 __end1,
+ _IIter2 __begin2, _IIter2 __end2,
__gnu_parallel::sequential_tag)
{ return _GLIBCXX_STD_A::lexicographical_compare(__begin1, __end1,
__begin2, __end2); }
@@ -347,8 +347,8 @@ namespace __parallel
// Sequential fallback
template
inline bool
- lexicographical_compare(_IIter1 __begin1, _IIter1 __end1,
- _IIter2 __begin2, _IIter2 __end2,
+ lexicographical_compare(_IIter1 __begin1, _IIter1 __end1,
+ _IIter2 __begin2, _IIter2 __end2,
_Predicate __pred, __gnu_parallel::sequential_tag)
{ return _GLIBCXX_STD_A::lexicographical_compare(
__begin1, __end1, __begin2, __end2, __pred); }
@@ -358,7 +358,7 @@ namespace __parallel
typename _Predicate, typename _IteratorTag1, typename _IteratorTag2>
inline bool
__lexicographical_compare_switch(_IIter1 __begin1, _IIter1 __end1,
- _IIter2 __begin2, _IIter2 __end2,
+ _IIter2 __begin2, _IIter2 __end2,
_Predicate __pred,
_IteratorTag1, _IteratorTag2)
{ return _GLIBCXX_STD_A::lexicographical_compare(
@@ -371,7 +371,7 @@ namespace __parallel
__lexicographical_compare_switch(_RAIter1 __begin1, _RAIter1 __end1,
_RAIter2 __begin2, _RAIter2 __end2,
_Predicate __pred,
- random_access_iterator_tag,
+ random_access_iterator_tag,
random_access_iterator_tag)
{
if (_GLIBCXX_PARALLEL_CONDITION(true))
@@ -390,9 +390,9 @@ namespace __parallel
if ((__end1 - __begin1) < (__end2 - __begin2))
{
typedef pair<_RAIter1, _RAIter2> _SpotType;
- _SpotType __mm = __mismatch_switch(__begin1, __end1, __begin2,
- _EqualFromLessCompare(__pred),
- random_access_iterator_tag(),
+ _SpotType __mm = __mismatch_switch(__begin1, __end1, __begin2,
+ _EqualFromLessCompare(__pred),
+ random_access_iterator_tag(),
random_access_iterator_tag());
return (__mm.first == __end1)
@@ -401,9 +401,9 @@ namespace __parallel
else
{
typedef pair<_RAIter2, _RAIter1> _SpotType;
- _SpotType __mm = __mismatch_switch(__begin2, __end2, __begin1,
- _EqualFromLessCompare(__pred),
- random_access_iterator_tag(),
+ _SpotType __mm = __mismatch_switch(__begin2, __end2, __begin1,
+ _EqualFromLessCompare(__pred),
+ random_access_iterator_tag(),
random_access_iterator_tag());
return (__mm.first != __end2)
diff --git a/libstdc++-v3/include/parallel/algorithmfwd.h b/libstdc++-v3/include/parallel/algorithmfwd.h
index 7c9843ab161..066be688530 100644
--- a/libstdc++-v3/include/parallel/algorithmfwd.h
+++ b/libstdc++-v3/include/parallel/algorithmfwd.h
@@ -72,7 +72,7 @@ namespace __parallel
template
_RAIter
- __adjacent_find_switch(_RAIter, _RAIter, _BiPredicate,
+ __adjacent_find_switch(_RAIter, _RAIter, _BiPredicate,
random_access_iterator_tag);
@@ -388,7 +388,7 @@ namespace __parallel
_FIter
search_n(_FIter, _FIter, _Integer, const _Tp&, _BiPredicate,
__gnu_parallel::sequential_tag);
-
+
template
_FIter
search_n(_FIter, _FIter, _Integer, const _Tp&);
@@ -417,25 +417,25 @@ namespace __parallel
template
_OIter
- transform(_IIter, _IIter, _OIter, _UnaryOperation,
+ transform(_IIter, _IIter, _OIter, _UnaryOperation,
__gnu_parallel::sequential_tag);
template
_OIter
- transform(_IIter, _IIter, _OIter, _UnaryOperation,
+ transform(_IIter, _IIter, _OIter, _UnaryOperation,
__gnu_parallel::_Parallelism);
template
_OIter
- __transform1_switch(_IIter, _IIter, _OIter, _UnaryOperation,
+ __transform1_switch(_IIter, _IIter, _OIter, _UnaryOperation,
_IterTag1, _IterTag2);
-
+
template