From 157c9f4f5a32e1464dcedaa9b2856cc9bf3697f6 Mon Sep 17 00:00:00 2001 From: PBerger Date: Mon, 25 Jul 2016 23:10:19 +0200 Subject: [PATCH] Reverted MINONE change. Former-commit-id: 047c8175aa310d98d7f9fc07d8984761bae39c10 --- resources/3rdparty/sylvan/src/lace.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/3rdparty/sylvan/src/lace.h b/resources/3rdparty/sylvan/src/lace.h index 60f8d8fdf..419cd222a 100644 --- a/resources/3rdparty/sylvan/src/lace.h +++ b/resources/3rdparty/sylvan/src/lace.h @@ -66,7 +66,6 @@ extern "C" { #define PAD(x,b) ( ( (b) - ((x)%(b)) ) & ((b)-1) ) /* b must be power of 2 */ #define ROUND(x,b) ( (x) + PAD( (x), (b) ) ) -#define MINONE(x) ((x < 1) ? (1) : (x)) /* The size is in bytes. Note that this is without the extra overhead from Lace. The value must be greater than or equal to the maximum size of your tasks. @@ -184,7 +183,7 @@ struct __lace_common_fields_only { TASK_COMMON_FIELDS(_Task) }; typedef struct _Task { TASK_COMMON_FIELDS(_Task); - char p1[MINONE(PAD(LACE_COMMON_FIELD_SIZE, P_SZ))]; + char p1[PAD(LACE_COMMON_FIELD_SIZE, P_SZ)]; char d[LACE_TASKSIZE]; char p2[PAD(ROUND(LACE_COMMON_FIELD_SIZE, P_SZ) + LACE_TASKSIZE, LINE_SIZE)]; } Task;