[Issue 9466] Compiler crash with code-coverage generation with large files
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue May 21 22:53:24 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9466
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #7 from Walter Bright <bugzilla at digitalmars.com> 2013-05-21 22:53:23 PDT ---
(In reply to comment #2)
> covb is allocated via:
>
> covb = (unsigned *)calloc((numlines + 32) / 32, sizeof(*covb));
>
> I would sure like to understand the meaning of this magical expression. Why is
> it dividing by 32? Another case of premature optimization?
covb is a bit vector, it must have numlines bits in it. Since unsigned's are 32
bits wide, it rounds it up to the number of 32 bit unsigned's to allocate.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list