Add __pure as attribute. A __pure function can only depend on the
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Wed, 16 Feb 2005 21:50:00 +0000 (21:50 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Wed, 16 Feb 2005 21:50:00 +0000 (21:50 +0000)
commitceb0d0c4f2141c6393b92a0721634b03a4c567fe
treeb127b2f14351893935ccf3ed1501e87a292ba054
parent97acb0af0665fb5e2eb88dfda811f0ebb8fd1609
Add __pure as attribute. A __pure function can only depend on the
arguments, not on global memory. A __pure2 function in contrast
just has to return the same value for the same arguments. It can
use a hash table or similiar means.

For GCC before 3.0 __pure is mapped to __pure2.

Inspired-by: FreeBSD
sys/sys/cdefs.h