add m128 byte shift functions

variable_byte_shift_m128 taken from pug-interpreter branch
This commit is contained in:
Alex Coyte
2016-04-18 11:23:56 +10:00
committed by Matthew Barr
parent f7cdfc5e54
commit e86688e313
5 changed files with 109 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, Intel Corporation
* Copyright (c) 2015-2016, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -199,6 +199,7 @@ static really_inline m128 shiftLeft8Bits(m128 a) {
}
#define byteShiftRight128(a, count_immed) _mm_srli_si128(a, count_immed)
#define byteShiftLeft128(a, count_immed) _mm_slli_si128(a, count_immed)
#if !defined(__AVX2__)
// TODO: this entire file needs restructuring - this carveout is awful