__restrict__ vs __restrict ?

David O'Brien obrien at FreeBSD.org
Sat Jan 17 09:19:39 PST 2004


On Fri, Jan 16, 2004 at 08:03:05PM -0800, Tim Kientzle wrote:
> >No, we should be using the __restrict as coded.  But I wonder why
> >we can't just use "restrict"...
> 
> Because that would really mess up any user program that used
> 'restrict' as a variable or function name.  I think the
> current approach is the best.

Such code isn't portable to C99, which is still a goal of ours.  I like
RU's suggestion, because it is straight C[99] code and not an
abstraction.  I'll do a 'make world' test and see if we'd have trouble
with RU's form.

-- 
-- David  (obrien at FreeBSD.org)


More information about the freebsd-hackers mailing list