Flash savings 24B

I am learning code optimisations, can someone check this comit please?
This have not to change anything, only save flash.
This commit is contained in:
mhotar
2014-01-26 12:32:09 +01:00
parent 1d0ebe5642
commit f676589989
4 changed files with 14 additions and 16 deletions
+3 -5
View File
@@ -4817,7 +4817,8 @@ void stack_paint()
q = &__bss_end ;
p -= 2 ;
while ( p > q )
*p-- = 0x55 ;
*p = 0x55 ;
p--;
}
uint16_t stack_free()
@@ -4825,10 +4826,7 @@ uint16_t stack_free()
unsigned char *p ;
p = &__bss_end + 1 ;
while ( *p == 0x55 )
{
p+= 1 ;
}
while ( *p++ == 0x55 );
return p - &__bss_end ;
}
#endif