zcaudate
zcaudate

Reputation: 14258

Where is the __cpuid_count function found on osx in it's shared library?

I'd like to know where the function __cpuid_count is on osx. I'm assuming that it's in libc but running:

nm -g /usr/lib/libc.dylib

or

nm -g /usr/lib/libSystem.B.dylib

Does not list the function in the outputs. Is there a better way to locate where it is?

Upvotes: 0

Views: 284

Answers (1)

You can't find a __cpuid_count function because there isn't one. It's defined as a macro that expands to inline assembly in cpuid.h.

Upvotes: 2

Related Questions