1. 07 Jun, 2010 2 commits
    • Add a 'git__' prefix to the block-sha1 functions · 4386ee2a
      This reduces the global namespace pollution. These functions
      were the only remaining external symbols (with the exception
      of an PPC_SHA1 build) which did not start with 'git', and
      since these are private library symbols the 'git__' prefix is
      appropriate.
      
      Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
      Ramsay Jones committed
    • msvc: Select the "fast" definition of the {get,put}_be32() macros · bc874e11
      On Intel machines, the msvc compiler defines the CPU architecture
      macros _M_IX86 and _M_X64 (equivalent to __i386__ and __x86_64__
      respectively). Use these macros in the pre-processor expression
      to select the "fast" definition of the {get,put}_be32() macros.
      
      Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
      Ramsay Jones committed
  2. 28 Apr, 2010 1 commit
    • MSVC: Fix some compiler warnings · e272b103
      In particular, using the normal (or production) compiler
      warning level (-W3), msvc complains as follows:
      
      .../sha1.c(244) : warning C4018: '<' : signed/unsigned mismatch
      .../sha1.c(270) : warning C4244: 'function' : conversion from \
         'unsigned __int64' to 'unsigned long', possible loss of data
      .../sha1.c(271) : warning C4244: 'function' : conversion from \
         'unsigned __int64' to 'unsigned long', possible loss of data
      
      Note that gcc issues a similar complaint about line 244 when
      compiling with -Wextra.
      
      Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
      Ramsay Jones committed
  3. 14 Apr, 2010 1 commit
    • Add block-sha1 in favour of the mozilla routines · 5dddf7c8
      Since block-sha1 from git.git has such excellent performance, we
      can also get rid of the openssl dependency. It's rather simple
      to add it back later as an optional extra, but we really needn't
      bother to pull in the entire ssl library and have to deal with
      linking issues now that we have the portable and, performance-wise,
      truly excellent block-sha1 code to fall back on.
      
      Since this requires a slight revamp of the build rules anyway, we
      take the opportunity to fix including EXTRA_OBJS in the final build
      as well.
      
      The block-sha1 code was originally implemented for git.git by
      Linus Torvalds <torvalds@linux-foundation.org> and was later
      polished by Nicolas Pitre <nico@cam.org>.
      
      Signed-off-by: Andreas Ericsson <ae@op5.se>
      Andreas Ericsson committed