1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-11-10 22:59:13 +00:00
a small C library for x86 CPU detection and feature extraction
Find a file
Veselin Georgiev 4e224776e6 Shut up a warning in cpu_clock_by_ic().
Namely, printing a uint64_t with printf(...%llu...) is considered bad
practice; you need to use the format specifier PRIu64, defined in
inttypes.h. Apparently, it's not safe to assume that
uint64_t == unsigned long long.

However, I don't like this kind of formatting uglyness.
The td variable on my machine is ~30k - and conceivably can't go
above 1M. Moreover, this printf is only for detailed debug purposes.
So it's safe to cast the var to int and print it with %d.
2014-08-18 18:24:44 +03:00
contrib/MSR Driver Added support for reading MSRs through dedicated driver on Win32 2009-09-30 11:25:14 +00:00
cpuid_tool Add *.sln, *.vcproj files to automake for "make dist" to work. 2014-06-25 13:54:41 +03:00
libcpuid Shut up a warning in cpu_clock_by_ic(). 2014-08-18 18:24:44 +03:00
tests Magny-cours is still K10, so move the test to the proper dir. 2014-07-23 22:30:52 +03:00
.gitignore Add the m4/ dir to ignore. 2014-07-16 10:29:46 +03:00
AUTHORS Moving the repository one level deeper 2008-11-06 18:17:20 +00:00
ChangeLog Update ChangeLog; bump the version to 0.2.1 everywhere. 2014-06-25 14:15:53 +03:00
configure.ac Fixed issue #5: warnings while running auto-reconf --install 2014-08-18 18:17:24 +03:00
COPYING Moving the repository one level deeper 2008-11-06 18:17:20 +00:00
libcpuid.dsw Ported to Microsoft Visual C 6.0 2012-08-25 23:14:59 +00:00
libcpuid.pc.in Incorrect path in .pc file - fixed; Clarified documentation a bit 2008-11-28 16:17:29 +00:00
libcpuid_vc9.sln Renamed VC project files so that project for versions lower than Visual C++ 2008 can be made. 2009-08-19 21:14:39 +00:00
libcpuid_vc71.sln Added project files for Visual Studio 2003 (VC 71), added an option to build libcpuid as a DLL. 2009-08-19 21:43:56 +00:00
Makefile.am Refactor "make test" as well. 2014-07-16 10:10:51 +03:00
NEWS Moving the repository one level deeper 2008-11-06 18:17:20 +00:00
README Fix issue #2: There is no configure binary and get some statements while building it. 2014-06-25 13:48:32 +03:00

libcpuid
---------

libcpuid provides CPU identification for the x86 (and x86_64).
For details about the programming API, please see the docs
on the project's site (http://libcpuid.sourceforge.net/)

    Configuring after checkout
    --------------------------

        Under linux, where you download the sources, there's no
    configure script to run. This is because it isn't a good practice to keep
    such scripts in a source control system. To create it, you need to run the
    following commands once, after you checkout the libcpuid sources
    from github:

        1. run "libtoolize"
        2. run "autoreconf --install"

        You need to have autoconf, automake and libtool installed.

        After that you can run "./configure" and "make" - this will build
    the library.

        "make dist" will create a tarball (with "configure" inside) with the
    sources.