<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Maybe there should be a comment
      regarding the performance and risk of change?</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">-Brian</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 8/21/24 07:54, Faith Ekstrand wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAOFGe96ZsSauGpcE99v4KF3xqhPHS1Uh4NtspABMRPfjOiytXA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>I've actually benchmarked this and 32bit is still faster on
          many modern CPUs.</div>
        <div><br>
        </div>
        <div>Also, I would be very surprised if we could change it
          without breaking the universe. I'm sure there are hard-coded
          32s various places.</div>
        <div><br>
        </div>
        <div>~Faith<br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Wed, Aug 21, 2024 at
          8:13 AM Christophe JAILLET <<a
            href="mailto:christophe.jaillet@wanadoo.fr"
            moz-do-not-send="true" class="moz-txt-link-freetext">christophe.jaillet@wanadoo.fr</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
          <br>
          I'm new to this list, so sorry if it is not the correct place.<br>
          <br>
          I've started to looked at the source code of mesa and I wonder
          why in <br>
          src/util/bitset.h we have:<br>
          <br>
               #define BITSET_WORD unsigned int<br>
          <br>
          This is as-is since at least 2015, probably 2011.<br>
          <br>
          Would it make sense to have it as a long, at least on 64 bits
          arch?<br>
          (the linux kernel uses bitmaps as unsigned long)<br>
          <br>
          I don't think that it should be a noticeable speed-up, but at
          least on <br>
          Linux it could save some cycles when doing some OR or AND and
          co on <br>
          bitmaps on a 64 bits cpu.<br>
          <br>
          Just my 2c.<br>
          <br>
          Christophe JAILLET<br>
        </blockquote>
      </div>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>

<br>
<span style="background-color:rgb(255,255,255)"><font size="2">This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.</font></span>