]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgcc/config/libbid/bid128_2_str_macros.h
Update copyright years.
[thirdparty/gcc.git] / libgcc / config / libbid / bid128_2_str_macros.h
index d7da345480d4047b9752e7b21b7e97187be7dece..3087009e7e730589dab3e5399f787d64e1d71942 100644 (file)
@@ -1,36 +1,31 @@
-/* Copyright (C) 2007  Free Software Foundation, Inc.
+/* Copyright (C) 2007-2020 Free Software Foundation, 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 2, or (at your option) any later
+Software Foundation; either version 3, or (at your option) any later
 version.
 
-In addition to the permissions in the GNU General Public License, the
-Free Software Foundation gives you unlimited permission to link the
-compiled version of this file into combinations with other programs,
-and to distribute those combinations without any restriction coming
-from the use of this file.  (The General Public License restrictions
-do apply in other respects; for example, they cover modification of
-the file, and distribution when not linked into a combine
-executable.)
-
 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.
 
-You should have received a copy of the GNU General Public License
-along with GCC; see the file COPYING.  If not, write to the Free
-Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
-02110-1301, USA.  */
+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
+<http://www.gnu.org/licenses/>.  */
 
 #define __L0_Normalize_10to18( X_hi, X_lo )            \
 {                                                      \
 UINT64 L0_tmp;                                         \
-L0_tmp = (X_lo) + __bid_Twoto60_m_10to18;                    \
-if (L0_tmp & __bid_Twoto60)                                  \
+L0_tmp = (X_lo) + Twoto60_m_10to18;                    \
+if (L0_tmp & Twoto60)                                  \
  {(X_hi)=(X_hi)+1;(X_lo)=((L0_tmp<<4)>>4);}            \
 }
 
@@ -38,7 +33,7 @@ if (L0_tmp & __bid_Twoto60)                                  \
 #define __L0_Normalize_10to9( X_hi, X_lo )             \
 {                                                      \
 UINT32 L0_tmp;                                         \
-L0_tmp = (X_lo) + __bid_Twoto30_m_10to9;                     \
+L0_tmp = (X_lo) + Twoto30_m_10to9;                     \
 if (L0_tmp & 0x40000000)                               \
  {(X_hi)=(X_hi)+1;(X_lo)=((L0_tmp<<2)>>2);}            \
 }
@@ -76,10 +71,10 @@ UINT32 L0_X, L0_head, L0_mid, L0_tail, L0_tmp;         \
 {                                                      \
 UINT32 L1_X_hi, L1_X_lo;                               \
 UINT64 L1_Xhi_64, L1_Xlo_64;                           \
-L1_Xhi_64 = ( ((X)>>28)*__bid_Inv_Tento9 ) >> 33;            \
-L1_Xlo_64 = (X) - L1_Xhi_64*(UINT64)__bid_Tento9;            \
-if (L1_Xlo_64 >= (UINT64)__bid_Tento9)                       \
- {L1_Xlo_64-=(UINT64)__bid_Tento9;L1_Xhi_64+=1;}             \
+L1_Xhi_64 = ( ((X)>>28)*Inv_Tento9 ) >> 33;            \
+L1_Xlo_64 = (X) - L1_Xhi_64*(UINT64)Tento9;            \
+if (L1_Xlo_64 >= (UINT64)Tento9)                       \
+ {L1_Xlo_64-=(UINT64)Tento9;L1_Xhi_64+=1;}             \
 L1_X_hi=(UINT32)L1_Xhi_64; L1_X_lo=(UINT32)L1_Xlo_64;  \
 __L0_Split_MiDi_3(L1_X_hi,(ptr));                      \
 __L0_Split_MiDi_3(L1_X_lo,(ptr));                      \
@@ -89,18 +84,18 @@ __L0_Split_MiDi_3(L1_X_lo,(ptr));                      \
 {                                                      \
 UINT32 L1_X_hi, L1_X_lo;                               \
 UINT64 L1_Xhi_64, L1_Xlo_64;                           \
-if ((X)>=(UINT64)__bid_Tento9){                              \
-  L1_Xhi_64 = ( ((X)>>28)*__bid_Inv_Tento9 ) >> 33;          \
-  L1_Xlo_64 = (X) - L1_Xhi_64*(UINT64)__bid_Tento9;          \
-  if (L1_Xlo_64 >= (UINT64)__bid_Tento9)                     \
-   {L1_Xlo_64-=(UINT64)__bid_Tento9;L1_Xhi_64+=1;}           \
+if ((X)>=(UINT64)Tento9){                              \
+  L1_Xhi_64 = ( ((X)>>28)*Inv_Tento9 ) >> 33;          \
+  L1_Xlo_64 = (X) - L1_Xhi_64*(UINT64)Tento9;          \
+  if (L1_Xlo_64 >= (UINT64)Tento9)                     \
+   {L1_Xlo_64-=(UINT64)Tento9;L1_Xhi_64+=1;}           \
   L1_X_hi=(UINT32)L1_Xhi_64;                           \
   L1_X_lo=(UINT32)L1_Xlo_64;                           \
-  if (L1_X_hi>=__bid_Tento6){                                \
+  if (L1_X_hi>=Tento6){                                \
      __L0_Split_MiDi_3(L1_X_hi,(ptr));                 \
      __L0_Split_MiDi_3(L1_X_lo,(ptr));                 \
   }                                                    \
-  else if (L1_X_hi>=__bid_Tento3){                           \
+  else if (L1_X_hi>=Tento3){                           \
      __L0_Split_MiDi_2(L1_X_hi,(ptr));                 \
      __L0_Split_MiDi_3(L1_X_lo,(ptr));                 \
   }                                                    \
@@ -111,10 +106,10 @@ if ((X)>=(UINT64)__bid_Tento9){                              \
 }                                                      \
 else {                                                 \
   L1_X_lo = (UINT32)(X);                               \
-  if (L1_X_lo>=__bid_Tento6){                                \
+  if (L1_X_lo>=Tento6){                                \
      __L0_Split_MiDi_3(L1_X_lo,(ptr));                 \
   }                                                    \
-  else if (L1_X_lo>=__bid_Tento3){                           \
+  else if (L1_X_lo>=Tento3){                           \
      __L0_Split_MiDi_2(L1_X_lo,(ptr));                 \
   }                                                    \
   else {                                               \
@@ -127,7 +122,7 @@ else {                                                 \
 #define __L0_MiDi2Str( X, c_ptr )              \
 {                                              \
 char *L0_src;                                  \
- L0_src = __bid_midi_tbl[(X)];                       \
+ L0_src = midi_tbl[(X)];                       \
  *((c_ptr)++) = *(L0_src++);                   \
  *((c_ptr)++) = *(L0_src++);                   \
  *((c_ptr)++) = *(L0_src);                     \
@@ -136,7 +131,7 @@ char *L0_src;                                  \
 #define __L0_MiDi2Str_Lead( X, c_ptr )         \
 {                                              \
 char *L0_src;                                  \
- L0_src = __bid_midi_tbl[(X)];                       \
+ L0_src = midi_tbl[(X)];                       \
  if ((X)>=100){                                \
  *((c_ptr)++) = *(L0_src++);                   \
  *((c_ptr)++) = *(L0_src++);                   \