Disruptive
Programmer
Hi
In my efforts to speed things up somewhat I would like to output an integer (1) if x > Xmax or x < 0, but if x is between the limits 0 to Xmax then will return. Obviously I can write withif then and have done so, but as this routine is being called billions of times any potential time saving is appreciated. Are the any inbuild heaviside functions into c?? or anything suitable?
Thanks
In my efforts to speed things up somewhat I would like to output an integer (1) if x > Xmax or x < 0, but if x is between the limits 0 to Xmax then will return. Obviously I can write withif then and have done so, but as this routine is being called billions of times any potential time saving is appreciated. Are the any inbuild heaviside functions into c?? or anything suitable?
Thanks