libicuid
1.4.1
Main Page
Classes
Files
File List
File Members
src
match.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2016, Kurt Cancemi (
[email protected]
)
3
*
4
* Permission to use, copy, modify, and/or distribute this software for any
5
* purpose with or without fee is hereby granted, provided that the above
6
* copyright notice and this permission notice appear in all copies.
7
*
8
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15
*/
16
17
typedef
struct
{
18
uint32_t family, model,
stepping
, ext_family, ext_model;
19
uint32_t cores, l2_cache,
l3_cache
, brand_code;
20
const
char
*
uarch
;
21
}
match_uarch_t
;
22
23
int
match_pattern
(
const
char
*haystack,
const
char
*needle);
24
void
match_cpu_uarch
(
cpuid_data_t
*data,
const
match_uarch_t
*matchtable,
25
const
unsigned
int
array_size,
const
uint32_t brand_code);
match_uarch_t::l3_cache
uint32_t l3_cache
Definition:
match.h:19
cpuid_data_t
Definition:
icuid.h:343
match_pattern
int match_pattern(const char *haystack, const char *needle)
Definition:
match.c:50
match_uarch_t
Definition:
match.h:17
match_uarch_t::uarch
const char * uarch
Definition:
match.h:20
match_cpu_uarch
void match_cpu_uarch(cpuid_data_t *data, const match_uarch_t *matchtable, const unsigned int array_size, const uint32_t brand_code)
Definition:
match.c:93
match_uarch_t::stepping
uint32_t stepping
Definition:
match.h:18
Generated on Wed Jun 1 2016 18:28:52 for libicuid by
1.8.11