tor  0.4.0.1-alpha
Functions
addsub.c File Reference
#include "lib/intmath/addsub.h"
#include "lib/cc/compat_compiler.h"

Go to the source code of this file.

Functions

uint32_t tor_add_u32_nowrap (uint32_t a, uint32_t b)
 

Detailed Description

Helpers for addition and subtraction.

Currently limited to non-wrapping (saturating) addition.

Definition in file addsub.c.