Date: Tue, 8 Oct 2002 18:21:40 +0200 (CEST) From: "Chris J. Mutter" <cjm@s2.enemy.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: alpha/43831: /usr/games/factor calculates wrong when factors > 2^32 Message-ID: <200210081621.g98GLe3N088649@satanii.enemy.org>
next in thread | raw e-mail | index | archive | help
>Number: 43831 >Category: alpha >Synopsis: /usr/games/factor calculates wrong when factors > 2^32 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-alpha >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 08 09:30:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Chris J. Mutter >Release: FreeBSD 4.6.1-RELEASE-p10 alpha >Organization: Enemy.ORG Productions >Environment: System: FreeBSD satanii.enemy.org 4.6.1-RELEASE-p10 FreeBSD 4.6.1-RELEASE-p10 #0: Wed Aug 7 08:04:19 CEST 2002 root@satanii.enemy.org:/usr/obj/usr/src/sys/S2 alpha >Description: when using ``factor'' on the alpha platform it gives a wrong result when someone tries to factor numbers > 4294967295 that contain of factors that are >= 65539. $ factor $(echo "65539*65539" | bc -q) 4295360521: 4295360521 ^^^^^^^^^^ wrong. >How-To-Repeat: $ factor 4295360521 >Fix: i think its not easy to fix without modifying /usr/src/games/primes/pr_tbl.c >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210081621.g98GLe3N088649>