Changeset 1753 for trunk/lib/p2s128.hpp


Ignore:
Timestamp:
Dec 8, 2011, 6:57:20 PM (8 years ago)
Author:
ksherdy
Message:

Added 128 bit specific p2s, s2p. Added 256 bit headers as placeholders.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/lib/p2s128.hpp

    r1750 r1753  
    1 /*  p2s - Serial to Parallel Bit Stream Transposition
     1/*  p2s128 - Serial to Parallel Bit Stream Transposition
    22    Copyright (c) 2007, 2008, 2010, Robert D. Cameron.
    33    Licensed to the public under the Open Software License 3.0.
     4    Licensed to International Characters Inc.
     5       under the Academic Free License version 3.0.
     6
    47*/
    58
    6 #ifndef P2S_HPP
    7 #define P2S_HPP
     9#ifndef P2S128_HPP
     10#define P2S128_HPP
    811
    9 #include "idisa.hpp"
     12#include "idisa128.hpp"
    1013
    1114#define BytePack BitBlock
    12 
    1315
    1416/*
     
    3537#endif
    3638
    37 
    38 
    3939/*  p2s_ideal is an ideal parallel to serial transposition
    4040    algorithm given an architecture with native support for
     
    4343    operations.
    4444*/
    45 
    4645
    4746#define p2s_ideal(p0,p1,p2,p3,p4,p5,p6,p7,s0,s1,s2,s3,s4,s5,s6,s7)  \
     
    111110  } while(0)
    112111
    113 #if (BYTE_ORDER == BIG_ENDIAN)
    114 #define p2s(p0, p1, p2, p3, p4, p5, p6, p7, s0, s1, s2, s3, s4, s5, s6, s7)\
    115   P2S_ALGORITHM(p0, p1, p2, p3, p4, p5, p6, p7, s0, s1, s2, s3, s4, s5, s6, s7)
    116 #endif
    117 #if (BYTE_ORDER == LITTLE_ENDIAN)
    118112#define p2s(p0, p1, p2, p3, p4, p5, p6, p7, s0, s1, s2, s3, s4, s5, s6, s7)\
    119113  P2S_ALGORITHM(p0, p1, p2, p3, p4, p5, p6, p7, s7, s6, s5, s4, s3, s2, s1, s0)
    120 #endif
    121114
    122 #endif
     115#endif // P2S128_HPP
    123116
Note: See TracChangeset for help on using the changeset viewer.