From fb6d8cd8955f8e0c975d8ffdca5e54c449100c16 Mon Sep 17 00:00:00 2001 From: tg Date: Thu, 27 Aug 2009 16:03:52 +0000 Subject: [PATCH] =?UTF-8?q?this=20is=20Korn=20Shell,=20not=20C=20=E2=80=93?= =?UTF-8?q?=20less=20ops=20are=20always=20faster=20than=20many=20fast=20op?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dot.mkshrc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dot.mkshrc b/dot.mkshrc index fdb37b7..8643bd2 100644 --- a/dot.mkshrc +++ b/dot.mkshrc @@ -1,4 +1,4 @@ -# $MirOS: src/bin/mksh/dot.mkshrc,v 1.45 2009/06/22 17:38:39 tg Rel $ +# $MirOS: src/bin/mksh/dot.mkshrc,v 1.46 2009/08/27 16:03:52 tg Exp $ #- # Copyright (c) 2002, 2003, 2004, 2006, 2007, 2008, 2009 # Thorsten Glaser @@ -283,8 +283,7 @@ function Lcdbhash_add { typeset -i i=0 n=${#s} while (( i < n )); do - (( Lcdbhash_result = ((Lcdbhash_result << 5) + \ - Lcdbhash_result) ^ 1#${s:(i++):1} )) + (( Lcdbhash_result = (Lcdbhash_result * 33) ^ 1#${s:(i++):1} )) done [[ $u = *U* ]] && set -U