From patchwork Wed Sep 17 00:01:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 37493 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EEC6320549 for ; Wed, 17 Sep 2014 00:02:02 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id mc6sf333311lab.2 for ; Tue, 16 Sep 2014 17:02:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=p7vjNDwgB2hSd/lhX+7hgwTyfxf5tjEZspz97urlVh4=; b=Z08zYNTmZ9SNhCj8SCBqn42mLvgvJ5y7K/fD020S+Nwg8duOu+8u8OAB9ivQbnRQAf bBdfTMmHUE4VFOWsysD82ecNkgTaeE1fbQJjukOW1TtbmB1ueq0JfaJLPM2RSP0tbOVy 9WuCvfQHpiaV++LLZsSQPXXRY6HRxuJN/0nUp0ZRw8KVeZPn7L2+ySTvIGb5vAmvQPS2 dvgif9XNA3uWLluSbB/QXo/wCy+R6wMMZ3/d04gCQElzxctYqy6+z0nnSatJG6Nilcla y5JUYovN7ie22aexUTPtUEjhxYJheWYn5BJanmOi0JGvyGtgumqNaZ8CTEbsVZf0Gv7L R8YA== X-Gm-Message-State: ALoCoQnQtk7j6/I3NOoDSp0LIeNl7cbe0PWlwXKw/4vV/VW9GBexlDVoNvedGyEWZwlAvJtIZ5bT X-Received: by 10.180.88.8 with SMTP id bc8mr263701wib.0.1410912121807; Tue, 16 Sep 2014 17:02:01 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.74 with SMTP id w10ls56354laj.99.gmail; Tue, 16 Sep 2014 17:02:01 -0700 (PDT) X-Received: by 10.112.14.199 with SMTP id r7mr38179297lbc.58.1410912121589; Tue, 16 Sep 2014 17:02:01 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by mx.google.com with ESMTPS id f12si26308697lbo.96.2014.09.16.17.02.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Sep 2014 17:02:01 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by mail-lb0-f176.google.com with SMTP id z11so809073lbi.7 for ; Tue, 16 Sep 2014 17:02:01 -0700 (PDT) X-Received: by 10.112.87.69 with SMTP id v5mr37775624lbz.15.1410912121181; Tue, 16 Sep 2014 17:02:01 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp489835lbb; Tue, 16 Sep 2014 17:02:00 -0700 (PDT) X-Received: by 10.224.55.19 with SMTP id s19mr10081877qag.72.1410912119966; Tue, 16 Sep 2014 17:01:59 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id n20si20960298qay.56.2014.09.16.17.01.59 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 16 Sep 2014 17:01:59 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XU2h3-0007E3-Qf; Wed, 17 Sep 2014 00:01:57 +0000 Received: from mail-qa0-f44.google.com ([209.85.216.44]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XU2gx-0007Dy-CP for lng-odp@lists.linaro.org; Wed, 17 Sep 2014 00:01:51 +0000 Received: by mail-qa0-f44.google.com with SMTP id w8so836147qac.17 for ; Tue, 16 Sep 2014 17:01:46 -0700 (PDT) X-Received: by 10.224.38.10 with SMTP id z10mr51992302qad.52.1410912106142; Tue, 16 Sep 2014 17:01:46 -0700 (PDT) Received: from fedora1.holmesfamily.ws (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by mx.google.com with ESMTPSA id q90sm9565809qgd.4.2014.09.16.17.01.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 Sep 2014 17:01:45 -0700 (PDT) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Tue, 16 Sep 2014 20:01:21 -0400 Message-Id: <1410912081-30912-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] odp_coremask.c: Use 1ULL for 64bit shifts X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mike.holmes@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Mike Holmes --- Unless specified "1" is taken as 32bits and core can be upto 63 platform/linux-generic/odp_coremask.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/odp_coremask.c b/platform/linux-generic/odp_coremask.c index c55eb72..c7438cc 100644 --- a/platform/linux-generic/odp_coremask.c +++ b/platform/linux-generic/odp_coremask.c @@ -64,7 +64,7 @@ void odp_coremask_set(int core, odp_coremask_t *mask) return; } - mask->_u64[0] |= (1 << core); + mask->_u64[0] |= (1ULL << core); } void odp_coremask_clr(int core, odp_coremask_t *mask) @@ -77,7 +77,7 @@ void odp_coremask_clr(int core, odp_coremask_t *mask) return; } - mask->_u64[0] &= ~(1 << core); + mask->_u64[0] &= ~(1ULL << core); }