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

Function SIValue_Multiply

src/value.c:498–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498SIValue SIValue_Multiply(const SIValue a, const SIValue b) {
499 /* Only construct an integer return if both operands are integers. */
500 if(SI_TYPE(a) & SI_TYPE(b) & T_INT64) {
501 return SI_LongVal(a.longval * b.longval);
502 }
503 /* Return a double representation. */
504 return SI_DoubleVal(SI_GET_NUMERIC(a) * SI_GET_NUMERIC(b));
505}
506
507SIValue SIValue_Divide(const SIValue a, const SIValue b) {
508 if(SI_TYPE(a) & SI_TYPE(b) & T_INT64) {

Callers 2

AR_MULFunction · 0.85
AR_ABSFunction · 0.85

Calls 2

SI_LongValFunction · 0.85
SI_DoubleValFunction · 0.85

Tested by

no test coverage detected