From patchwork Thu Feb 1 10:33:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 85123 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C35603858017 for ; Thu, 1 Feb 2024 10:33:43 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 700663858D37 for ; Thu, 1 Feb 2024 10:33:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 700663858D37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 700663858D37 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706783595; cv=none; b=oAxINDXUolgIFDsd8EwcGlqiiPR6BMjzQvXTbHANoZOqsjQDPGYkyZgwZ1JKpJACHNncASmakBK0TCSzIEgP/vN0gafd9GVdKKMHwkvuo5qLTVV9pBoaU4SMu+X9J0COXKa3DH2Yo4S3MeEcXUxXtZ1I8KUPSFFQK1bxVqkbSBc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706783595; c=relaxed/simple; bh=xiiLlTBd7qYzs1DQpxeJ4oI1GFd5ouTqWCCCh/9tbsU=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=clpGslHC+JhZo/A12xc1aRMDcjTEweeG1QJ0y7IA+DwkHfjOA4/JWJrnUc/ssfAD4222lzDbxJJJUYBgd8ihqZQalUcXxfxQzL3ChMGBIG0JurvLGa7WlItTIZywnGwzTLPnSj0n2PiU55xZ2mCnkcHNAFy7RFvdBb/KZibpHdQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706783593; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=CPlGbuqsl+IbyGN99SovmyO2G+rO7MXi1qMlfm0jAW0=; b=eWbvr2U4ikjnZIqZIIG8yglWEbbJvr6YIFzO53ArVXuCfF7qVvCoZUKVZlghYwLZZJM2Sa FDJWmNrtzA80DmSw/HlA28o7jmE/j48D70cO7CEVl1oJ1BGh24t70mQu6WubAwZUlmrgg0 lrWd8bUXCgdYF2GojLbCZrn2/VuT3Uk= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-508-lARNkfoYMKmriaedGnyO_A-1; Thu, 01 Feb 2024 05:33:09 -0500 X-MC-Unique: lARNkfoYMKmriaedGnyO_A-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A8AD2837224; Thu, 1 Feb 2024 10:33:09 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.70]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6A1971121306; Thu, 1 Feb 2024 10:33:09 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 411AX1Vt3133652 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 1 Feb 2024 11:33:02 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 411AX0523133651; Thu, 1 Feb 2024 11:33:00 +0100 Date: Thu, 1 Feb 2024 11:33:00 +0100 From: Jakub Jelinek To: Mark Wielaard , Joseph Myers Cc: libc-alpha@sourceware.org Subject: [PATCH] Fix up stdbit.texi Message-ID: References: <7aa693ad-514e-7b7a-8d3-2c59af649ca@redhat.com> <1b65b9a1-2ae6-52f-c352-8ae2ba52ee24@redhat.com> <23ea145a-5250-3770-9789-c48ea4b417eb@redhat.com> <7bc9dd4-8e6c-a942-8394-e2c856bd8b6@redhat.com> <20240201101253.GA867@gnu.wildebeest.org> MIME-Version: 1.0 In-Reply-To: <20240201101253.GA867@gnu.wildebeest.org> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-10.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Jakub Jelinek Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org On Thu, Feb 01, 2024 at 11:12:53AM +0100, Mark Wielaard wrote: > > +a compiler with support for > > +@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html@code{__builtin_stdc_bit_ceil}}, > > +etc.@:, built-in functions such as GCC 14.1 or later > > +any unsigned integer type those built-in functions support. > > +In GCC 14.1 that includes support for @code{unsigned __int128} and > > +@code{unsigned _BitInt(@var{n})} if supported by the target. > > > > @deftypefun {unsigned int} stdc_leading_zeros_uc (unsigned char @var{x}) > > @deftypefunx {unsigned int} stdc_leading_zeros_us (unsigned short @var{x}) > > make pdf didn't like that new @uref construct: > https://builder.sourceware.org/buildbot/#/builders/264/builds/282 > https://builder.sourceware.org/buildbot/api/v2/logs/7481911/raw Ouch, sorry. The following patch should fix that, at least make subdirs=manual pdf works fine then and result looks expectedly. Jakub diff --git a/manual/stdbit.texi b/manual/stdbit.texi index 8688930f12..6c75ed9a20 100644 --- a/manual/stdbit.texi +++ b/manual/stdbit.texi @@ -34,7 +34,7 @@ the functions but without any suffix such as @samp{_uc}. The type-generic macro can only be used with an argument of an unsigned integer type with a width of 8, 16, 32 or 64 bits, or when using a compiler with support for -@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html@code{__builtin_stdc_bit_ceil}}, +@uref{https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html,@code{__builtin_stdc_bit_ceil}}, etc.@:, built-in functions such as GCC 14.1 or later any unsigned integer type those built-in functions support. In GCC 14.1 that includes support for @code{unsigned __int128} and