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

Function modf

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

Extract integer and fractional parts. \param arg number to decompress \param iptr address to store integer part at \return fractional part template typename enable ::type modf(T arg, bfloat16 *iptr) { return functions::modf(arg, iptr); }

Source from the content-addressed store, hash-verified

2355// template<typename T> typename enable<bfloat16,T>::type modf(T
2356// arg, bfloat16 *iptr) { return functions::modf(arg, iptr); }
2357MEGDNN_HOST MEGDNN_DEVICE inline bfloat16 modf(bfloat16 arg, bfloat16* iptr) {
2358 return functions::modf(arg, iptr);
2359}
2360MEGDNN_HOST MEGDNN_DEVICE inline bfloat16 modf(expr arg, bfloat16* iptr) {
2361 return functions::modf(arg, iptr);
2362}

Callers 1

modfMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected