pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2013-06-17
2013-06-17 21:40:00 by Martin Nilsson <nilsson@opera.com>
031171668288e50e636ac9145a4b7a93185e4431 (
11
lines) (+
2
/-
9
)
[
Show
|
Annotate
]
Branch:
7.9
Removed auto bignum checks.
1958:
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();
2687:
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
3923:
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 );