ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
overflow.h File Reference

✅ Safe Integer Arithmetic and Overflow Detection More...

Go to the source code of this file.

Macros

#define SIZE_MUL_SAFE(a, b)   (size_mul_would_overflow(a, b) ? SIZE_MAX : (a) * (b))
 Multiply with overflow check inline (macro form for tight loops)
 
#define SIZE_ADD_SAFE(a, b)   (size_add_would_overflow(a, b) ? SIZE_MAX : (a) + (b))
 Add with overflow check inline (macro form for tight loops)
 

Detailed Description

✅ Safe Integer Arithmetic and Overflow Detection

Definition in file overflow.h.