2010-06-11 20:06:00 -04:00
|
|
|
#include "master.hpp"
|
|
|
|
|
|
|
|
namespace factor
|
|
|
|
{
|
|
|
|
|
2010-09-27 01:20:50 -04:00
|
|
|
cell gc_info::return_address_index(cell return_address)
|
2010-06-11 20:06:00 -04:00
|
|
|
{
|
|
|
|
u32 *return_address_array = return_addresses();
|
|
|
|
|
2010-09-27 01:20:50 -04:00
|
|
|
for(cell i = 0; i < return_address_count; i++)
|
2010-06-11 20:06:00 -04:00
|
|
|
{
|
|
|
|
if(return_address == return_address_array[i])
|
|
|
|
return i;
|
|
|
|
}
|
|
|
|
|
2010-10-09 18:14:14 -04:00
|
|
|
return (cell)-1;
|
2010-06-11 20:06:00 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|