This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR58669: does not detect all cpu cores/threads


>>>>> "Andrew" == Andrew  <gnu_andrew@member.fsf.org> writes:

Andrew> +#ifdef HAVE_UNISTD_H
Andrew> +  procs = sysconf(_SC_NPROCESSORS_ONLN);
Andrew> +#endif

Space before the "(".

Technically you should probably check for sysconf in configure.ac.
I'm not sure whether it matters any more.

I think _SC_NPROCESSORS_ONLN is not portable though.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]