This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v3 04/18] Add string vectorized find and detection functions


Hi,

I haven't looked at it in detail, but this immediately stands out:

>> +static inline unsigned
>> +__clz (op_t x)

The point being that we're working on bytes so we're not interested in the first/last
set bit, but first/last non-zero byte. That simplifies the implementation for targets
that don't support clz/ctz as now we only have 4 or 8 possible values to return
instead of 32 or 64.

Wilco

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]