Blender Git Loki

Git Commits -> Revision ba3ae9e

Revision ba3ae9e by Bastien Montagne (master)
May 9, 2016, 15:03 (GMT)
Cleanup and refactor our atomic library.

This commit:
* Removes most of all dirty internal details from public atomi_ops.h file, and move them into /intern private subdir.
* Removes unused 'architectures' (__apple__ and jemalloc).
* Split each implementation into its own file.
* Makes use of C99's limits.h system header to determine pointer and int size, instead of using fix hardcoded list of architectures.
* Introduces new 'faked' atomics ops for floats.

Note that we may add a lot more real and 'faked' atomic operations over integers and floats
(multiplication, division, bitshift, bitwise booleans, etc.), as needs arise.

Reviewers: sergey, campbellbarton

Differential Revision: https://developer.blender.org/D1982

Commit Details:

Full Hash: ba3ae9ea273f7e596607281ffd77871e5a44fca7
Parent Commit: 299a25c
Lines Changed: +590, -464

4 Added Paths:

/intern/atomic/intern/atomic_ops_ext.h (+146, -0) (View)
/intern/atomic/intern/atomic_ops_msvc.h (+102, -0) (View)
/intern/atomic/intern/atomic_ops_unix.h (+180, -0) (View)
/intern/atomic/intern/atomic_ops_utils.h (+110, -0) (View)

2 Modified Paths:

/intern/atomic/atomic_ops.h (+51, -454) (Diff)
/source/blender/blenkernel/intern/pbvh.c (+1, -10) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021