R=rsc
APPROVED=rsc
DELTA=25 (25 added, 0 deleted, 0 changed)
OCL=35566
CL=35574
func uint64div(uint64, uint64) uint64
func int64mod(int64, int64) int64
func uint64mod(uint64, uint64) uint64
+func float64toint64(float64) int64
+func int64tofloat64(int64) float64
case OCONV:
case OCONVNOP:
+ if(thechar == '5') {
+ if(isfloat[n->left->type->etype] && (n->type->etype == TINT64)) {
+ n = mkcall("float64toint64", n->type, init, conv(n->left, types[TFLOAT64]));
+ goto ret;
+ }
+ if((n->left->type->etype == TINT64) && isfloat[n->type->etype]) {
+ n = mkcall("int64tofloat64", n->type, init, conv(n->left, types[TINT64]));
+ goto ret;
+ }
+ }
walkexpr(&n->left, init);
goto ret;
_d2v(y, f);
}
+void
+sys·float64toint64(double d, Vlong y)
+{
+ _d2v(&y, d);
+}
+
double
_v2d(Vlong x)
{
return _v2d(x);
}
+void
+sys·int64tofloat64(Vlong y, double d)
+{
+ d = _v2d(y);
+}
+
+
static void
dodiv(Vlong num, Vlong den, Vlong *q, Vlong *r)
{