mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-05 13:21:13 +00:00
Simplify code. No change in functionality at all.
This commit is contained in:
parent
2790bc7baf
commit
998605ef89
@ -12782,7 +12782,7 @@ int main (int argc, char **argv)
|
|||||||
|
|
||||||
if (opencl_vector_width_chgd == 0)
|
if (opencl_vector_width_chgd == 0)
|
||||||
{
|
{
|
||||||
if (tuningdb_entry == NULL)
|
if (tuningdb_entry == NULL || tuningdb_entry->vector_width == -1)
|
||||||
{
|
{
|
||||||
if (opti_type & OPTI_TYPE_USES_BITS_64)
|
if (opti_type & OPTI_TYPE_USES_BITS_64)
|
||||||
{
|
{
|
||||||
@ -12795,21 +12795,7 @@ int main (int argc, char **argv)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (tuningdb_entry->vector_width == -1)
|
vector_width = (cl_uint) tuningdb_entry->vector_width;
|
||||||
{
|
|
||||||
if (opti_type & OPTI_TYPE_USES_BITS_64)
|
|
||||||
{
|
|
||||||
hc_clGetDeviceInfo (data.ocl, device_param->device, CL_DEVICE_NATIVE_VECTOR_WIDTH_LONG, sizeof (vector_width), &vector_width, NULL);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
hc_clGetDeviceInfo (data.ocl, device_param->device, CL_DEVICE_NATIVE_VECTOR_WIDTH_INT, sizeof (vector_width), &vector_width, NULL);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
vector_width = (cl_uint) tuningdb_entry->vector_width;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user