Changeset 871 for proto/JSON


Ignore:
Timestamp:
Jan 6, 2011, 3:03:44 PM (8 years ago)
Author:
ksherdy
Message:

Update ParityMask? variable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/JSON/json_pybit_template.c

    r849 r871  
     1/*
     2 * IMPORTANT: Manually insert of parity mask generation code prior to compilation.
     3 */
    14#include <string.h>
    25#include <stdio.h>
     
    8689                        array_bit__0_,array_bit__1_,array_bit__2_,array_bit__3_,array_bit__4_,array_bit__5_,array_bit__6_,array_bit__7_);
    8790
    88                         @block_stmts
    89 
    90                         /* Generate Parity Mask */
     91                        /* bitblock_parity_mask */
    9192                        high_bit_mask = sisd_high_bit_mask;
    9293                        high_bit_is_set = simd_and(high_bit_mask, bitblock_parity_mask);
    9394                        bitblock_parity_mask = sisd_add( simd_not(sisd_srl(high_bit_is_set, sisd_from_int(BLOCK_SIZE-1))) , sisd_low_bit_mask);
     95
     96                        @block_stmts
     97
     98                        /* IMPORTANT - Manual insertion required. */
    9499                        ParityMask = bitblock_parallel_prefix_parity(UnescapedDQuotes, bitblock_parity_mask);
    95100
     
    146151                        array_bit__7_ = simd_and(array_bit__7_, EOF_mask);
    147152
    148                         @block_stmts
    149 
    150                         /* Generate Parity Mask */
     153                        /* bitblock_parity_mask */
    151154                        high_bit_mask = sisd_srl(sisd_high_bit_mask, sisd_from_int(BLOCK_SIZE-chars_avail));
    152155                        high_bit_is_set = simd_and(high_bit_mask, bitblock_parity_mask);
    153156                        bitblock_parity_mask = sisd_add(simd_not(sisd_srl(high_bit_is_set, sisd_from_int(chars_avail-1))) , sisd_low_bit_mask);
     157
     158                        @block_stmts
     159
     160                        /* IMPORTANT - Manual insertion required. */
    154161                        ParityMask = bitblock_parallel_prefix_parity(UnescapedDQuotes, bitblock_parity_mask);
    155162                        ParityMask = simd_and(ParityMask, EOF_mask);
Note: See TracChangeset for help on using the changeset viewer.