From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9823 invoked by alias); 15 Nov 2013 18:48:07 -0000 Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org Received: (qmail 9809 invoked by uid 89); 15 Nov 2013 18:48:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.5 required=5.0 tests=AWL,BAYES_50,RDNS_NONE,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: mail-oa0-f42.google.com Received: from Unknown (HELO mail-oa0-f42.google.com) (209.85.219.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 15 Nov 2013 18:48:00 +0000 Received: by mail-oa0-f42.google.com with SMTP id h16so4416357oag.1 for ; Fri, 15 Nov 2013 10:47:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=yRbxOg4XfAK2TAA6dInQtf/MMYkIuHg0IppYweUWlCw=; b=lyeeKOprDDrl4R2aNgafMxaW2W9poOOqtu6RqJIsNX6/g5mhg4VFDYE6q3w5kr1mJx B6JUCvQ0Kj8IfeFj0FibvJVFpzawRwaA5q2s4jfUwBq86uegvq4yMENK6ISvw09K/vbW NroHokE7m34xTRq3k9TJiXbzJRZOvEjCi6quQ2Jqj865zchJKhgNRgOvSd4VY+p845YR L2fMJTp8tUvK83nf5FL00ZpMuw0p4uAJ32NkwRfJTNFizkKIvywOAamwWXYzkS34AyRQ Ov0k3A2B3jld6+C8RcP1TIf4NhnifexUX7ZIMFFpvn08zqVrXHgPeXGiMgAmucUBj+9F hI6A== X-Gm-Message-State: ALoCoQkELeRk6z6bhj/JCCKtMs66DFrXZUREUjk4XOoPMHrY3KtPvf/gJCp5ADNxlxBSD7b3TJ0a MIME-Version: 1.0 X-Received: by 10.60.36.133 with SMTP id q5mr8189730oej.63.1384541272316; Fri, 15 Nov 2013 10:47:52 -0800 (PST) Received: by 10.76.102.106 with HTTP; Fri, 15 Nov 2013 10:47:52 -0800 (PST) In-Reply-To: <1384464221.2484.86.camel@ubuntu-sellcey> References: <1384464221.2484.86.camel@ubuntu-sellcey> Date: Fri, 15 Nov 2013 18:48:00 -0000 Message-ID: Subject: Re: [Patch, mips] Faster strcmp for mips From: "Carlos O'Donell" To: Steve Ellcey Cc: "libc-ports@sourceware.org" Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-11/txt/msg00021.txt.bz2 On Thu, Nov 14, 2013 at 4:23 PM, Steve Ellcey wrote: > This means it could be loading bytes beyond the end of the strings being > compared but it looks like other architecture specific strcmp functions > are also doing this optimization and the newlib version of strcmp also does > this. I thought that doing so was dangerous? I'm pretty sure we've been trying to fix such "load bytes beyond the end of the string" issues because you could have a string that straddles a page boundary with the next page unmapped and such an optimized routine would fault on a read from the unmapped page. How do you plan to fix that? Cheers, Carlos.