I'm using __get_cpuid()
to get info on the x86
and x86_64
processors my programs run on. With GCC on Linux and Mac OS, it seems to compile and run OK without include any header, but how portable is that? Would it work with other compilers? Should I include a header for that?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
It has two leading underscores. Any leading underscore at all is a big hint that the variable or function is not portable.