Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3322F10F2D for ; Thu, 22 Jan 2015 13:24:36 +0000 (UTC) Received: (qmail 7673 invoked by uid 500); 22 Jan 2015 13:24:35 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 7562 invoked by uid 500); 22 Jan 2015 13:24:35 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 7495 invoked by uid 99); 22 Jan 2015 13:24:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jan 2015 13:24:35 +0000 Date: Thu, 22 Jan 2015 13:24:35 +0000 (UTC) From: "Thomas Neidhart (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MATH-1198) Simplify FastMath exp function MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-1198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14287408#comment-14287408 ] Thomas Neidhart commented on MATH-1198: --------------------------------------- This conversion might also trigger the JIT bug: {code} int intVal = (int) x; {code} Thus I proposed to do the first check with the unchanged double value. Afterwards we are quite sure that we are not affected by the bug anymore. > Simplify FastMath exp function > ------------------------------ > > Key: MATH-1198 > URL: https://issues.apache.org/jira/browse/MATH-1198 > Project: Commons Math > Issue Type: Improvement > Reporter: Sebb > Attachments: commons-math.patch > > > Patch (to follow) simplifies the exp function and hopefully avoids the Java 1.5 JIT bug as well. -- This message was sent by Atlassian JIRA (v6.3.4#6332)