16#ifndef RAPIDJSON_CLZLL_H_
17#define RAPIDJSON_CLZLL_H_
19#include "../rapidjson.h"
24#pragma intrinsic(_BitScanReverse64)
26#pragma intrinsic(_BitScanReverse)
33#if (defined(__GNUC__) && __GNUC__ >= 4) || RAPIDJSON_HAS_BUILTIN(__builtin_clzll)
34#define RAPIDJSON_CLZLL __builtin_clzll
45 _BitScanReverse64(&r, x);
48 if (_BitScanReverse(&r,
static_cast<uint32_t>(x >> 32)))
52 _BitScanReverse(&r,
static_cast<uint32_t>(x & 0xFFFFFFFF));
58 while (!(x & (
static_cast<uint64_t>(1) << 63))) {
67#define RAPIDJSON_CLZLL RAPIDJSON_NAMESPACE::internal::clzll
Lecteur des fichiers de maillage via la bibliothèque LIMA.
#define RAPIDJSON_ASSERT(x)
Assertion.
#define RAPIDJSON_NAMESPACE_BEGIN
provide custom rapidjson namespace (opening expression)
#define RAPIDJSON_NAMESPACE_END
provide custom rapidjson namespace (closing expression)