MCPcopy Create free account
hub / github.com/rsc/tmp / ShiftRightAndRound

Function ShiftRightAndRound

ftoa/abseil/charconv.cc:452–494  ·  view source on GitHub ↗

Returns the given uint128 shifted to the right by `shift` bits, and rounds the remaining bits using round_to_nearest logic. The value is returned as a uint64_t, since this is the type used by this library for storing calculated floating point mantissas. It is expected that the width of the input value shifted by `shift` will be the correct bit-width for the target mantissa, which is strictly nar

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

Calls 1

uint128Struct · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…