From: Alan C. <al...@lx...> - 2004-09-23 16:01:24
|
On Mer, 2004-09-22 at 22:14, Eric Anholt wrote: > > 2.2 kernels and kernels not properly configured for Pentium3 CPUs. So, > > what's the right way on a 2.4 or a 2.6 kernel to determine if an app can > > use SSE? What about BSD? > > On FreeBSD we just use a convenient little sysctl to pull out whether > there's SSE and the kernel supports it. Ask the processor or ask the kernel (cpuid or /proc/cpuinfo). All modern kernels support SSE so the exception case should only occur for 2.2 (ie unsupported). Alan |