How to mark a condition is likeyly or unlikey ?

lili akozhao at
Wed Aug 7 11:37:06 UTC 2019

     In C there has likely unlikely marco used by condition 
     #define likely(x) __builtin_expect(!!(x), 1)
     #define unlikely(x) __builtin_expect(!!(x), 0)
     if (likely(var > 1)) do...

     How to do this in Dlang?

More information about the Digitalmars-d-learn mailing list