/* Generated by Nim Compiler v0.10.2 */
/*   (c) 2014 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 64
#include "nimbase.h"
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_121241)(NimStringDesc* key);
N_NIMCALL(NI, nsuParseInt)(NimStringDesc* s);
STRING_LITERAL(TMP4209, "NUMBER_OF_PROCESSORS", 20);

N_NIMCALL(NI, ncpicountProcessors)(void) {
	NI result;
	NimStringDesc* x;
	result = 0;
	x = getenv_121241(((NimStringDesc*) &TMP4209));
	{
		if (!(0 < x->Sup.len)) goto LA3;
		result = nsuParseInt(x);
	}
	LA3: ;
	{
		if (!(result <= 0)) goto LA7;
		result = 1;
	}
	LA7: ;
	return result;
}
NIM_EXTERNC N_NOINLINE(void, stdlib_cpuinfoInit)(void) {
}

NIM_EXTERNC N_NOINLINE(void, stdlib_cpuinfoDatInit)(void) {
}

