---
name: "atomic64_add_negative"
section: "9"
platform: "linux"
package: "linux-manual-2.6.32"
version: "2.6.32-48squeeze6"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/atomic64_add_negative"
---

# atomic64\_add\_negative(9)

add and test if negative

## NAME

atomic64\_add\_negative - add and test if negative

## SYNOPSIS

**int atomic64\_add\_negative(u64** *delta***, atomic64\_t \*** *ptr***);**

## ARGUMENTS

*delta*

integer value to add

*ptr*

pointer to type atomic64\_t

## DESCRIPTION

Atomically adds *delta* to *ptr* and returns true if the result is negative, or false when result is greater than or equal to zero.

## COPYRIGHT
