"Fossies" - the Fresh Open Source Software Archive

Member "dateutils-0.4.6/lib/leap-seconds.def" (19 Mar 2019, 4744 Bytes) of package /linux/privat/dateutils-0.4.6.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Modula2 source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "leap-seconds.def": 0.4.5_vs_0.4.6.

    1 /*** autogenerated by: ltrcc leap-seconds.list */
    2 
    3 #include <stdint.h>
    4 #include <limits.h>
    5 #include "leaps.h"
    6 #include "leap-seconds.h"
    7 
    8 #if !defined INCLUDED_ltrcc_generated_def_
    9 #define INCLUDED_ltrcc_generated_def_
   10 
   11 #if !defined countof
   12 # define countof(x) (sizeof(x) / sizeof(*x))
   13 #endif  /* !countof */
   14 
   15 const int32_t leaps_corr[] = {
   16     10,
   17     10,
   18     11,
   19     12,
   20     13,
   21     14,
   22     15,
   23     16,
   24     17,
   25     18,
   26     19,
   27     20,
   28     21,
   29     22,
   30     23,
   31     24,
   32     25,
   33     26,
   34     27,
   35     28,
   36     29,
   37     30,
   38     31,
   39     32,
   40     33,
   41     34,
   42     35,
   43     36,
   44     37,
   45     37
   46 };
   47 const size_t nleaps_corr = countof(leaps_corr);
   48 
   49 const uint32_t leaps_ymd[] = {
   50     0x00U/* 0 */,
   51     0x1ecf1fU/* 2019103 */,
   52     0x1ed19eU/* 2019742 */,
   53     0x1ed31fU/* 2020127 */,
   54     0x1ed71fU/* 2021151 */,
   55     0x1edb1fU/* 2022175 */,
   56     0x1edf1fU/* 2023199 */,
   57     0x1ee31fU/* 2024223 */,
   58     0x1ee71fU/* 2025247 */,
   59     0x1eeb1fU/* 2026271 */,
   60     0x1eef1fU/* 2027295 */,
   61     0x1ef59eU/* 2028958 */,
   62     0x1ef99eU/* 2029982 */,
   63     0x1efd9eU/* 2031006 */,
   64     0x1f059eU/* 2033054 */,
   65     0x1f0f1fU/* 2035487 */,
   66     0x1f171fU/* 2037535 */,
   67     0x1f1b1fU/* 2038559 */,
   68     0x1f219eU/* 2040222 */,
   69     0x1f259eU/* 2041246 */,
   70     0x1f299eU/* 2042270 */,
   71     0x1f2f1fU/* 2043679 */,
   72     0x1f359eU/* 2045342 */,
   73     0x1f3b1fU/* 2046751 */,
   74     0x1f571fU/* 2053919 */,
   75     0x1f631fU/* 2056991 */,
   76     0x1f719eU/* 2060702 */,
   77     0x1f7d9eU/* 2063774 */,
   78     0x1f831fU/* 2065183 */,
   79     UINT32_MAX
   80 };
   81 const size_t nleaps_ymd = countof(leaps_ymd);
   82 
   83 const uint32_t leaps_ymcw[] = {
   84     0x00U/* 0 */,
   85     0x1ecf2dU/* 2019117 */,
   86     0x1ed1adU/* 2019757 */,
   87     0x1ed32fU/* 2020143 */,
   88     0x1ed729U/* 2021161 */,
   89     0x1edb2aU/* 2022186 */,
   90     0x1edf2bU/* 2023211 */,
   91     0x1ee32dU/* 2024237 */,
   92     0x1ee72eU/* 2025262 */,
   93     0x1eeb2fU/* 2026287 */,
   94     0x1eef29U/* 2027305 */,
   95     0x1ef5aaU/* 2028970 */,
   96     0x1ef9abU/* 2029995 */,
   97     0x1efdacU/* 2031020 */,
   98     0x1f05afU/* 2033071 */,
   99     0x1f0f2cU/* 2035500 */,
  100     0x1f172fU/* 2037551 */,
  101     0x1f1b29U/* 2038569 */,
  102     0x1f21aaU/* 2040234 */,
  103     0x1f25abU/* 2041259 */,
  104     0x1f29acU/* 2042284 */,
  105     0x1f2f2fU/* 2043695 */,
  106     0x1f35a9U/* 2045353 */,
  107     0x1f3b2cU/* 2046764 */,
  108     0x1f572eU/* 2053934 */,
  109     0x1f632bU/* 2057003 */,
  110     0x1f71aeU/* 2060718 */,
  111     0x1f7daaU/* 2063786 */,
  112     0x1f832eU/* 2065198 */,
  113     UINT32_MAX
  114 };
  115 const size_t nleaps_ymcw = countof(leaps_ymcw);
  116 
  117 const uint32_t leaps_d[] = {
  118     0x00U/* 0 */,
  119     0x21150U/* 135504 */,
  120     0x21206U/* 135686 */,
  121     0x212beU/* 135870 */,
  122     0x2142bU/* 136235 */,
  123     0x21598U/* 136600 */,
  124     0x21705U/* 136965 */,
  125     0x21873U/* 137331 */,
  126     0x219e0U/* 137696 */,
  127     0x21b4dU/* 138061 */,
  128     0x21cbaU/* 138426 */,
  129     0x21eddU/* 138973 */,
  130     0x2204aU/* 139338 */,
  131     0x221b7U/* 139703 */,
  132     0x22492U/* 140434 */,
  133     0x22824U/* 141348 */,
  134     0x22affU/* 142079 */,
  135     0x22c6cU/* 142444 */,
  136     0x22e8fU/* 142991 */,
  137     0x22ffcU/* 143356 */,
  138     0x23169U/* 143721 */,
  139     0x2338eU/* 144270 */,
  140     0x235b1U/* 144817 */,
  141     0x237d6U/* 145366 */,
  142     0x241d3U/* 147923 */,
  143     0x2461bU/* 149019 */,
  144     0x24b18U/* 150296 */,
  145     0x24f5fU/* 151391 */,
  146     0x25185U/* 151941 */,
  147     UINT32_MAX
  148 };
  149 const size_t nleaps_d = countof(leaps_d);
  150 
  151 const int32_t leaps_s[] = {
  152     INT32_MIN,
  153     0x3c266ffU/* 63071999 */,
  154     0x4b257ffU/* 78796799 */,
  155     0x5a4ebffU/* 94694399 */,
  156     0x7861f7fU/* 126230399 */,
  157     0x96752ffU/* 157766399 */,
  158     0xb48867fU/* 189302399 */,
  159     0xd2b0b7fU/* 220924799 */,
  160     0xf0c3effU/* 252460799 */,
  161     0x10ed727fU/* 283996799 */,
  162     0x12cea5ffU/* 315532799 */,
  163     0x159fca7fU/* 362793599 */,
  164     0x1780fdffU/* 394329599 */,
  165     0x1962317fU/* 425865599 */,
  166     0x1d25e9ffU/* 489023999 */,
  167     0x21dae4ffU/* 567993599 */,
  168     0x259e9d7fU/* 631151999 */,
  169     0x277fd0ffU/* 662687999 */,
  170     0x2a50f57fU/* 709948799 */,
  171     0x2c3228ffU/* 741484799 */,
  172     0x2e135c7fU/* 773020799 */,
  173     0x30e723ffU/* 820454399 */,
  174     0x33b8487fU/* 867715199 */,
  175     0x368c0fffU/* 915148799 */,
  176     0x43b71b7fU/* 1136073599 */,
  177     0x495c077fU/* 1230767999 */,
  178     0x4fef92ffU/* 1341100799 */,
  179     0x55932d7fU/* 1435708799 */,
  180     0x5868467fU/* 1483228799 */,
  181     INT32_MAX
  182 };
  183 const size_t nleaps_s = countof(leaps_s);
  184 
  185 const uint32_t leaps_hms[] = {
  186     UINT32_MAX,
  187     0x173b3cU/* 1522492 */,
  188     0x173b3cU/* 1522492 */,
  189     0x173b3cU/* 1522492 */,
  190     0x173b3cU/* 1522492 */,
  191     0x173b3cU/* 1522492 */,
  192     0x173b3cU/* 1522492 */,
  193     0x173b3cU/* 1522492 */,
  194     0x173b3cU/* 1522492 */,
  195     0x173b3cU/* 1522492 */,
  196     0x173b3cU/* 1522492 */,
  197     0x173b3cU/* 1522492 */,
  198     0x173b3cU/* 1522492 */,
  199     0x173b3cU/* 1522492 */,
  200     0x173b3cU/* 1522492 */,
  201     0x173b3cU/* 1522492 */,
  202     0x173b3cU/* 1522492 */,
  203     0x173b3cU/* 1522492 */,
  204     0x173b3cU/* 1522492 */,
  205     0x173b3cU/* 1522492 */,
  206     0x173b3cU/* 1522492 */,
  207     0x173b3cU/* 1522492 */,
  208     0x173b3cU/* 1522492 */,
  209     0x173b3cU/* 1522492 */,
  210     0x173b3cU/* 1522492 */,
  211     0x173b3cU/* 1522492 */,
  212     0x173b3cU/* 1522492 */,
  213     0x173b3cU/* 1522492 */,
  214     0x173b3cU/* 1522492 */,
  215     UINT32_MAX
  216 };
  217 const size_t nleaps_hms = countof(leaps_hms);
  218 
  219 /* exported number of leap transitions */
  220 const size_t nleaps = countof(leaps_corr);
  221 
  222 #endif  /* INCLUDED_ltrcc_generated_def_ */