mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
c20a54c8e7
In microbenchmarks I tried, using `__builtin_expect` to indicate which branch was likely/unlikely was never faster, and often slower, than just omitting. In GSL, this is used only for `Expects` and `Ensures` which are nearly always true, and all processors have long been great at predicting such branches well. |
||
---|---|---|
.. | ||
algorithm | ||
assert | ||
byte | ||
gsl | ||
gsl_algorithm | ||
gsl_assert | ||
gsl_byte | ||
gsl_narrow | ||
gsl_util | ||
multi_span | ||
narrow | ||
pointers | ||
span | ||
span_ext | ||
string_span | ||
util |