mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-30 03:48:17 +00:00
replaced swap_workaround macro with byte_swap_32() from bitops.c
This commit is contained in:
parent
91efbc4562
commit
ac3b850e40
@ -6,7 +6,7 @@
|
|||||||
#ifndef _RP_KERNEL_ON_CPU_H
|
#ifndef _RP_KERNEL_ON_CPU_H
|
||||||
#define _RP_KERNEL_ON_CPU_H
|
#define _RP_KERNEL_ON_CPU_H
|
||||||
|
|
||||||
#define swap_workaround(n) __builtin_bswap32(n)
|
u32 swap_workaround (const u32 n);
|
||||||
|
|
||||||
u32 apply_rule (const u32 name, const u32 p0, const u32 p1, u32 buf0[4], u32 buf1[4], const u32 in_len);
|
u32 apply_rule (const u32 name, const u32 p0, const u32 p1, u32 buf0[4], u32 buf1[4], const u32 in_len);
|
||||||
u32 apply_rules (u32 *cmds, u32 buf0[4], u32 buf1[4], const u32 len);
|
u32 apply_rules (u32 *cmds, u32 buf0[4], u32 buf1[4], const u32 len);
|
||||||
|
@ -8,8 +8,14 @@
|
|||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
#include "bitops.h"
|
||||||
#include "rp_kernel_on_cpu.h"
|
#include "rp_kernel_on_cpu.h"
|
||||||
|
|
||||||
|
u32 swap_workaround (const u32 n)
|
||||||
|
{
|
||||||
|
return byte_swap_32 (n);
|
||||||
|
}
|
||||||
|
|
||||||
static u32 generate_cmask (u32 buf)
|
static u32 generate_cmask (u32 buf)
|
||||||
{
|
{
|
||||||
const u32 rmask = ((buf & 0x40404040) >> 1)
|
const u32 rmask = ((buf & 0x40404040) >> 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user