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

◆ minus() [2/2]

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

Definition at line 185 of file overflow.hpp.

186{
187 int32_t z = -(uint32_t)x;
188 if
189 expect_false(z == x && x != 0) ov(msg);
190 return z;
191}
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 main(), minus(), monomialOrderDecodeToActualExponents(), and monomialOrderEncodeFromActualExponents().