mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-15 17:35:45 +00:00
349 lines
22 KiB
C
349 lines
22 KiB
C
/* Generated by Nim Compiler v1.2.6 */
|
|
/* (c) 2020 Andreas Rumpf */
|
|
/* The generated code is subject to the original license. */
|
|
/* Compiled for: Linux, amd64, gcc */
|
|
/* Command for C compiler:
|
|
gcc -c -w -pthread -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/install/usr/include -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1/src -DHAVE_CONFIG_H -DHAVE_BUILTIN_EXPECT -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/src -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/inc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/tools -DBR_USE_UNIX_TIME=1 -DBR_USE_URANDOM=1 -DBR_LE_UNALIGNED=1 -DBR_64=1 -DBR_amd64=1 -DBR_INT128=1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/libnatpmp-upstream -DENABLE_STRNATPMPERR -march=native -g3 -Og -O3 -fno-strict-aliasing -fno-ident -I/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib -I/home/runner/work/nim-waku/nim-waku/examples/v1 -o nimcache/release/example/@m..@s..@svendor@snim-stint@sstint@sio.nim.c.o nimcache/release/example/@m..@s..@svendor@snim-stint@sstint@sio.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.h"
|
|
#include <string.h>
|
|
#undef LANGUAGE_C
|
|
#undef MIPSEB
|
|
#undef MIPSEL
|
|
#undef PPC
|
|
#undef R3000
|
|
#undef R4000
|
|
#undef i386
|
|
#undef linux
|
|
#undef mips
|
|
#undef near
|
|
#undef far
|
|
#undef powerpc
|
|
#undef unix
|
|
#define nimfr_(x, y)
|
|
#define nimln_(x, y)
|
|
typedef struct tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg;
|
|
typedef struct tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA;
|
|
typedef struct tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g;
|
|
typedef struct NimStringDesc NimStringDesc;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
typedef struct tyTuple__klovsnr9bshhDuR7kVSkbWQ tyTuple__klovsnr9bshhDuR7kVSkbWQ;
|
|
typedef struct tyTuple__cEA2BnesWvD8MYdhMKmxgg tyTuple__cEA2BnesWvD8MYdhMKmxgg;
|
|
struct tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g {NU64 lo;
|
|
NU64 hi;
|
|
};
|
|
struct tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA {tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g lo;
|
|
tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g hi;
|
|
};
|
|
struct tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg {tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA data;
|
|
};
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
struct tyTuple__klovsnr9bshhDuR7kVSkbWQ {
|
|
tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg Field0;
|
|
tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg Field1;
|
|
};
|
|
struct tyTuple__cEA2BnesWvD8MYdhMKmxgg {
|
|
tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA Field0;
|
|
tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA Field1;
|
|
};
|
|
typedef NU8 tyArray__vEOa9c5qaE9ajWxR5R4zwfQg[32];
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size);
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(void, initFromBytesBE__fkCRlAENlRAzJq7ISaao9bg)(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* val_0, NU8* ba, NI baLen_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
|
|
static N_INLINE(tyTuple__klovsnr9bshhDuR7kVSkbWQ, divmod__fNjZ05xTKdqHi4aRUWuQ3Aintops)(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* x_0, tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* y_0);
|
|
N_LIB_PRIVATE N_NIMCALL(tyTuple__cEA2BnesWvD8MYdhMKmxgg, divmod__pWdXtdF9alC1QLZFoh8MYSg)(tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA* x_0, tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA* y_0);
|
|
static N_INLINE(NI, truncate__9byOvvCmfihmXYVoSe9bWbVQio)(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* num);
|
|
static N_INLINE(NU64, leastSignificantWord__3g3pYYNzHmIAepLzAPp16gdatatypes)(tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA* num);
|
|
static N_INLINE(NU64, leastSignificantWord__HJt9ciWn55pfK69b0rq7CBXgdatatypes)(tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g num);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
|
|
static N_INLINE(NIM_BOOL, isZero__IFUGdgCzqXbj8AcP9c8gBHgintops)(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* x_0);
|
|
static N_INLINE(NIM_BOOL, isZero__hHCuOZEP3SZNWlqnu0VGGguint_comparison)(tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA* n_0);
|
|
static N_INLINE(NIM_BOOL, isZero__Yu9aLkQ9cLhL5VwnNUuyAvKQuint_comparison)(tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g n_0);
|
|
static N_INLINE(NIM_BOOL, isZero__bitbVizNc3i9cchE5bo9acoAuint_comparison)(NU64 n_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, reverse__ZFWXZRLpsKFl2OzCm4rOZA)(NIM_CHAR* a, NI aLen_0);
|
|
N_LIB_PRIVATE N_NOINLINE(void, chckNil)(void* p);
|
|
STRING_LITERAL(TM__d1Pef9b9cZdJdof7yqOnqQhA_2, "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.n"
|
|
"im(432, 13) `ba.len == N` ", 89);
|
|
static NIM_CONST tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg TM__d1Pef9b9cZdJdof7yqOnqQhA_5 = {{{10ULL, 0ULL}
|
|
, {0ULL, 0ULL}
|
|
}
|
|
}
|
|
;
|
|
STRING_LITERAL(TM__d1Pef9b9cZdJdof7yqOnqQhA_6, "0123456789abcdef", 16);
|
|
static NIM_CONST tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg TM__d1Pef9b9cZdJdof7yqOnqQhA_9 = {{{16ULL, 0ULL}
|
|
, {0ULL, 0ULL}
|
|
}
|
|
}
|
|
;
|
|
|
|
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) { void* T1_;
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
T1_ = (void*)0; T1_ = memset(a, v, ((size_t) (size)));}
|
|
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size) {
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size);
|
|
}
|
|
|
|
#line 421 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, initFromBytesBE__fkCRlAENlRAzJq7ISaao9bg)(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* val_0, NU8* ba, NI baLen_0) { NU8* __restrict r_ptr;
|
|
#line 432 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
{
|
|
#line 432 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 432 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 432 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
if (!!((baLen_0 == ((NI) 32)))) goto LA3_;
|
|
|
|
#line 432 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 432 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_2));
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 453 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
r_ptr = ((NU8*) (val_0)); { NI i; NU8 b; NI i_2; i = (NI)0; b = (NU8)0;
|
|
#line 83 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
i_2 = ((NI) 0); {
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
while (1) { NI TM__d1Pef9b9cZdJdof7yqOnqQhA_3; NI TM__d1Pef9b9cZdJdof7yqOnqQhA_4;
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (!(i_2 < baLen_0)) goto LA7;
|
|
|
|
#line 466 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
i = i_2;
|
|
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if ((NU)(i_2) >= (NU)(baLen_0)){ raiseIndexError2(i_2,baLen_0-1); } b = ba[i_2];
|
|
#line 466 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
if (nimSubInt(((NI) 31), i, &TM__d1Pef9b9cZdJdof7yqOnqQhA_3)) { raiseOverflow(); }; if ((NU)((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_3)) > (NU)(31)){ raiseIndexError2((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_3), 31); }
|
|
#line 466 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
r_ptr[((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_3))- 0] = b;
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__d1Pef9b9cZdJdof7yqOnqQhA_4)) { raiseOverflow(); }; i_2 = (NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_4); } LA7: ;
|
|
}
|
|
}
|
|
}
|
|
|
|
#line 482 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg, readUintBE__vA4YbgLWhFsThk7n01kMzA)(NU8* ba, NI baLen_0) { tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg result; nimZeroMem((void*)(&result), sizeof(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg));
|
|
#line 490 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 490 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
initFromBytesBE__fkCRlAENlRAzJq7ISaao9bg((&result), ba, baLen_0);
|
|
return result;}
|
|
|
|
#line 70 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/intops.nim"
|
|
static N_INLINE(tyTuple__klovsnr9bshhDuR7kVSkbWQ, divmod__fNjZ05xTKdqHi4aRUWuQ3Aintops)(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* x_0, tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* y_0) { tyTuple__klovsnr9bshhDuR7kVSkbWQ result; tyTuple__cEA2BnesWvD8MYdhMKmxgg _; nimZeroMem((void*)(&result), sizeof(tyTuple__klovsnr9bshhDuR7kVSkbWQ));
|
|
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/intops.nim"
|
|
|
|
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/intops.nim"
|
|
_ = divmod__pWdXtdF9alC1QLZFoh8MYSg((&(*x_0).data), (&(*y_0).data));
|
|
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/intops.nim"
|
|
result.Field0.data = _.Field0;
|
|
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/intops.nim"
|
|
result.Field1.data = _.Field1; return result;}
|
|
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/datatypes.nim"
|
|
static N_INLINE(NU64, leastSignificantWord__HJt9ciWn55pfK69b0rq7CBXgdatatypes)(tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g num) { NU64 result; result = (NU64)0;
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/datatypes.nim"
|
|
result = num.lo; return result;}
|
|
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/datatypes.nim"
|
|
static N_INLINE(NU64, leastSignificantWord__3g3pYYNzHmIAepLzAPp16gdatatypes)(tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA* num) { NU64 result; result = (NU64)0;
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/datatypes.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/datatypes.nim"
|
|
result = leastSignificantWord__HJt9ciWn55pfK69b0rq7CBXgdatatypes((*num).lo); return result;}
|
|
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
static N_INLINE(NI, truncate__9byOvvCmfihmXYVoSe9bWbVQio)(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* num) { NI result; NU64 T1_; result = (NI)0;
|
|
#line 69 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
T1_ = (NU64)0; T1_ = leastSignificantWord__3g3pYYNzHmIAepLzAPp16gdatatypes((&(*num).data)); result = ((NI) (T1_)); return result;}
|
|
|
|
#line 12 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
static N_INLINE(NIM_BOOL, isZero__bitbVizNc3i9cchE5bo9acoAuint_comparison)(NU64 n_0) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
result = (n_0 == 0ULL); return result;}
|
|
|
|
#line 15 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
static N_INLINE(NIM_BOOL, isZero__Yu9aLkQ9cLhL5VwnNUuyAvKQuint_comparison)(tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g n_0) { NIM_BOOL result; NIM_BOOL T1_; result = (NIM_BOOL)0;
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
T1_ = (NIM_BOOL)0;
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
T1_ = isZero__bitbVizNc3i9cchE5bo9acoAuint_comparison(n_0.hi); if (!(T1_)) goto LA2_;
|
|
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
T1_ = isZero__bitbVizNc3i9cchE5bo9acoAuint_comparison(n_0.lo); LA2_: ;
|
|
result = T1_; return result;}
|
|
|
|
#line 15 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
static N_INLINE(NIM_BOOL, isZero__hHCuOZEP3SZNWlqnu0VGGguint_comparison)(tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA* n_0) { NIM_BOOL result; NIM_BOOL T1_; result = (NIM_BOOL)0;
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
T1_ = (NIM_BOOL)0;
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
T1_ = isZero__Yu9aLkQ9cLhL5VwnNUuyAvKQuint_comparison((*n_0).hi); if (!(T1_)) goto LA2_;
|
|
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
|
|
#line 16 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/private/uint_comparison.nim"
|
|
T1_ = isZero__Yu9aLkQ9cLhL5VwnNUuyAvKQuint_comparison((*n_0).lo); LA2_: ;
|
|
result = T1_; return result;}
|
|
|
|
#line 92 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/intops.nim"
|
|
static N_INLINE(NIM_BOOL, isZero__IFUGdgCzqXbj8AcP9c8gBHgintops)(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* x_0) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 93 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/intops.nim"
|
|
|
|
#line 95 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/intops.nim"
|
|
|
|
#line 95 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/intops.nim"
|
|
result = isZero__hHCuOZEP3SZNWlqnu0VGGguint_comparison((&(*x_0).data)); return result;}
|
|
|
|
#line 309 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toString__lbLDgwGABqbnZSiT8SBqmA)(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* num) { NimStringDesc* result; tyTuple__klovsnr9bshhDuR7kVSkbWQ T1_; tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg q_1; tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg r; result = (NimStringDesc*)0;
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
result = ((NimStringDesc*) NIM_NIL);
|
|
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
T1_ = divmod__fNjZ05xTKdqHi4aRUWuQ3Aintops(num, (&TM__d1Pef9b9cZdJdof7yqOnqQhA_5)); q_1 = T1_.Field0; r = T1_.Field1; {
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
while (1) { NI T4_; tyTuple__klovsnr9bshhDuR7kVSkbWQ _;
|
|
#line 328 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 328 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 328 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
T4_ = (NI)0; T4_ = truncate__9byOvvCmfihmXYVoSe9bWbVQio((&r)); if ((NU)(T4_) >= (NU)(((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_6) ? ((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_6)->Sup.len : 0)){ raiseIndexError2(T4_,(((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_6) ? ((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_6)->Sup.len : 0)-1); } result = addChar(result, ((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_6)->data[T4_]);
|
|
#line 329 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
{ NIM_BOOL T7_;
|
|
#line 329 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 329 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
T7_ = (NIM_BOOL)0; T7_ = isZero__IFUGdgCzqXbj8AcP9c8gBHgintops((&q_1)); if (!T7_) goto LA8_;
|
|
|
|
#line 330 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
goto LA2;
|
|
}
|
|
LA8_: ;
|
|
|
|
#line 331 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 331 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
_ = divmod__fNjZ05xTKdqHi4aRUWuQ3Aintops((&q_1), (&TM__d1Pef9b9cZdJdof7yqOnqQhA_5));
|
|
#line 331 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
q_1 = _.Field0;
|
|
#line 331 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
r = _.Field1; }
|
|
} LA2: ;
|
|
|
|
#line 333 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 333 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
reverse__ZFWXZRLpsKFl2OzCm4rOZA(result->data, (result ? result->Sup.len : 0));
|
|
return result;}
|
|
|
|
#line 492 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, toByteArrayBE__15Qm7fj0jAFrpK3KhqggUg)(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* n_0, tyArray__vEOa9c5qaE9ajWxR5R4zwfQg Result) { NU8* __restrict n_ptr; chckNil((void*)Result); nimZeroMem((void*)Result, sizeof(tyArray__vEOa9c5qaE9ajWxR5R4zwfQg));
|
|
#line 512 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
n_ptr = ((NU8*) (n_0)); { NI i; NI i_2; i = (NI)0;
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_2 = ((NI) 0); {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__d1Pef9b9cZdJdof7yqOnqQhA_7; NI TM__d1Pef9b9cZdJdof7yqOnqQhA_8;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_2 < ((NI) 32))) goto LA3;
|
|
|
|
#line 513 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
i = i_2;
|
|
#line 514 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
if (nimSubInt(((NI) 31), i, &TM__d1Pef9b9cZdJdof7yqOnqQhA_7)) { raiseOverflow(); }; if ((NU)((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_7)) > (NU)(31)){ raiseIndexError2((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_7), 31); }
|
|
#line 514 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
if ((NU)(i) > (NU)(31)){ raiseIndexError2(i, 31); } Result[((NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_7))- 0] = n_ptr[(i)- 0];
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__d1Pef9b9cZdJdof7yqOnqQhA_8)) { raiseOverflow(); }; i_2 = (NI)(TM__d1Pef9b9cZdJdof7yqOnqQhA_8); } LA3: ;
|
|
}
|
|
}
|
|
}
|
|
|
|
#line 309 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toString__X5fc87ECNWuekn9cp59cplTw)(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg* num) { NimStringDesc* result; tyTuple__klovsnr9bshhDuR7kVSkbWQ T1_; tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg q_1; tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg r; result = (NimStringDesc*)0;
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
result = ((NimStringDesc*) NIM_NIL);
|
|
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
T1_ = divmod__fNjZ05xTKdqHi4aRUWuQ3Aintops(num, (&TM__d1Pef9b9cZdJdof7yqOnqQhA_9)); q_1 = T1_.Field0; r = T1_.Field1; {
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
while (1) { NI T4_; tyTuple__klovsnr9bshhDuR7kVSkbWQ _;
|
|
#line 328 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 328 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 328 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
T4_ = (NI)0; T4_ = truncate__9byOvvCmfihmXYVoSe9bWbVQio((&r)); if ((NU)(T4_) >= (NU)(((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_6) ? ((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_6)->Sup.len : 0)){ raiseIndexError2(T4_,(((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_6) ? ((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_6)->Sup.len : 0)-1); } result = addChar(result, ((NimStringDesc*) &TM__d1Pef9b9cZdJdof7yqOnqQhA_6)->data[T4_]);
|
|
#line 329 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
{ NIM_BOOL T7_;
|
|
#line 329 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 329 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
T7_ = (NIM_BOOL)0; T7_ = isZero__IFUGdgCzqXbj8AcP9c8gBHgintops((&q_1)); if (!T7_) goto LA8_;
|
|
|
|
#line 330 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
goto LA2;
|
|
}
|
|
LA8_: ;
|
|
|
|
#line 331 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 331 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
_ = divmod__fNjZ05xTKdqHi4aRUWuQ3Aintops((&q_1), (&TM__d1Pef9b9cZdJdof7yqOnqQhA_9));
|
|
#line 331 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
q_1 = _.Field0;
|
|
#line 331 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
r = _.Field1; }
|
|
} LA2: ;
|
|
|
|
#line 333 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 333 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
reverse__ZFWXZRLpsKFl2OzCm4rOZA(result->data, (result ? result->Sup.len : 0));
|
|
return result;}
|