Nick Kralevich a677907ee8 string.h: add __attribute__ ((pure)) to string functions
cdefs.h: Introduce the __purefunc attribute, which allows us to mark
certain functions as being "pure".

http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html

  Many functions have no effects except the return value and their
  return value depends only on the parameters and/or global variables.
  Such a function can be subject to common subexpression elimination
  and loop optimization just as an arithmetic operator would be.

string.h: Mark many commently used string functions as "pure", to
allow for additional compiler optimizations.

Change-Id: I42961f90f822b6dbcbc3fd72cdbe774a7adc8785
2012-03-21 08:54:54 -07:00
..
2011-05-13 10:54:34 -07:00
2009-11-05 15:50:05 -08:00
2012-03-05 16:44:42 -08:00
2009-03-03 19:28:35 -08:00
2011-05-26 02:46:41 +02:00
2010-01-15 15:57:02 -08:00
2010-01-15 15:57:02 -08:00
2009-03-03 19:28:35 -08:00
2009-03-03 19:28:35 -08:00
2009-03-03 19:28:35 -08:00
2009-03-03 19:28:35 -08:00
2010-10-13 15:46:55 +02:00