|
From: | Edmund Grimley Evans |
Subject: | Re: [Tinycc-devel] [PATCH] tccgen.c: Optimise 0<<x, 0>>x, -1>>x, x&0, x*0, x|-1, x%1. |
Date: | Fri, 6 Mar 2015 07:43:41 +0000 |
User-agent: | Mutt/1.5.21 (2010-09-15) |
Sergey Korshunoff <address@hidden>: > > + if (l2 == 1) > > + memset(&vtop->c, 0, sizeof(vtop->c)); > > What this means? It's a valid alternative to writing something like: if (t1 == VT_LLONG) vtop->c.ll = 0; else if (vtop->type.t & VT_UNSIGNED) vtop->c.ui = 0; else vtop->c.i = 0; Which is probably still not really correct because there are another couple of integer union members. See my message with the title "CValue"! Edmund
[Prev in Thread] | Current Thread | [Next in Thread] |