Changeset 549 for trunk/src/gmake/misc.c


Ignore:
Timestamp:
Sep 24, 2006, 6:19:23 AM (19 years ago)
Author:
bird
Message:

Regenerated config.h.os2 and make adjustments to make it all build quietly on OS/2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/misc.c

    r527 r549  
    2121#include "debug.h"
    2222
    23 #if defined(__EMX__) && defined(CONFIG_WITH_OPTIMIZATION_HACKS) /* bird: saves 5-10ms on libc */
    24 # define bcopy(src, dst, size)   __builtin_memcpy((dst), (src), (size))
     23/* All bcopy calls in this file can be replaced by memcpy and save a tick or two. */
     24#ifdef CONFIG_WITH_OPTIMIZATION_HACKS
     25# undef bcopy
     26# if defined(__GNUC__) && defined(CONFIG_WITH_OPTIMIZATION_HACKS)
     27#  define bcopy(src, dst, size)   __builtin_memcpy ((dst), (src), (size))
     28# else
     29#  define bcopy(src, dst, size)   memcpy ((dst), (src), (size))
     30# endif
    2531#endif
    2632
     
    406412
    407413
    408 #ifndef CONFIG_WITH_OPTIMIZATION_HACKS /* This is really a reimplemntation of 
     414#ifndef CONFIG_WITH_OPTIMIZATION_HACKS /* This is really a reimplemntation of
    409415   memchr, only slower. It's been replaced by a macro in the header file. */
    410416
Note: See TracChangeset for help on using the changeset viewer.