1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-26 22:12:53 -05:00

Revert amd_bitalign/amd_bfe polyfills

This commit is contained in:
Tony Butler
2021-05-29 19:29:00 -06:00
parent 84c67c37cd
commit eb54cc0e0f
5 changed files with 2203 additions and 2125 deletions

View File

@@ -22,13 +22,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef cl_amd_media_ops2
#pragma OPENCL EXTENSION cl_amd_media_ops2 : enable
#define STATIC static
#ifdef STATIC
# undef STATIC
#endif
#ifdef cl_amd_media_ops
# define STATIC static
#else
#define amd_bitalign(src0, src1, src2) ((((((long)src0) << 32) | (long)src1) >> (src2 & 31)))
#define amd_bfe(src0, offset, width) ((src0 << (32 - (offset) - width)) >> (32 - width))
#define STATIC
# define STATIC
#endif
/* For Mesa clover support */