libXext: Changes to 'master'

Alan Coopersmith alanc at kemper.freedesktop.org
Fri Mar 4 02:25:17 UTC 2016


 configure.ac            |    3 
 m4/ax_gcc_builtin.m4    |  168 ++++++++++++++++++++++++++++++++++++++++++++++++
 man/DBE.man             |    2 
 man/DPMSSetTimeouts.man |    2 
 src/XSecurity.c         |   20 ++++-
 5 files changed, 190 insertions(+), 5 deletions(-)

New commits:
commit 490a25e6f8a4d2482af4364c700b68ad11a4d10b
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Thu Feb 25 23:36:50 2016 -0800

    Use __builtin_popcountl if available to replace Ones() in XSecurity.c
    
    If the compiler knows of a better algorithm for counting the number of
    bits set in a word for the target CPU, let it use that, instead of the
    classic algorithm optimized for PDP-6.
    
    Tested for the range of values used in XSecurity.c and verified results
    are the same from both:
    
    for (unsigned long i = 0; i <= XSecurityAllAuthorizationAttributes; i++) {
        printf("ones: %d\tpopcnt: %d\n", Ones(i), __builtin_popcountl(i));
    }
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

commit 54ba591149f3a92c5a4a66e428ae2a33d1027053
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Thu Feb 25 15:34:45 2016 -0800

    Fix typos in man pages
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

commit 82df003f36a405711ac41f2eb4e862f0878659e9
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Thu Feb 25 14:12:14 2016 -0800

    Assert that values buffer has enough room for provided values
    
    Catch if anyone ever defines more types again and forgets to increase
    the size of the value buffer to match.
    
    v2: assert on the full set of possible values, regardless of which the
        current caller passed in this call - more likely to be spotted during
        testing, less likely to not be found until called in production.
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

commit 0744837f525d8ba103e807af7c44ad2bf5cbd6ca
Author: Rob Wu <rob at robwu.nl>
Date:   Thu Feb 25 18:05:50 2016 +0100

    XSecurityGenerateAuthorization: Allocate enough space in values buffer
    
    https://bugs.freedesktop.org/show_bug.cgi?id=94292
    
    Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Reviewed-by: Seth Arnold <seth.arnold at canonical.com>
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>



More information about the xorg-commit mailing list