~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Tina4/src/sys/gen/tina_int.c

Version: ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #include <math.h>
  2 
  3 int tina_int(double x)
  4 /* return next integer below x */
  5 {
  6     return((int)floor(x));
  7 }
  8 
  9 int tina_rint(double x)
 10 /* return nearest integer to x */
 11 {
 12     return(tina_int(x+0.5));
 13 }
 14 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.