VirtualBox

Changeset 3091 in kBuild


Ignore:
Timestamp:
Oct 4, 2017 2:31:04 PM (7 years ago)
Author:
bird
Message:

strcache2.c: nits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/strcache2.c

    r3084 r3091  
    498498  if (!((size_t)xs & 3))
    499499    {
     500      /* aligned */
    500501      int result;
    501       /* aligned */
    502       while (length >= 8)
     502      unsigned reminder = length & 7;
     503      length >>= 3;
     504      while (length-- > 0)
    503505        {
    504506          result  = *(int32_t*)xs - *(int32_t*)ys;
     
    508510          xs += 8;
    509511          ys += 8;
    510           length -= 8;
    511512        }
    512       switch (length)
     513      switch (reminder)
    513514        {
    514515          case 7:
     
    549550      /* unaligned */
    550551      int result;
    551       while (length >= 8)
     552      unsigned reminder = length & 7;
     553      length >>= 3;
     554      while (length-- > 0)
    552555        {
    553556#if defined(__i386__) || defined(__x86_64__)
     
    576579          xs += 8;
    577580          ys += 8;
    578           length -= 8;
    579581        }
     582
    580583      result = 0;
    581       switch (length)
     584      switch (reminder)
    582585        {
    583586          case 7: result |= xs[6] - ys[6]; /* fall thru */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette