Ignore:
Timestamp:
Jan 10, 2013, 8:29:25 PM (7 years ago)
Author:
ksherdy
Message:

Re-oranganized headers to provide a clear separation between application specific and stream struct / function headers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/pablo_template_lsst.cpp

    r2805 r2806  
     1// Stream struct and function headers and definitions
     2
     3#include "../lib/simd-lib/bitblock.hpp"
     4#include "../lib/simd-lib/carryQ.hpp"
     5#include "../lib/simd-lib/pabloSupport.hpp"
     6
     7#define LocalCarryDeclare(name, count)\
     8CarryArray<count, 0> name;\
     9
     10#define assert_0_error(errkind, errstrm)
     11
     12BitBlock EOF_mask = simd<1>::constant<1>();
     13
     14// XMLWF application headers and definitions
    115#include <stdio.h>
    216#include <stdlib.h>
     
    519#include <sys/stat.h>
    620
    7 #define LocalCarryDeclare(name, count)\
    8 CarryArray<count, 0> name;\
    9 
    10 #include <simd-lib/bitblock.hpp>
    11 #include <simd-lib/carryQ.hpp>
    12 #include <simd-lib/pabloSupport.hpp>
    13 #include <simd-lib/bitblock_iterator.hpp>
    14 #include <simd-lib/s2p.hpp>
     21#include "../lib/simd-lib/s2p.hpp"
     22#include "../lib/simd-lib/buffer.hpp"
     23#include "../lib/simd-lib/bitblock_iterator.hpp"
    1524#include "../lib/simd-lib/perflib/perfsec.h"
    1625
    1726#include <xmldecl.h>
    1827#include <namechars.h>
    19 #include <TagMatcher.hpp>
    2028#include <LineColTracker.hpp>
    21 #include <ErrorTracker.h>
    2229#include <XMLTestSuiteError.h>
    2330
    2431// Define the mappings for pablo.assert_0(strm, errkind) statements which
    2532// compile to the the form assert_0_error(errkind, strm)
     33#include <ErrorTracker.h>
     34
     35ErrorTracker error_tracker;
    2636#define assert_0_error(errkind, errstrm) error_tracker.NoteError(errkind, errstrm);
     37
     38//#define STL_ALIGNED_VECTOR // experimental STL Aligned Vector
     39#ifndef STL_ALIGNED_VECTOR
     40#include <TagMatcher.hpp>
     41#endif
     42
     43#ifdef STL_ALIGNED_VECTOR // experimental, comment out TagMatcher code to use STL aligned memory vector
     44#warning "Compiling with experimental STL_ALIGNED_VECTOR."
     45#include <vector>
     46#include "../lib/simd-lib/stl_aligned_allocator.hpp"
     47#endif
    2748
    2849#define LSST
Note: See TracChangeset for help on using the changeset viewer.