Changeset 3675


Ignore:
Timestamp:
Mar 13, 2014, 2:45:17 AM (5 years ago)
Author:
ksherdy
Message:

Updated needle_template.cpp and compilable.

Location:
proto/s2k/demo/needle
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • proto/s2k/demo/needle/needle.py

    r3607 r3675  
    7878##
    7979# Stream Structure definitions
     80
     81class Basis():
     82        b0 = 0
     83        b1 = 0
     84        b2 = 0
     85        b3 = 0
     86        b4 = 0
     87        b5 = 0
     88        b6 = 0
     89        b7 = 0
    8090
    8191# Lexical items
     
    159169# byte-space methods.
    160170#
    161 def Main(lex, matches):
     171def Main(basis, lex, matches):
    162172        Transpose(byte_data, basis)
    163173        ClassifyBytes(basis, lex)
  • proto/s2k/demo/needle/needle_template.cpp

    r3674 r3675  
    9090
    9191// Transpostion runtime support
     92/*
    9293struct Basis {
    9394  BitBlock b7;
     
    100101  BitBlock b0;
    101102};
     103*/
    102104
    103105// @ global - Parameter replaced with C++ translation of stream structs
     
    105107@global
    106108
     109/*
    107110struct Basis basis;
     111*/
     112
    108113// @ decl - Replaced with a set of C++ stream struct declarations.
    109114@decl
     
    175180  ATTRIBUTE_SIMD_ALIGN char buffer[BUFFER_SIZE];
    176181  // Pablo transpose.do_block(), transpose.do_final_block()
    177   // expect 'byte_data' and 'basis' names as input and output arguments.
     182  // expect 'byte_data' and 'basis' name arguments to Transpose.
    178183  char * byte_data = buffer;
    179184
Note: See TracChangeset for help on using the changeset viewer.