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

◆ div() [2/2]

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

Definition at line 263 of file overflow.hpp.

264{
265 if
266 expect_false((uint32_t)x == -(uint32_t)x && x < 0 && y == -1) ov(msg);
267 return x / y;
268}
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(), and main().