Next: , Previous: , Up: The Macros  


ax_cache_size

Synopsis

AX_CACHE_SIZE

Description

Find L1 and L2 caches size by reading the corresponding file on UNIX or by requesting cpuid. The results are available in the defines CPU_L1_CACHE and CPU_L2_CACHE.

This macro depends on AX_GCC_X86_CPUID, AC_PROG_SED, AX_COUNT_CPUS, and AX_CPU_VENDOR.

Source Code

Download the latest version of ax_cache_size.m4 or browse the macro’s revision history.

License

Copyright © 2008 Christophe Tournayre turn3r@users.sourceforge.net

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.