Received: by 10.223.176.46 with SMTP id f43csp973435wra; Wed, 24 Jan 2018 08:40:10 -0800 (PST) X-Google-Smtp-Source: AH8x225yIpOzC3vL0OT5yTz/dW08ItIbvPOnw9wV1RQKkvbtU8WM2395xbX7fBGLZA+s5Qg+YgL7 X-Received: by 10.99.134.194 with SMTP id x185mr11315737pgd.252.1516812010833; Wed, 24 Jan 2018 08:40:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516812010; cv=none; d=google.com; s=arc-20160816; b=oqhptLU+Dho2UjTsP/vLocqBF82g9wPJtmUz7yTOhBVfBqgeqGZi0WqaliETfsTt0i cLEcTSzHwMPpLnrFQguDaP+zgTAd8nleJMMUCMgw4WjDrMg+cX3Buj6OhDZWo5GDDe3B Gsy/O2Ya6on6afKyAjC79ADCdHmThN5pV3z9qGd1fMhsH5mcBBmIy/RBLEW92o7xA2+1 ngE7Kova3KT/QkGWv305XTOlmtaAFTXKlYzJvSdFg+t7p9uRWLfmtP9/5GrHvO7uzPVY TVGMosTw0CVkvjtEkbsgJQ2s5dXdPSSe/+f/CtKolNZkBgbpgrEkrw+76qGuzmGQzdvG IMug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:reply-to:mime-version:dkim-signature :arc-authentication-results; bh=mXXoc4zqaDmwKR/xgv5kR0DIbZ3Yqqc2x3bQPqnPVoM=; b=d6fYx0X7ZwyShd/OT06DyeT/2TXkWDx5Vpd84iiqbM9GiciHfBBkv9Z2g5rVWi4Y7g M5bbGhrVxLrFJSIkc0Q289wWsj8uPUB5IbZNJbkvPryZH54Zmrzcat0lkNdp4XjMesda rySQLJwjdbRmP5ArHmFT2FDvIob536Q/+hI0FXtT93LzhtTDKFz+sQPRmu5KVZ52LYGt VhK0v787Rz4Aj0WGI3MVeKoxTHC28rw75/NKmJrRfW9/HyM1G0ZGMMhIvfcCLicgwqg1 46iccx0hXjpLCvUInYWSm5lqlk01iBE307JkiwLL8mk5qrgJNmxMJLBUtXSY2ICswqba z/xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GOaLC1GH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si333135pgo.193.2018.01.24.08.39.56; Wed, 24 Jan 2018 08:40:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GOaLC1GH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964913AbeAXQir (ORCPT + 99 others); Wed, 24 Jan 2018 11:38:47 -0500 Received: from mail-ot0-f195.google.com ([74.125.82.195]:36645 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934320AbeAXQin (ORCPT ); Wed, 24 Jan 2018 11:38:43 -0500 Received: by mail-ot0-f195.google.com with SMTP id f100so4105108otf.3; Wed, 24 Jan 2018 08:38:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc; bh=mXXoc4zqaDmwKR/xgv5kR0DIbZ3Yqqc2x3bQPqnPVoM=; b=GOaLC1GHfM4sb0PqA3W6Y/cK5eBpeuT/JdPc6e6Rqbg8uE5UeTzK9vd/1wXmIWRUsw Xq1nVEzkGo7+2SdGBPzpRRJPHf3bj6TCs4b8Ry9w6dy1ewTClT3hhHyGGjAE1/SylFeL /DqVViXaK1k8zQmzXlBQ31HGEjKgPePsg0CyCkpJpygFc270s839yQM5UycH5iBx3I0y xRhoh1D5d/h0GVbCgHVFJW5GltDHMNv3lAdM84TLTUquYGoarJK+eHNfdCxEqY+y5/0g LJTS+GJChOhx4VIVoO294qRnlz50nUlBHaEPThTncHOAA/TYuu54vjdoivSMtHQA6R2w 3ASA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=mXXoc4zqaDmwKR/xgv5kR0DIbZ3Yqqc2x3bQPqnPVoM=; b=iS0NqeMWDobkjzeKoXTvu9eWmNpp2nFhtXeneZ1h+hctZfFIR4+v2gbUpyxIOTaANH nBW3OzXE6DbdfXgV+z5+l49DmYZmcTYZFRx7sNqm2XXGSJyjU0g/gX2OD7MYUiV1c0aW WYX6Fih8jtqXx8EVsf/YsxK2RPWJiCghZ6Xpu2nUhTHmXqeSHzqqW6nCTUafK8LPA9ZK nODSRiBaPcfM0FZPhvgrgDycwToFcy4JH7IWv9DVZFnoN0LWKFn2i6rxitvv8GN7bpbT 8KVXXIuUKEBpvnfPrMu+Wd+OgI9/tDnXbWcwQJRm95RqHVI5NxHW6RoK3DHL7VWnqp3M nV0g== X-Gm-Message-State: AKwxytcY/cM7hM6/Wl9G++g9NKJ6uWba0c5VEeT85dJ2iFBSFwmf2S68 uAS9QnZltJpJBZrBWDD1iRZ3Ngo1JCCntr0Nn40= X-Received: by 10.157.89.203 with SMTP id u11mr10319183otg.319.1516811923019; Wed, 24 Jan 2018 08:38:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.74.209.215 with HTTP; Wed, 24 Jan 2018 08:38:42 -0800 (PST) Reply-To: noloader@gmail.com In-Reply-To: <20180124090519.6680-1-ynorov@caviumnetworks.com> References: <20180124090519.6680-1-ynorov@caviumnetworks.com> From: Jeffrey Walton Date: Wed, 24 Jan 2018 11:38:42 -0500 Message-ID: Subject: Re: [PATCH RFC 0/3] API for 128-bit IO access To: Yury Norov Cc: linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, LKML , Linux Crypto Mailing List , Al Viro , Andrew Morton , Andrew Pinski , Arnd Bergmann , Catalin Marinas , "David S . Miller" , Geethasowjanya Akula , Greg Kroah-Hartman , Ingo Molnar , Kees Cook , Laura Abbott , Nicholas Piggin , Sunil Goutham , Will Deacon Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 24, 2018 at 4:05 AM, Yury Norov wrote: > > ... > With all that, this example code: > > static int __init 128bit_test(void) > { > __uint128_t v; > __uint128_t addr; > __uint128_t val = (__uint128_t) 0x1234567890abc; > ... In case it matters, you can check for GCC support of the 128-bit types in userland with: #if (__SIZEOF_INT128__ >= 16) ... #endif Also see https://gcc.gnu.org/ml/gcc-help/2015-08/msg00185.html . Jeff