Tor  0.4.7.0-alpha-dev
Functions
addsub.c File Reference

Helpers for addition and subtraction. More...

#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.