[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]

/a/ - Animu & Mango

Catalog

Name
Email
Subject
Comment *
File
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Embed
(replaces files and can be used instead)
Oekaki
Show oekaki applet
(replaces files and can be used instead)
Options
Password (For file and post deletion.)

Allowed file types:jpg, jpeg, gif, png, webm, mp4, swf, pdf
Max filesize is 8 MB.
Max image dimensions are 10000 x 10000.
You may upload 5 per post.


Welcome to /a/, please read the rules before posting.

File: 1458070309576-0.png (703.76 KB, 2933x4254, 2933:4254, Puri.png)

File: 1458070309576-1.jpg (473.82 KB, 2617x3000, 2617:3000, 1454228811215.jpg)

File: 1458070309576-2.jpg (193.2 KB, 1240x641, 1240:641, tokomo.jpg)

 No.440594

I like making these, I like getting them.

Post them if you got em

 No.440616


static uint16_t sad16(const Image *im1, const BImage *im2, uint16_t x1, uint16_t y1,
uint16_t bx2, uint16_t by2)
{
__m128i vec1[16], vec2[16];

for(uint8_t i = 0; i < 16; ++i)
{
vec1[i] = _mm_loadu_si128(
(__m128i const*)(im1->pix + (y1 + i) * im1->w + x1));
vec2[i] = _mm_load_si128(
(__m128i const*)(im2->grid[bx2][by2].pix + i * 16));

vec1[i] = _mm_sad_epu8(vec1[i], vec2[i]);
}

for(uint8_t i = 1; i < 16; ++i)
vec1[0] = _mm_add_epi64(vec1[0], vec1[i]);

return _mm_extract_epi16(vec1[0], 0) + _mm_extract_epi16(vec1[0], 4);
}


 No.440624

File: 1458076186054.png (19.45 KB, 421x277, 421:277, OH1.png)




[Return][Go to top][Catalog][Post a Reply]
Delete Post [ ]
[]
[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]