2015-12-04 15:47:52 +01:00
|
|
|
/**
|
2016-09-11 22:20:15 +02:00
|
|
|
* Author......: See docs/credits.txt
|
2015-12-04 15:47:52 +01:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2019-03-22 15:16:25 +01:00
|
|
|
#ifdef KERNEL_STATIC
|
2019-03-21 23:00:38 +01:00
|
|
|
#include "inc_vendor.h"
|
|
|
|
#include "inc_types.h"
|
2019-04-26 13:59:43 +02:00
|
|
|
#include "inc_platform.cl"
|
2019-03-22 15:44:21 +01:00
|
|
|
#include "inc_common.cl"
|
2017-08-11 16:21:19 +02:00
|
|
|
#include "inc_rp.h"
|
|
|
|
#include "inc_rp.cl"
|
2019-03-22 15:16:25 +01:00
|
|
|
#endif
|
2015-12-04 15:47:52 +01:00
|
|
|
|
2019-03-27 11:38:49 +01:00
|
|
|
KERNEL_FQ void amp (GLOBAL_AS pw_t *pws, GLOBAL_AS pw_t *pws_amp, CONSTANT_AS const kernel_rule_t *rules_buf, GLOBAL_AS const pw_t *combs_buf, GLOBAL_AS const bf_t *bfs_buf, const u32 combs_mode, const u64 gid_max)
|
2015-12-04 15:47:52 +01:00
|
|
|
{
|
2017-08-19 16:39:22 +02:00
|
|
|
const u64 gid = get_global_id (0);
|
2015-12-04 15:47:52 +01:00
|
|
|
|
|
|
|
if (gid >= gid_max) return;
|
|
|
|
|
2017-06-17 17:57:30 +02:00
|
|
|
if (rules_buf[0].cmds[0] == RULE_OP_MANGLE_NOOP && rules_buf[0].cmds[1] == 0) return;
|
2016-09-14 17:40:39 +02:00
|
|
|
|
2018-02-05 17:18:58 +01:00
|
|
|
pw_t pw = pws_amp[gid];
|
2017-08-11 16:21:19 +02:00
|
|
|
|
2017-08-12 13:28:31 +02:00
|
|
|
pw.pw_len = apply_rules (rules_buf[0].cmds, pw.i, pw.pw_len);
|
2016-09-14 17:40:39 +02:00
|
|
|
|
2018-02-05 17:18:58 +01:00
|
|
|
pws[gid] = pw;
|
2015-12-04 15:47:52 +01:00
|
|
|
}
|