Added fixed point operations to threads.c