[PATCH v3 04/18] Add string vectorized find and detection functions
Wilco Dijkstra
Wilco.Dijkstra@arm.com
Thu Jan 11 19:36:00 GMT 2018
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
More information about the Libc-alpha
mailing list