altos: Shrink ao_add_task by rolling up a memset loop
authorKeith Packard <keithp@keithp.com>
Wed, 6 Jul 2011 20:49:05 +0000 (13:49 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 6 Jul 2011 20:51:18 +0000 (13:51 -0700)
commit64860be02b3efa6f784a259249cfa6d14545fbd3
tree8e373abcbdce161d905a9ddff0798785117444b7
parent480b48837db31987b947e4d32248965d4a16be03
altos: Shrink ao_add_task by rolling up a memset loop

This has a dramatic effect. By pulling the 'stack' variable into
registers it reduces the size of this function from 550 to 231 bytes.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/ao_task.c