Revision: 11875
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=11875&view=rev
Author:   amaxwell
Date:     2007-12-11 22:32:36 -0800 (Tue, 11 Dec 2007)

Log Message:
-----------
Use superclass' -hash for non-ppc32 platforms.

Modified Paths:
--------------
    trunk/bibdesk/BibItem.m

Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m     2007-12-12 06:19:45 UTC (rev 11874)
+++ trunk/bibdesk/BibItem.m     2007-12-12 06:32:36 UTC (rev 11875)
@@ -497,12 +497,15 @@
        return YES;
 }
 
+#ifdef __ppc__
 - (unsigned int)hash{
-    // optimized hash from 
http://www.mulle-kybernetik.com/artikel/Optimization/opti-7.html
+    // Optimized hash from 
http://www.mulle-kybernetik.com/artikel/Optimization/opti-7.html (for ppc).  
Use super's hash implementation on other architectures.
+
     // note that BibItems are used in hashing collections and so -hash must 
not depend on mutable state
     return( ((unsigned int) self >> 4) | 
             (unsigned int) self << (32 - 4));
 }
+#endif
 
 #pragma mark -
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to