• Olivier Fourdan's avatar
    dix: cache ResourceClientBits() value · c7311654
    Olivier Fourdan authored
    The `LimitClient` is set once and for all at startup, whereas the
    function `ResourceClientBits()` which returns the client field offset
    within the XID based on the value of `LimitClient` can be called
    repeatedly.
    
    Small optimization, cache the result of `ilog2()`, that saves running
    the same loop over and over each time `ResourceClientBits()` is called.
    Signed-off-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
    c7311654
Name
Last commit
Last update
..
.gitignore Loading commit data...
BuiltInAtoms Loading commit data...
Makefile.am Loading commit data...
Xserver-dtrace.h.in Loading commit data...
Xserver.d Loading commit data...
atom.c Loading commit data...
buildatoms Loading commit data...
colormap.c Loading commit data...
cursor.c Loading commit data...
devices.c Loading commit data...
dispatch.c Loading commit data...
dispatch.h Loading commit data...
dixfonts.c Loading commit data...
dixutils.c Loading commit data...
enterleave.c Loading commit data...
enterleave.h Loading commit data...
eventconvert.c Loading commit data...
events.c Loading commit data...
extension.c Loading commit data...
gc.c Loading commit data...
getevents.c Loading commit data...
globals.c Loading commit data...
glyphcurs.c Loading commit data...
grabs.c Loading commit data...
initatoms.c Loading commit data...
inpututils.c Loading commit data...
main.c Loading commit data...
meson.build Loading commit data...
pixmap.c Loading commit data...
privates.c Loading commit data...
property.c Loading commit data...
protocol.txt Loading commit data...
ptrveloc.c Loading commit data...
region.c Loading commit data...
registry.c Loading commit data...
resource.c Loading commit data...
selection.c Loading commit data...
stubmain.c Loading commit data...
swaprep.c Loading commit data...
swapreq.c Loading commit data...
tables.c Loading commit data...
touch.c Loading commit data...
window.c Loading commit data...