Changeset 42 for trunk/src/bitlex.c


Ignore:
Timestamp:
Feb 11, 2008, 7:53:48 AM (11 years ago)
Author:
cameron
Message:

lib_simd: refactored allocation, bitstream_scan

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bitlex.c

    r40 r42  
    88
    99#include "bitlex.h"
    10 
    11 #ifdef __i386
    12 #include "../lib/sse_simd.h"
    13 #endif
    14 #ifdef _ARCH_PPC
    15 #include "../lib/altivec_simd.h"
    16 #endif
    17 
    18 #if BYTE_ORDER == BIG_ENDIAN
    19 #define sisd_sfl(blk, n) sisd_srl(blk, n)
    20 #define sisd_sbl(blk, n) sisd_sll(blk, n)
    21 #define sisd_sfli(blk, n) sisd_srli(blk, n)
    22 #define sisd_sbli(blk, n) sisd_slli(blk, n)
    23 #endif
    24 #if BYTE_ORDER == LITTLE_ENDIAN
    25 #define sisd_sfl(blk, n) sisd_sll(blk, n)
    26 #define sisd_sbl(blk, n) sisd_srl(blk, n)
    27 #define sisd_sfli(blk, n) sisd_slli(blk, n)
    28 #define sisd_sbli(blk, n) sisd_srli(blk, n)
    29 #endif
     10#include "../lib/lib_simd.h"
    3011
    3112
     
    3314        xml_buf = b;
    3415        parsing_engine_data = l;
    35         posix_memalign((void **) &x8basis, sizeof(BitBlock), BUFFER_SIZE);
     16        x8basis = (BitBlockBasis *) simd_new(BUFFER_SIZE/PACKSIZE);
    3617};
    3718
     
    450431
    451432void UTF_8_Lexer::Do_CharsetValidation() {
    452         printf("UTF_8_Lexer::Do_CharsetValidation not yet implemented; assuming OK.\n");
     433        //printf("UTF_8_Lexer::Do_CharsetValidation not yet implemented; assuming OK.\n");
    453434};
    454435
Note: See TracChangeset for help on using the changeset viewer.