2015-12-04 14:47:52 +00:00
|
|
|
/**
|
2016-02-16 15:42:08 +00:00
|
|
|
* Authors.....: Jens Steube <jens.steube@gmail.com>
|
|
|
|
* magnum <john.magnum@hushmail.com>
|
|
|
|
*
|
2015-12-04 14:47:52 +00:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2016-09-05 19:47:26 +00:00
|
|
|
#pragma once
|
2015-12-04 14:47:52 +00:00
|
|
|
|
|
|
|
#define _POSIX_SOURCE
|
|
|
|
#define _GNU_SOURCE
|
|
|
|
#define _FILE_OFFSET_BITS 64
|
|
|
|
#define _CRT_SECURE_NO_WARNINGS
|
|
|
|
|
2016-03-26 09:37:59 +00:00
|
|
|
#define EXEC_CACHE 128
|
2016-02-11 08:54:50 +00:00
|
|
|
|
2016-03-26 09:37:59 +00:00
|
|
|
#define SPEED_CACHE 128
|
|
|
|
#define SPEED_MAXAGE 4096
|
2015-12-04 14:47:52 +00:00
|
|
|
|
2016-04-18 16:40:13 +00:00
|
|
|
#define HCBUFSIZ 0x50000 // general large space buffer size in case the size is unknown at compile-time
|
2015-12-04 14:47:52 +00:00
|
|
|
|
2016-09-06 13:28:56 +00:00
|
|
|
#define BLOCK_SIZE 64
|
|
|
|
|
|
|
|
|
2016-06-14 08:18:42 +00:00
|
|
|
#define EXPECTED_ITERATIONS 10000
|
|
|
|
|
2016-01-15 16:16:43 +00:00
|
|
|
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
|
|
|
|
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
|
2015-12-15 17:41:11 +00:00
|
|
|
|
2016-09-05 19:47:26 +00:00
|
|
|
#define DEVICES_MAX 128
|
|
|
|
|
2016-05-01 16:34:59 +00:00
|
|
|
#define CEIL(a) ((a - (int) (a)) > 0 ? a + 1 : a)
|
|
|
|
|
2016-09-05 19:47:26 +00:00
|
|
|
#ifdef __APPLE__
|
|
|
|
#define __stdcall
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _WIN
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#endif
|