Skip to content

[rand.eng.mers] should use math font for (1u<<w)-1u #4292

@jwakely

Description

@jwakely

In [rand.eng.mers] p4 the expression (1u<<w) - 1u is used repeatedly. If w==numeric_limits<unsigned>::digits that is ill-formed.

In the synopsis above we use { return 2w - 1; } despite that being actual C++ code, so why can't we do the same in the prose that follows it?

i.e. replace the code font expressions like a <= (1u<<w) - 1u with a ≤ 2w - 1 to be clear that the rules of C++ unsigned integer arithmetic do not apply.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy