Refactor multiply_accel_disable variable to just multiply_accel, same idea as outfile_autohex variable

pull/3895/head
jsteube 6 months ago
parent bf04a158aa
commit 7b52dad8c9

@ -681,7 +681,7 @@ typedef enum user_options_defaults
BACKEND_INFO = 0,
BACKEND_VECTOR_WIDTH = 0,
OPTIMIZED_KERNEL_ENABLE = false,
MULTIPLY_ACCEL_DISABLE = false,
MULTIPLY_ACCEL = true,
OUTFILE_AUTOHEX = true,
OUTFILE_CHECK_TIMER = 5,
OUTFILE_FORMAT = 3,
@ -2352,7 +2352,7 @@ typedef struct user_options
bool backend_ignore_metal;
bool backend_ignore_opencl;
bool optimized_kernel_enable;
bool multiply_accel_disable;
bool multiply_accel;
bool outfile_autohex;
bool outfile_json;
bool potfile_disable;

@ -282,7 +282,7 @@ int hashconfig_init (hashcat_ctx_t *hashcat_ctx)
}
}
if (user_options->multiply_accel_disable == true)
if (user_options->multiply_accel == false)
{
hashconfig->opts_type |= OPTS_TYPE_MP_MULTI_DISABLE;
}

@ -242,7 +242,7 @@ int user_options_init (hashcat_ctx_t *hashcat_ctx)
user_options->nonce_error_corrections = NONCE_ERROR_CORRECTIONS;
user_options->opencl_device_types = NULL;
user_options->optimized_kernel_enable = OPTIMIZED_KERNEL_ENABLE;
user_options->multiply_accel_disable = MULTIPLY_ACCEL_DISABLE;
user_options->multiply_accel = MULTIPLY_ACCEL;
user_options->outfile_autohex = OUTFILE_AUTOHEX;
user_options->outfile_check_dir = NULL;
user_options->outfile_check_timer = OUTFILE_CHECK_TIMER;
@ -486,7 +486,7 @@ int user_options_getopt (hashcat_ctx_t *hashcat_ctx, int argc, char **argv)
user_options->backend_vector_width_chgd = true; break;
case IDX_OPENCL_DEVICE_TYPES: user_options->opencl_device_types = optarg; break;
case IDX_OPTIMIZED_KERNEL_ENABLE: user_options->optimized_kernel_enable = true; break;
case IDX_MULTIPLY_ACCEL_DISABLE: user_options->multiply_accel_disable = true; break;
case IDX_MULTIPLY_ACCEL_DISABLE: user_options->multiply_accel = false; break;
case IDX_WORKLOAD_PROFILE: user_options->workload_profile = hc_strtoul (optarg, NULL, 10);
user_options->workload_profile_chgd = true; break;
case IDX_KERNEL_ACCEL: user_options->kernel_accel = hc_strtoul (optarg, NULL, 10);
@ -2138,7 +2138,7 @@ void user_options_info (hashcat_ctx_t *hashcat_ctx)
event_log_info (hashcat_ctx, "* --optimized-kernel-enable");
}
if (user_options->multiply_accel_disable == true)
if (user_options->multiply_accel == false)
{
event_log_info (hashcat_ctx, "* --multiply-accel-disable");
}
@ -2202,7 +2202,7 @@ void user_options_info (hashcat_ctx_t *hashcat_ctx)
event_log_info (hashcat_ctx, "# option: --optimized-kernel-enable");
}
if (user_options->multiply_accel_disable == true)
if (user_options->multiply_accel == false)
{
event_log_info (hashcat_ctx, "# option: --multiply-accel-disable");
}
@ -3255,7 +3255,7 @@ void user_options_logger (hashcat_ctx_t *hashcat_ctx)
logfile_top_uint (user_options->markov_inverse);
logfile_top_uint (user_options->markov_threshold);
logfile_top_uint (user_options->metal_compiler_runtime);
logfile_top_uint (user_options->multiply_accel_disable);
logfile_top_uint (user_options->multiply_accel);
logfile_top_uint (user_options->backend_info);
logfile_top_uint (user_options->backend_vector_width);
logfile_top_uint (user_options->optimized_kernel_enable);

Loading…
Cancel
Save