<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 49: BigInteger.abs and .neg wrong result on ARM</title><link>https://sourceforge.net/p/jamvm/bugs/49/</link><description>Recent changes to 49: BigInteger.abs and .neg wrong result on ARM</description><atom:link href="https://sourceforge.net/p/jamvm/bugs/49/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 20 Jul 2010 10:49:13 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/jamvm/bugs/49/feed.rss" rel="self" type="application/rss+xml"/><item><title>BigInteger.abs and .neg wrong result on ARM</title><link>https://sourceforge.net/p/jamvm/bugs/49/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The BigInteger.abs and BigInteger.neg functions give a wrong result when called with the argument Integer.MIN_VALUE on an ARM9 platform. The problem occurs in BigInteger.setNegative, where the expression&lt;/p&gt;
&lt;p&gt;(-(long)len)&lt;/p&gt;
&lt;p&gt;gives a wrong result. See the attached file for an example to reproduce the error and the output of that program. &lt;/p&gt;
&lt;p&gt;jamvm -version:&lt;br /&gt;
java version "1.5.0"&lt;br /&gt;
JamVM version 1.5.4&lt;br /&gt;
Copyright (C) 2003-2010 Robert Lougher &amp;lt;rob@jamvm.org.uk&amp;gt;&lt;/p&gt;
&lt;p&gt;This program is free software; you can redistribute it and/or&lt;br /&gt;
modify it under the terms of the GNU General Public License&lt;br /&gt;
as published by the Free Software Foundation; either version 2,&lt;br /&gt;
or (at your option) any later version.&lt;/p&gt;
&lt;p&gt;This program is distributed in the hope that it will be useful,&lt;br /&gt;
but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the&lt;br /&gt;
GNU General Public License for more details.&lt;/p&gt;
&lt;p&gt;Build information:&lt;/p&gt;
&lt;p&gt;Execution Engine: inline-threaded interpreter with stack-caching&lt;br /&gt;
Compiled with: gcc 4.2.4&lt;/p&gt;
&lt;p&gt;Boot Library Path: /usr/lib/classpath&lt;br /&gt;
Boot Class Path: /usr/share/jamvm/classes.zip:/usr/share/classpath/glibj.zip&lt;/p&gt;
&lt;p&gt;Platform:&lt;/p&gt;
&lt;p&gt;uname -a&lt;br /&gt;
Linux at91sam9g20ek 2.6.30 #5 Mon Jul 12 13:19:09 CEST 2010 armv5tejl unknown&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">martin</dc:creator><pubDate>Tue, 20 Jul 2010 10:49:13 -0000</pubDate><guid>https://sourceforge.net6add3326d743f2f43a1c2c02cd3fc6883206c6e8</guid></item></channel></rss>