From: Panayotis K. <pan...@pa...> - 2011-04-03 23:17:50
|
On Apr 4, 2011, at 2:02 AM, Arno Puder wrote: > > actually, > > result == a - truncf(a / b) * b. > > <xsl:template match="dex:rem-float|dex:rem-float-2addr"> > <xsl:text> _r</xsl:text> > <xsl:value-of select="@vx"/> > <xsl:text>.f = _r</xsl:text> > <xsl:value-of select="@vy"/> > <xsl:text>.f - truncf(_r</xsl:text> > <xsl:value-of select="@vy"/> > <xsl:text>.f / _r</xsl:text> > <xsl:value-of select="@vz"/> > <xsl:text>.f) * _r</xsl:text> > <xsl:value-of select="@vz"/> > <xsl:text>.f;&nl;</xsl:text> > </xsl:template> > > Panayotis: can you please add this to the ObjC stylesheet and I will do > this for the C stylesheet (I have some other uncommitted changes so it > is not convenient for me to commit). > > Arno No problem |