Inline assembly and CTFE
bearophile
bearophileHUGS at lycos.com
Thu Oct 3 16:21:55 PDT 2013
Dicebot:
> And if decision is based on build host it makes much more sense
> to incorporate check into the build process and supply results
> to main program in a form of manual version. At least in that
> way it will be perfectly clear that this is intended behavior.
Static CPU introspection could be handy sometimes, if you want to
run the code in the same system you have used to compile the
code, and avoid run-time CPU tests.
Bye,
bearophile
More information about the Digitalmars-d
mailing list