MCPcopy Create free account
hub / github.com/MhLiao/TextBoxes_plusplus / SignAndMagnitudeToBiased

Method SignAndMagnitudeToBiased

src/gtest/gtest.h:7121–7129  ·  view source on GitHub ↗

Converts an integer from the sign-and-magnitude representation to the biased representation. More precisely, let N be 2 to the power of (kBitCount - 1), an integer x is represented by the unsigned number x + N. For instance, -N + 1 (the most negative number representable using sign-and-magnitude) is represented by 1; 0 is represented by N; and N - 1 (the biggest number representable using

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected