User talk:01000101/optlib/

From OSDev Wiki
Jump to: navigation, search

Results

Under the "results" section, what exactly do those numbers mean? --MessiahAndrw 02:47, 8 August 2010 (UTC)

Nice stuff... how about adding memset() (should be a mere variation of memclr())? Having profiling information on how these functions perform compared to "straight C" implementations or e.g. newlib / glibc functions would be awesome. -- Solar 09:56, 1 April 2009 (UTC)

Suggestion for the memclr_sse2 function

You wrote

   size_t i;
   // find out if "m_start" is aligned on a SSE_XMM_SIZE boundary
   if((size_t)m_start & (SSE_XMM_SIZE - 1))
   {
       i = 0;
       [...]
   }
   else
   {
       // if "m_start" was aligned, set our count to 0
       i = 0;
   }

It would be cleaner like this:

size_t i = 0;
if((size_t)m_start & (SSE_XMM_SIZE - 1))
{
       [...]
}
Personal tools
Namespaces
Variants
Actions
Navigation
About
Toolbox