Good predictions are worth a few comparisons - Archive ouverte HAL
Communication Dans Un Congrès Année : 2016

Good predictions are worth a few comparisons

Résumé

Most modern processors are heavily parallelized and use predictors to guess the outcome of conditional branches, in order to avoid costly stalls in their pipelines. We propose predictor-friendly versions of two classical algorithms: exponentiation by squaring and binary search in a sorted array. These variants result in less mispredictions on average, at the cost of an increased number of operations. These theoretical results are supported by experimentations that show that our algorithms perform significantly better than the standard ones, for primitive data types. 1998 ACM Subject Classification F.2.2 Nonnumerical Algorithms and Problems
Fichier principal
Vignette du fichier
aunipi2016-branch-predictions.pdf (1.91 Mo) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-01212840 , version 1 (07-10-2015)

Identifiants

Citer

Nicolas Auger, Cyril Nicaud, Carine Pivoteau. Good predictions are worth a few comparisons. STACS 2016, Feb 2016, Orléans, France. pp.12:1-12:14, ⟨10.4230/LIPIcs.STACS.2016.12⟩. ⟨hal-01212840⟩
390 Consultations
573 Téléchargements

Altmetric

Partager

More