MCPcopy Create free account
hub / github.com/google/gapid / Invert

Method Invert

core/codegen/arithmetic.go:56–58  ·  view source on GitHub ↗

Invert returns ~x.

(x *Value)

Source from the content-addressed store, hash-verified

54
55// Invert returns ~x.
56func (b *Builder) Invert(x *Value) *Value {
57 return b.val(x.ty, b.llvm.CreateNot(x.llvm, ""))
58}
59
60// Negate returns -x. The type of x must be a signed integer or float.
61func (b *Builder) Negate(x *Value) *Value {

Callers 1

hash64BitMethod · 0.80

Calls 1

valMethod · 0.95

Tested by

no test coverage detected