1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
/* Generated by Nim Compiler v0.16.0 */
/* (c) 2017 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 64
#include "nimbase.h"
#undef linux
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_NIMCALL(NimStringDesc*, getenv_8zNgT9bxx7m9cTt2TeVdTdIw)(NimStringDesc* key0);
N_NIMCALL(NI, nsuParseInt)(NimStringDesc* s0);
STRING_LITERAL(T_h5LhXa1x7tiRXpXshXFkHA_2, "NUMBER_OF_PROCESSORS", 20);
N_NIMCALL(NI, ncpicountProcessors)(void) {
NI result0;
NimStringDesc* x0;
result0 = (NI)0;
x0 = getenv_8zNgT9bxx7m9cTt2TeVdTdIw(((NimStringDesc*) &T_h5LhXa1x7tiRXpXshXFkHA_2));
{
if (!(((NI) 0) < (x0 ? x0->Sup.len : 0))) goto LA3;
result0 = nsuParseInt(x0);
}
LA3: ;
{
if (!(result0 <= ((NI) 0))) goto LA7;
result0 = ((NI) 1);
}
LA7: ;
return result0;
}
NIM_EXTERNC N_NOINLINE(void, stdlib_cpuinfoInit000)(void) {
}
NIM_EXTERNC N_NOINLINE(void, stdlib_cpuinfoDatInit000)(void) {
}
|