This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 347 for ps


Ignore:
Timestamp:
06/02/04 17:00:23 (21 years ago)
Author:
janwas
Message:

fixed gcc error with asm code

Location:
ps/trunk/source/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/lib/config.h

    r346 r347  
    1414
    1515
    16 // HAVE_C99: check if compiler advertises support for C99
    17 // (make sure it's #defined before testing value to avoid ICC warning)
    18 #undef HAVE_C99
    19 #ifdef __STDC_VERSION__
    20 # if __STDC_VERSION__ >= 199901L
    21 #  define HAVE_C99
    22 # endif
    23 #endif
     16#undef HAVE_C99     // compiler advertises support for C99
     17
     18#undef HAVE_ASM
    2419
    2520#undef HAVE_GETTIMEOFDAY
    2621#undef HAVE_X
     22
     23#undef CONFIG_DISABLE_EXCEPTIONS
     24
     25
     26#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
     27# define HAVE_C99
     28#endif
     29
     30#ifdef _MSC_VER
     31# define HAVE_ASM
     32#endif
    2733
    2834#ifdef OS_UNIX
     
    3440#endif
    3541
    36 #undef CONFIG_DISABLE_EXCEPTIONS
     42
  • ps/trunk/source/lib/memcpy.cpp

    r221 r347  
    66
    77#include "precompiled.h"
     8#include "config.h"
    89
    9 #if _MSC_VER >= 0x1300
     10#ifdef HAVE_ASM
    1011
    1112void memcpy_nt(void* dst, void* src, int len)
     
    3031    mov         eax, [esi-128]
    3132    sub         esi, 128
    32     test        esi, 4095                   ; CHUNK_SIZE-1 (icc doesn't preprocess asm)
     33    test        esi, 4095                   ; CHUNK_SIZE-1 (icc doesnt preprocess asm)
    3334    jnz         prefetch_loop
    3435
     
    6768}
    6869
    69 #endif  // #if _MSC_VER >= 0x1300
     70#endif  // #ifdef HAVE_ASM
Note: See TracChangeset for help on using the changeset viewer.