csources_v2/c_code/2_6/@m..@slib@spure@sconcurrency@scpuinfo.nim.c
2022-12-16 10:54:01 +08:00

31 lines
535 B
C

/* Generated by Nim Compiler v1.9.0 */
#define NIM_INTBITS 64
#include "nimbase.h"
#include <unistd.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)
N_LIB_PRIVATE N_NIMCALL(NI, ncpicountProcessors)(void) {
NI result;
result = (NI)0;
result = sysconf(_SC_NPROCESSORS_ONLN);
{
if (!(result <= ((NI)0))) goto LA3_;
result = ((NI)0);
}
LA3_: ;
return result;
}