Blender  V3.3
BLI_sort.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2013 Blender Foundation. All rights reserved. */
3 
4 #pragma once
5 
10 #include <stdlib.h>
11 
12 /* glibc 2.8+ */
13 #if defined(__GLIBC__) && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 8))
14 # define BLI_qsort_r qsort_r
15 #endif
16 
18 typedef int (*BLI_sort_cmp_t)(const void *a, const void *b, void *ctx);
19 
20 void BLI_qsort_r(void *a, size_t n, size_t es, BLI_sort_cmp_t cmp, void *thunk)
21 #ifdef __GNUC__
22  __attribute__((nonnull(1, 5)))
23 #endif
24  ;
int(* BLI_sort_cmp_t)(const void *a, const void *b, void *ctx)
Definition: BLI_sort.h:18
void BLI_qsort_r(void *a, size_t n, size_t es, BLI_sort_cmp_t cmp, void *thunk)
Definition: sort.c:79
struct AtomicSpinLock __attribute__((aligned(32))) AtomicSpinLock
static unsigned a[3]
Definition: RandGen.cpp:78
static const pxr::TfToken b("b", pxr::TfToken::Immortal)