Comment
Comment by mmozeiko
There is a simple way to get that immediate from expression you want to calculate. For example, if you want to calculate following expression:
then you simply write
Literally the expression you want to calculate. It evaluates to immediate from _MM_TERNLOG_A/B/C constants defined in intrinsic headers, at least for gcc & clang:
For MSVC you define them yourself.