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

Function do_mod

src/opr/test/basic_arith/elemwise.cpp:23–25  ·  view source on GitHub ↗

======================= opr special impls ======================= */

Source from the content-addressed store, hash-verified

21
22/* ======================= opr special impls ======================= */
23float do_mod(float a, float b) {
24 return std::fmod(a, b);
25}
26
27int do_mod(int a, int b) {
28 return (a % b + b) % b;

Callers

nothing calls this directly

Calls 1

fmodFunction · 0.50

Tested by

no test coverage detected