[Webkit-unassigned] [Bug 36849] Add zero() method to Vector class

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 30 15:40:15 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=36849





--- Comment #2 from Chris Rogers <crogers at google.com>  2010-03-30 15:40:15 PST ---
This patch adds a zero() method to Vector (only for the POD types) which
memsets the bytes to all zeroes.  For integer and floating-point values this
corresponds to all values of 0 or 0.0.  The reason it's interesting to have a
zero() method when there's already a fill() method is because zero() can be
much more optimized (using memset) rather than using std::fill().

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list