Changeset 1213


Ignore:
Timestamp:
Jul 7, 2011, 2:12:00 PM (8 years ago)
Author:
cameron
Message:

Adding interpose32

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/carryQ.h

    r1212 r1213  
    2020#ifndef CARRY_Q_H
    2121#define CARRY_Q_H
     22
     23static inline BitBlock interpose32(BitBlock s, BitBlock s32, const int n) __attribute__ ((always_inline));
     24static inline BitBlock interpose32(BitBlock s, BitBlock s32, const int n) {
     25        return simd_or(simd_slli_32(s, n), simd_srli_32(s32, 32-n));
     26}
     27
    2228
    2329#ifdef SIMD_CARRY_Q
Note: See TracChangeset for help on using the changeset viewer.