Home | History | Annotate | Download | only in util

Lines Matching refs:l1

785 inline void queryCacheSizes_intel_direct(int& l1, int& l2, int& l3)
788 l1 = l2 = l3 = 0;
807 case 1: l1 = cache_size; break;
817 inline void queryCacheSizes_intel_codes(int& l1, int& l2, int& l3)
821 l1 = l2 = l3 = 0;
829 case 0x0A: l1 = 8; break; // 0Ah data L1 cache, 8 KB, 2 ways, 32 byte lines
830 case 0x0C: l1 = 16; break; // 0Ch data L1 cache, 16 KB, 4 ways, 32 byte lines
831 case 0x0E: l1 = 24; break; // 0Eh data L1 cache, 24 KB, 6 ways, 64 byte lines
832 case 0x10: l1 = 16; break; // 10h data L1 cache, 16 KB, 4 ways, 32 byte lines (IA-64)
833 case 0x15: l1 = 16; break; // 15h code L1 cache, 16 KB, 4 ways, 32 byte lines (IA-64)
834 case 0x2C: l1 = 32; break; // 2Ch data L1 cache, 32 KB, 8 ways, 64 byte lines
835 case 0x30: l1 = 32; break; // 30h code L1 cache, 32 KB, 8 ways, 64 byte lines
836 case 0x60: l1 = 16; break; // 60h data L1 cache, 16 KB, 8 ways, 64 byte lines, sectored
837 case 0x66: l1 = 8; break; // 66h data L1 cache, 8 KB, 4 ways, 64 byte lines, sectored
838 case 0x67: l1 = 16; break; // 67h data L1 cache, 16 KB, 4 ways, 64 byte lines, sectored
839 case 0x68: l1 = 32; break; // 68h data L1 cache, 32 KB, 4 ways, 64 byte lines, sectored
892 l1 *= 1024;
897 inline void queryCacheSizes_intel(int& l1, int& l2, int& l3, int max_std_funcs)
900 queryCacheSizes_intel_direct(l1,l2,l3);
902 queryCacheSizes_intel_codes(l1,l2,l3);
905 inline void queryCacheSizes_amd(int& l1, int& l2, int& l3)
910 l1 = (abcd[2] >> 24) * 1024; // C[31:24] = L1 size in KB
919 * Queries and returns the cache sizes in Bytes of the L1, L2, and L3 data caches respectively */
920 inline void queryCacheSizes(int& l1, int& l2, int& l3)
932 queryCacheSizes_intel(l1,l2,l3,max_std_funcs);
934 queryCacheSizes_amd(l1,l2,l3);
937 queryCacheSizes_intel(l1,l2,l3,max_std_funcs);
951 l1 = l2 = l3 = -1;
956 * \returns the size in Bytes of the L1 data cache */
959 int l1(-1), l2, l3;
960 queryCacheSizes(l1,l2,l3);
961 return l1;
968 int l1, l2(-1), l3(-1);
969 queryCacheSizes(l1,l2,l3);