MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / IsSet

Function IsSet

tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc:2585–2587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2583// Checks if the `index` bit of `val` is set.
2584template <class T>
2585constexpr bool IsSet(const T &val, unsigned index) {
2586 return (val & (1 << index)) != 0;
2587}
2588
2589// Sets the `index` bit of `val`.
2590template <class T>

Callers 3

CopyBitFunction · 0.70
BuildDenseSliceSpecFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected