Marked memcmp/strcmp as "pure" functions, to allow gcc to optimise
authorMichael Brown <mcb30@etherboot.org>
Mon, 27 Nov 2006 23:50:24 +0000 (23:50 +0000)
committerMichael Brown <mcb30@etherboot.org>
Mon, 27 Nov 2006 23:50:24 +0000 (23:50 +0000)
commit82342e0b8f34285c02ea5915ff1b74bc9a915efc
tree17ac3698306746c86472989e22ac582696e16ec0
parentc4677c7e7351fe141a278004a21d2637b8004980
Marked memcmp/strcmp as "pure" functions, to allow gcc to optimise
away code such as

  if ( strcmp ( some_string, "some_value" ) != 0 ) {
     DBG ( "Bad value received!" );
  }
src/include/string.h