~ubuntu-branches/ubuntu/quantal/muse/quantal

« back to all changes in this revision

Viewing changes to muse/memory.cpp

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2012-07-18 16:07:06 UTC
  • mto: (10.1.11 sid) (1.1.12)
  • mto: This revision was merged to the branch mainline in revision 31.
  • Revision ID: package-import@ubuntu.com-20120718160706-yc6332ishfcq7b7g
ImportĀ upstreamĀ versionĀ 2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
 
62
62
void Pool::grow(int idx)
63
63
      {
64
 
//      printf("grow memory idx %d\n", idx);
65
 
 
66
64
      int esize = (idx+1) * sizeof(unsigned long);
67
65
 
68
66
      Chunk* n    = new Chunk;
93
91
      };
94
92
 
95
93
typedef std::list<struct mops, RTalloc<struct mops> > List;
96
 
// typedef std::vector<struct mops> List;
97
94
typedef List::iterator iList;
98
95
 
99
96
//---------------------------------------------------------
100
97
//   main
101
98
//    2.8 s  normal                     0.7 vector
102
99
//    2.5 s  RTalloc
103
 
//    1.18    alle optimierungen (0.97)
 
100
//    1.18    all optimisations (0.97)
104
101
//---------------------------------------------------------
105
102
 
106
103
int main()