Ticket #15033: patch-opensslconf.h-ppc64.diff

File patch-opensslconf.h-ppc64.diff, 1.4 KB (added by jmroot (Joshua Root), 16 years ago)
  • include/openssl/opensslconf.h

    old new  
    134134/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
    135135 * %20 speed up (longs are 8 bytes, int's are 4). */
    136136#ifndef DES_LONG
     137#if defined(__x86_64__)
     138#define DES_LONG unsigned int
     139#else
    137140#define DES_LONG unsigned long
     141#endif
    138142#endif
    139143#endif
    140144
    141145#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
    142146#define CONFIG_HEADER_BN_H
     147#if defined(__ppc64__) || defined(__x86_64__)
    143148#undef BN_LLONG
     149#else
     150#define BN_LLONG
     151#endif
    144152
    145153/* Should we define BN_DIV2W here? */
    146154
     
    148156/* The prime number generation stuff may not work when
    149157 * EIGHT_BIT but I don't care since I've only used this mode
    150158 * for debuging the bignum libraries */
     159#if defined(__ppc64__) || defined(__x86_64__)
    151160#define SIXTY_FOUR_BIT_LONG
     161#else
     162#undef SIXTY_FOUR_BIT_LONG
     163#endif
    152164#undef SIXTY_FOUR_BIT
     165#if defined(__ppc64__) || defined(__x86_64__)
    153166#undef THIRTY_TWO_BIT
     167#else
     168#define THIRTY_TWO_BIT
     169#endif
    154170#undef SIXTEEN_BIT
    155171#undef EIGHT_BIT
    156172#endif
     
    164180
    165181#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
    166182#define CONFIG_HEADER_BF_LOCL_H
     183#if defined(__x86_64__)
     184#define BF_PTR2
     185#else
    167186#define BF_PTR
     187#endif
    168188#endif /* HEADER_BF_LOCL_H */
    169189
    170190#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)