We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
In NEON spec:
VCLS (Vector Count Leading Sign bits) counts the number of consecutive bits following the topmost bit, that are the same as the topmost bit, in each element in a vector, and places the results in a second vector.
VCLS
VCLZ (Vector Count Leading Zeros) counts the number of consecutive zeros, starting from the top bit, in each element in a vector, and places the results in a second vector.
VCLZ
VCNT (Vector Count set bits) counts the number of bits that are one in each element in a vector, and places the results in a second vector.
VCNT
I want ask:
1. If VCLS is must apply to signed number?
2. If VCLZ is must apply to unsigned number?
3. Whether VCNT can apply to signed number, if it can so the sign bit is also count as one set bit?
Sorry , I have found the answer as follow:
datatype must be one of:
datatype
S8
S16
S32
CLS
I8
I16
I32
CLZ
CNT