[PATCH] hdparm size reduction
Tito
farmatito at tiscali.it
Wed May 3 20:06:54 UTC 2006
On Wednesday 3 May 2006 20:13, Rob Landley wrote:
> On Wednesday 03 May 2006 2:46 am, Tito wrote:
>
> > > > Here it is: hdparm07.patch!!!
> > >
> > > My if (BB_BIG_ENDIAN) hunk was there to avoid the memcpy when we didn't
> > > need to do it. (Hopefully the compiler is smart enough to realize that
> > > val can optimized away when it's just an alias for another variable.)
> > >
> > > You removed that. Was there a reason?
> >
> > Just copy and paste from hdparm 6.6+
>
> The other thing is that the big endian test was doing a swab before, and now
> it isn't. You still have a buffer, but you always memcpy straight to the
> buffer unmodified. So either your hdparm07 breaks big endian systems, or the
> swab was unnecessarily (strongly inplying that the _old_ hdparm wouldn't have
> worked on big endian systems).
>
> I'm going to guess that the old one worked and the swab is still necessary.
> Care to express an opinion?
No opinion and no way to test it.
Tito
>
> I should set up an ubuntu PPC system under qemu so I can test this...
>
> Rob
More information about the busybox
mailing list