|
|
|
|
|
by pclmulqdq
885 days ago
|
|
Compilers often under-generate conditional instructions. They implicitly assume (correctly) that most branches you write are 90/10 (ie very predictable), not 50/50. The branches that actually are 50/50 suffer from being treated as being 90/10. |
|
Given a few million calls of clamp, most would be no-ops in practice. Modern CPUs are very good at dynamically observing this.