Changeset 463 for trunk/lib


Ignore:
Timestamp:
Jul 11, 2010, 1:36:18 PM (9 years ago)
Author:
cameron
Message:

Set up for -DADC64 -DSAHFLAHF overrides with default SIMD_CARRY

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/block_carry.h

    r462 r463  
    3333#include "sse_simd.h"
    3434
    35 #define ADC64 1
    36 #define SIMD_CARRY 2
    37 #define ADC64_SAHF 3
    38 
    39 #define CARRY_STRATEGY ADC64_SAHF
    40 
    41 #if (CARRY_STRATEGY == ADC64)
     35#define SIMD_CARRY_STRATEGY 1
     36#define ADC64_STRATEGY 2
     37#define ADC64_SAHF_STRATEGY 3
     38
     39#ifdef ADC64
     40#ifdef SAHFLAHF
     41#define CARRY_STRATEGY ADC64_SAHF_STRATEGY
     42#else
     43#define CARRY_STRATEGY ADC64_STRATEGY
     44#endif
     45#else
     46#define CARRY_STRATEGY SIMD_CARRY_STRATEGY
     47#endif
     48
     49#if (CARRY_STRATEGY == ADC64_STRATEGY)
    4250typedef uint64_t CarryType;
    4351
     
    117125#endif
    118126
    119 #if (CARRY_STRATEGY == ADC64_SAHF)
     127#if (CARRY_STRATEGY == ADC64_SAHF_STRATEGY)
    120128typedef uint64_t CarryType;
    121129
     
    221229
    222230
    223 #if (CARRY_STRATEGY == SIMD_CARRY)
     231#if (CARRY_STRATEGY == SIMD_CARRY_STRATEGY)
    224232
    225233typedef SIMD_type CarryType;
Note: See TracChangeset for help on using the changeset viewer.