pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:1951:    *! This function returns a random number in the range 0 - @[max]-1.    *!    *! @seealso    *! @[random_seed()]    */      PMOD_EXPORT   PIKEFUN int random(int i)   {    if(i <= 0) RETURN 0; - #if defined (AUTO_BIGNUM) && SIZEOF_INT_TYPE > 4 + #if SIZEOF_INT_TYPE > 4    if(i >> 31) {    unsigned INT_TYPE a = my_rand();    unsigned INT_TYPE b = my_rand();    RETURN (INT_TYPE)(((a<<32)|b) % i);    }   #endif    RETURN my_rand() % i;   }      PMOD_EXPORT
pike.git/src/builtin.cmod:2680:    push_constant_text("bytecode_method");    push_constant_text(PIKE_BYTECODE_METHOD_NAME);    push_constant_text("abi");    push_int(sizeof(void *) * 8);    push_constant_text("native_byteorder");    push_int(PIKE_BYTEORDER);    push_constant_text("int_size");    push_int(sizeof(INT_TYPE) * 8);    push_constant_text("float_size");    push_int(sizeof(FLOAT_TYPE) * 8); - #ifdef AUTO_BIGNUM +     push_constant_text("auto_bignum");    push_int(1);    f_aggregate_mapping(6*2); - #else -  f_aggregate_mapping(5*2); - #endif +    }      /*! @endmodule    */      void low_backtrace(struct Pike_interpreter_struct *i)   {    struct svalue *stack_top = i->stack_pointer;    struct pike_frame *f, *of = 0;    int size = 0;
pike.git/src/builtin.cmod:3916:       PIKEFUN int `usec_full()    {    struct timeval now;       if( THIS->hard_update )    ACCURATE_GETTIMEOFDAY( &now );    else    INACCURATE_GETTIMEOFDAY( &now );    - #ifdef AUTO_BIGNUM +     push_int( now.tv_sec );    push_int( 1000000 );    f_multiply( 2 );    push_int( now.tv_usec );    f_add( 2 );    return; - #else -  RETURN (now.tv_sec * 1000000 + now.tv_usec); - #endif +     }       /*! @decl protected void create( int fast );    *!    *! If @[fast] is true, do not request a new time from the system,    *! instead use the global current time variable.    *!    *! This will only work in callbacks, but can save significant amounts    *! of CPU.    */