aboutsummaryrefslogtreecommitdiffstats
path: root/libc/bionic/dlmalloc.c
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2012-03-21 08:48:18 -0700
committerNick Kralevich <nnk@google.com>2012-03-21 08:54:54 -0700
commita677907ee8ecca034318fdb97902fa73e7392c4f (patch)
treee937fcefb5cc8719a7a388cfdb45c9425443ae20 /libc/bionic/dlmalloc.c
parentaac0dc97a9ad91231fa89878e745548d693366c1 (diff)
downloadandroid_bionic-a677907ee8ecca034318fdb97902fa73e7392c4f.tar.gz
android_bionic-a677907ee8ecca034318fdb97902fa73e7392c4f.tar.bz2
android_bionic-a677907ee8ecca034318fdb97902fa73e7392c4f.zip
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
Diffstat (limited to 'libc/bionic/dlmalloc.c')
0 files changed, 0 insertions, 0 deletions