Changeset 4721:01d25fc9740a in roaraudio for libroar/hash_tiger.c


Ignore:
Timestamp:
01/16/11 18:21:17 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed FTBFS on debian and same platforms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/hash_tiger.c

    r4708 r4721  
    770770 
    771771int roar_hash_tiger_proc_block(struct roar_hash_tiger * state, void * block) { 
     772#if BYTE_ORDER == BIG_ENDIAN && !defined(ROAR_TARGET_WIN32) 
     773 uint64_t * block64 = block; 
     774#endif 
    772775 uint64_t a, b, c, aa, bb, cc; 
    773776 uint64_t x[8]; 
     
    784787                 | ((uint64_t)(d)[8*(n)+3]) << 24 | ((uint64_t)(d)[8*(n)+2]) << 16  \ 
    785788                 | ((uint64_t)(d)[8*(n)+1]) << 8  | ((uint64_t)(d)[8*(n)  ])       ) 
    786   x[0] = MKWORD(block, 0); 
    787   x[1] = MKWORD(block, 1); 
    788   x[2] = MKWORD(block, 2); 
    789   x[3] = MKWORD(block, 3); 
    790   x[4] = MKWORD(block, 4); 
    791   x[5] = MKWORD(block, 5); 
    792   x[6] = MKWORD(block, 6); 
    793   x[7] = MKWORD(block, 7); 
     789  x[0] = MKWORD(block64, 0); 
     790  x[1] = MKWORD(block64, 1); 
     791  x[2] = MKWORD(block64, 2); 
     792  x[3] = MKWORD(block64, 3); 
     793  x[4] = MKWORD(block64, 4); 
     794  x[5] = MKWORD(block64, 5); 
     795  x[6] = MKWORD(block64, 6); 
     796  x[7] = MKWORD(block64, 7); 
    794797#undef MKWORD 
    795798#elif BYTE_ORDER == LITTLE_ENDIAN 
Note: See TracChangeset for help on using the changeset viewer.