From nobody Sat Oct 7 21:37:30 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S2zCv1mjHz4wVNh; Sat, 7 Oct 2023 21:37:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S2zCv1Hhnz4ZVX; Sat, 7 Oct 2023 21:37:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696714651; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Y17bIXKOjibYNTp9AJothV1ySmNXV4SJ3uElbViNuOs=; b=IJc5aNjdw8i4bqSGQuQNO1+O4AExz8Z3vBb0hS4UpP4uBo6sXv0omrGkSEnhq65z0PFxHc wXkx3vpdtrFMIsU8Sv2MlVIk6KPnzzgpy/2v1tO0Hn2w0P6PUpHVlZLiph3xQxV+jQVM8b CM5dEwbxJ1HfUDKifN8C993LAsugCRN5+gzi0FVnja5/zKDsRHl+gqm0P+AODXYdj9Olmf /z1zgR0t8FWk3UB07iGoGaM7ayis9PN1OvdIVdS5sG8ZGOEV6TP5UbrJQnwJKXSJJMtoXE yw/4b94f5TtZQL4MQWanO0L+7k5RvFeD7ejaFkqyUr1D2qhxSeWA3LifcuXbRw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696714651; a=rsa-sha256; cv=none; b=Kgkpd6tZi7Je8N785C3ve9e1U7/Akzt1THaWtodT6KZ4MArZLxkcDW7/bdrIUTYP1iHK84 fXWY5X0GK0A2dvPxJDLLuX7blo9iM04vNxMZUYvtPC+kML3nhRYadDV5Sdwmv1t3HLLp2g AHitqYsuy61DQmvrfLdKohE97I3alvGKFWbzVJ8i1ilOrg/6LggzpJF4NBYI6ke3zcxVLM 1AP0SG4HtiC1AQKItFf2CqgnpnTz3xxOaIRmqmudtKddAouwahpzIe9mEQPmIxLt7MLH3A posLYKZw7sD+lZrb/clcNIs06HeN6We/RiSI3HB4103ovvg0fo8JJROenEI/7g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696714651; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Y17bIXKOjibYNTp9AJothV1ySmNXV4SJ3uElbViNuOs=; b=Qo0BdZHqdCoc1uFykjMffuDqI2X/xH98H1wijfDTO1MCfuVxZY6+3r0uBByL8k0Nn8vjEM HocXuC7JqDGgncib58dHnk1nS2aaEYqzdAp/bjk9PiUe8wPzvnixMC/4ixuTWuYXPh2PX3 RstabaPwc7jSVB444vv7ateWlOWpnYOSNdNhcpRI+dqGeAKLx4OXJEV0H5+BrSApoSoAIE ibeomzuxau6saQ7I784hVj0Bp4H+UEtWdS2vHudkDkkNWvBGQqf1yAgCCFcwOmtcSOHRoP ElrTQ0khaNZbCHSqeba33KHVHlVTodH2Y19PxNBAsc2Z7EG43iuhUG5PogG3hQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S2zCv0M5LzmrZ; Sat, 7 Oct 2023 21:37:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 397LbUIG007725; Sat, 7 Oct 2023 21:37:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 397LbUCU007722; Sat, 7 Oct 2023 21:37:30 GMT (envelope-from git) Date: Sat, 7 Oct 2023 21:37:30 GMT Message-Id: <202310072137.397LbUCU007722@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: 6d3296f16a06 - main - teken: use __bitcount() instead of bitcount() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6d3296f16a06bcaa49918799e683936711dcf9c9 Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=6d3296f16a06bcaa49918799e683936711dcf9c9 commit 6d3296f16a06bcaa49918799e683936711dcf9c9 Author: Christos Margiolis AuthorDate: 2023-10-07 21:36:59 +0000 Commit: Christos Margiolis CommitDate: 2023-10-07 21:36:59 +0000 teken: use __bitcount() instead of bitcount() The use of bitcount() triggered a build error because it couldn't be located. __bitcount() on the other hand is defined in sys/types.h, which is included in teken/teken.h. MFC after: 2 weeks --- sys/teken/teken_wcwidth.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/teken/teken_wcwidth.h b/sys/teken/teken_wcwidth.h index f5a23dbc9679..bc992e1ef5d8 100644 --- a/sys/teken/teken_wcwidth.h +++ b/sys/teken/teken_wcwidth.h @@ -129,7 +129,7 @@ teken_utf8_bytes_to_codepoint(uint8_t bytes[4], int nbytes) { /* Check for malformed characters. */ - if (bitcount(bytes[0] & 0xf0) != nbytes) + if (__bitcount(bytes[0] & 0xf0) != nbytes) return (TEKEN_UTF8_INVALID_CODEPOINT); switch (nbytes) {