Macaulay2 Engine
Loading...
Searching...
No Matches

◆ div_by() [2/2]

int32_t safe::div_by ( int32_t & x,
int32_t y,
const char * msg )
inlinestatic

Definition at line 274 of file overflow.hpp.

275{
276 if
277 expect_false((uint32_t)x == -(uint32_t)x && x < 0 && y == -1) ov(msg);
278 return x /= y;
279}
return(void *) result
void ov(const char *msg)
Definition overflow.cpp:5
volatile int x
#define expect_false(x)
Definition overflow.hpp:66

References expect_false, ov(), and x.

Referenced by div_by(), and monomialOrderMake().