MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / SIValue_Divide

Function SIValue_Divide

src/value.c:507–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505}
506
507SIValue SIValue_Divide(const SIValue a, const SIValue b) {
508 if(SI_TYPE(a) & SI_TYPE(b) & T_INT64) {
509 return SI_LongVal(SI_GET_NUMERIC(a) / SI_GET_NUMERIC(b));
510 }
511 return SI_DoubleVal(SI_GET_NUMERIC(a) / (double)SI_GET_NUMERIC(b));
512}
513
514// Calculate a mod n for integer and floating-point inputs.
515SIValue SIValue_Modulo(const SIValue a, const SIValue n) {

Callers 1

AR_DIVFunction · 0.85

Calls 2

SI_LongValFunction · 0.85
SI_DoubleValFunction · 0.85

Tested by

no test coverage detected