Skip to content

P3642 R7 Carry-less product: std::clmul #2279

Open

Description

@wg21bot

P3642R0 Carry-less product: std::clmul (Jan Schultke)

Activity

  1. added this to the 2025-telecon milestone on Mar 19, 2025
  2. moved this to ready for review in SG6on May 30, 2025
  3. moved this from ready for review to LEWGI joint session(s) in SG6on May 30, 2025
  4. mattkretz commented on May 30, 2025

    @mattkretz
    Member
  5. mattkretz commented on Jun 19, 2025

    @mattkretz
    Member

    P3642R0: Carry-less product: std::clmul

    2025-06-19 SG6 Minutes

    Chair: Matthias Kretz

    Champion: Jan Schultke

    Summary

    SG6 had no numerics concerns but recommended to include std::simd overloads into the paper.

    Polls

    POLL: Forward P3642R1 to LEWG with the expectation that the next revision includes std::simd overloads.

    SF F N A SA
    7 4 0 0 0
  6. added
    needs-revisionPaper needs changes before it can proceed
    and removed
    SG6Numerics
    on Jun 19, 2025
  7. mattkretz commented on Jun 19, 2025

    @mattkretz
    Member

    @nliber @billy-baker Go directly to LEWG?

  8. added
    LEWGLibrary Evolution
    and removed
    LEWGILibrary Evolution Incubator
    on Jun 19, 2025
  9. billy-baker commented on Jun 19, 2025

    @billy-baker
    Collaborator

    LEWGI does not need to see the current or updated version with simd supprt.

  10. 21 remaining items

  11. added and removed
    lwg-pendingLWG Chair needs to disposition
    on Jun 12, 2026
  12. wg21bot commented on Jul 17, 2026

    @wg21bot
    CollaboratorAuthor

    P3642R6 Carry-less product: std::clmul (Jan Schultke)

  13. changed the title [-]P3642 R5 Carry-less product: std::clmul[/-] [+]P3642 R6 Carry-less product: std::clmul[/+] on Jul 17, 2026
  14. inbal2l commented on Sep 21, 2026

    @inbal2l
    Member

    2026-09-01 Library Evolution Telecon

    P3642R6: Carry-less product: std::clmul

    2026-09-01 Library Evolution Telecon Minutes

    Champion: Jan Schultke
    Chair: Andreas Weis
    Minute Taker: Nicolas Morales

    Summary

    After LWG review, most changes were minor, but a few design aspects were raised:

    • wide_result<T> as an aggregate: supports aggregate initialization and structured bindings, but orders low bits before high bits, which is counterintuitive and could lead to bugs.
    • Alignment: whether wide_result<uint64_t> should be overaligned (e.g. to 128 bits); the view was to leave this to the implementation.
    • Ordering guarantees: members are exposition-only but observable via reinterpret_cast / bit_cast. Wording option A gives no order guarantee; option B is a hard bit_cast guarantee that could force a swap on some architectures.

    ACTION: We will continue discussion on the structure of the aggregate and wording related during next meeting.

    Poll not taken (as more discussion is needed): Approve the changes in "P3642R6: Carry-less product: std::clmul" and send the paper back to LWG for C++29 (to be confirmed by an EP).

    No polls were taken.

    Next Steps

    LEWG will continue discussing the design in a future meeting.

  15. inbal2l commented on Sep 21, 2026

    @inbal2l
    Member

    2026-09-08 Library Evolution Telecon

    P3642R6: Carry-less product: std::clmul

    2026-09-08 Library Evolution Telecon Minutes

    Champion: Jan Schultke
    Chair: Inbal Levi
    Minute Taker: Mark Hoemmen

    Summary

    Following reflector feedback, the author proposed dropping the integer-interoperability guarantee (Section 6.3) that made bit_cast of a wide_result part of the API, since that breaks encapsulation and reduces implementer freedom; a conversion operator can be added later instead. The proposal is to turn the wide_result struct into a class exposing public high / low member functions.

    POLL: Remove the "3 recommended practice" to not indicate any implementation strategy. (3 Recommended practice: the member low-bits should precede the member high-bits in all specializations of wide_result if endian::native == endian::little ([bit.endian]).)

    SF F N A SA
    2 7 2 1 0

    Attendance: 18
    Author's Position: A
    Outcome: Consensus in favor.

    POLL: Rename the member functions from "high_bits" / "low_bits" into "high" and "low".

    SF F N A SA
    3 8 2 0 0

    Attendance: 18
    Author's Position: F
    Outcome: Strong consensus in favor.

    POLL: Apply the changes above (apply section 8 wording option A, the rename of the member functions from "high_bits" / "low_bits" into "high" and "low", and remove the "3 recommended practice") and re-send the updated P3642R7 paper to LWG for C++29 (to be confirmed by an EP).

    SF F N A SA
    4 9 1 0 0

    Attendance: 18
    Author's Position: SF
    Outcome: Consensus in favor.

    Next Steps

    The paper will be updated to P3642R7 with the approved changes and re-sent to LWG for C++29 (to be confirmed by an EP).

  16. inbal2l commented on Sep 21, 2026

    @inbal2l
    Member

    Poll was added to "2026-09 Library Evolution Polls" paper (P4335).

  17. wg21bot commented on Sep 23, 2026

    @wg21bot
    CollaboratorAuthor

    P3642R7 Carry-less product: std::clmul (Jan Schultke)

  18. changed the title [-]P3642 R6 Carry-less product: std::clmul[/-] [+]P3642 R7 Carry-less product: std::clmul[/+] on Sep 23, 2026
  19. inbal2l commented on Oct 27, 2026

    @inbal2l
    Member

    P3642R7 forwarded to LWG in "2026-09 Library Evolution Polls" (outcomes: P4336).

  20. added
    lwg-pendingLWG Chair needs to disposition
    and removed
    LEWGLibrary Evolution
    on Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

C++29Targeted at C++29ISShip vehicle: ISLWGLibrarylwg-pendingLWG Chair needs to disposition

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions