From c5892fe4f5b285dddea4ed89edba749e40346d1f Mon Sep 17 00:00:00 2001 From: grischka Date: Mon, 14 Jan 2013 18:33:59 +0100 Subject: Revert "Optimize vswap()" This reverts commit 63193d1794b037eb4f3b6551596fa8a6d423e0c3. Had some problems (_STATIC_ASSERT) and was too ugly anyway. For retry, I'd suggest to implement a general function static inline void memswap (void *p1, void* p2, size_t n); and then use that. If you do so, please keep the original code as comment. --- tcc.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index 5489b49..b8b81c2 100644 --- a/tcc.h +++ b/tcc.h @@ -228,10 +228,6 @@ #define true 1 typedef int BOOL; -#ifndef _STATIC_ASSERT -#define _STATIC_ASSERT(cond) do { (void) sizeof(char [1 - 2*!(cond)]); } while(0) -#endif - #define INCLUDE_STACK_SIZE 32 #define IFDEF_STACK_SIZE 64 #define VSTACK_SIZE 256 -- cgit v1.3.1