~ubuntu-branches/ubuntu/saucy/faust/saucy

« back to all changes in this revision

Viewing changes to compiler/evaluate/loopDetector.hh

  • Committer: Package Import Robot
  • Author(s): Mario Lang
  • Date: 2012-04-04 13:52:01 UTC
  • mfrom: (1.1.6) (3.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20120404135201-hpsrk87x3hga94tc
Tags: 0.9.46-2
* Fix "ftbfs with GCC-4.7":
  - debian/patches/unistd: Include <unistd.h> where necessary.
    (Closes: #667163)

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
                int                             fPhase;
47
47
                
48
48
        public:
49
 
                loopDetector(int buffersize, int checkperiod) : fBuffersize(buffersize), fCheckperiod(checkperiod), fBuffer(buffersize), fPhase(fBuffersize) {}
 
49
        loopDetector(int buffersize, int checkperiod) : fBuffersize(buffersize), fCheckperiod(checkperiod), fBuffer(buffersize), fPhase(0) {}
50
50
                bool    detect  (Tree t);
51
 
        private:
52
 
                Tree    get             (int n) { return fBuffer[(fPhase-n)%fBuffersize]; }
53
 
                void    listPossibleCycles (vector<int>& v);
54
 
                bool    isCycle (int period);
55
51
                
56
52
};
57
53