MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / floor

Method floor

dnn/include/megdnn/dtype/bfloat16.hpp:1133–1137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1131 /// \param arg value to round
1132 /// \return rounded value
1133 MEGDNN_HOST MEGDNN_DEVICE static bfloat16 floor(bfloat16 arg) {
1134 return bfloat16(
1135 binary_t(),
1136 round_bfloat16<std::round_toward_neg_infinity>(arg.data_));
1137 }
1138
1139 /// Ceiling implementation.
1140 /// \param arg value to round

Callers

nothing calls this directly

Calls 2

bfloat16Class · 0.85
binary_tClass · 0.70

Tested by

no test coverage detected