lkml.org 
[lkml]   [2015]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/5] 64-by-32 ddivision optimization for constant divisors on 32-bit machines
Date
This is a generalization of the optimization I produced for ARM a decade
ago to turn constant divisors into a multiplication by the divisor
reciprocal. Turns out that after all those years gcc is still not
optimizing things on its own for that case.

This has important performance benefits as discussed in this thread:

https://lkml.org/lkml/2015/10/28/851

This series brings the formerly ARMonly optimization to all 32-bit
architectures using C code by default. The possibility for the actual
multiplication to be implemented in assembly is provided in order to get
optimal code. The ARM version can be used as an example implementation
for other interested architectures to implement.


Nicolas


\
 
 \ /
  Last update: 2015-11-03 00:01    [W:0.162 / U:0.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site