[gforth] / gforth / engine / support.c  

gforth: gforth/engine/support.c

Diff for /gforth/engine/support.c between version 1.25 and 1.26

version 1.25, Sun Apr 22 22:04:28 2007 UTC version 1.26, Wed May 9 07:12:59 2007 UTC
Line 463 
Line 463 
 #endif  #endif
   return retval;    return retval;
 }  }
 #endif  
   void gforth_ms(UCell u)
   {
   #ifdef HAVE_NANOSLEEP
     struct timespec time_req;
     time_req.tv_sec=u/1000;
     time_req.tv_nsec=1000000*(u%1000);
     while(nanosleep(&time_req, &time_req));
   #else /* !defined(HAVE_NANOSLEEP) */
     struct timeval timeout;
     timeout.tv_sec=u/1000;
     timeout.tv_usec=1000*(u%1000);
     (void)select(0,0,0,0,&timeout);
   #endif /* !defined(HAVE_NANOSLEEP) */
   }
   #endif /* !defined(STANDALONE) */
   
   
 /* mixed division support; should usually be faster than gcc's  /* mixed division support; should usually be faster than gcc's
    double-by-double division (and gcc typically does not generate     double-by-double division (and gcc typically does not generate


Generate output suitable for use with a patch program
Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help