From owner-svn-ports-all@FreeBSD.ORG Wed Mar 6 06:06:23 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 54A8E20F; Wed, 6 Mar 2013 06:06:23 +0000 (UTC) (envelope-from maho@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 4722C2D3; Wed, 6 Mar 2013 06:06:23 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r2666ND3093588; Wed, 6 Mar 2013 06:06:23 GMT (envelope-from maho@svn.freebsd.org) Received: (from maho@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r2666Nwe093587; Wed, 6 Mar 2013 06:06:23 GMT (envelope-from maho@svn.freebsd.org) Message-Id: <201303060606.r2666Nwe093587@svn.freebsd.org> From: Maho Nakata Date: Wed, 6 Mar 2013 06:06:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r313501 - head/math/spooles/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Mar 2013 06:06:23 -0000 Author: maho Date: Wed Mar 6 06:06:22 2013 New Revision: 313501 URL: http://svnweb.freebsd.org/changeset/ports/313501 Log: Unify files/patch-I2Ohash-large-input and files/patch-I2Ohash+src+util.c. Deleted: head/math/spooles/files/patch-I2Ohash+src+util.c Modified: head/math/spooles/files/patch-I2Ohash-large-input Modified: head/math/spooles/files/patch-I2Ohash-large-input ============================================================================== --- head/math/spooles/files/patch-I2Ohash-large-input Wed Mar 6 05:53:37 2013 (r313500) +++ head/math/spooles/files/patch-I2Ohash-large-input Wed Mar 6 06:06:22 2013 (r313501) @@ -1,92 +1,29 @@ $FreeBSD$ ---- I2Ohash/src/util.c.orig 2013-03-04 21:21:54.000000000 -0500 -+++ I2Ohash/src/util.c 2012-10-06 08:28:37.000000000 -0500 -@@ -39,8 +39,9 @@ +--- I2Ohash/src/util.c 1998-05-31 07:45:12.000000000 +0900 ++++ I2Ohash/src/util.c 2013-03-06 14:59:43.000000000 +0900 +@@ -39,7 +39,9 @@ */ loc1 = (key1 + 1) % hashtable->nlist ; loc2 = (key2 + 1) % hashtable->nlist ; --long int loc3 = (long int)loc1*(long int)loc2 % hashtable->nlist ; --loc =(int) loc3; +-loc = (loc1*loc2) % hashtable->nlist ; +/*loc = (loc1*loc2) % hashtable->nlist ;*/ +long int loc3 = (long int)loc1*(long int)loc2 % hashtable->nlist ; +loc=(int)loc3; #if MYDEBUG > 0 fprintf(stdout, "\n loc1 = %d, loc2 = %d, loc3 = %d", loc1, loc2, loc) ; fflush(stdout) ; -@@ -51,7 +52,7 @@ - -------------------------------------------------------- - */ - #if MYDEBUG > 0 --fprintf(stdout, "\n loc1 = %d, loc2 = %d, loc3 = %ld, loc = %d", loc1, loc2, loc3, loc) ; -+fprintf(stdout, "\n hashtable->freeI2OP = %p", hashtable->freeI2OP) ; - fflush(stdout) ; - #endif - if ( (i2op = hashtable->freeI2OP) == NULL ) { -@@ -159,10 +160,11 @@ +@@ -158,7 +160,9 @@ #endif loc1 = (key1 + 1) % hashtable->nlist ; loc2 = (key2 + 1) % hashtable->nlist ; --long int loc3 = (long int)loc1*(long int)loc2 % hashtable->nlist ; --loc =(int) loc3; -+/*loc = (loc1*loc2) % hashtable->nlist ;*/ -+long int loc3 = (long int)loc1*(long int)loc2 % hashtable->nlist ; -+loc=(int)loc3; - #if MYDEBUG > 0 --fprintf(stdout, "\n loc1 = %d, loc2 = %d, loc3 = %ld, loc = %d", loc1, loc2, loc3, loc) ; -+fprintf(stdout, "\n loc1 = %d, loc2 = %d, loc3 = %d", loc1, loc2, loc) ; - fflush(stdout) ; - #endif - /* -@@ -231,7 +233,9 @@ - } - loc1 = (key1 + 1) % hashtable->nlist ; - loc2 = (key2 + 1) % hashtable->nlist ; -loc = (loc1*loc2) % hashtable->nlist ; +/*loc = (loc1*loc2) % hashtable->nlist ;*/ +long int loc3 = (long int)loc1*(long int)loc2 % hashtable->nlist ; +loc=(int)loc3; - /* - --------------------------------------------------- - find the location of the first (key1,key2,*) triple ---- I2Ohash/src/util.c.orig 2013-03-04 21:21:54.000000000 -0500 -+++ I2Ohash/src/util.c 2012-10-06 08:28:37.000000000 -0500 -@@ -39,8 +39,9 @@ - */ - loc1 = (key1 + 1) % hashtable->nlist ; - loc2 = (key2 + 1) % hashtable->nlist ; --long int loc3 = (long int)loc1*(long int)loc2 % hashtable->nlist ; --loc =(int) loc3; -+/*loc = (loc1*loc2) % hashtable->nlist ;*/ -+long int loc3 = (long int)loc1*(long int)loc2 % hashtable->nlist ; -+loc=(int)loc3; #if MYDEBUG > 0 fprintf(stdout, "\n loc1 = %d, loc2 = %d, loc3 = %d", loc1, loc2, loc) ; fflush(stdout) ; -@@ -51,7 +52,7 @@ - -------------------------------------------------------- - */ - #if MYDEBUG > 0 --fprintf(stdout, "\n loc1 = %d, loc2 = %d, loc3 = %ld, loc = %d", loc1, loc2, loc3, loc) ; -+fprintf(stdout, "\n hashtable->freeI2OP = %p", hashtable->freeI2OP) ; - fflush(stdout) ; - #endif - if ( (i2op = hashtable->freeI2OP) == NULL ) { -@@ -159,10 +160,11 @@ - #endif - loc1 = (key1 + 1) % hashtable->nlist ; - loc2 = (key2 + 1) % hashtable->nlist ; --long int loc3 = (long int)loc1*(long int)loc2 % hashtable->nlist ; --loc =(int) loc3; -+/*loc = (loc1*loc2) % hashtable->nlist ;*/ -+long int loc3 = (long int)loc1*(long int)loc2 % hashtable->nlist ; -+loc=(int)loc3; - #if MYDEBUG > 0 --fprintf(stdout, "\n loc1 = %d, loc2 = %d, loc3 = %ld, loc = %d", loc1, loc2, loc3, loc) ; -+fprintf(stdout, "\n loc1 = %d, loc2 = %d, loc3 = %d", loc1, loc2, loc) ; - fflush(stdout) ; - #endif - /* -@@ -231,7 +233,9 @@ +@@ -229,7 +233,9 @@ } loc1 = (key1 + 1) % hashtable->nlist ; loc2 = (key2 + 1) % hashtable->nlist ;