mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 23:32:59 +00:00
[LIBXML2] Update to version 2.9.10. CORE-16952
This commit is contained in:
parent
b82bf8ce16
commit
f22fa382fe
65 changed files with 2245 additions and 2056 deletions
7
sdk/lib/3rdparty/libxml2/timsort.h
vendored
7
sdk/lib/3rdparty/libxml2/timsort.h
vendored
|
@ -59,7 +59,7 @@ typedef unsigned __int64 uint64_t;
|
|||
#define SORT_SWAP(x,y) {SORT_TYPE __SORT_SWAP_t = (x); (x) = (y); (y) = __SORT_SWAP_t;}
|
||||
|
||||
|
||||
/* Common, type-agnosting functions and constants that we don't want to declare twice. */
|
||||
/* Common, type-agnostic functions and constants that we don't want to declare twice. */
|
||||
#ifndef SORT_COMMON_H
|
||||
#define SORT_COMMON_H
|
||||
|
||||
|
@ -74,7 +74,7 @@ typedef unsigned __int64 uint64_t;
|
|||
static int compute_minrun(const uint64_t);
|
||||
|
||||
#ifndef CLZ
|
||||
#ifdef __GNUC__
|
||||
#if defined(__GNUC__) && ((__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ > 3))
|
||||
#define CLZ __builtin_clzll
|
||||
#else
|
||||
|
||||
|
@ -404,7 +404,8 @@ static void TIM_SORT_MERGE(SORT_TYPE *dst, const TIM_SORT_RUN_T *stack, const in
|
|||
j = curr + A;
|
||||
k = curr + A + B;
|
||||
|
||||
while (k-- > curr) {
|
||||
while (k > curr) {
|
||||
k--;
|
||||
if ((i > 0) && (j > curr)) {
|
||||
if (SORT_CMP(dst[j - 1], storage[i - 1]) > 0) {
|
||||
dst[k] = dst[--j];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue