From 976d8d982e8acd9907d65eaf5e9008d9bbf29782 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 2 Oct 2021 00:03:27 +0200 Subject: Naively switched from inline assembly to std library --- Opcode/Ice/IceMemoryMacros.h | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'Opcode/Ice/IceMemoryMacros.h') diff --git a/Opcode/Ice/IceMemoryMacros.h b/Opcode/Ice/IceMemoryMacros.h index 490ecd1..53bce50 100644 --- a/Opcode/Ice/IceMemoryMacros.h +++ b/Opcode/Ice/IceMemoryMacros.h @@ -47,23 +47,7 @@ //! \warning writes nb*4 bytes ! inline_ void StoreDwords(udword* dest, udword nb, udword value) { - // The asm code below **SHOULD** be equivalent to one of those C versions - // or the other if your compiled is good: (checked on VC++ 6.0) - // - // 1) while(nb--) *dest++ = value; - // - // 2) for(udword i=0;i Date: Sat, 2 Oct 2021 00:14:14 +0200 Subject: Removed usage of msvc __noop extension --- Opcode/Ice/IceMemoryMacros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Opcode/Ice/IceMemoryMacros.h') diff --git a/Opcode/Ice/IceMemoryMacros.h b/Opcode/Ice/IceMemoryMacros.h index 53bce50..346345b 100644 --- a/Opcode/Ice/IceMemoryMacros.h +++ b/Opcode/Ice/IceMemoryMacros.h @@ -78,7 +78,7 @@ #define SAFE_DESTRUCT(x) if (x) { (x)->SelfDestruct(); (x) = null; } //!< Safe ICE-style release #ifdef __ICEERROR_H__ - #define CHECKALLOC(x) if(!x) return SetIceError("Out of memory.", EC_OUT_OF_MEMORY); //!< Standard alloc checking. HANDLE WITH CARE. + #define CHECKALLOC(x) if(!x) return SetIceError;; // ("Out of memory.", EC_OUT_OF_MEMORY); //!< Standard alloc checking. HANDLE WITH CARE. #else #define CHECKALLOC(x) if(!x) return false; #endif -- cgit v1.1