1
mirror of https://github.com/hashcat/hashcat synced 2024-11-28 05:21:38 +01:00
hashcat/include/emu_general.h
2019-03-25 12:35:40 +01:00

50 lines
1.0 KiB
C

/**
* Author......: See docs/credits.txt
* License.....: MIT
*/
#ifndef _CPU_OPENCL_EMU_H
#define _CPU_OPENCL_EMU_H
#include <math.h>
#include <stdint.h>
#include <stddef.h>
#define DEVICE_TYPE -1
#define VENDOR_ID -1
#define LOCAL_MEM_TYPE 2
#define CUDA_ARCH 0
#define HAS_VPERM 0
#define HAS_VADD3 0
#define HAS_VBFE 0
#define VECT_SIZE 1
typedef uint8_t uchar;
typedef uint16_t ushort;
typedef uint32_t uint;
typedef uint64_t ulong;
typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
// there's no such thing in plain C, therefore all vector operation cannot work in this emu
// which is why VECT_SIZE is set to 1
typedef u8 u8x;
typedef u16 u16x;
typedef u32 u32x;
typedef u64 u64x;
typedef uint uint4;
uint atomic_dec (uint *p);
uint atomic_inc (uint *p);
size_t get_global_id (uint dimindx __attribute__((unused)));
size_t get_local_id (uint dimindx __attribute__((unused)));
size_t get_local_size (uint dimindx __attribute__((unused)));
#endif // _CPU_OPENCL_EMU_H