Coverage Report

Created: 2024-05-21 06:24

/src/libjxl/lib/jxl/base/bits.h
Line
Count
Source (jump to first uncovered line)
1
// Copyright (c) the JPEG XL Project Authors. All rights reserved.
2
//
3
// Use of this source code is governed by a BSD-style
4
// license that can be found in the LICENSE file.
5
6
#ifndef LIB_JXL_BASE_BITS_H_
7
#define LIB_JXL_BASE_BITS_H_
8
9
// Specialized instructions for processing register-sized bit arrays.
10
11
#include "lib/jxl/base/compiler_specific.h"
12
#include "lib/jxl/base/status.h"
13
14
#if JXL_COMPILER_MSVC
15
#include <intrin.h>
16
#endif
17
18
#include <stddef.h>
19
#include <stdint.h>
20
21
namespace jxl {
22
23
// Empty struct used as a size tag type.
24
template <size_t N>
25
struct SizeTag {};
26
27
template <typename T>
28
0
constexpr bool IsSigned() {
29
0
  // TODO(eustas): remove dupes
30
0
  return static_cast<T>(0) > static_cast<T>(-1);
31
0
}
Unexecuted instantiation: bool jxl::IsSigned<unsigned long>()
Unexecuted instantiation: bool jxl::IsSigned<unsigned int>()
32
33
// Undefined results for x == 0.
34
static JXL_INLINE JXL_MAYBE_UNUSED size_t
35
24.2k
Num0BitsAboveMS1Bit_Nonzero(SizeTag<4> /* tag */, const uint32_t x) {
36
24.2k
  JXL_DASSERT(x != 0);
37
#if JXL_COMPILER_MSVC
38
  unsigned long index;
39
  _BitScanReverse(&index, x);
40
  return 31 - index;
41
#else
42
24.2k
  return static_cast<size_t>(__builtin_clz(x));
43
24.2k
#endif
44
24.2k
}
Unexecuted instantiation: cjxl_fuzzer.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: test_image.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: decode.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: jpg.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: pgx.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: pnm.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: encode.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_jpeg_data.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_jpeg_data_reader.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_jpeg_huffman_decode.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: color_encoding_internal.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: entropy_coder.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
fields.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Line
Count
Source
35
988
Num0BitsAboveMS1Bit_Nonzero(SizeTag<4> /* tag */, const uint32_t x) {
36
988
  JXL_DASSERT(x != 0);
37
#if JXL_COMPILER_MSVC
38
  unsigned long index;
39
  _BitScanReverse(&index, x);
40
  return 31 - index;
41
#else
42
988
  return static_cast<size_t>(__builtin_clz(x));
43
988
#endif
44
988
}
Unexecuted instantiation: frame_header.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: headers.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: icc_codec.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: image_bundle.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: image_metadata.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: loop_filter.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: luminance.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: encoding.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: modular_image.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: transform.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: quant_weights.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: quantizer.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: decode_to_jpeg.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_jpeg_data.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_jpeg_data_writer.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: jpeg_data.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_fast_lossless.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_fields.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_frame.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_group.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_heuristics.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_icc_codec.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
enc_modular.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Line
Count
Source
35
156
Num0BitsAboveMS1Bit_Nonzero(SizeTag<4> /* tag */, const uint32_t x) {
36
156
  JXL_DASSERT(x != 0);
37
#if JXL_COMPILER_MSVC
38
  unsigned long index;
39
  _BitScanReverse(&index, x);
40
  return 31 - index;
41
#else
42
156
  return static_cast<size_t>(__builtin_clz(x));
43
156
#endif
44
156
}
Unexecuted instantiation: enc_patch_dictionary.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_progressive_split.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_quant_weights.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_splines.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_toc.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_xyb.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
enc_encoding.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Line
Count
Source
35
364
Num0BitsAboveMS1Bit_Nonzero(SizeTag<4> /* tag */, const uint32_t x) {
36
364
  JXL_DASSERT(x != 0);
37
#if JXL_COMPILER_MSVC
38
  unsigned long index;
39
  _BitScanReverse(&index, x);
40
  return 31 - index;
41
#else
42
364
  return static_cast<size_t>(__builtin_clz(x));
43
364
#endif
44
364
}
Unexecuted instantiation: enc_ma.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_transform.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: ac_strategy.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: chroma_from_luma.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: compressed_dc.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_ans.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_cache.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_context_map.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_external_image.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_frame.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_group.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_huffman.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_modular.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_patch_dictionary.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_xyb.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: epf.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_ma.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: palette.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: rct.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: squeeze.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: passes_state.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: render_pipeline.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: simple_render_pipeline.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_blending.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_chroma_upsampling.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_cms.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_epf.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_from_linear.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_gaborish.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_noise.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_patches.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_splines.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_spot.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_to_linear.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_tone_mapping.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_upsampling.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_write.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_xyb.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_ycbcr.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: splines.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: toc.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_ac_strategy.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_adaptive_quantization.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
enc_ans.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Line
Count
Source
35
22.7k
Num0BitsAboveMS1Bit_Nonzero(SizeTag<4> /* tag */, const uint32_t x) {
36
22.7k
  JXL_DASSERT(x != 0);
37
#if JXL_COMPILER_MSVC
38
  unsigned long index;
39
  _BitScanReverse(&index, x);
40
  return 31 - index;
41
#else
42
22.7k
  return static_cast<size_t>(__builtin_clz(x));
43
22.7k
#endif
44
22.7k
}
Unexecuted instantiation: enc_butteraugli_comparator.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_cache.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_chroma_from_luma.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_cluster.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_coeff_order.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_context_map.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_debug_image.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_dot_dictionary.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_entropy_coder.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_external_image.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_image_bundle.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_palette.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_rct.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_squeeze.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: blending.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: coeff_order.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: low_memory_render_pipeline.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_detect_dots.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: jxl_cms.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
45
static JXL_INLINE JXL_MAYBE_UNUSED size_t
46
9.41k
Num0BitsAboveMS1Bit_Nonzero(SizeTag<8> /* tag */, const uint64_t x) {
47
9.41k
  JXL_DASSERT(x != 0);
48
#if JXL_COMPILER_MSVC
49
#if JXL_ARCH_X64
50
  unsigned long index;
51
  _BitScanReverse64(&index, x);
52
  return 63 - index;
53
#else   // JXL_ARCH_X64
54
  // _BitScanReverse64 not available
55
  uint32_t msb = static_cast<uint32_t>(x >> 32u);
56
  unsigned long index;
57
  if (msb == 0) {
58
    uint32_t lsb = static_cast<uint32_t>(x & 0xFFFFFFFF);
59
    _BitScanReverse(&index, lsb);
60
    return 63 - index;
61
  } else {
62
    _BitScanReverse(&index, msb);
63
    return 31 - index;
64
  }
65
#endif  // JXL_ARCH_X64
66
#else
67
9.41k
  return static_cast<size_t>(__builtin_clzll(x));
68
9.41k
#endif
69
9.41k
}
Unexecuted instantiation: cjxl_fuzzer.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: test_image.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: decode.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: jpg.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: pgx.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: pnm.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: encode.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_jpeg_data.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_jpeg_data_reader.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_jpeg_huffman_decode.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: color_encoding_internal.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: entropy_coder.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: fields.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: frame_header.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: headers.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: icc_codec.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: image_bundle.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: image_metadata.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: loop_filter.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: luminance.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: encoding.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: modular_image.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: transform.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: quant_weights.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: quantizer.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: decode_to_jpeg.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_jpeg_data.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_jpeg_data_writer.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: jpeg_data.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_fast_lossless.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_fields.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
enc_frame.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Line
Count
Source
46
104
Num0BitsAboveMS1Bit_Nonzero(SizeTag<8> /* tag */, const uint64_t x) {
47
104
  JXL_DASSERT(x != 0);
48
#if JXL_COMPILER_MSVC
49
#if JXL_ARCH_X64
50
  unsigned long index;
51
  _BitScanReverse64(&index, x);
52
  return 63 - index;
53
#else   // JXL_ARCH_X64
54
  // _BitScanReverse64 not available
55
  uint32_t msb = static_cast<uint32_t>(x >> 32u);
56
  unsigned long index;
57
  if (msb == 0) {
58
    uint32_t lsb = static_cast<uint32_t>(x & 0xFFFFFFFF);
59
    _BitScanReverse(&index, lsb);
60
    return 63 - index;
61
  } else {
62
    _BitScanReverse(&index, msb);
63
    return 31 - index;
64
  }
65
#endif  // JXL_ARCH_X64
66
#else
67
104
  return static_cast<size_t>(__builtin_clzll(x));
68
104
#endif
69
104
}
enc_group.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Line
Count
Source
46
52
Num0BitsAboveMS1Bit_Nonzero(SizeTag<8> /* tag */, const uint64_t x) {
47
52
  JXL_DASSERT(x != 0);
48
#if JXL_COMPILER_MSVC
49
#if JXL_ARCH_X64
50
  unsigned long index;
51
  _BitScanReverse64(&index, x);
52
  return 63 - index;
53
#else   // JXL_ARCH_X64
54
  // _BitScanReverse64 not available
55
  uint32_t msb = static_cast<uint32_t>(x >> 32u);
56
  unsigned long index;
57
  if (msb == 0) {
58
    uint32_t lsb = static_cast<uint32_t>(x & 0xFFFFFFFF);
59
    _BitScanReverse(&index, lsb);
60
    return 63 - index;
61
  } else {
62
    _BitScanReverse(&index, msb);
63
    return 31 - index;
64
  }
65
#endif  // JXL_ARCH_X64
66
#else
67
52
  return static_cast<size_t>(__builtin_clzll(x));
68
52
#endif
69
52
}
Unexecuted instantiation: enc_heuristics.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_icc_codec.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
enc_modular.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Line
Count
Source
46
624
Num0BitsAboveMS1Bit_Nonzero(SizeTag<8> /* tag */, const uint64_t x) {
47
624
  JXL_DASSERT(x != 0);
48
#if JXL_COMPILER_MSVC
49
#if JXL_ARCH_X64
50
  unsigned long index;
51
  _BitScanReverse64(&index, x);
52
  return 63 - index;
53
#else   // JXL_ARCH_X64
54
  // _BitScanReverse64 not available
55
  uint32_t msb = static_cast<uint32_t>(x >> 32u);
56
  unsigned long index;
57
  if (msb == 0) {
58
    uint32_t lsb = static_cast<uint32_t>(x & 0xFFFFFFFF);
59
    _BitScanReverse(&index, lsb);
60
    return 63 - index;
61
  } else {
62
    _BitScanReverse(&index, msb);
63
    return 31 - index;
64
  }
65
#endif  // JXL_ARCH_X64
66
#else
67
624
  return static_cast<size_t>(__builtin_clzll(x));
68
624
#endif
69
624
}
Unexecuted instantiation: enc_patch_dictionary.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_progressive_split.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_quant_weights.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_splines.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_toc.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_xyb.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
enc_encoding.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Line
Count
Source
46
676
Num0BitsAboveMS1Bit_Nonzero(SizeTag<8> /* tag */, const uint64_t x) {
47
676
  JXL_DASSERT(x != 0);
48
#if JXL_COMPILER_MSVC
49
#if JXL_ARCH_X64
50
  unsigned long index;
51
  _BitScanReverse64(&index, x);
52
  return 63 - index;
53
#else   // JXL_ARCH_X64
54
  // _BitScanReverse64 not available
55
  uint32_t msb = static_cast<uint32_t>(x >> 32u);
56
  unsigned long index;
57
  if (msb == 0) {
58
    uint32_t lsb = static_cast<uint32_t>(x & 0xFFFFFFFF);
59
    _BitScanReverse(&index, lsb);
60
    return 63 - index;
61
  } else {
62
    _BitScanReverse(&index, msb);
63
    return 31 - index;
64
  }
65
#endif  // JXL_ARCH_X64
66
#else
67
676
  return static_cast<size_t>(__builtin_clzll(x));
68
676
#endif
69
676
}
Unexecuted instantiation: enc_ma.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_transform.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
ac_strategy.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Line
Count
Source
46
52
Num0BitsAboveMS1Bit_Nonzero(SizeTag<8> /* tag */, const uint64_t x) {
47
52
  JXL_DASSERT(x != 0);
48
#if JXL_COMPILER_MSVC
49
#if JXL_ARCH_X64
50
  unsigned long index;
51
  _BitScanReverse64(&index, x);
52
  return 63 - index;
53
#else   // JXL_ARCH_X64
54
  // _BitScanReverse64 not available
55
  uint32_t msb = static_cast<uint32_t>(x >> 32u);
56
  unsigned long index;
57
  if (msb == 0) {
58
    uint32_t lsb = static_cast<uint32_t>(x & 0xFFFFFFFF);
59
    _BitScanReverse(&index, lsb);
60
    return 63 - index;
61
  } else {
62
    _BitScanReverse(&index, msb);
63
    return 31 - index;
64
  }
65
#endif  // JXL_ARCH_X64
66
#else
67
52
  return static_cast<size_t>(__builtin_clzll(x));
68
52
#endif
69
52
}
Unexecuted instantiation: chroma_from_luma.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: compressed_dc.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_ans.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_cache.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_context_map.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_external_image.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_frame.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_group.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_huffman.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_modular.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_patch_dictionary.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_xyb.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: epf.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_ma.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: palette.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: rct.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: squeeze.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: passes_state.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: render_pipeline.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: simple_render_pipeline.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_blending.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_chroma_upsampling.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_cms.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_epf.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_from_linear.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_gaborish.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_noise.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_patches.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_splines.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_spot.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_to_linear.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_tone_mapping.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_upsampling.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_write.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_xyb.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_ycbcr.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: splines.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: toc.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
enc_ac_strategy.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Line
Count
Source
46
3.12k
Num0BitsAboveMS1Bit_Nonzero(SizeTag<8> /* tag */, const uint64_t x) {
47
3.12k
  JXL_DASSERT(x != 0);
48
#if JXL_COMPILER_MSVC
49
#if JXL_ARCH_X64
50
  unsigned long index;
51
  _BitScanReverse64(&index, x);
52
  return 63 - index;
53
#else   // JXL_ARCH_X64
54
  // _BitScanReverse64 not available
55
  uint32_t msb = static_cast<uint32_t>(x >> 32u);
56
  unsigned long index;
57
  if (msb == 0) {
58
    uint32_t lsb = static_cast<uint32_t>(x & 0xFFFFFFFF);
59
    _BitScanReverse(&index, lsb);
60
    return 63 - index;
61
  } else {
62
    _BitScanReverse(&index, msb);
63
    return 31 - index;
64
  }
65
#endif  // JXL_ARCH_X64
66
#else
67
3.12k
  return static_cast<size_t>(__builtin_clzll(x));
68
3.12k
#endif
69
3.12k
}
Unexecuted instantiation: enc_adaptive_quantization.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
enc_ans.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Line
Count
Source
46
2.70k
Num0BitsAboveMS1Bit_Nonzero(SizeTag<8> /* tag */, const uint64_t x) {
47
2.70k
  JXL_DASSERT(x != 0);
48
#if JXL_COMPILER_MSVC
49
#if JXL_ARCH_X64
50
  unsigned long index;
51
  _BitScanReverse64(&index, x);
52
  return 63 - index;
53
#else   // JXL_ARCH_X64
54
  // _BitScanReverse64 not available
55
  uint32_t msb = static_cast<uint32_t>(x >> 32u);
56
  unsigned long index;
57
  if (msb == 0) {
58
    uint32_t lsb = static_cast<uint32_t>(x & 0xFFFFFFFF);
59
    _BitScanReverse(&index, lsb);
60
    return 63 - index;
61
  } else {
62
    _BitScanReverse(&index, msb);
63
    return 31 - index;
64
  }
65
#endif  // JXL_ARCH_X64
66
#else
67
2.70k
  return static_cast<size_t>(__builtin_clzll(x));
68
2.70k
#endif
69
2.70k
}
Unexecuted instantiation: enc_butteraugli_comparator.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_cache.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_chroma_from_luma.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_cluster.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_coeff_order.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
enc_context_map.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Line
Count
Source
46
52
Num0BitsAboveMS1Bit_Nonzero(SizeTag<8> /* tag */, const uint64_t x) {
47
52
  JXL_DASSERT(x != 0);
48
#if JXL_COMPILER_MSVC
49
#if JXL_ARCH_X64
50
  unsigned long index;
51
  _BitScanReverse64(&index, x);
52
  return 63 - index;
53
#else   // JXL_ARCH_X64
54
  // _BitScanReverse64 not available
55
  uint32_t msb = static_cast<uint32_t>(x >> 32u);
56
  unsigned long index;
57
  if (msb == 0) {
58
    uint32_t lsb = static_cast<uint32_t>(x & 0xFFFFFFFF);
59
    _BitScanReverse(&index, lsb);
60
    return 63 - index;
61
  } else {
62
    _BitScanReverse(&index, msb);
63
    return 31 - index;
64
  }
65
#endif  // JXL_ARCH_X64
66
#else
67
52
  return static_cast<size_t>(__builtin_clzll(x));
68
52
#endif
69
52
}
Unexecuted instantiation: enc_debug_image.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_dot_dictionary.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_entropy_coder.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_external_image.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_image_bundle.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_palette.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_rct.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_squeeze.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: blending.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: coeff_order.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
low_memory_render_pipeline.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Line
Count
Source
46
2.02k
Num0BitsAboveMS1Bit_Nonzero(SizeTag<8> /* tag */, const uint64_t x) {
47
2.02k
  JXL_DASSERT(x != 0);
48
#if JXL_COMPILER_MSVC
49
#if JXL_ARCH_X64
50
  unsigned long index;
51
  _BitScanReverse64(&index, x);
52
  return 63 - index;
53
#else   // JXL_ARCH_X64
54
  // _BitScanReverse64 not available
55
  uint32_t msb = static_cast<uint32_t>(x >> 32u);
56
  unsigned long index;
57
  if (msb == 0) {
58
    uint32_t lsb = static_cast<uint32_t>(x & 0xFFFFFFFF);
59
    _BitScanReverse(&index, lsb);
60
    return 63 - index;
61
  } else {
62
    _BitScanReverse(&index, msb);
63
    return 31 - index;
64
  }
65
#endif  // JXL_ARCH_X64
66
#else
67
2.02k
  return static_cast<size_t>(__builtin_clzll(x));
68
2.02k
#endif
69
2.02k
}
Unexecuted instantiation: enc_detect_dots.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: jxl_cms.cc:jxl::Num0BitsAboveMS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
70
template <typename T>
71
static JXL_INLINE JXL_MAYBE_UNUSED size_t
72
33.6k
Num0BitsAboveMS1Bit_Nonzero(const T x) {
73
33.6k
  static_assert(!IsSigned<T>(), "Num0BitsAboveMS1Bit_Nonzero: use unsigned");
74
33.6k
  return Num0BitsAboveMS1Bit_Nonzero(SizeTag<sizeof(T)>(), x);
75
33.6k
}
Unexecuted instantiation: pnm.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: encode.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: decode.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: decode.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
fields.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Line
Count
Source
72
988
Num0BitsAboveMS1Bit_Nonzero(const T x) {
73
988
  static_assert(!IsSigned<T>(), "Num0BitsAboveMS1Bit_Nonzero: use unsigned");
74
988
  return Num0BitsAboveMS1Bit_Nonzero(SizeTag<sizeof(T)>(), x);
75
988
}
Unexecuted instantiation: icc_codec.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: encoding.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: encoding.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: modular_image.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: modular_image.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: transform.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: transform.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: quant_weights.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: quant_weights.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: dec_jpeg_data_writer.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
enc_frame.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Line
Count
Source
72
104
Num0BitsAboveMS1Bit_Nonzero(const T x) {
73
104
  static_assert(!IsSigned<T>(), "Num0BitsAboveMS1Bit_Nonzero: use unsigned");
74
104
  return Num0BitsAboveMS1Bit_Nonzero(SizeTag<sizeof(T)>(), x);
75
104
}
Unexecuted instantiation: enc_frame.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
enc_group.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Line
Count
Source
72
52
Num0BitsAboveMS1Bit_Nonzero(const T x) {
73
52
  static_assert(!IsSigned<T>(), "Num0BitsAboveMS1Bit_Nonzero: use unsigned");
74
52
  return Num0BitsAboveMS1Bit_Nonzero(SizeTag<sizeof(T)>(), x);
75
52
}
Unexecuted instantiation: enc_group.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_heuristics.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_heuristics.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: enc_icc_codec.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
enc_modular.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Line
Count
Source
72
156
Num0BitsAboveMS1Bit_Nonzero(const T x) {
73
156
  static_assert(!IsSigned<T>(), "Num0BitsAboveMS1Bit_Nonzero: use unsigned");
74
156
  return Num0BitsAboveMS1Bit_Nonzero(SizeTag<sizeof(T)>(), x);
75
156
}
enc_modular.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Line
Count
Source
72
624
Num0BitsAboveMS1Bit_Nonzero(const T x) {
73
624
  static_assert(!IsSigned<T>(), "Num0BitsAboveMS1Bit_Nonzero: use unsigned");
74
624
  return Num0BitsAboveMS1Bit_Nonzero(SizeTag<sizeof(T)>(), x);
75
624
}
Unexecuted instantiation: enc_patch_dictionary.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_patch_dictionary.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: enc_quant_weights.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_quant_weights.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: enc_splines.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
enc_encoding.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Line
Count
Source
72
676
Num0BitsAboveMS1Bit_Nonzero(const T x) {
73
676
  static_assert(!IsSigned<T>(), "Num0BitsAboveMS1Bit_Nonzero: use unsigned");
74
676
  return Num0BitsAboveMS1Bit_Nonzero(SizeTag<sizeof(T)>(), x);
75
676
}
enc_encoding.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Line
Count
Source
72
364
Num0BitsAboveMS1Bit_Nonzero(const T x) {
73
364
  static_assert(!IsSigned<T>(), "Num0BitsAboveMS1Bit_Nonzero: use unsigned");
74
364
  return Num0BitsAboveMS1Bit_Nonzero(SizeTag<sizeof(T)>(), x);
75
364
}
Unexecuted instantiation: enc_ma.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_ma.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: enc_transform.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: enc_transform.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
ac_strategy.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Line
Count
Source
72
52
Num0BitsAboveMS1Bit_Nonzero(const T x) {
73
52
  static_assert(!IsSigned<T>(), "Num0BitsAboveMS1Bit_Nonzero: use unsigned");
74
52
  return Num0BitsAboveMS1Bit_Nonzero(SizeTag<sizeof(T)>(), x);
75
52
}
Unexecuted instantiation: dec_ans.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: dec_ans.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: dec_cache.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: dec_context_map.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: dec_external_image.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: dec_frame.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: dec_frame.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: dec_group.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: dec_group.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: dec_huffman.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: dec_modular.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: dec_modular.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: dec_patch_dictionary.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: epf.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: dec_ma.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: palette.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: palette.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: rct.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: rct.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: squeeze.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: squeeze.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: simple_render_pipeline.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: stage_blending.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: stage_epf.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: stage_write.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: splines.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: splines.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
enc_ac_strategy.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Line
Count
Source
72
3.12k
Num0BitsAboveMS1Bit_Nonzero(const T x) {
73
3.12k
  static_assert(!IsSigned<T>(), "Num0BitsAboveMS1Bit_Nonzero: use unsigned");
74
3.12k
  return Num0BitsAboveMS1Bit_Nonzero(SizeTag<sizeof(T)>(), x);
75
3.12k
}
Unexecuted instantiation: enc_ac_strategy.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_adaptive_quantization.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_adaptive_quantization.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
enc_ans.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Line
Count
Source
72
2.70k
Num0BitsAboveMS1Bit_Nonzero(const T x) {
73
2.70k
  static_assert(!IsSigned<T>(), "Num0BitsAboveMS1Bit_Nonzero: use unsigned");
74
2.70k
  return Num0BitsAboveMS1Bit_Nonzero(SizeTag<sizeof(T)>(), x);
75
2.70k
}
enc_ans.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Line
Count
Source
72
22.7k
Num0BitsAboveMS1Bit_Nonzero(const T x) {
73
22.7k
  static_assert(!IsSigned<T>(), "Num0BitsAboveMS1Bit_Nonzero: use unsigned");
74
22.7k
  return Num0BitsAboveMS1Bit_Nonzero(SizeTag<sizeof(T)>(), x);
75
22.7k
}
Unexecuted instantiation: enc_cache.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_cache.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: enc_cluster.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_coeff_order.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
enc_context_map.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Line
Count
Source
72
52
Num0BitsAboveMS1Bit_Nonzero(const T x) {
73
52
  static_assert(!IsSigned<T>(), "Num0BitsAboveMS1Bit_Nonzero: use unsigned");
74
52
  return Num0BitsAboveMS1Bit_Nonzero(SizeTag<sizeof(T)>(), x);
75
52
}
Unexecuted instantiation: enc_context_map.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_debug_image.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_dot_dictionary.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_entropy_coder.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_palette.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: enc_palette.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_rct.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: enc_rct.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_squeeze.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: enc_squeeze.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: coeff_order.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: coeff_order.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
low_memory_render_pipeline.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned long>(unsigned long)
Line
Count
Source
72
2.02k
Num0BitsAboveMS1Bit_Nonzero(const T x) {
73
2.02k
  static_assert(!IsSigned<T>(), "Num0BitsAboveMS1Bit_Nonzero: use unsigned");
74
2.02k
  return Num0BitsAboveMS1Bit_Nonzero(SizeTag<sizeof(T)>(), x);
75
2.02k
}
Unexecuted instantiation: enc_detect_dots.cc:unsigned long jxl::Num0BitsAboveMS1Bit_Nonzero<unsigned int>(unsigned int)
76
77
// Undefined results for x == 0.
78
static JXL_INLINE JXL_MAYBE_UNUSED size_t
79
104
Num0BitsBelowLS1Bit_Nonzero(SizeTag<4> /* tag */, const uint32_t x) {
80
104
  JXL_DASSERT(x != 0);
81
#if JXL_COMPILER_MSVC
82
  unsigned long index;
83
  _BitScanForward(&index, x);
84
  return index;
85
#else
86
104
  return static_cast<size_t>(__builtin_ctz(x));
87
104
#endif
88
104
}
Unexecuted instantiation: cjxl_fuzzer.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: test_image.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: decode.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: jpg.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: pgx.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: pnm.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: encode.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_jpeg_data.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_jpeg_data_reader.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_jpeg_huffman_decode.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: color_encoding_internal.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: entropy_coder.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: fields.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: frame_header.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: headers.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: icc_codec.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: image_bundle.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: image_metadata.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: loop_filter.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: luminance.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: encoding.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: modular_image.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: transform.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: quant_weights.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: quantizer.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: decode_to_jpeg.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_jpeg_data.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_jpeg_data_writer.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: jpeg_data.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_fast_lossless.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_fields.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_frame.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_group.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_heuristics.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_icc_codec.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_modular.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_patch_dictionary.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_progressive_split.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_quant_weights.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_splines.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_toc.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_xyb.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_encoding.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
enc_ma.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Line
Count
Source
79
104
Num0BitsBelowLS1Bit_Nonzero(SizeTag<4> /* tag */, const uint32_t x) {
80
104
  JXL_DASSERT(x != 0);
81
#if JXL_COMPILER_MSVC
82
  unsigned long index;
83
  _BitScanForward(&index, x);
84
  return index;
85
#else
86
104
  return static_cast<size_t>(__builtin_ctz(x));
87
104
#endif
88
104
}
Unexecuted instantiation: enc_transform.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: ac_strategy.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: chroma_from_luma.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: compressed_dc.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_ans.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_cache.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_context_map.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_external_image.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_frame.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_group.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_huffman.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_modular.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_patch_dictionary.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_xyb.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: epf.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: dec_ma.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: palette.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: rct.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: squeeze.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: passes_state.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: render_pipeline.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: simple_render_pipeline.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_blending.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_chroma_upsampling.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_cms.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_epf.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_from_linear.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_gaborish.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_noise.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_patches.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_splines.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_spot.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_to_linear.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_tone_mapping.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_upsampling.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_write.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_xyb.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: stage_ycbcr.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: splines.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: toc.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_ac_strategy.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_adaptive_quantization.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_ans.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_butteraugli_comparator.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_cache.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_chroma_from_luma.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_cluster.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_coeff_order.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_context_map.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_debug_image.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_dot_dictionary.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_entropy_coder.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_external_image.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_image_bundle.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_palette.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_rct.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_squeeze.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: blending.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: coeff_order.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: low_memory_render_pipeline.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: enc_detect_dots.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
Unexecuted instantiation: jxl_cms.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<4ul>, unsigned int)
89
static JXL_INLINE JXL_MAYBE_UNUSED size_t
90
52
Num0BitsBelowLS1Bit_Nonzero(SizeTag<8> /* tag */, const uint64_t x) {
91
52
  JXL_DASSERT(x != 0);
92
#if JXL_COMPILER_MSVC
93
#if JXL_ARCH_X64
94
  unsigned long index;
95
  _BitScanForward64(&index, x);
96
  return index;
97
#else   // JXL_ARCH_64
98
  // _BitScanForward64 not available
99
  uint32_t lsb = static_cast<uint32_t>(x & 0xFFFFFFFF);
100
  unsigned long index;
101
  if (lsb == 0) {
102
    uint32_t msb = static_cast<uint32_t>(x >> 32u);
103
    _BitScanForward(&index, msb);
104
    return 32 + index;
105
  } else {
106
    _BitScanForward(&index, lsb);
107
    return index;
108
  }
109
#endif  // JXL_ARCH_X64
110
#else
111
52
  return static_cast<size_t>(__builtin_ctzll(x));
112
52
#endif
113
52
}
Unexecuted instantiation: cjxl_fuzzer.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: test_image.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: decode.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: jpg.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: pgx.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: pnm.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: encode.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_jpeg_data.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_jpeg_data_reader.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_jpeg_huffman_decode.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: color_encoding_internal.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: entropy_coder.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: fields.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: frame_header.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: headers.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: icc_codec.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: image_bundle.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: image_metadata.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: loop_filter.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: luminance.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: encoding.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: modular_image.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: transform.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: quant_weights.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: quantizer.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: decode_to_jpeg.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_jpeg_data.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_jpeg_data_writer.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: jpeg_data.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_fast_lossless.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_fields.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_frame.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_group.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_heuristics.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_icc_codec.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_modular.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_patch_dictionary.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_progressive_split.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_quant_weights.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_splines.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_toc.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_xyb.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_encoding.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_ma.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_transform.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: ac_strategy.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: chroma_from_luma.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: compressed_dc.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_ans.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_cache.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_context_map.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_external_image.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_frame.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_group.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_huffman.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_modular.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_patch_dictionary.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_xyb.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: epf.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: dec_ma.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: palette.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: rct.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: squeeze.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: passes_state.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: render_pipeline.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: simple_render_pipeline.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_blending.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_chroma_upsampling.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_cms.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_epf.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_from_linear.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_gaborish.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_noise.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_patches.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_splines.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_spot.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_to_linear.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_tone_mapping.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_upsampling.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_write.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_xyb.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: stage_ycbcr.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: splines.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: toc.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_ac_strategy.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_adaptive_quantization.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_ans.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_butteraugli_comparator.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_cache.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_chroma_from_luma.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_cluster.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_coeff_order.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_context_map.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_debug_image.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_dot_dictionary.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
enc_entropy_coder.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Line
Count
Source
90
52
Num0BitsBelowLS1Bit_Nonzero(SizeTag<8> /* tag */, const uint64_t x) {
91
52
  JXL_DASSERT(x != 0);
92
#if JXL_COMPILER_MSVC
93
#if JXL_ARCH_X64
94
  unsigned long index;
95
  _BitScanForward64(&index, x);
96
  return index;
97
#else   // JXL_ARCH_64
98
  // _BitScanForward64 not available
99
  uint32_t lsb = static_cast<uint32_t>(x & 0xFFFFFFFF);
100
  unsigned long index;
101
  if (lsb == 0) {
102
    uint32_t msb = static_cast<uint32_t>(x >> 32u);
103
    _BitScanForward(&index, msb);
104
    return 32 + index;
105
  } else {
106
    _BitScanForward(&index, lsb);
107
    return index;
108
  }
109
#endif  // JXL_ARCH_X64
110
#else
111
52
  return static_cast<size_t>(__builtin_ctzll(x));
112
52
#endif
113
52
}
Unexecuted instantiation: enc_external_image.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_image_bundle.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_palette.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_rct.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_squeeze.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: blending.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: coeff_order.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: low_memory_render_pipeline.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: enc_detect_dots.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
Unexecuted instantiation: jxl_cms.cc:jxl::Num0BitsBelowLS1Bit_Nonzero(jxl::SizeTag<8ul>, unsigned long)
114
template <typename T>
115
156
static JXL_INLINE JXL_MAYBE_UNUSED size_t Num0BitsBelowLS1Bit_Nonzero(T x) {
116
156
  static_assert(!IsSigned<T>(), "Num0BitsBelowLS1Bit_Nonzero: use unsigned");
117
156
  return Num0BitsBelowLS1Bit_Nonzero(SizeTag<sizeof(T)>(), x);
118
156
}
Unexecuted instantiation: fields.cc:unsigned long jxl::Num0BitsBelowLS1Bit_Nonzero<unsigned long>(unsigned long)
enc_ma.cc:unsigned long jxl::Num0BitsBelowLS1Bit_Nonzero<unsigned int>(unsigned int)
Line
Count
Source
115
104
static JXL_INLINE JXL_MAYBE_UNUSED size_t Num0BitsBelowLS1Bit_Nonzero(T x) {
116
104
  static_assert(!IsSigned<T>(), "Num0BitsBelowLS1Bit_Nonzero: use unsigned");
117
104
  return Num0BitsBelowLS1Bit_Nonzero(SizeTag<sizeof(T)>(), x);
118
104
}
enc_entropy_coder.cc:unsigned long jxl::Num0BitsBelowLS1Bit_Nonzero<unsigned long>(unsigned long)
Line
Count
Source
115
52
static JXL_INLINE JXL_MAYBE_UNUSED size_t Num0BitsBelowLS1Bit_Nonzero(T x) {
116
52
  static_assert(!IsSigned<T>(), "Num0BitsBelowLS1Bit_Nonzero: use unsigned");
117
52
  return Num0BitsBelowLS1Bit_Nonzero(SizeTag<sizeof(T)>(), x);
118
52
}
Unexecuted instantiation: jxl_cms.cc:unsigned long jxl::Num0BitsBelowLS1Bit_Nonzero<unsigned long>(unsigned long)
119
120
// Returns bit width for x == 0.
121
template <typename T>
122
2.02k
static JXL_INLINE JXL_MAYBE_UNUSED size_t Num0BitsAboveMS1Bit(const T x) {
123
2.02k
  return (x == 0) ? sizeof(T) * 8 : Num0BitsAboveMS1Bit_Nonzero(x);
124
2.02k
}
125
126
// Returns bit width for x == 0.
127
template <typename T>
128
static JXL_INLINE JXL_MAYBE_UNUSED size_t Num0BitsBelowLS1Bit(const T x) {
129
  return (x == 0) ? sizeof(T) * 8 : Num0BitsBelowLS1Bit_Nonzero(x);
130
}
131
132
// Returns base-2 logarithm, rounded down.
133
template <typename T>
134
32.6k
static JXL_INLINE JXL_MAYBE_UNUSED size_t FloorLog2Nonzero(const T x) {
135
32.6k
  return (sizeof(T) * 8 - 1) ^ Num0BitsAboveMS1Bit_Nonzero(x);
136
32.6k
}
Unexecuted instantiation: pnm.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: encode.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: decode.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: decode.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: icc_codec.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: encoding.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: encoding.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: modular_image.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: modular_image.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: transform.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: transform.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: quant_weights.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: quant_weights.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: dec_jpeg_data_writer.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
enc_frame.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Line
Count
Source
134
104
static JXL_INLINE JXL_MAYBE_UNUSED size_t FloorLog2Nonzero(const T x) {
135
104
  return (sizeof(T) * 8 - 1) ^ Num0BitsAboveMS1Bit_Nonzero(x);
136
104
}
Unexecuted instantiation: enc_frame.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
enc_group.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Line
Count
Source
134
52
static JXL_INLINE JXL_MAYBE_UNUSED size_t FloorLog2Nonzero(const T x) {
135
52
  return (sizeof(T) * 8 - 1) ^ Num0BitsAboveMS1Bit_Nonzero(x);
136
52
}
Unexecuted instantiation: enc_group.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_heuristics.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_heuristics.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: enc_icc_codec.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
enc_modular.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Line
Count
Source
134
156
static JXL_INLINE JXL_MAYBE_UNUSED size_t FloorLog2Nonzero(const T x) {
135
156
  return (sizeof(T) * 8 - 1) ^ Num0BitsAboveMS1Bit_Nonzero(x);
136
156
}
enc_modular.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Line
Count
Source
134
624
static JXL_INLINE JXL_MAYBE_UNUSED size_t FloorLog2Nonzero(const T x) {
135
624
  return (sizeof(T) * 8 - 1) ^ Num0BitsAboveMS1Bit_Nonzero(x);
136
624
}
Unexecuted instantiation: enc_patch_dictionary.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_patch_dictionary.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: enc_quant_weights.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_quant_weights.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: enc_splines.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
enc_encoding.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Line
Count
Source
134
676
static JXL_INLINE JXL_MAYBE_UNUSED size_t FloorLog2Nonzero(const T x) {
135
676
  return (sizeof(T) * 8 - 1) ^ Num0BitsAboveMS1Bit_Nonzero(x);
136
676
}
enc_encoding.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Line
Count
Source
134
364
static JXL_INLINE JXL_MAYBE_UNUSED size_t FloorLog2Nonzero(const T x) {
135
364
  return (sizeof(T) * 8 - 1) ^ Num0BitsAboveMS1Bit_Nonzero(x);
136
364
}
Unexecuted instantiation: enc_ma.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_ma.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: enc_transform.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: enc_transform.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
ac_strategy.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Line
Count
Source
134
52
static JXL_INLINE JXL_MAYBE_UNUSED size_t FloorLog2Nonzero(const T x) {
135
52
  return (sizeof(T) * 8 - 1) ^ Num0BitsAboveMS1Bit_Nonzero(x);
136
52
}
Unexecuted instantiation: dec_ans.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: dec_ans.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: dec_cache.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: dec_context_map.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: dec_external_image.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: dec_frame.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: dec_frame.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: dec_group.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: dec_group.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: dec_huffman.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: dec_modular.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: dec_modular.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: dec_patch_dictionary.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: epf.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: dec_ma.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: palette.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: palette.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: rct.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: rct.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: squeeze.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: squeeze.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: simple_render_pipeline.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: stage_blending.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: stage_epf.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: stage_write.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: splines.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: splines.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
enc_ac_strategy.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Line
Count
Source
134
3.12k
static JXL_INLINE JXL_MAYBE_UNUSED size_t FloorLog2Nonzero(const T x) {
135
3.12k
  return (sizeof(T) * 8 - 1) ^ Num0BitsAboveMS1Bit_Nonzero(x);
136
3.12k
}
Unexecuted instantiation: enc_ac_strategy.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_adaptive_quantization.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_adaptive_quantization.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
enc_ans.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Line
Count
Source
134
2.70k
static JXL_INLINE JXL_MAYBE_UNUSED size_t FloorLog2Nonzero(const T x) {
135
2.70k
  return (sizeof(T) * 8 - 1) ^ Num0BitsAboveMS1Bit_Nonzero(x);
136
2.70k
}
enc_ans.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Line
Count
Source
134
22.7k
static JXL_INLINE JXL_MAYBE_UNUSED size_t FloorLog2Nonzero(const T x) {
135
22.7k
  return (sizeof(T) * 8 - 1) ^ Num0BitsAboveMS1Bit_Nonzero(x);
136
22.7k
}
Unexecuted instantiation: enc_cache.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_cache.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: enc_cluster.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_coeff_order.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
enc_context_map.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Line
Count
Source
134
52
static JXL_INLINE JXL_MAYBE_UNUSED size_t FloorLog2Nonzero(const T x) {
135
52
  return (sizeof(T) * 8 - 1) ^ Num0BitsAboveMS1Bit_Nonzero(x);
136
52
}
Unexecuted instantiation: enc_context_map.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_debug_image.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_dot_dictionary.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_entropy_coder.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_palette.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: enc_palette.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_rct.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: enc_rct.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_squeeze.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: enc_squeeze.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: coeff_order.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: coeff_order.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
low_memory_render_pipeline.cc:unsigned long jxl::FloorLog2Nonzero<unsigned long>(unsigned long)
Line
Count
Source
134
2.02k
static JXL_INLINE JXL_MAYBE_UNUSED size_t FloorLog2Nonzero(const T x) {
135
2.02k
  return (sizeof(T) * 8 - 1) ^ Num0BitsAboveMS1Bit_Nonzero(x);
136
2.02k
}
Unexecuted instantiation: enc_detect_dots.cc:unsigned long jxl::FloorLog2Nonzero<unsigned int>(unsigned int)
137
138
// Returns base-2 logarithm, rounded up.
139
template <typename T>
140
7.80k
static JXL_INLINE JXL_MAYBE_UNUSED size_t CeilLog2Nonzero(const T x) {
141
7.80k
  const size_t floor_log2 = FloorLog2Nonzero(x);
142
7.80k
  if ((x & (x - 1)) == 0) return floor_log2;  // power of two
143
3.53k
  return floor_log2 + 1;
144
7.80k
}
enc_frame.cc:unsigned long jxl::CeilLog2Nonzero<unsigned long>(unsigned long)
Line
Count
Source
140
104
static JXL_INLINE JXL_MAYBE_UNUSED size_t CeilLog2Nonzero(const T x) {
141
104
  const size_t floor_log2 = FloorLog2Nonzero(x);
142
104
  if ((x & (x - 1)) == 0) return floor_log2;  // power of two
143
0
  return floor_log2 + 1;
144
104
}
enc_group.cc:unsigned long jxl::CeilLog2Nonzero<unsigned long>(unsigned long)
Line
Count
Source
140
52
static JXL_INLINE JXL_MAYBE_UNUSED size_t CeilLog2Nonzero(const T x) {
141
52
  const size_t floor_log2 = FloorLog2Nonzero(x);
142
52
  if ((x & (x - 1)) == 0) return floor_log2;  // power of two
143
0
  return floor_log2 + 1;
144
52
}
Unexecuted instantiation: enc_modular.cc:unsigned long jxl::CeilLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: enc_modular.cc:unsigned long jxl::CeilLog2Nonzero<unsigned long>(unsigned long)
enc_encoding.cc:unsigned long jxl::CeilLog2Nonzero<unsigned long>(unsigned long)
Line
Count
Source
140
52
static JXL_INLINE JXL_MAYBE_UNUSED size_t CeilLog2Nonzero(const T x) {
141
52
  const size_t floor_log2 = FloorLog2Nonzero(x);
142
52
  if ((x & (x - 1)) == 0) return floor_log2;  // power of two
143
52
  return floor_log2 + 1;
144
52
}
Unexecuted instantiation: enc_ma.cc:unsigned long jxl::CeilLog2Nonzero<unsigned long>(unsigned long)
ac_strategy.cc:unsigned long jxl::CeilLog2Nonzero<unsigned long>(unsigned long)
Line
Count
Source
140
52
static JXL_INLINE JXL_MAYBE_UNUSED size_t CeilLog2Nonzero(const T x) {
141
52
  const size_t floor_log2 = FloorLog2Nonzero(x);
142
52
  if ((x & (x - 1)) == 0) return floor_log2;  // power of two
143
0
  return floor_log2 + 1;
144
52
}
Unexecuted instantiation: dec_ans.cc:unsigned long jxl::CeilLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: dec_cache.cc:unsigned long jxl::CeilLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: dec_frame.cc:unsigned long jxl::CeilLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: dec_frame.cc:unsigned long jxl::CeilLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: dec_group.cc:unsigned long jxl::CeilLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: dec_modular.cc:unsigned long jxl::CeilLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: dec_modular.cc:unsigned long jxl::CeilLog2Nonzero<unsigned int>(unsigned int)
Unexecuted instantiation: simple_render_pipeline.cc:unsigned long jxl::CeilLog2Nonzero<unsigned long>(unsigned long)
Unexecuted instantiation: splines.cc:unsigned long jxl::CeilLog2Nonzero<unsigned long>(unsigned long)
enc_ac_strategy.cc:unsigned long jxl::CeilLog2Nonzero<unsigned long>(unsigned long)
Line
Count
Source
140
3.12k
static JXL_INLINE JXL_MAYBE_UNUSED size_t CeilLog2Nonzero(const T x) {
141
3.12k
  const size_t floor_log2 = FloorLog2Nonzero(x);
142
3.12k
  if ((x & (x - 1)) == 0) return floor_log2;  // power of two
143
1.56k
  return floor_log2 + 1;
144
3.12k
}
enc_ans.cc:unsigned long jxl::CeilLog2Nonzero<unsigned long>(unsigned long)
Line
Count
Source
140
884
static JXL_INLINE JXL_MAYBE_UNUSED size_t CeilLog2Nonzero(const T x) {
141
884
  const size_t floor_log2 = FloorLog2Nonzero(x);
142
884
  if ((x & (x - 1)) == 0) return floor_log2;  // power of two
143
0
  return floor_log2 + 1;
144
884
}
enc_ans.cc:unsigned long jxl::CeilLog2Nonzero<unsigned int>(unsigned int)
Line
Count
Source
140
1.45k
static JXL_INLINE JXL_MAYBE_UNUSED size_t CeilLog2Nonzero(const T x) {
141
1.45k
  const size_t floor_log2 = FloorLog2Nonzero(x);
142
1.45k
  if ((x & (x - 1)) == 0) return floor_log2;  // power of two
143
936
  return floor_log2 + 1;
144
1.45k
}
enc_context_map.cc:unsigned long jxl::CeilLog2Nonzero<unsigned long>(unsigned long)
Line
Count
Source
140
52
static JXL_INLINE JXL_MAYBE_UNUSED size_t CeilLog2Nonzero(const T x) {
141
52
  const size_t floor_log2 = FloorLog2Nonzero(x);
142
52
  if ((x & (x - 1)) == 0) return floor_log2;  // power of two
143
52
  return floor_log2 + 1;
144
52
}
Unexecuted instantiation: coeff_order.cc:unsigned long jxl::CeilLog2Nonzero<unsigned long>(unsigned long)
low_memory_render_pipeline.cc:unsigned long jxl::CeilLog2Nonzero<unsigned long>(unsigned long)
Line
Count
Source
140
2.02k
static JXL_INLINE JXL_MAYBE_UNUSED size_t CeilLog2Nonzero(const T x) {
141
2.02k
  const size_t floor_log2 = FloorLog2Nonzero(x);
142
2.02k
  if ((x & (x - 1)) == 0) return floor_log2;  // power of two
143
936
  return floor_log2 + 1;
144
2.02k
}
145
146
}  // namespace jxl
147
148
#endif  // LIB_JXL_BASE_BITS_H_