This commit is contained in:
Frank Denis 2016-03-25 09:55:37 +01:00
parent eb13ec0cff
commit da448c38e4
2 changed files with 3 additions and 2 deletions

View File

@ -11,8 +11,8 @@
#include "utils.h"
#define SETTING_SIZE(saltbytes) \
(sizeof "$7$" - 1U) + \
(1U /* N_log2 */) + (5U /* r */) + (5U /* p */) + BYTES2CHARS(saltbytes)
((sizeof "$7$" - 1U) + \
(1U /* N_log2 */) + (5U /* r */) + (5U /* p */) + BYTES2CHARS(saltbytes))
static int
pickparams(unsigned long long opslimit, const size_t memlimit,

View File

@ -98,6 +98,7 @@ _cpuid(unsigned int cpu_info[4U], const unsigned int cpu_info_type)
"0" (cpu_info_type), "2" (0U));
# endif
#else
(void) cpu_info_type;
cpu_info[0] = cpu_info[1] = cpu_info[2] = cpu_info[3] = 0;
#endif
}