https://github.com/halide/Halide
Raw File
Tip revision: 6a9d947dbf9ced34450b21fdd40e365ca96a5fd7 authored by Andrew Adams on 24 July 2023, 23:29:45 UTC
Use const refs for non-mutated args
Tip revision: 6a9d947
android_host_cpu_count.cpp
#include "HalideRuntime.h"

extern "C" {

extern long sysconf(int);

WEAK int halide_host_cpu_count() {
    // Works for Android ARMv7. Probably bogus on other platforms.
    return sysconf(97);
}
}
back to top