NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: memove performance of NetBSD



The original code had this already:

> --- bcopy.c.org       2010-01-28 10:27:28.000000000 +0530
> +++ bcopy.c   2010-01-28 10:34:00.000000000 +0530
...
>       unsigned long u;
...

>               u = (unsigned long)src; /* only need low bits */

Why isn't u an intptr_t? Nothing guarantees that an unsigned long is
a good type to stuff a pointer in.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert    -- You author it, and I'll reader it.
\X/ rhialto/at/xs4all.nl      -- Cetero censeo "authored" delendum esse.


Home | Main Index | Thread Index | Old Index