[Verse-cvs] [verse] SVN commit:[4524] Bug-fix: removed dependency on undefined behaviour in v_bignum_square_half() ( see Verse bug #8959, GCC bug #36026), many thanks to Lukas Jirkovsky
Emil Brink
emil at obsession.se
Mon Apr 28 19:43:18 CEST 2008
Revision: 4524
https://svn.blender.org//revision/?rev=4524&view=rev
Author: emil
Date: 2008-04-28 19:43:18 +0200 (Mon, 28 Apr 2008)
Log Message:
-----------
Bug-fix: removed dependency on undefined behaviour in v_bignum_square_half() (see Verse bug #8959, GCC bug #36026), many thanks to Lukas Jirkovsky
Modified Paths:
--------------
trunk/verse/v_bignum.c
Modified: trunk/verse/v_bignum.c
===================================================================
--- trunk/verse/v_bignum.c 2008-04-28 11:01:28 UTC (rev 4523)
+++ trunk/verse/v_bignum.c 2008-04-28 17:43:18 UTC (rev 4524)
@@ -768,7 +768,7 @@
for(j = i + 1; j < t; j++)
{
/* printf("computing uv=%X+2*%X*%X+%X\n", w[i + j], x[1 + j], x[1 + i], c);*/
- uv = x[1 + j] * x[1 + i];
+ uv = ((VBigDigs) x[1 + j]) * ((VBigDigs) x[1 + i]);
high = (uv & 0x80000000) != 0;
uv *= 2;
ouv = uv; /* Addition below might wrap and generate high bit. */
More information about the Verse-cvs
mailing list