/root/doris/be/src/common/compare.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | |
18 | | #include <cmath> |
19 | | |
20 | | #include "common/compiler_util.h" |
21 | | #include "core/type_limit.h" |
22 | | |
23 | | #pragma once |
24 | | namespace doris { |
25 | | #include "common/compile_check_begin.h" |
26 | | struct Compare { |
27 | | template <typename T> |
28 | 171M | static bool less(const T& a, const T& b) { |
29 | 171M | return a < b; |
30 | 171M | } _ZN5doris7Compare4lessIiEEbRKT_S4_ Line | Count | Source | 28 | 28.0M | static bool less(const T& a, const T& b) { | 29 | 28.0M | return a < b; | 30 | 28.0M | } |
_ZN5doris7Compare4lessIlEEbRKT_S4_ Line | Count | Source | 28 | 72.8M | static bool less(const T& a, const T& b) { | 29 | 72.8M | return a < b; | 30 | 72.8M | } |
_ZN5doris7Compare4lessInEEbRKT_S4_ Line | Count | Source | 28 | 358k | static bool less(const T& a, const T& b) { | 29 | 358k | return a < b; | 30 | 358k | } |
_ZN5doris7Compare4lessIN4wide7integerILm256EiEEEEbRKT_S7_ Line | Count | Source | 28 | 975 | static bool less(const T& a, const T& b) { | 29 | 975 | return a < b; | 30 | 975 | } |
_ZN5doris7Compare4lessIhEEbRKT_S4_ Line | Count | Source | 28 | 15.9k | static bool less(const T& a, const T& b) { | 29 | 15.9k | return a < b; | 30 | 15.9k | } |
_ZN5doris7Compare4lessIaEEbRKT_S4_ Line | Count | Source | 28 | 36.9k | static bool less(const T& a, const T& b) { | 29 | 36.9k | return a < b; | 30 | 36.9k | } |
_ZN5doris7Compare4lessIsEEbRKT_S4_ Line | Count | Source | 28 | 30.5k | static bool less(const T& a, const T& b) { | 29 | 30.5k | return a < b; | 30 | 30.5k | } |
_ZN5doris7Compare4lessIjEEbRKT_S4_ Line | Count | Source | 28 | 2.01k | static bool less(const T& a, const T& b) { | 29 | 2.01k | return a < b; | 30 | 2.01k | } |
_ZN5doris7Compare4lessIoEEbRKT_S4_ Line | Count | Source | 28 | 2.05k | static bool less(const T& a, const T& b) { | 29 | 2.05k | return a < b; | 30 | 2.05k | } |
_ZN5doris7Compare4lessINS_16VecDateTimeValueEEEbRKT_S5_ Line | Count | Source | 28 | 2.17k | static bool less(const T& a, const T& b) { | 29 | 2.17k | return a < b; | 30 | 2.17k | } |
_ZN5doris7Compare4lessINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEbRKT_S7_ Line | Count | Source | 28 | 16.4M | static bool less(const T& a, const T& b) { | 29 | 16.4M | return a < b; | 30 | 16.4M | } |
_ZN5doris7Compare4lessINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEbRKT_S7_ Line | Count | Source | 28 | 44.8M | static bool less(const T& a, const T& b) { | 29 | 44.8M | return a < b; | 30 | 44.8M | } |
_ZN5doris7Compare4lessINS_16TimestampTzValueEEEbRKT_S5_ Line | Count | Source | 28 | 6.50k | static bool less(const T& a, const T& b) { | 29 | 6.50k | return a < b; | 30 | 6.50k | } |
Unexecuted instantiation: _ZN5doris7Compare4lessImEEbRKT_S4_ _ZN5doris7Compare4lessINS_7DecimalIiEEEEbRKT_S6_ Line | Count | Source | 28 | 1.57M | static bool less(const T& a, const T& b) { | 29 | 1.57M | return a < b; | 30 | 1.57M | } |
_ZN5doris7Compare4lessINS_7DecimalIlEEEEbRKT_S6_ Line | Count | Source | 28 | 6.37M | static bool less(const T& a, const T& b) { | 29 | 6.37M | return a < b; | 30 | 6.37M | } |
_ZN5doris7Compare4lessINS_14DecimalV2ValueEEEbRKT_S5_ Line | Count | Source | 28 | 4.15k | static bool less(const T& a, const T& b) { | 29 | 4.15k | return a < b; | 30 | 4.15k | } |
_ZN5doris7Compare4lessINS_12Decimal128V3EEEbRKT_S5_ Line | Count | Source | 28 | 739k | static bool less(const T& a, const T& b) { | 29 | 739k | return a < b; | 30 | 739k | } |
_ZN5doris7Compare4lessINS_7DecimalIN4wide7integerILm256EiEEEEEEbRKT_S9_ Line | Count | Source | 28 | 3.25k | static bool less(const T& a, const T& b) { | 29 | 3.25k | return a < b; | 30 | 3.25k | } |
_ZN5doris7Compare4lessINS_9StringRefEEEbRKT_S5_ Line | Count | Source | 28 | 95 | static bool less(const T& a, const T& b) { | 29 | 95 | return a < b; | 30 | 95 | } |
_ZN5doris7Compare4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKT_SA_ Line | Count | Source | 28 | 105k | static bool less(const T& a, const T& b) { | 29 | 105k | return a < b; | 30 | 105k | } |
|
31 | | template <typename T> |
32 | 168M | static bool greater(const T& a, const T& b) { |
33 | 168M | return a > b; |
34 | 168M | } _ZN5doris7Compare7greaterIhEEbRKT_S4_ Line | Count | Source | 32 | 34.1k | static bool greater(const T& a, const T& b) { | 33 | 34.1k | return a > b; | 34 | 34.1k | } |
_ZN5doris7Compare7greaterIaEEbRKT_S4_ Line | Count | Source | 32 | 306k | static bool greater(const T& a, const T& b) { | 33 | 306k | return a > b; | 34 | 306k | } |
_ZN5doris7Compare7greaterIsEEbRKT_S4_ Line | Count | Source | 32 | 72.5k | static bool greater(const T& a, const T& b) { | 33 | 72.5k | return a > b; | 34 | 72.5k | } |
_ZN5doris7Compare7greaterIiEEbRKT_S4_ Line | Count | Source | 32 | 34.4M | static bool greater(const T& a, const T& b) { | 33 | 34.4M | return a > b; | 34 | 34.4M | } |
_ZN5doris7Compare7greaterIlEEbRKT_S4_ Line | Count | Source | 32 | 50.0M | static bool greater(const T& a, const T& b) { | 33 | 50.0M | return a > b; | 34 | 50.0M | } |
_ZN5doris7Compare7greaterInEEbRKT_S4_ Line | Count | Source | 32 | 19.3M | static bool greater(const T& a, const T& b) { | 33 | 19.3M | return a > b; | 34 | 19.3M | } |
_ZN5doris7Compare7greaterIjEEbRKT_S4_ Line | Count | Source | 32 | 2.37k | static bool greater(const T& a, const T& b) { | 33 | 2.37k | return a > b; | 34 | 2.37k | } |
_ZN5doris7Compare7greaterIoEEbRKT_S4_ Line | Count | Source | 32 | 2.35k | static bool greater(const T& a, const T& b) { | 33 | 2.35k | return a > b; | 34 | 2.35k | } |
_ZN5doris7Compare7greaterINS_16VecDateTimeValueEEEbRKT_S5_ Line | Count | Source | 32 | 6.09k | static bool greater(const T& a, const T& b) { | 33 | 6.09k | return a > b; | 34 | 6.09k | } |
_ZN5doris7Compare7greaterINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEbRKT_S7_ Line | Count | Source | 32 | 10.8M | static bool greater(const T& a, const T& b) { | 33 | 10.8M | return a > b; | 34 | 10.8M | } |
_ZN5doris7Compare7greaterINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEbRKT_S7_ Line | Count | Source | 32 | 46.0M | static bool greater(const T& a, const T& b) { | 33 | 46.0M | return a > b; | 34 | 46.0M | } |
_ZN5doris7Compare7greaterINS_16TimestampTzValueEEEbRKT_S5_ Line | Count | Source | 32 | 11.7k | static bool greater(const T& a, const T& b) { | 33 | 11.7k | return a > b; | 34 | 11.7k | } |
Unexecuted instantiation: _ZN5doris7Compare7greaterImEEbRKT_S4_ _ZN5doris7Compare7greaterINS_7DecimalIiEEEEbRKT_S6_ Line | Count | Source | 32 | 2.22M | static bool greater(const T& a, const T& b) { | 33 | 2.22M | return a > b; | 34 | 2.22M | } |
_ZN5doris7Compare7greaterINS_7DecimalIlEEEEbRKT_S6_ Line | Count | Source | 32 | 4.10M | static bool greater(const T& a, const T& b) { | 33 | 4.10M | return a > b; | 34 | 4.10M | } |
_ZN5doris7Compare7greaterINS_14DecimalV2ValueEEEbRKT_S5_ Line | Count | Source | 32 | 5.13k | static bool greater(const T& a, const T& b) { | 33 | 5.13k | return a > b; | 34 | 5.13k | } |
_ZN5doris7Compare7greaterINS_12Decimal128V3EEEbRKT_S5_ Line | Count | Source | 32 | 145k | static bool greater(const T& a, const T& b) { | 33 | 145k | return a > b; | 34 | 145k | } |
_ZN5doris7Compare7greaterINS_7DecimalIN4wide7integerILm256EiEEEEEEbRKT_S9_ Line | Count | Source | 32 | 3.25k | static bool greater(const T& a, const T& b) { | 33 | 3.25k | return a > b; | 34 | 3.25k | } |
_ZN5doris7Compare7greaterIN4wide7integerILm256EiEEEEbRKT_S7_ Line | Count | Source | 32 | 6 | static bool greater(const T& a, const T& b) { | 33 | 6 | return a > b; | 34 | 6 | } |
_ZN5doris7Compare7greaterINS_9StringRefEEEbRKT_S5_ Line | Count | Source | 32 | 713 | static bool greater(const T& a, const T& b) { | 33 | 713 | return a > b; | 34 | 713 | } |
_ZN5doris7Compare7greaterINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKT_SA_ Line | Count | Source | 32 | 1.17M | static bool greater(const T& a, const T& b) { | 33 | 1.17M | return a > b; | 34 | 1.17M | } |
|
35 | | |
36 | | template <typename T> |
37 | 913M | static bool less_equal(const T& a, const T& b) { |
38 | 913M | return a <= b; |
39 | 913M | } _ZN5doris7Compare10less_equalIiEEbRKT_S4_ Line | Count | Source | 37 | 743M | static bool less_equal(const T& a, const T& b) { | 38 | 743M | return a <= b; | 39 | 743M | } |
_ZN5doris7Compare10less_equalIlEEbRKT_S4_ Line | Count | Source | 37 | 155M | static bool less_equal(const T& a, const T& b) { | 38 | 155M | return a <= b; | 39 | 155M | } |
_ZN5doris7Compare10less_equalInEEbRKT_S4_ Line | Count | Source | 37 | 418k | static bool less_equal(const T& a, const T& b) { | 38 | 418k | return a <= b; | 39 | 418k | } |
_ZN5doris7Compare10less_equalIN4wide7integerILm256EiEEEEbRKT_S7_ Line | Count | Source | 37 | 136 | static bool less_equal(const T& a, const T& b) { | 38 | 136 | return a <= b; | 39 | 136 | } |
_ZN5doris7Compare10less_equalIhEEbRKT_S4_ Line | Count | Source | 37 | 269k | static bool less_equal(const T& a, const T& b) { | 38 | 269k | return a <= b; | 39 | 269k | } |
_ZN5doris7Compare10less_equalIaEEbRKT_S4_ Line | Count | Source | 37 | 2.30M | static bool less_equal(const T& a, const T& b) { | 38 | 2.30M | return a <= b; | 39 | 2.30M | } |
_ZN5doris7Compare10less_equalIsEEbRKT_S4_ Line | Count | Source | 37 | 248k | static bool less_equal(const T& a, const T& b) { | 38 | 248k | return a <= b; | 39 | 248k | } |
_ZN5doris7Compare10less_equalIjEEbRKT_S4_ Line | Count | Source | 37 | 282 | static bool less_equal(const T& a, const T& b) { | 38 | 282 | return a <= b; | 39 | 282 | } |
_ZN5doris7Compare10less_equalIoEEbRKT_S4_ Line | Count | Source | 37 | 190 | static bool less_equal(const T& a, const T& b) { | 38 | 190 | return a <= b; | 39 | 190 | } |
_ZN5doris7Compare10less_equalINS_14DecimalV2ValueEEEbRKT_S5_ Line | Count | Source | 37 | 7 | static bool less_equal(const T& a, const T& b) { | 38 | 7 | return a <= b; | 39 | 7 | } |
_ZN5doris7Compare10less_equalINS_7DecimalIiEEEEbRKT_S6_ Line | Count | Source | 37 | 103 | static bool less_equal(const T& a, const T& b) { | 38 | 103 | return a <= b; | 39 | 103 | } |
_ZN5doris7Compare10less_equalINS_7DecimalIlEEEEbRKT_S6_ Line | Count | Source | 37 | 4.73M | static bool less_equal(const T& a, const T& b) { | 38 | 4.73M | return a <= b; | 39 | 4.73M | } |
_ZN5doris7Compare10less_equalINS_12Decimal128V3EEEbRKT_S5_ Line | Count | Source | 37 | 379k | static bool less_equal(const T& a, const T& b) { | 38 | 379k | return a <= b; | 39 | 379k | } |
_ZN5doris7Compare10less_equalINS_7DecimalIN4wide7integerILm256EiEEEEEEbRKT_S9_ Line | Count | Source | 37 | 204 | static bool less_equal(const T& a, const T& b) { | 38 | 204 | return a <= b; | 39 | 204 | } |
_ZN5doris7Compare10less_equalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKT_SA_ Line | Count | Source | 37 | 344k | static bool less_equal(const T& a, const T& b) { | 38 | 344k | return a <= b; | 39 | 344k | } |
_ZN5doris7Compare10less_equalINS_16VecDateTimeValueEEEbRKT_S5_ Line | Count | Source | 37 | 338k | static bool less_equal(const T& a, const T& b) { | 38 | 338k | return a <= b; | 39 | 338k | } |
_ZN5doris7Compare10less_equalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEbRKT_S7_ Line | Count | Source | 37 | 5.54M | static bool less_equal(const T& a, const T& b) { | 38 | 5.54M | return a <= b; | 39 | 5.54M | } |
_ZN5doris7Compare10less_equalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEbRKT_S7_ Line | Count | Source | 37 | 17.1k | static bool less_equal(const T& a, const T& b) { | 38 | 17.1k | return a <= b; | 39 | 17.1k | } |
_ZN5doris7Compare10less_equalINS_16TimestampTzValueEEEbRKT_S5_ Line | Count | Source | 37 | 5.73k | static bool less_equal(const T& a, const T& b) { | 38 | 5.73k | return a <= b; | 39 | 5.73k | } |
_ZN5doris7Compare10less_equalINS_9StringRefEEEbRKT_S5_ Line | Count | Source | 37 | 227k | static bool less_equal(const T& a, const T& b) { | 38 | 227k | return a <= b; | 39 | 227k | } |
|
40 | | template <typename T> |
41 | 905M | static bool greater_equal(const T& a, const T& b) { |
42 | 905M | return a >= b; |
43 | 905M | } _ZN5doris7Compare13greater_equalIhEEbRKT_S4_ Line | Count | Source | 41 | 160k | static bool greater_equal(const T& a, const T& b) { | 42 | 160k | return a >= b; | 43 | 160k | } |
_ZN5doris7Compare13greater_equalIaEEbRKT_S4_ Line | Count | Source | 41 | 2.20M | static bool greater_equal(const T& a, const T& b) { | 42 | 2.20M | return a >= b; | 43 | 2.20M | } |
_ZN5doris7Compare13greater_equalIsEEbRKT_S4_ Line | Count | Source | 41 | 261k | static bool greater_equal(const T& a, const T& b) { | 42 | 261k | return a >= b; | 43 | 261k | } |
_ZN5doris7Compare13greater_equalIiEEbRKT_S4_ Line | Count | Source | 41 | 730M | static bool greater_equal(const T& a, const T& b) { | 42 | 730M | return a >= b; | 43 | 730M | } |
_ZN5doris7Compare13greater_equalIlEEbRKT_S4_ Line | Count | Source | 41 | 149M | static bool greater_equal(const T& a, const T& b) { | 42 | 149M | return a >= b; | 43 | 149M | } |
_ZN5doris7Compare13greater_equalInEEbRKT_S4_ Line | Count | Source | 41 | 2.10M | static bool greater_equal(const T& a, const T& b) { | 42 | 2.10M | return a >= b; | 43 | 2.10M | } |
_ZN5doris7Compare13greater_equalIjEEbRKT_S4_ Line | Count | Source | 41 | 486 | static bool greater_equal(const T& a, const T& b) { | 42 | 486 | return a >= b; | 43 | 486 | } |
_ZN5doris7Compare13greater_equalIoEEbRKT_S4_ Line | Count | Source | 41 | 399 | static bool greater_equal(const T& a, const T& b) { | 42 | 399 | return a >= b; | 43 | 399 | } |
_ZN5doris7Compare13greater_equalIN4wide7integerILm256EiEEEEbRKT_S7_ Line | Count | Source | 41 | 151 | static bool greater_equal(const T& a, const T& b) { | 42 | 151 | return a >= b; | 43 | 151 | } |
_ZN5doris7Compare13greater_equalINS_14DecimalV2ValueEEEbRKT_S5_ Line | Count | Source | 41 | 7 | static bool greater_equal(const T& a, const T& b) { | 42 | 7 | return a >= b; | 43 | 7 | } |
_ZN5doris7Compare13greater_equalINS_7DecimalIiEEEEbRKT_S6_ Line | Count | Source | 41 | 178 | static bool greater_equal(const T& a, const T& b) { | 42 | 178 | return a >= b; | 43 | 178 | } |
_ZN5doris7Compare13greater_equalINS_7DecimalIlEEEEbRKT_S6_ Line | Count | Source | 41 | 2.36M | static bool greater_equal(const T& a, const T& b) { | 42 | 2.36M | return a >= b; | 43 | 2.36M | } |
_ZN5doris7Compare13greater_equalINS_12Decimal128V3EEEbRKT_S5_ Line | Count | Source | 41 | 431k | static bool greater_equal(const T& a, const T& b) { | 42 | 431k | return a >= b; | 43 | 431k | } |
_ZN5doris7Compare13greater_equalINS_7DecimalIN4wide7integerILm256EiEEEEEEbRKT_S9_ Line | Count | Source | 41 | 176 | static bool greater_equal(const T& a, const T& b) { | 42 | 176 | return a >= b; | 43 | 176 | } |
_ZN5doris7Compare13greater_equalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKT_SA_ Line | Count | Source | 41 | 340k | static bool greater_equal(const T& a, const T& b) { | 42 | 340k | return a >= b; | 43 | 340k | } |
_ZN5doris7Compare13greater_equalINS_16VecDateTimeValueEEEbRKT_S5_ Line | Count | Source | 41 | 442k | static bool greater_equal(const T& a, const T& b) { | 42 | 442k | return a >= b; | 43 | 442k | } |
_ZN5doris7Compare13greater_equalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEbRKT_S7_ Line | Count | Source | 41 | 16.8M | static bool greater_equal(const T& a, const T& b) { | 42 | 16.8M | return a >= b; | 43 | 16.8M | } |
_ZN5doris7Compare13greater_equalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEbRKT_S7_ Line | Count | Source | 41 | 133k | static bool greater_equal(const T& a, const T& b) { | 42 | 133k | return a >= b; | 43 | 133k | } |
_ZN5doris7Compare13greater_equalINS_16TimestampTzValueEEEbRKT_S5_ Line | Count | Source | 41 | 768 | static bool greater_equal(const T& a, const T& b) { | 42 | 768 | return a >= b; | 43 | 768 | } |
_ZN5doris7Compare13greater_equalINS_9StringRefEEEbRKT_S5_ Line | Count | Source | 41 | 328k | static bool greater_equal(const T& a, const T& b) { | 42 | 328k | return a >= b; | 43 | 328k | } |
|
44 | | template <typename T> |
45 | 147M | static bool equal(const T& a, const T& b) { |
46 | 147M | return a == b; |
47 | 147M | } _ZN5doris7Compare5equalIiEEbRKT_S4_ Line | Count | Source | 45 | 66.0M | static bool equal(const T& a, const T& b) { | 46 | 66.0M | return a == b; | 47 | 66.0M | } |
_ZN5doris7Compare5equalIlEEbRKT_S4_ Line | Count | Source | 45 | 4.73M | static bool equal(const T& a, const T& b) { | 46 | 4.73M | return a == b; | 47 | 4.73M | } |
_ZN5doris7Compare5equalInEEbRKT_S4_ Line | Count | Source | 45 | 816k | static bool equal(const T& a, const T& b) { | 46 | 816k | return a == b; | 47 | 816k | } |
_ZN5doris7Compare5equalIN4wide7integerILm256EiEEEEbRKT_S7_ Line | Count | Source | 45 | 41 | static bool equal(const T& a, const T& b) { | 46 | 41 | return a == b; | 47 | 41 | } |
_ZN5doris7Compare5equalINS_16VecDateTimeValueEEEbRKT_S5_ Line | Count | Source | 45 | 390k | static bool equal(const T& a, const T& b) { | 46 | 390k | return a == b; | 47 | 390k | } |
_ZN5doris7Compare5equalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEbRKT_S7_ Line | Count | Source | 45 | 549k | static bool equal(const T& a, const T& b) { | 46 | 549k | return a == b; | 47 | 549k | } |
_ZN5doris7Compare5equalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEbRKT_S7_ Line | Count | Source | 45 | 204k | static bool equal(const T& a, const T& b) { | 46 | 204k | return a == b; | 47 | 204k | } |
_ZN5doris7Compare5equalINS_16TimestampTzValueEEEbRKT_S5_ Line | Count | Source | 45 | 4.35k | static bool equal(const T& a, const T& b) { | 46 | 4.35k | return a == b; | 47 | 4.35k | } |
_ZN5doris7Compare5equalIjEEbRKT_S4_ Line | Count | Source | 45 | 1.96k | static bool equal(const T& a, const T& b) { | 46 | 1.96k | return a == b; | 47 | 1.96k | } |
_ZN5doris7Compare5equalIoEEbRKT_S4_ Line | Count | Source | 45 | 1.71k | static bool equal(const T& a, const T& b) { | 46 | 1.71k | return a == b; | 47 | 1.71k | } |
_ZN5doris7Compare5equalIhEEbRKT_S4_ Line | Count | Source | 45 | 3.75k | static bool equal(const T& a, const T& b) { | 46 | 3.75k | return a == b; | 47 | 3.75k | } |
_ZN5doris7Compare5equalIaEEbRKT_S4_ Line | Count | Source | 45 | 69.7M | static bool equal(const T& a, const T& b) { | 46 | 69.7M | return a == b; | 47 | 69.7M | } |
_ZN5doris7Compare5equalIsEEbRKT_S4_ Line | Count | Source | 45 | 436k | static bool equal(const T& a, const T& b) { | 46 | 436k | return a == b; | 47 | 436k | } |
_ZN5doris7Compare5equalINS_7DecimalIiEEEEbRKT_S6_ Line | Count | Source | 45 | 553 | static bool equal(const T& a, const T& b) { | 46 | 553 | return a == b; | 47 | 553 | } |
_ZN5doris7Compare5equalINS_7DecimalIlEEEEbRKT_S6_ Line | Count | Source | 45 | 1.00k | static bool equal(const T& a, const T& b) { | 46 | 1.00k | return a == b; | 47 | 1.00k | } |
_ZN5doris7Compare5equalINS_14DecimalV2ValueEEEbRKT_S5_ Line | Count | Source | 45 | 17 | static bool equal(const T& a, const T& b) { | 46 | 17 | return a == b; | 47 | 17 | } |
_ZN5doris7Compare5equalINS_12Decimal128V3EEEbRKT_S5_ Line | Count | Source | 45 | 701k | static bool equal(const T& a, const T& b) { | 46 | 701k | return a == b; | 47 | 701k | } |
_ZN5doris7Compare5equalINS_7DecimalIN4wide7integerILm256EiEEEEEEbRKT_S9_ Line | Count | Source | 45 | 422 | static bool equal(const T& a, const T& b) { | 46 | 422 | return a == b; | 47 | 422 | } |
_ZN5doris7Compare5equalIbEEbRKT_S4_ Line | Count | Source | 45 | 1.95M | static bool equal(const T& a, const T& b) { | 46 | 1.95M | return a == b; | 47 | 1.95M | } |
_ZN5doris7Compare5equalINS_9StringRefEEEbRKT_S5_ Line | Count | Source | 45 | 1.87M | static bool equal(const T& a, const T& b) { | 46 | 1.87M | return a == b; | 47 | 1.87M | } |
_ZN5doris7Compare5equalINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbRKT_SA_ Line | Count | Source | 45 | 43.0k | static bool equal(const T& a, const T& b) { | 46 | 43.0k | return a == b; | 47 | 43.0k | } |
|
48 | | template <typename T> |
49 | 9.41M | static bool not_equal(const T& a, const T& b) { |
50 | 9.41M | return a != b; |
51 | 9.41M | } Unexecuted instantiation: _ZN5doris7Compare9not_equalIhEEbRKT_S4_ _ZN5doris7Compare9not_equalIaEEbRKT_S4_ Line | Count | Source | 49 | 1.88k | static bool not_equal(const T& a, const T& b) { | 50 | 1.88k | return a != b; | 51 | 1.88k | } |
_ZN5doris7Compare9not_equalIsEEbRKT_S4_ Line | Count | Source | 49 | 820 | static bool not_equal(const T& a, const T& b) { | 50 | 820 | return a != b; | 51 | 820 | } |
_ZN5doris7Compare9not_equalIiEEbRKT_S4_ Line | Count | Source | 49 | 8.13M | static bool not_equal(const T& a, const T& b) { | 50 | 8.13M | return a != b; | 51 | 8.13M | } |
_ZN5doris7Compare9not_equalIlEEbRKT_S4_ Line | Count | Source | 49 | 1.27M | static bool not_equal(const T& a, const T& b) { | 50 | 1.27M | return a != b; | 51 | 1.27M | } |
_ZN5doris7Compare9not_equalInEEbRKT_S4_ Line | Count | Source | 49 | 1.85k | static bool not_equal(const T& a, const T& b) { | 50 | 1.85k | return a != b; | 51 | 1.85k | } |
_ZN5doris7Compare9not_equalIjEEbRKT_S4_ Line | Count | Source | 49 | 30 | static bool not_equal(const T& a, const T& b) { | 50 | 30 | return a != b; | 51 | 30 | } |
_ZN5doris7Compare9not_equalIoEEbRKT_S4_ Line | Count | Source | 49 | 20 | static bool not_equal(const T& a, const T& b) { | 50 | 20 | return a != b; | 51 | 20 | } |
_ZN5doris7Compare9not_equalIN4wide7integerILm256EiEEEEbRKT_S7_ Line | Count | Source | 49 | 363 | static bool not_equal(const T& a, const T& b) { | 50 | 363 | return a != b; | 51 | 363 | } |
_ZN5doris7Compare9not_equalIbEEbRKT_S4_ Line | Count | Source | 49 | 2.85k | static bool not_equal(const T& a, const T& b) { | 50 | 2.85k | return a != b; | 51 | 2.85k | } |
Unexecuted instantiation: _ZN5doris7Compare9not_equalINS_14DecimalV2ValueEEEbRKT_S5_ _ZN5doris7Compare9not_equalINS_7DecimalIiEEEEbRKT_S6_ Line | Count | Source | 49 | 48 | static bool not_equal(const T& a, const T& b) { | 50 | 48 | return a != b; | 51 | 48 | } |
_ZN5doris7Compare9not_equalINS_7DecimalIlEEEEbRKT_S6_ Line | Count | Source | 49 | 18 | static bool not_equal(const T& a, const T& b) { | 50 | 18 | return a != b; | 51 | 18 | } |
_ZN5doris7Compare9not_equalINS_12Decimal128V3EEEbRKT_S5_ Line | Count | Source | 49 | 66 | static bool not_equal(const T& a, const T& b) { | 50 | 66 | return a != b; | 51 | 66 | } |
_ZN5doris7Compare9not_equalINS_7DecimalIN4wide7integerILm256EiEEEEEEbRKT_S9_ Line | Count | Source | 49 | 245 | static bool not_equal(const T& a, const T& b) { | 50 | 245 | return a != b; | 51 | 245 | } |
_ZN5doris7Compare9not_equalINS_9StringRefEEEbRKT_S5_ Line | Count | Source | 49 | 316 | static bool not_equal(const T& a, const T& b) { | 50 | 316 | return a != b; | 51 | 316 | } |
_ZN5doris7Compare9not_equalINS_16VecDateTimeValueEEEbRKT_S5_ Line | Count | Source | 49 | 66 | static bool not_equal(const T& a, const T& b) { | 50 | 66 | return a != b; | 51 | 66 | } |
_ZN5doris7Compare9not_equalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEbRKT_S7_ Line | Count | Source | 49 | 226 | static bool not_equal(const T& a, const T& b) { | 50 | 226 | return a != b; | 51 | 226 | } |
_ZN5doris7Compare9not_equalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEbRKT_S7_ Line | Count | Source | 49 | 59 | static bool not_equal(const T& a, const T& b) { | 50 | 59 | return a != b; | 51 | 59 | } |
_ZN5doris7Compare9not_equalINS_16TimestampTzValueEEEbRKT_S5_ Line | Count | Source | 49 | 1.61k | static bool not_equal(const T& a, const T& b) { | 50 | 1.61k | return a != b; | 51 | 1.61k | } |
|
52 | | |
53 | | template <typename T> |
54 | 590M | static int compare(const T& a, const T& b) { |
55 | 590M | return a > b ? 1 : (a < b ? -1 : 0); |
56 | 590M | } _ZN5doris7Compare7compareIhEEiRKT_S4_ Line | Count | Source | 54 | 6.10M | static int compare(const T& a, const T& b) { | 55 | 6.10M | return a > b ? 1 : (a < b ? -1 : 0); | 56 | 6.10M | } |
Unexecuted instantiation: _ZN5doris7Compare7compareImEEiRKT_S4_ _ZN5doris7Compare7compareINS_16TimestampTzValueEEEiRKT_S5_ Line | Count | Source | 54 | 586k | static int compare(const T& a, const T& b) { | 55 | 586k | return a > b ? 1 : (a < b ? -1 : 0); | 56 | 586k | } |
_ZN5doris7Compare7compareIlEEiRKT_S4_ Line | Count | Source | 54 | 120M | static int compare(const T& a, const T& b) { | 55 | 120M | return a > b ? 1 : (a < b ? -1 : 0); | 56 | 120M | } |
_ZN5doris7Compare7compareIaEEiRKT_S4_ Line | Count | Source | 54 | 10.3M | static int compare(const T& a, const T& b) { | 55 | 10.3M | return a > b ? 1 : (a < b ? -1 : 0); | 56 | 10.3M | } |
_ZN5doris7Compare7compareIiEEiRKT_S4_ Line | Count | Source | 54 | 330M | static int compare(const T& a, const T& b) { | 55 | 330M | return a > b ? 1 : (a < b ? -1 : 0); | 56 | 330M | } |
_ZN5doris7Compare7compareINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKT_S7_ Line | Count | Source | 54 | 11.8M | static int compare(const T& a, const T& b) { | 55 | 11.8M | return a > b ? 1 : (a < b ? -1 : 0); | 56 | 11.8M | } |
_ZN5doris7Compare7compareINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKT_S7_ Line | Count | Source | 54 | 50.9M | static int compare(const T& a, const T& b) { | 55 | 50.9M | return a > b ? 1 : (a < b ? -1 : 0); | 56 | 50.9M | } |
_ZN5doris7Compare7compareIjEEiRKT_S4_ Line | Count | Source | 54 | 7.14k | static int compare(const T& a, const T& b) { | 55 | 7.14k | return a > b ? 1 : (a < b ? -1 : 0); | 56 | 7.14k | } |
_ZN5doris7Compare7compareIoEEiRKT_S4_ Line | Count | Source | 54 | 4.98k | static int compare(const T& a, const T& b) { | 55 | 4.98k | return a > b ? 1 : (a < b ? -1 : 0); | 56 | 4.98k | } |
_ZN5doris7Compare7compareIsEEiRKT_S4_ Line | Count | Source | 54 | 10.7M | static int compare(const T& a, const T& b) { | 55 | 10.7M | return a > b ? 1 : (a < b ? -1 : 0); | 56 | 10.7M | } |
_ZN5doris7Compare7compareInEEiRKT_S4_ Line | Count | Source | 54 | 9.98M | static int compare(const T& a, const T& b) { | 55 | 9.98M | return a > b ? 1 : (a < b ? -1 : 0); | 56 | 9.98M | } |
_ZN5doris7Compare7compareINS_16VecDateTimeValueEEEiRKT_S5_ Line | Count | Source | 54 | 15.8M | static int compare(const T& a, const T& b) { | 55 | 15.8M | return a > b ? 1 : (a < b ? -1 : 0); | 56 | 15.8M | } |
_ZN5doris7Compare7compareINS_9StringRefEEEiRKT_S5_ Line | Count | Source | 54 | 2.88k | static int compare(const T& a, const T& b) { | 55 | 2.88k | return a > b ? 1 : (a < b ? -1 : 0); | 56 | 2.88k | } |
_ZN5doris7Compare7compareINS_7DecimalIiEEEEiRKT_S6_ Line | Count | Source | 54 | 24.1k | static int compare(const T& a, const T& b) { | 55 | 24.1k | return a > b ? 1 : (a < b ? -1 : 0); | 56 | 24.1k | } |
_ZN5doris7Compare7compareINS_7DecimalIlEEEEiRKT_S6_ Line | Count | Source | 54 | 458k | static int compare(const T& a, const T& b) { | 55 | 458k | return a > b ? 1 : (a < b ? -1 : 0); | 56 | 458k | } |
_ZN5doris7Compare7compareINS_14DecimalV2ValueEEEiRKT_S5_ Line | Count | Source | 54 | 163k | static int compare(const T& a, const T& b) { | 55 | 163k | return a > b ? 1 : (a < b ? -1 : 0); | 56 | 163k | } |
_ZN5doris7Compare7compareINS_12Decimal128V3EEEiRKT_S5_ Line | Count | Source | 54 | 21.6M | static int compare(const T& a, const T& b) { | 55 | 18.4E | return a > b ? 1 : (a < b ? -1 : 0); | 56 | 21.6M | } |
_ZN5doris7Compare7compareINS_7DecimalIN4wide7integerILm256EiEEEEEEiRKT_S9_ Line | Count | Source | 54 | 95.1k | static int compare(const T& a, const T& b) { | 55 | 95.1k | return a > b ? 1 : (a < b ? -1 : 0); | 56 | 95.1k | } |
|
57 | | |
58 | | template <typename T> |
59 | 56.0M | static T min(const T& a, const T& b) { |
60 | 56.0M | return less(a, b) ? a : b; |
61 | 56.0M | } _ZN5doris7Compare3minINS_16VecDateTimeValueEEET_RKS3_S5_ Line | Count | Source | 59 | 5 | static T min(const T& a, const T& b) { | 60 | 5 | return less(a, b) ? a : b; | 61 | 5 | } |
_ZN5doris7Compare3minINS_11DateV2ValueINS_15DateV2ValueTypeEEEEET_RKS5_S7_ Line | Count | Source | 59 | 1.98M | static T min(const T& a, const T& b) { | 60 | 1.98M | return less(a, b) ? a : b; | 61 | 1.98M | } |
_ZN5doris7Compare3minINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEET_RKS5_S7_ Line | Count | Source | 59 | 44.0M | static T min(const T& a, const T& b) { | 60 | 44.0M | return less(a, b) ? a : b; | 61 | 44.0M | } |
_ZN5doris7Compare3minINS_16TimestampTzValueEEET_RKS3_S5_ Line | Count | Source | 59 | 2.51k | static T min(const T& a, const T& b) { | 60 | 2.51k | return less(a, b) ? a : b; | 61 | 2.51k | } |
_ZN5doris7Compare3minIdEET_RKS2_S4_ Line | Count | Source | 59 | 30.0k | static T min(const T& a, const T& b) { | 60 | 30.0k | return less(a, b) ? a : b; | 61 | 30.0k | } |
_ZN5doris7Compare3minIjEET_RKS2_S4_ Line | Count | Source | 59 | 31 | static T min(const T& a, const T& b) { | 60 | 31 | return less(a, b) ? a : b; | 61 | 31 | } |
_ZN5doris7Compare3minIoEET_RKS2_S4_ Line | Count | Source | 59 | 31 | static T min(const T& a, const T& b) { | 60 | 31 | return less(a, b) ? a : b; | 61 | 31 | } |
_ZN5doris7Compare3minIhEET_RKS2_S4_ Line | Count | Source | 59 | 12.8k | static T min(const T& a, const T& b) { | 60 | 12.8k | return less(a, b) ? a : b; | 61 | 12.8k | } |
_ZN5doris7Compare3minIaEET_RKS2_S4_ Line | Count | Source | 59 | 7.63k | static T min(const T& a, const T& b) { | 60 | 7.63k | return less(a, b) ? a : b; | 61 | 7.63k | } |
_ZN5doris7Compare3minIsEET_RKS2_S4_ Line | Count | Source | 59 | 8.21k | static T min(const T& a, const T& b) { | 60 | 8.21k | return less(a, b) ? a : b; | 61 | 8.21k | } |
_ZN5doris7Compare3minIiEET_RKS2_S4_ Line | Count | Source | 59 | 3.51M | static T min(const T& a, const T& b) { | 60 | 3.51M | return less(a, b) ? a : b; | 61 | 3.51M | } |
_ZN5doris7Compare3minIlEET_RKS2_S4_ Line | Count | Source | 59 | 126k | static T min(const T& a, const T& b) { | 60 | 126k | return less(a, b) ? a : b; | 61 | 126k | } |
_ZN5doris7Compare3minInEET_RKS2_S4_ Line | Count | Source | 59 | 825 | static T min(const T& a, const T& b) { | 60 | 825 | return less(a, b) ? a : b; | 61 | 825 | } |
_ZN5doris7Compare3minIfEET_RKS2_S4_ Line | Count | Source | 59 | 13.3k | static T min(const T& a, const T& b) { | 60 | 13.3k | return less(a, b) ? a : b; | 61 | 13.3k | } |
_ZN5doris7Compare3minINS_7DecimalIiEEEET_RKS4_S6_ Line | Count | Source | 59 | 1.57M | static T min(const T& a, const T& b) { | 60 | 1.57M | return less(a, b) ? a : b; | 61 | 1.57M | } |
_ZN5doris7Compare3minINS_7DecimalIlEEEET_RKS4_S6_ Line | Count | Source | 59 | 3.99M | static T min(const T& a, const T& b) { | 60 | 3.99M | return less(a, b) ? a : b; | 61 | 3.99M | } |
_ZN5doris7Compare3minINS_14DecimalV2ValueEEET_RKS3_S5_ Line | Count | Source | 59 | 4.09k | static T min(const T& a, const T& b) { | 60 | 4.09k | return less(a, b) ? a : b; | 61 | 4.09k | } |
_ZN5doris7Compare3minINS_12Decimal128V3EEET_RKS3_S5_ Line | Count | Source | 59 | 738k | static T min(const T& a, const T& b) { | 60 | 738k | return less(a, b) ? a : b; | 61 | 738k | } |
_ZN5doris7Compare3minINS_7DecimalIN4wide7integerILm256EiEEEEEET_RKS7_S9_ Line | Count | Source | 59 | 360 | static T min(const T& a, const T& b) { | 60 | 360 | return less(a, b) ? a : b; | 61 | 360 | } |
|
62 | | |
63 | | template <typename T> |
64 | 69.2M | static T max(const T& a, const T& b) { |
65 | 69.2M | return greater(a, b) ? a : b; |
66 | 69.2M | } _ZN5doris7Compare3maxINS_16VecDateTimeValueEEET_RKS3_S5_ Line | Count | Source | 64 | 5 | static T max(const T& a, const T& b) { | 65 | 5 | return greater(a, b) ? a : b; | 66 | 5 | } |
_ZN5doris7Compare3maxINS_11DateV2ValueINS_15DateV2ValueTypeEEEEET_RKS5_S7_ Line | Count | Source | 64 | 7.80M | static T max(const T& a, const T& b) { | 65 | 7.80M | return greater(a, b) ? a : b; | 66 | 7.80M | } |
_ZN5doris7Compare3maxINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEET_RKS5_S7_ Line | Count | Source | 64 | 44.0M | static T max(const T& a, const T& b) { | 65 | 44.0M | return greater(a, b) ? a : b; | 66 | 44.0M | } |
_ZN5doris7Compare3maxINS_16TimestampTzValueEEET_RKS3_S5_ Line | Count | Source | 64 | 2.51k | static T max(const T& a, const T& b) { | 65 | 2.51k | return greater(a, b) ? a : b; | 66 | 2.51k | } |
_ZN5doris7Compare3maxIdEET_RKS2_S4_ Line | Count | Source | 64 | 6.31M | static T max(const T& a, const T& b) { | 65 | 6.31M | return greater(a, b) ? a : b; | 66 | 6.31M | } |
_ZN5doris7Compare3maxIjEET_RKS2_S4_ Line | Count | Source | 64 | 27 | static T max(const T& a, const T& b) { | 65 | 27 | return greater(a, b) ? a : b; | 66 | 27 | } |
_ZN5doris7Compare3maxIoEET_RKS2_S4_ Line | Count | Source | 64 | 27 | static T max(const T& a, const T& b) { | 65 | 27 | return greater(a, b) ? a : b; | 66 | 27 | } |
_ZN5doris7Compare3maxIhEET_RKS2_S4_ Line | Count | Source | 64 | 19.9k | static T max(const T& a, const T& b) { | 65 | 19.9k | return greater(a, b) ? a : b; | 66 | 19.9k | } |
_ZN5doris7Compare3maxIaEET_RKS2_S4_ Line | Count | Source | 64 | 15.7k | static T max(const T& a, const T& b) { | 65 | 15.7k | return greater(a, b) ? a : b; | 66 | 15.7k | } |
_ZN5doris7Compare3maxIsEET_RKS2_S4_ Line | Count | Source | 64 | 16.4k | static T max(const T& a, const T& b) { | 65 | 16.4k | return greater(a, b) ? a : b; | 66 | 16.4k | } |
_ZN5doris7Compare3maxIiEET_RKS2_S4_ Line | Count | Source | 64 | 4.40M | static T max(const T& a, const T& b) { | 65 | 4.40M | return greater(a, b) ? a : b; | 66 | 4.40M | } |
_ZN5doris7Compare3maxIlEET_RKS2_S4_ Line | Count | Source | 64 | 153k | static T max(const T& a, const T& b) { | 65 | 153k | return greater(a, b) ? a : b; | 66 | 153k | } |
_ZN5doris7Compare3maxInEET_RKS2_S4_ Line | Count | Source | 64 | 1.94k | static T max(const T& a, const T& b) { | 65 | 1.94k | return greater(a, b) ? a : b; | 66 | 1.94k | } |
_ZN5doris7Compare3maxIfEET_RKS2_S4_ Line | Count | Source | 64 | 21.4k | static T max(const T& a, const T& b) { | 65 | 21.4k | return greater(a, b) ? a : b; | 66 | 21.4k | } |
_ZN5doris7Compare3maxINS_7DecimalIiEEEET_RKS4_S6_ Line | Count | Source | 64 | 2.24M | static T max(const T& a, const T& b) { | 65 | 2.24M | return greater(a, b) ? a : b; | 66 | 2.24M | } |
_ZN5doris7Compare3maxINS_7DecimalIlEEEET_RKS4_S6_ Line | Count | Source | 64 | 3.99M | static T max(const T& a, const T& b) { | 65 | 3.99M | return greater(a, b) ? a : b; | 66 | 3.99M | } |
_ZN5doris7Compare3maxINS_14DecimalV2ValueEEET_RKS3_S5_ Line | Count | Source | 64 | 4.09k | static T max(const T& a, const T& b) { | 65 | 4.09k | return greater(a, b) ? a : b; | 66 | 4.09k | } |
_ZN5doris7Compare3maxINS_12Decimal128V3EEET_RKS3_S5_ Line | Count | Source | 64 | 129k | static T max(const T& a, const T& b) { | 65 | 129k | return greater(a, b) ? a : b; | 66 | 129k | } |
_ZN5doris7Compare3maxINS_7DecimalIN4wide7integerILm256EiEEEEEET_RKS7_S9_ Line | Count | Source | 64 | 356 | static T max(const T& a, const T& b) { | 65 | 356 | return greater(a, b) ? a : b; | 66 | 356 | } |
|
67 | | |
68 | | template <typename T> |
69 | 1.62M | static T min_value() { |
70 | 1.62M | return type_limit<T>::min(); |
71 | 1.62M | } _ZN5doris7Compare9min_valueINS_16VecDateTimeValueEEET_v Line | Count | Source | 69 | 1 | static T min_value() { | 70 | 1 | return type_limit<T>::min(); | 71 | 1 | } |
_ZN5doris7Compare9min_valueINS_11DateV2ValueINS_15DateV2ValueTypeEEEEET_v Line | Count | Source | 69 | 15.4k | static T min_value() { | 70 | 15.4k | return type_limit<T>::min(); | 71 | 15.4k | } |
_ZN5doris7Compare9min_valueINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEET_v Line | Count | Source | 69 | 16.8k | static T min_value() { | 70 | 16.8k | return type_limit<T>::min(); | 71 | 16.8k | } |
_ZN5doris7Compare9min_valueINS_16TimestampTzValueEEET_v Line | Count | Source | 69 | 1.84k | static T min_value() { | 70 | 1.84k | return type_limit<T>::min(); | 71 | 1.84k | } |
_ZN5doris7Compare9min_valueIdEET_v Line | Count | Source | 69 | 343k | static T min_value() { | 70 | 343k | return type_limit<T>::min(); | 71 | 343k | } |
_ZN5doris7Compare9min_valueIjEET_v Line | Count | Source | 69 | 29 | static T min_value() { | 70 | 29 | return type_limit<T>::min(); | 71 | 29 | } |
_ZN5doris7Compare9min_valueIoEET_v Line | Count | Source | 69 | 29 | static T min_value() { | 70 | 29 | return type_limit<T>::min(); | 71 | 29 | } |
_ZN5doris7Compare9min_valueIhEET_v Line | Count | Source | 69 | 304 | static T min_value() { | 70 | 304 | return type_limit<T>::min(); | 71 | 304 | } |
_ZN5doris7Compare9min_valueIaEET_v Line | Count | Source | 69 | 1.46k | static T min_value() { | 70 | 1.46k | return type_limit<T>::min(); | 71 | 1.46k | } |
_ZN5doris7Compare9min_valueIsEET_v Line | Count | Source | 69 | 2.55k | static T min_value() { | 70 | 2.55k | return type_limit<T>::min(); | 71 | 2.55k | } |
_ZN5doris7Compare9min_valueIiEET_v Line | Count | Source | 69 | 1.12M | static T min_value() { | 70 | 1.12M | return type_limit<T>::min(); | 71 | 1.12M | } |
_ZN5doris7Compare9min_valueIlEET_v Line | Count | Source | 69 | 68.8k | static T min_value() { | 70 | 68.8k | return type_limit<T>::min(); | 71 | 68.8k | } |
_ZN5doris7Compare9min_valueInEET_v Line | Count | Source | 69 | 1.12k | static T min_value() { | 70 | 1.12k | return type_limit<T>::min(); | 71 | 1.12k | } |
_ZN5doris7Compare9min_valueIfEET_v Line | Count | Source | 69 | 15.1k | static T min_value() { | 70 | 15.1k | return type_limit<T>::min(); | 71 | 15.1k | } |
_ZN5doris7Compare9min_valueINS_7DecimalIiEEEET_v Line | Count | Source | 69 | 5.51k | static T min_value() { | 70 | 5.51k | return type_limit<T>::min(); | 71 | 5.51k | } |
_ZN5doris7Compare9min_valueINS_7DecimalIlEEEET_v Line | Count | Source | 69 | 20.2k | static T min_value() { | 70 | 20.2k | return type_limit<T>::min(); | 71 | 20.2k | } |
_ZN5doris7Compare9min_valueINS_14DecimalV2ValueEEET_v Line | Count | Source | 69 | 4.09k | static T min_value() { | 70 | 4.09k | return type_limit<T>::min(); | 71 | 4.09k | } |
_ZN5doris7Compare9min_valueINS_12Decimal128V3EEET_v Line | Count | Source | 69 | 1.09k | static T min_value() { | 70 | 1.09k | return type_limit<T>::min(); | 71 | 1.09k | } |
_ZN5doris7Compare9min_valueINS_7DecimalIN4wide7integerILm256EiEEEEEET_v Line | Count | Source | 69 | 161 | static T min_value() { | 70 | 161 | return type_limit<T>::min(); | 71 | 161 | } |
|
72 | | |
73 | | template <typename T> |
74 | 293k | static T max_value() { |
75 | 293k | return type_limit<T>::max(); |
76 | 293k | } _ZN5doris7Compare9max_valueINS_16VecDateTimeValueEEET_v Line | Count | Source | 74 | 1 | static T max_value() { | 75 | 1 | return type_limit<T>::max(); | 76 | 1 | } |
_ZN5doris7Compare9max_valueINS_11DateV2ValueINS_15DateV2ValueTypeEEEEET_v Line | Count | Source | 74 | 5.12k | static T max_value() { | 75 | 5.12k | return type_limit<T>::max(); | 76 | 5.12k | } |
_ZN5doris7Compare9max_valueINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEET_v Line | Count | Source | 74 | 1.07k | static T max_value() { | 75 | 1.07k | return type_limit<T>::max(); | 76 | 1.07k | } |
_ZN5doris7Compare9max_valueINS_16TimestampTzValueEEET_v Line | Count | Source | 74 | 1.84k | static T max_value() { | 75 | 1.84k | return type_limit<T>::max(); | 76 | 1.84k | } |
_ZN5doris7Compare9max_valueIjEET_v Line | Count | Source | 74 | 28 | static T max_value() { | 75 | 28 | return type_limit<T>::max(); | 76 | 28 | } |
_ZN5doris7Compare9max_valueIoEET_v Line | Count | Source | 74 | 28 | static T max_value() { | 75 | 28 | return type_limit<T>::max(); | 76 | 28 | } |
_ZN5doris7Compare9max_valueIhEET_v Line | Count | Source | 74 | 169 | static T max_value() { | 75 | 169 | return type_limit<T>::max(); | 76 | 169 | } |
_ZN5doris7Compare9max_valueIaEET_v Line | Count | Source | 74 | 645 | static T max_value() { | 75 | 645 | return type_limit<T>::max(); | 76 | 645 | } |
_ZN5doris7Compare9max_valueIsEET_v Line | Count | Source | 74 | 577 | static T max_value() { | 75 | 577 | return type_limit<T>::max(); | 76 | 577 | } |
_ZN5doris7Compare9max_valueIiEET_v Line | Count | Source | 74 | 218k | static T max_value() { | 75 | 218k | return type_limit<T>::max(); | 76 | 218k | } |
_ZN5doris7Compare9max_valueIlEET_v Line | Count | Source | 74 | 43.1k | static T max_value() { | 75 | 43.1k | return type_limit<T>::max(); | 76 | 43.1k | } |
_ZN5doris7Compare9max_valueInEET_v Line | Count | Source | 74 | 402 | static T max_value() { | 75 | 402 | return type_limit<T>::max(); | 76 | 402 | } |
_ZN5doris7Compare9max_valueINS_7DecimalIiEEEET_v Line | Count | Source | 74 | 341 | static T max_value() { | 75 | 341 | return type_limit<T>::max(); | 76 | 341 | } |
_ZN5doris7Compare9max_valueINS_7DecimalIlEEEET_v Line | Count | Source | 74 | 16.7k | static T max_value() { | 75 | 16.7k | return type_limit<T>::max(); | 76 | 16.7k | } |
_ZN5doris7Compare9max_valueINS_14DecimalV2ValueEEET_v Line | Count | Source | 74 | 4.09k | static T max_value() { | 75 | 4.09k | return type_limit<T>::max(); | 76 | 4.09k | } |
_ZN5doris7Compare9max_valueINS_12Decimal128V3EEET_v Line | Count | Source | 74 | 836 | static T max_value() { | 75 | 836 | return type_limit<T>::max(); | 76 | 836 | } |
_ZN5doris7Compare9max_valueINS_7DecimalIN4wide7integerILm256EiEEEEEET_v Line | Count | Source | 74 | 160 | static T max_value() { | 75 | 160 | return type_limit<T>::max(); | 76 | 160 | } |
|
77 | | }; |
78 | | |
79 | | template <typename T> |
80 | 1.30M | bool EqualsFloat(T left, T right) { |
81 | 1.30M | if (UNLIKELY(std::isnan(left) && std::isnan(right))) { |
82 | 212 | return true; |
83 | 212 | } |
84 | 1.30M | return left == right; |
85 | 1.30M | } _ZN5doris11EqualsFloatIfEEbT_S1_ Line | Count | Source | 80 | 5.45k | bool EqualsFloat(T left, T right) { | 81 | 5.45k | if (UNLIKELY(std::isnan(left) && std::isnan(right))) { | 82 | 26 | return true; | 83 | 26 | } | 84 | 5.43k | return left == right; | 85 | 5.45k | } |
_ZN5doris11EqualsFloatIdEEbT_S1_ Line | Count | Source | 80 | 1.30M | bool EqualsFloat(T left, T right) { | 81 | 1.30M | if (UNLIKELY(std::isnan(left) && std::isnan(right))) { | 82 | 186 | return true; | 83 | 186 | } | 84 | 1.30M | return left == right; | 85 | 1.30M | } |
|
86 | | |
87 | | template <typename T> |
88 | 7.73M | bool GreaterThanFloat(T left, T right) { |
89 | | // nan is always bigger than everything else |
90 | 7.73M | bool left_is_nan = std::isnan(left); |
91 | 7.73M | bool right_is_nan = std::isnan(right); |
92 | 7.73M | if (UNLIKELY(right_is_nan)) { |
93 | 498 | return false; |
94 | 498 | } |
95 | 7.73M | if (UNLIKELY(left_is_nan)) { |
96 | 32.0k | return true; |
97 | 32.0k | } |
98 | 7.69M | return left > right; |
99 | 7.73M | } _ZN5doris16GreaterThanFloatIfEEbT_S1_ Line | Count | Source | 88 | 54.4k | bool GreaterThanFloat(T left, T right) { | 89 | | // nan is always bigger than everything else | 90 | 54.4k | bool left_is_nan = std::isnan(left); | 91 | 54.4k | bool right_is_nan = std::isnan(right); | 92 | 54.4k | if (UNLIKELY(right_is_nan)) { | 93 | 111 | return false; | 94 | 111 | } | 95 | 54.3k | if (UNLIKELY(left_is_nan)) { | 96 | 13.2k | return true; | 97 | 13.2k | } | 98 | 41.1k | return left > right; | 99 | 54.3k | } |
_ZN5doris16GreaterThanFloatIdEEbT_S1_ Line | Count | Source | 88 | 7.67M | bool GreaterThanFloat(T left, T right) { | 89 | | // nan is always bigger than everything else | 90 | 7.67M | bool left_is_nan = std::isnan(left); | 91 | 7.67M | bool right_is_nan = std::isnan(right); | 92 | 7.67M | if (UNLIKELY(right_is_nan)) { | 93 | 387 | return false; | 94 | 387 | } | 95 | 7.67M | if (UNLIKELY(left_is_nan)) { | 96 | 18.7k | return true; | 97 | 18.7k | } | 98 | 7.65M | return left > right; | 99 | 7.67M | } |
|
100 | | |
101 | | template <typename T> |
102 | 556k | bool GreaterThanEqualsFloat(T left, T right) { |
103 | | // nan is always bigger than everything else |
104 | 556k | bool left_is_nan = std::isnan(left); |
105 | 556k | bool right_is_nan = std::isnan(right); |
106 | 556k | if (UNLIKELY(right_is_nan)) { |
107 | 361 | return left_is_nan; |
108 | 361 | } |
109 | 556k | if (UNLIKELY(left_is_nan)) { |
110 | 598 | return true; |
111 | 598 | } |
112 | 555k | return left >= right; |
113 | 556k | } _ZN5doris22GreaterThanEqualsFloatIfEEbT_S1_ Line | Count | Source | 102 | 1.20k | bool GreaterThanEqualsFloat(T left, T right) { | 103 | | // nan is always bigger than everything else | 104 | 1.20k | bool left_is_nan = std::isnan(left); | 105 | 1.20k | bool right_is_nan = std::isnan(right); | 106 | 1.20k | if (UNLIKELY(right_is_nan)) { | 107 | 48 | return left_is_nan; | 108 | 48 | } | 109 | 1.16k | if (UNLIKELY(left_is_nan)) { | 110 | 110 | return true; | 111 | 110 | } | 112 | 1.05k | return left >= right; | 113 | 1.16k | } |
_ZN5doris22GreaterThanEqualsFloatIdEEbT_S1_ Line | Count | Source | 102 | 555k | bool GreaterThanEqualsFloat(T left, T right) { | 103 | | // nan is always bigger than everything else | 104 | 555k | bool left_is_nan = std::isnan(left); | 105 | 555k | bool right_is_nan = std::isnan(right); | 106 | 555k | if (UNLIKELY(right_is_nan)) { | 107 | 313 | return left_is_nan; | 108 | 313 | } | 109 | 555k | if (UNLIKELY(left_is_nan)) { | 110 | 488 | return true; | 111 | 488 | } | 112 | 554k | return left >= right; | 113 | 555k | } |
|
114 | | |
115 | | template <typename T> |
116 | 12.3M | int CompareFloat(T left, T right) { |
117 | | // nan is always bigger than everything else |
118 | 12.3M | bool left_is_nan = std::isnan(left); |
119 | 12.3M | bool right_is_nan = std::isnan(right); |
120 | 12.3M | if (UNLIKELY(left_is_nan || right_is_nan)) { |
121 | 5.28k | if (left_is_nan && right_is_nan) { |
122 | 1.92k | return 0; |
123 | 1.92k | } |
124 | 3.35k | if (left_is_nan) { |
125 | 940 | return 1; |
126 | 2.41k | } else { |
127 | 2.41k | return -1; |
128 | 2.41k | } |
129 | 3.35k | } |
130 | 12.3M | return left > right ? 1 : (left < right ? -1 : 0); |
131 | 12.3M | }; _ZN5doris12CompareFloatIfEEiT_S1_ Line | Count | Source | 116 | 4.94M | int CompareFloat(T left, T right) { | 117 | | // nan is always bigger than everything else | 118 | 4.94M | bool left_is_nan = std::isnan(left); | 119 | 4.94M | bool right_is_nan = std::isnan(right); | 120 | 4.94M | if (UNLIKELY(left_is_nan || right_is_nan)) { | 121 | 2.35k | if (left_is_nan && right_is_nan) { | 122 | 845 | return 0; | 123 | 845 | } | 124 | 1.51k | if (left_is_nan) { | 125 | 415 | return 1; | 126 | 1.09k | } else { | 127 | 1.09k | return -1; | 128 | 1.09k | } | 129 | 1.51k | } | 130 | 4.94M | return left > right ? 1 : (left < right ? -1 : 0); | 131 | 4.94M | }; |
_ZN5doris12CompareFloatIdEEiT_S1_ Line | Count | Source | 116 | 7.38M | int CompareFloat(T left, T right) { | 117 | | // nan is always bigger than everything else | 118 | 7.38M | bool left_is_nan = std::isnan(left); | 119 | 7.38M | bool right_is_nan = std::isnan(right); | 120 | 7.38M | if (UNLIKELY(left_is_nan || right_is_nan)) { | 121 | 2.92k | if (left_is_nan && right_is_nan) { | 122 | 1.08k | return 0; | 123 | 1.08k | } | 124 | 1.84k | if (left_is_nan) { | 125 | 525 | return 1; | 126 | 1.32k | } else { | 127 | 1.32k | return -1; | 128 | 1.32k | } | 129 | 1.84k | } | 130 | 7.38M | return left > right ? 1 : (left < right ? -1 : 0); | 131 | 7.38M | }; |
|
132 | | |
133 | | // float |
134 | | template <> |
135 | 15.0k | inline bool Compare::less(const float& a, const float& b) { |
136 | 15.0k | return GreaterThanFloat(b, a); |
137 | 15.0k | } |
138 | | template <> |
139 | 39.5k | inline bool Compare::greater(const float& a, const float& b) { |
140 | 39.5k | return GreaterThanFloat(a, b); |
141 | 39.5k | } |
142 | | template <> |
143 | 602 | inline bool Compare::less_equal(const float& a, const float& b) { |
144 | 602 | return GreaterThanEqualsFloat(b, a); |
145 | 602 | } |
146 | | template <> |
147 | 608 | inline bool Compare::greater_equal(const float& a, const float& b) { |
148 | 608 | return GreaterThanEqualsFloat(a, b); |
149 | 608 | } |
150 | | template <> |
151 | 5.26k | inline bool Compare::equal(const float& a, const float& b) { |
152 | 5.26k | return EqualsFloat(a, b); |
153 | 5.26k | } |
154 | | template <> |
155 | 189 | inline bool Compare::not_equal(const float& a, const float& b) { |
156 | 189 | return !EqualsFloat(a, b); |
157 | 189 | } |
158 | | template <> |
159 | 4.94M | inline int Compare::compare(const float& a, const float& b) { |
160 | 4.94M | return CompareFloat(a, b); |
161 | 4.94M | } |
162 | | template <> |
163 | 298 | inline float Compare::max_value<float>() { |
164 | 298 | return std::numeric_limits<float>::quiet_NaN(); |
165 | 298 | } |
166 | | |
167 | | // double |
168 | | template <> |
169 | 991k | inline bool Compare::less(const double& a, const double& b) { |
170 | 991k | return GreaterThanFloat(b, a); |
171 | 991k | } |
172 | | template <> |
173 | 6.69M | inline bool Compare::greater(const double& a, const double& b) { |
174 | 6.69M | return GreaterThanFloat(a, b); |
175 | 6.69M | } |
176 | | template <> |
177 | 277k | inline bool Compare::less_equal(const double& a, const double& b) { |
178 | 277k | return GreaterThanEqualsFloat(b, a); |
179 | 277k | } |
180 | | template <> |
181 | 277k | inline bool Compare::greater_equal(const double& a, const double& b) { |
182 | 277k | return GreaterThanEqualsFloat(a, b); |
183 | 277k | } |
184 | | template <> |
185 | 1.30M | inline bool Compare::equal(const double& a, const double& b) { |
186 | 1.30M | return EqualsFloat(a, b); |
187 | 1.30M | } |
188 | | template <> |
189 | 554 | inline bool Compare::not_equal(const double& a, const double& b) { |
190 | 554 | return !EqualsFloat(a, b); |
191 | 554 | } |
192 | | template <> |
193 | 7.38M | inline int Compare::compare(const double& a, const double& b) { |
194 | 7.38M | return CompareFloat(a, b); |
195 | 7.38M | } |
196 | | template <> |
197 | 649 | inline double Compare::max_value<double>() { |
198 | 649 | return std::numeric_limits<double>::quiet_NaN(); |
199 | 649 | } |
200 | | |
201 | | template <class T> |
202 | | struct Less { |
203 | 5.63M | bool operator()(const T& lhs, const T& rhs) const { return std::less<T> {}(lhs, rhs); }_ZNK5doris4LessIaEclERKaS3_ Line | Count | Source | 203 | 734 | bool operator()(const T& lhs, const T& rhs) const { return std::less<T> {}(lhs, rhs); } |
_ZNK5doris4LessIsEclERKsS3_ Line | Count | Source | 203 | 241 | bool operator()(const T& lhs, const T& rhs) const { return std::less<T> {}(lhs, rhs); } |
_ZNK5doris4LessIiEclERKiS3_ Line | Count | Source | 203 | 5.34M | bool operator()(const T& lhs, const T& rhs) const { return std::less<T> {}(lhs, rhs); } |
_ZNK5doris4LessIlEclERKlS3_ Line | Count | Source | 203 | 16.4k | bool operator()(const T& lhs, const T& rhs) const { return std::less<T> {}(lhs, rhs); } |
_ZNK5doris4LessInEclERKnS3_ Line | Count | Source | 203 | 43 | bool operator()(const T& lhs, const T& rhs) const { return std::less<T> {}(lhs, rhs); } |
_ZNK5doris4LessIjEclERKjS3_ Line | Count | Source | 203 | 92 | bool operator()(const T& lhs, const T& rhs) const { return std::less<T> {}(lhs, rhs); } |
_ZNK5doris4LessIoEclERKoS3_ Line | Count | Source | 203 | 83 | bool operator()(const T& lhs, const T& rhs) const { return std::less<T> {}(lhs, rhs); } |
_ZNK5doris4LessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclERKS6_S9_ Line | Count | Source | 203 | 9.73k | bool operator()(const T& lhs, const T& rhs) const { return std::less<T> {}(lhs, rhs); } |
_ZNK5doris4LessINS_16VecDateTimeValueEEclERKS1_S4_ Line | Count | Source | 203 | 377 | bool operator()(const T& lhs, const T& rhs) const { return std::less<T> {}(lhs, rhs); } |
_ZNK5doris4LessINS_11DateV2ValueINS_15DateV2ValueTypeEEEEclERKS3_S6_ Line | Count | Source | 203 | 1.22k | bool operator()(const T& lhs, const T& rhs) const { return std::less<T> {}(lhs, rhs); } |
_ZNK5doris4LessINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEclERKS3_S6_ Line | Count | Source | 203 | 436 | bool operator()(const T& lhs, const T& rhs) const { return std::less<T> {}(lhs, rhs); } |
_ZNK5doris4LessINS_16TimestampTzValueEEclERKS1_S4_ Line | Count | Source | 203 | 692 | bool operator()(const T& lhs, const T& rhs) const { return std::less<T> {}(lhs, rhs); } |
Unexecuted instantiation: _ZNK5doris4LessINS_14DecimalV2ValueEEclERKS1_S4_ _ZNK5doris4LessIhEclERKhS3_ Line | Count | Source | 203 | 83 | bool operator()(const T& lhs, const T& rhs) const { return std::less<T> {}(lhs, rhs); } |
_ZNK5doris4LessINS_7DecimalIiEEEclERKS2_S5_ Line | Count | Source | 203 | 57 | bool operator()(const T& lhs, const T& rhs) const { return std::less<T> {}(lhs, rhs); } |
_ZNK5doris4LessINS_7DecimalIlEEEclERKS2_S5_ Line | Count | Source | 203 | 260k | bool operator()(const T& lhs, const T& rhs) const { return std::less<T> {}(lhs, rhs); } |
_ZNK5doris4LessINS_12Decimal128V3EEclERKS1_S4_ Line | Count | Source | 203 | 30 | bool operator()(const T& lhs, const T& rhs) const { return std::less<T> {}(lhs, rhs); } |
_ZNK5doris4LessINS_7DecimalIN4wide7integerILm256EiEEEEEclERKS5_S8_ Line | Count | Source | 203 | 45 | bool operator()(const T& lhs, const T& rhs) const { return std::less<T> {}(lhs, rhs); } |
|
204 | | }; |
205 | | template <> |
206 | 318 | inline bool Less<double>::operator()(const double& lhs, const double& rhs) const { |
207 | 318 | return Compare::less(lhs, rhs); |
208 | 318 | } |
209 | | template <> |
210 | 70 | inline bool Less<float>::operator()(const float& lhs, const float& rhs) const { |
211 | 70 | return Compare::less(lhs, rhs); |
212 | 70 | } |
213 | | |
214 | | template <class T> |
215 | | struct EqualTo { |
216 | 389M | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); }_ZNK5doris7EqualToImEclERKmS3_ Line | Count | Source | 216 | 23.2M | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToIaEclERKaS3_ Line | Count | Source | 216 | 5.28k | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToIsEclERKsS3_ Line | Count | Source | 216 | 9.15k | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToIiEclERKiS3_ Line | Count | Source | 216 | 97.1M | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToIlEclERKlS3_ Line | Count | Source | 216 | 36.1M | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToInEclERKnS3_ Line | Count | Source | 216 | 399 | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToINS_16VecDateTimeValueEEclERKS1_S4_ Line | Count | Source | 216 | 76 | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToINS_11DateV2ValueINS_15DateV2ValueTypeEEEEclERKS3_S6_ Line | Count | Source | 216 | 3.69k | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEclERKS3_S6_ Line | Count | Source | 216 | 1.62k | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToINS_16TimestampTzValueEEclERKS1_S4_ Line | Count | Source | 216 | 751 | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToIhEclERKhS3_ Line | Count | Source | 216 | 100k | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToIjEclERKjS3_ Line | Count | Source | 216 | 78.7M | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToIoEclERKoS3_ Line | Count | Source | 216 | 37 | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToINS_14DecimalV2ValueEEclERKS1_S4_ Line | Count | Source | 216 | 86 | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToINS_7DecimalIiEEEclERKS2_S5_ Line | Count | Source | 216 | 117 | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToINS_7DecimalIlEEEclERKS2_S5_ Line | Count | Source | 216 | 577k | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToINS_12Decimal128V3EEclERKS1_S4_ Line | Count | Source | 216 | 116 | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToINS_7DecimalIN4wide7integerILm256EiEEEEEclERKS5_S8_ Line | Count | Source | 216 | 709 | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclERKS6_S9_ Line | Count | Source | 216 | 10.5k | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToIN4wide7integerILm128EjEEEclERKS3_S6_ Line | Count | Source | 216 | 77.8k | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToIPcEclERKS1_S4_ Line | Count | Source | 216 | 1.32k | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToINS_9StringRefEEclERKS1_S4_ Line | Count | Source | 216 | 152M | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToINS_5FieldEEclERKS1_S4_ Line | Count | Source | 216 | 618 | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
Unexecuted instantiation: _ZNK5doris7EqualToIN4wide7integerILm256EiEEEclERKS3_S6_ _ZNK5doris7EqualToIN4wide7integerILm256EjEEEclERKS3_S6_ Line | Count | Source | 216 | 328k | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToINS_7UInt136EEclERKS1_S4_ Line | Count | Source | 216 | 3.94k | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToINS_7UInt104EEclERKS1_S4_ Line | Count | Source | 216 | 262k | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToINS_6UInt96EEclERKS1_S4_ Line | Count | Source | 216 | 14.9k | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToINS_6UInt72EEclERKS1_S4_ Line | Count | Source | 216 | 200k | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
_ZNK5doris7EqualToItEclERKtS3_ Line | Count | Source | 216 | 67.2k | inline bool operator()(const T& a, const T& b) const { return std::equal_to<T>()(a, b); } |
|
217 | | }; |
218 | | template <> |
219 | 162 | inline bool EqualTo<double>::operator()(const double& lhs, const double& rhs) const { |
220 | 162 | return Compare::equal(lhs, rhs); |
221 | 162 | } |
222 | | template <> |
223 | 4.75k | inline bool EqualTo<float>::operator()(const float& lhs, const float& rhs) const { |
224 | 4.75k | return Compare::equal(lhs, rhs); |
225 | 4.75k | } |
226 | | |
227 | | template <typename T> |
228 | | requires(std::is_floating_point_v<T>) |
229 | 595k | void NormalizeFloat(T& val) { |
230 | 595k | if (val == (T)0.0) { |
231 | | // Turn negative zero into positive zero |
232 | 57.7k | val = (T)0.0; |
233 | 537k | } else if (std::isnan(val)) { |
234 | 156 | val = std::numeric_limits<T>::quiet_NaN(); |
235 | 156 | } |
236 | 595k | } _ZN5doris14NormalizeFloatIfQsr3stdE19is_floating_point_vIT_EEEvRS1_ Line | Count | Source | 229 | 21.8k | void NormalizeFloat(T& val) { | 230 | 21.8k | if (val == (T)0.0) { | 231 | | // Turn negative zero into positive zero | 232 | 1.44k | val = (T)0.0; | 233 | 20.4k | } else if (std::isnan(val)) { | 234 | 41 | val = std::numeric_limits<T>::quiet_NaN(); | 235 | 41 | } | 236 | 21.8k | } |
_ZN5doris14NormalizeFloatIdQsr3stdE19is_floating_point_vIT_EEEvRS1_ Line | Count | Source | 229 | 573k | void NormalizeFloat(T& val) { | 230 | 573k | if (val == (T)0.0) { | 231 | | // Turn negative zero into positive zero | 232 | 56.3k | val = (T)0.0; | 233 | 517k | } else if (std::isnan(val)) { | 234 | 115 | val = std::numeric_limits<T>::quiet_NaN(); | 235 | 115 | } | 236 | 573k | } |
|
237 | | |
238 | | } // namespace doris |
239 | | |
240 | | #include "common/compile_check_end.h" |