lkml.org 
[lkml]   [2005]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch 1/13] Qsort
    On Sat, Jan 22, 2005 at 01:00:24PM -0800, vlobanov wrote:
    > #define SWAP(a, b, size) \
    > do { \
    > register size_t __size = (size); \
    > register char * __a = (a), * __b = (b); \
    > do { \
    > *__a ^= *__b; \
    > *__b ^= *__a; \
    > *__a ^= *__b; \
    > __a++; \
    > __b++; \
    > } while ((--__size) > 0); \
    > } while (0)
    >
    > What do you think? :)

    I think you'll confuse the compiler and get worse results.


    r~
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:09    [W:0.059 / U:0.696 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site