Skip to content

cmd/link: use m to store div/mod denominator on arm #6699

Closed
@rsc

Description

@rsc
Bring back CL 19810043.
However, also:

1. Disallow use of DIV/MOD in NOSPLIT functions.
That will catch functions that are running without a valid m.

2. Rewrite the functions that are caught (usleep, various 64-bit atomics)
to use magic multiplies instead of constant division.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions