~ubuntu-branches/ubuntu/hardy/libgc/hardy-updates

« back to all changes in this revision

Viewing changes to new_hblk.c

  • Committer: Bazaar Package Importer
  • Author(s): Ryan Murray
  • Date: 2005-02-03 00:50:53 UTC
  • mto: (3.1.1 etch) (1.2.4 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20050203005053-9c0v9r2qcm2g1cfp
Tags: upstream-6.4
ImportĀ upstreamĀ versionĀ 6.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
    p[3] = 0;
105
105
    p += 4;
106
106
    for (; p < lim; p += 4) {
107
 
        PREFETCH_FOR_WRITE(p+64);
 
107
        PREFETCH_FOR_WRITE((ptr_t)(p+64));
108
108
        p[0] = (word)(p-4);
109
109
        p[1] = 0;
110
110
        CLEAR_DOUBLE(p+2);
142
142
    p[4] = (word)p;
143
143
    p += 8;
144
144
    for (; p < lim; p += 8) {
145
 
        PREFETCH_FOR_WRITE(p+64);
 
145
        PREFETCH_FOR_WRITE((ptr_t)(p+64));
146
146
        p[0] = (word)(p-4);
147
147
        p[4] = (word)p;
148
148
    };
171
171
  /* If we were more serious about it, these should go inside   */
172
172
  /* the loops.  But write prefetches usually don't seem to     */
173
173
  /* matter much.                                               */
174
 
    PREFETCH_FOR_WRITE((char *)h);
175
 
    PREFETCH_FOR_WRITE((char *)h + 128);
176
 
    PREFETCH_FOR_WRITE((char *)h + 256);
177
 
    PREFETCH_FOR_WRITE((char *)h + 378);
 
174
    PREFETCH_FOR_WRITE((ptr_t)h);
 
175
    PREFETCH_FOR_WRITE((ptr_t)h + 128);
 
176
    PREFETCH_FOR_WRITE((ptr_t)h + 256);
 
177
    PREFETCH_FOR_WRITE((ptr_t)h + 378);
178
178
  /* Handle small objects sizes more efficiently.  For larger objects   */
179
179
  /* the difference is less significant.                                */
180
180
#  ifndef SMALL_CONFIG