Give the compiler a hint for automatic optimizations based on password length

This commit is contained in:
Jens Steube
2018-11-20 15:44:24 +01:00
parent 53c8600089
commit 64dfd40113
121 changed files with 722 additions and 722 deletions
+6 -6
View File
@@ -216,7 +216,7 @@ __kernel void m01760_m04 (KERN_ATTR_BASIC ())
pw_buf1[2] = pws[gid].i[6];
pw_buf1[3] = pws[gid].i[7];
const u32 pw_l_len = pws[gid].pw_len;
const u32 pw_l_len = pws[gid].pw_len & 63;
/**
* salt
@@ -283,9 +283,9 @@ __kernel void m01760_m04 (KERN_ATTR_BASIC ())
for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
{
const u32x pw_r_len = pwlenx_create_combt (combs_buf, il_pos);
const u32x pw_r_len = pwlenx_create_combt (combs_buf, il_pos) & 63;
const u32x pw_len = pw_l_len + pw_r_len;
const u32x pw_len = (pw_l_len + pw_r_len) & 63;
/**
* concat password candidate
@@ -418,7 +418,7 @@ __kernel void m01760_s04 (KERN_ATTR_BASIC ())
pw_buf1[2] = pws[gid].i[6];
pw_buf1[3] = pws[gid].i[7];
const u32 pw_l_len = pws[gid].pw_len;
const u32 pw_l_len = pws[gid].pw_len & 63;
/**
* salt
@@ -497,9 +497,9 @@ __kernel void m01760_s04 (KERN_ATTR_BASIC ())
for (u32 il_pos = 0; il_pos < il_cnt; il_pos += VECT_SIZE)
{
const u32x pw_r_len = pwlenx_create_combt (combs_buf, il_pos);
const u32x pw_r_len = pwlenx_create_combt (combs_buf, il_pos) & 63;
const u32x pw_len = pw_l_len + pw_r_len;
const u32x pw_len = (pw_l_len + pw_r_len) & 63;
/**
* concat password candidate