Add function prototypes in OpenCL kernels to make some compilers happy

This commit is contained in:
jsteube
2019-03-09 09:05:44 +01:00
parent ce32d57f9b
commit 84d6b8ecc1
35 changed files with 1023 additions and 35 deletions
+3
View File
@@ -1048,6 +1048,7 @@
// attack-mode 0
DECLSPEC u32x ix_create_bft (__global const bf_t *bfs_buf, const u32 il_pos);
DECLSPEC u32x ix_create_bft (__global const bf_t *bfs_buf, const u32 il_pos)
{
#if VECT_SIZE == 1
@@ -1067,6 +1068,7 @@ DECLSPEC u32x ix_create_bft (__global const bf_t *bfs_buf, const u32 il_pos)
// attack-mode 1
DECLSPEC u32x pwlenx_create_combt (__global const pw_t *combs_buf, const u32 il_pos);
DECLSPEC u32x pwlenx_create_combt (__global const pw_t *combs_buf, const u32 il_pos)
{
#if VECT_SIZE == 1
@@ -1084,6 +1086,7 @@ DECLSPEC u32x pwlenx_create_combt (__global const pw_t *combs_buf, const u32 il_
return pw_lenx;
}
DECLSPEC u32x ix_create_combt (__global const pw_t *combs_buf, const u32 il_pos, const int idx);
DECLSPEC u32x ix_create_combt (__global const pw_t *combs_buf, const u32 il_pos, const int idx)
{
#if VECT_SIZE == 1