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

Re: [patches] Possible PowerPC LIBC optimization



Mark Hatle wrote:

> Attached is the patch that Clark sent me against glibc-2.5.  I don't
> think it is directly applicable as stated to glibc, however the idea
> behind it appears to be sound.

I don't read Power assembly well enough to know -- but is dbct a
prefetch?  If so, a simple change to make this more attractive in a
multi-architecture setting would just be to use __builtin_prefetch.  If
that makes sense (in that the prefetched values are going to be used in
the near future on all architectures), then, in principle, I don't see
why we would have to put any CPU guards on this at all.

-- 
Mark Mitchell
CodeSourcery
mark@xxxxxxxxxxxxxxxx
(650) 331-3385 x713