Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/archival/libarchive/bz/compress.c

    r3232 r3621  
    250250void sendMTFValues(EState* s)
    251251{
    252     int32_t v, t, i, j, gs, ge, totc, bt, bc, iter;
     252    int32_t v, t, i, j, gs, ge, bt, bc, iter;
    253253    int32_t nSelectors, alphaSize, minLen, maxLen, selCtr;
    254254    int32_t nGroups;
     
    346346#endif
    347347        nSelectors = 0;
    348         totc = 0;
    349348        gs = 0;
    350349        while (1) {
     
    387386                cost[2] = cost23 & 0xffff; cost[3] = cost23 >> 16;
    388387                cost[4] = cost45 & 0xffff; cost[5] = cost45 >> 16;
    389 
    390388            } else
    391389#endif
     
    412410                }
    413411            }
    414             totc += bc;
    415412            fave[bt]++;
    416413            s->selector[nSelectors] = bt;
     
    502499            if (sizeof(long) <= 4) {
    503500                inUse16 = inUse16*2 +
    504                     ((*(uint32_t*)&(s->inUse[i * 16 + 0])
    505                     | *(uint32_t*)&(s->inUse[i * 16 + 4])
    506                     | *(uint32_t*)&(s->inUse[i * 16 + 8])
    507                     | *(uint32_t*)&(s->inUse[i * 16 + 12])) != 0);
     501                    ((*(bb__aliased_uint32_t*)&(s->inUse[i * 16 + 0])
     502                    | *(bb__aliased_uint32_t*)&(s->inUse[i * 16 + 4])
     503                    | *(bb__aliased_uint32_t*)&(s->inUse[i * 16 + 8])
     504                    | *(bb__aliased_uint32_t*)&(s->inUse[i * 16 + 12])) != 0);
    508505            } else { /* Our CPU can do better */
    509506                inUse16 = inUse16*2 +
    510                     ((*(uint64_t*)&(s->inUse[i * 16 + 0])
    511                     | *(uint64_t*)&(s->inUse[i * 16 + 8])) != 0);
     507                    ((*(bb__aliased_uint64_t*)&(s->inUse[i * 16 + 0])
     508                    | *(bb__aliased_uint64_t*)&(s->inUse[i * 16 + 8])) != 0);
    512509            }
    513510        }
Note: See TracChangeset for help on using the changeset viewer.