This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

DI support in libgcc2


Hi,

Several functions in libgcc2.c call __negdi2 even if
the target supports negating a DI.

I tried this hack for i386 with gcc 3.1

#include "insn-flags.h"

DWtype
__negdi2 (DWtype u)
{
#if HAVE_negdi2
  return -u;
#else
  ...
  
to get an optimized version. The same could be done
for other support routines (shifting, mul, mod, ...)

Is this the right way to go ?

Hartmut


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]