CESNET / Nemea-Framework

Nemea framework is the heart of the Nemea system. It contains implementation of common communication interfaces, UniRec data format and useful datastructures and algorithms.
11 stars 24 forks source link

libtrap: add missing atomic_ops for turris #144

Closed cejkato2 closed 4 years ago

cejkato2 commented 4 years ago

Test build using Turris SDK revealed some missing atomic functions. This patch defines:

uint64_t __sync_add_and_fetch_8(uint64_t *ptr, uint64_t value);
uint64_t __sync_or_and_fetch_8(uint64_t *ptr, uint64_t value);
uint64_t __sync_and_and_fetch_8(uint64_t *ptr, uint64_t value);

when configure script detects missing atomops, e.g., for turris.