- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Everyone:
The
rn = (maskn & 0x80) ? 0 : SELECT(a, maskn & 0x0f)
SELECT(a, n) extracts the nth 8-bit parameter from a. The 0th 8-bit parameter is the least significant 8-bits.
I do not know what is the the SELECT(a, n)
the msdn exmaple, :
The
_mm_shuffle_epi8, on msdn I do not know it means.
rn = (maskn & 0x80) ? 0 : SELECT(a, maskn & 0x0f)
SELECT(a, n) extracts the nth 8-bit parameter from a. The 0th 8-bit parameter is the least significant 8-bits.
I do not know what is the the SELECT(a, n)
the msdn exmaple, :
a.m128i_i8[15] = -1; ---> 1111 1111mask.m128i_u8[15] = 0x00; -> get 0th 8-bit
I do not know why the output is 1 ( 0000 0001).
similiar fora.m128i_i8[13] = -64; ---> 1100 0000mask.m128i_u8[13] = 0x02; ->get 2th bit
why the output is 4 ? (0000 0100) ??
thank you lots.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear all:
I have regonize the SELECT(a, n).
is is the the ith byte, but bit.
for example:
so the
I have regonize the SELECT(a, n).
is is the the ith byte, but bit.
for example:
so the
mask.m128i_u8[1] = 0x0E; -> select Eth (14th) byte, it isa.m128i_i8[14] = -128;mask.m128i_u8[11] = 0x04; -> select the 4th byte, it isa.m128i_i8[4] = 16.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear all:
I have regonize the SELECT(a, n).
is is the the ith byte, but bit.
for example:
so the
I have regonize the SELECT(a, n).
is is the the ith byte, but bit.
for example:
so the
mask.m128i_u8[1] = 0x0E; -> select Eth (14th) byte, it isa.m128i_i8[14] = -128;mask.m128i_u8[11] = 0x04; -> select the 4th byte, it isa.m128i_i8[4] = 16.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page