public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "yann at droneaud dot fr" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/58872] New: RFC: more builtins for bit manipulation Date: Fri, 25 Oct 2013 09:29:00 -0000 [thread overview] Message-ID: <bug-58872-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58872 Bug ID: 58872 Summary: RFC: more builtins for bit manipulation Product: gcc Version: unknown Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: yann at droneaud dot fr Current bit manipulation builtins can be found in documentation: http://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html#Other-Builtins GCC could benefit of more bit manipulation builtins, for example: - rotate bit right: __builtin_ror8(uint8_t v, int count) __builtin_ror16(uint16_t v, int count) __builtin_ror32(uint32_t v, int count) __builtin_ror64(uint64_t v, int count) - rotate bit left: __builtin_rol8(uint8_t v, int count) __builtin_rol16(uint16_t v, int count) __builtin_rol32(uint32_t v, int count) __builtin_rol64(uint64_t v, int count) - reverse bit string (bit swap): __builtin_brev8(uint8_t v, int index, int count) __builtin_brev16(uint16_t v, int index, int count) __builtin_brev32(uint32_t v, int index, int count) __builtin_brev64(uint64_t v, int index, int count)
next reply other threads:[~2013-10-25 9:29 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-10-25 9:29 yann at droneaud dot fr [this message] 2013-10-25 10:15 ` [Bug c/58872] " glisse at gcc dot gnu.org 2013-10-25 12:46 ` yann at droneaud dot fr
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-58872-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).