mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-16 01:45:40 +00:00
109 lines
5.9 KiB
C
109 lines
5.9 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 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/certs -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/waku/common -o nimcache/release/wakubridge/@m..@s..@svendor@snim-stew@sstew@sctops.nim.c.o nimcache/release/wakubridge/@m..@s..@svendor@snim-stew@sstew@sctops.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.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 NimStringDesc NimStringDesc;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
|
|
STRING_LITERAL(TM__g8zpYzkTyhGQblBGRZhsyw_2, "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops."
|
|
"nim(36, 11) `\012 0 < len(a) and\012 0 < len(b)` ", 108);
|
|
STRING_LITERAL(TM__g8zpYzkTyhGQblBGRZhsyw_3, "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops."
|
|
"nim(37, 11) `sizeof(A) == sizeof(B)` ", 100);
|
|
|
|
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isEqual__WxQYJ8fOGBPO2T0Kv9aJaEA)(NU8* a, NI aLen_0, NU8* b, NI bLen_0) { NIM_BOOL result; NI count_1; NU res; result = (NIM_BOOL)0;
|
|
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
T3_ = (NIM_BOOL)0;
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
T3_ = (((NI) 0) < aLen_0); if (!(T3_)) goto LA4_;
|
|
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
T3_ = (((NI) 0) < bLen_0); LA4_: ;
|
|
if (!!(T3_)) goto LA5_;
|
|
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__g8zpYzkTyhGQblBGRZhsyw_2));
|
|
}
|
|
LA5_: ;
|
|
|
|
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
{ if (!NIM_FALSE) goto LA9_;
|
|
|
|
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
|
|
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__g8zpYzkTyhGQblBGRZhsyw_3));
|
|
}
|
|
LA9_: ;
|
|
|
|
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
|
|
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
|
|
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
|
|
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
count_1 = ((aLen_0 <= bLen_0) ? aLen_0 : bLen_0);
|
|
#line 39 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
res = ((NU) 0); {
|
|
#line 40 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
while (1) { NI TM__g8zpYzkTyhGQblBGRZhsyw_4; NU av; NU bv;
|
|
#line 40 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
if (!(((NI) 0) < count_1)) goto LA12;
|
|
|
|
#line 41 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
if (nimSubInt(count_1, ((NI) 1), &TM__g8zpYzkTyhGQblBGRZhsyw_4)) { raiseOverflow(); }; count_1 = (NI)(TM__g8zpYzkTyhGQblBGRZhsyw_4);
|
|
#line 42 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
if ((NU)(count_1) >= (NU)(aLen_0)){ raiseIndexError2(count_1,aLen_0-1); } av = ((NU) (a[count_1]));
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
if ((NU)(count_1) >= (NU)(bLen_0)){ raiseIndexError2(count_1,bLen_0-1); } bv = ((NU) (b[count_1]));
|
|
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
|
|
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
|
|
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
res = (NU)(res | (NU)(av ^ bv)); } LA12: ;
|
|
}
|
|
|
|
#line 45 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/ctops.nim"
|
|
result = (res == ((NU) 0)); return result;}
|