/dports/x11/polybar/polybar-3.5.7/include/utils/ |
H A D | math.hpp | 30 ValueType cap(ValueType value, ValueType min_value, ValueType max_value) { in cap() argument 31 value = std::min<ValueType>(value, max_value); in cap() 42 auto upper = (max_value - min_value); in unbounded_percentage() 65 ReturnType percentage(ValueType value, ValueType max_value) { in percentage() argument 66 return percentage<ValueType, ReturnType>(value, max_value - max_value, max_value); in percentage() 75 return cap<ReturnType>(signed_percentage * max_value / 100.0f + 0.5f, -max_value, max_value); in signed_percentage_to_value() 77 return cap<ReturnType>(signed_percentage * max_value / 100.0f, -max_value, max_value); in signed_percentage_to_value() 86 return cap<ReturnType>(percentage * max_value / 100.0f + 0.5f, 0, max_value); in percentage_to_value() 88 return cap<ReturnType>(percentage * max_value / 100.0f, 0.0f, max_value); in percentage_to_value() 97 …return cap<ReturnType>(percentage * (max_value - min_value) / 100.0f + 0.5f, 0, max_value - min_va… in percentage_to_value() [all …]
|
/dports/devel/py-hypothesis/hypothesis-6.28.0/src/hypothesis/strategies/_internal/ |
H A D | numbers.py | 139 if max_value is not None: 140 if max_value != int(max_value): 143 % (max_value, type(max_value)) 145 max_value = int(max_value) 343 max_value = float_of(max_value, width) 359 if exclude_max and (max_value is None or max_value == -math.inf): 374 max_value = next_down(max_value, width) 378 max_value = next_down(max_value, width) 384 max_value = None 432 min_value=-max_value, max_value=-min_value, width=width [all …]
|
H A D | datetime.py | 116 assert min_value <= max_value 147 assert min_value <= max_value 151 self.max_value = max_value 224 if max_value.tzinfo is not None: 238 self.max_value = max_value 267 if max_value.tzinfo is not None: 279 self.max_value = max_value 300 if min_value == max_value: 311 self.max_value = max_value 341 if min_value == max_value: [all …]
|
/dports/graphics/vapoursynth-waifu2x-ncnn-vulkan/vapoursynth-waifu2x-ncnn-vulkan-r4/deps/ncnn/src/layer/vulkan/shader/ |
H A D | softmax_reduce_max_pack8.comp | 84 max_value[0] = max(max_value[0], v[0]); 85 max_value[1] = max(max_value[1], v[1]); 109 max_value[0] = max(max_value[0], v[0]); 110 max_value[1] = max(max_value[1], v[1]); 134 max_value[0] = max(max_value[0], v[0]); 135 max_value[1] = max(max_value[1], v[1]); 155 max_value[0] = max(max_value[0], v[0]); 156 max_value[1] = max(max_value[1], v[1]); 180 max_value[0] = max(max_value[0], v[0]); 181 max_value[1] = max(max_value[1], v[1]); [all …]
|
/dports/graphics/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20210521/src/ncnn/src/layer/vulkan/shader/ |
H A D | softmax_reduce_max_pack8.comp | 84 max_value[0] = max(max_value[0], v[0]); 85 max_value[1] = max(max_value[1], v[1]); 109 max_value[0] = max(max_value[0], v[0]); 110 max_value[1] = max(max_value[1], v[1]); 134 max_value[0] = max(max_value[0], v[0]); 135 max_value[1] = max(max_value[1], v[1]); 155 max_value[0] = max(max_value[0], v[0]); 156 max_value[1] = max(max_value[1], v[1]); 180 max_value[0] = max(max_value[0], v[0]); 181 max_value[1] = max(max_value[1], v[1]); [all …]
|
/dports/benchmarks/vkpeak/vkpeak-20210430/ncnn/src/layer/vulkan/shader/ |
H A D | softmax_reduce_max_pack8.comp | 84 max_value[0] = max(max_value[0], v[0]); 85 max_value[1] = max(max_value[1], v[1]); 109 max_value[0] = max(max_value[0], v[0]); 110 max_value[1] = max(max_value[1], v[1]); 134 max_value[0] = max(max_value[0], v[0]); 135 max_value[1] = max(max_value[1], v[1]); 155 max_value[0] = max(max_value[0], v[0]); 156 max_value[1] = max(max_value[1], v[1]); 180 max_value[0] = max(max_value[0], v[0]); 181 max_value[1] = max(max_value[1], v[1]); [all …]
|
/dports/misc/ncnn/ncnn-20211208/src/layer/vulkan/shader/ |
H A D | softmax_reduce_max_pack8.comp | 84 max_value[0] = max(max_value[0], v[0]); 85 max_value[1] = max(max_value[1], v[1]); 109 max_value[0] = max(max_value[0], v[0]); 110 max_value[1] = max(max_value[1], v[1]); 134 max_value[0] = max(max_value[0], v[0]); 135 max_value[1] = max(max_value[1], v[1]); 155 max_value[0] = max(max_value[0], v[0]); 156 max_value[1] = max(max_value[1], v[1]); 180 max_value[0] = max(max_value[0], v[0]); 181 max_value[1] = max(max_value[1], v[1]); [all …]
|
/dports/graphics/realsr-ncnn-vulkan/realsr-ncnn-vulkan-20210210/src/ncnn/src/layer/vulkan/shader/ |
H A D | softmax_reduce_max_pack8.comp | 84 max_value[0] = max(max_value[0], v[0]); 85 max_value[1] = max(max_value[1], v[1]); 109 max_value[0] = max(max_value[0], v[0]); 110 max_value[1] = max(max_value[1], v[1]); 134 max_value[0] = max(max_value[0], v[0]); 135 max_value[1] = max(max_value[1], v[1]); 155 max_value[0] = max(max_value[0], v[0]); 156 max_value[1] = max(max_value[1], v[1]); 180 max_value[0] = max(max_value[0], v[0]); 181 max_value[1] = max(max_value[1], v[1]); [all …]
|
/dports/lang/spidermonkey60/firefox-60.9.0/media/webrtc/trunk/webrtc/tools/event_log_visualizer/ |
H A D | plot_base.cc | 21 float max_value, in SetXAxis() argument 25 RTC_DCHECK_LE(min_value, max_value); in SetXAxis() 26 xaxis_min_ = min_value - left_margin * (max_value - min_value); in SetXAxis() 27 xaxis_max_ = max_value + right_margin * (max_value - min_value); in SetXAxis() 32 float max_value, in SetSuggestedXAxis() argument 39 max_value = std::max(max_value, point.x); in SetSuggestedXAxis() 46 float max_value, in SetYAxis() argument 50 RTC_DCHECK_LE(min_value, max_value); in SetYAxis() 52 yaxis_max_ = max_value + top_margin * (max_value - min_value); in SetYAxis() 57 float max_value, in SetSuggestedYAxis() argument [all …]
|
/dports/games/emptyepsilon/EmptyEpsilon-EE-2021.06.23/src/gui/ |
H A D | gui2_slider.cpp | 7 : GuiElement(owner, id), min_value(min_value), max_value(max_value), value(start_value), func(func) in GuiBasicSlider() 57 if (min_value < max_value) in onMouseDrag() 61 if (new_value > max_value) in onMouseDrag() 62 new_value = max_value; in onMouseDrag() 86 if (min_value < max_value) in setValue() 90 if (value > max_value) in setValue() 91 value = max_value; in setValue() 95 if (value < max_value) in setValue() 96 value = max_value; in setValue() 105 this->max_value = max; in setRange() [all …]
|
/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/lexical-core-0.7.6/src/util/ |
H A D | cast.rs | 478 try_cast_isize(u16::max_value()); in try_cast_test() 504 try_cast_usize(u32::max_value()); in try_cast_test() 505 try_cast_isize(u32::max_value()); in try_cast_test() 531 try_cast_usize(u64::max_value()); in try_cast_test() 532 try_cast_isize(u64::max_value()); in try_cast_test() 672 try_cast_usize(i32::max_value()); in try_cast_test() 673 try_cast_isize(i32::max_value()); in try_cast_test() 711 try_cast_usize(i64::max_value()); in try_cast_test() 712 try_cast_isize(i64::max_value()); in try_cast_test() 774 try_cast_u16(usize::max_value()); in try_cast_test() [all …]
|
/dports/lang/gleam/gleam-0.18.2/cargo-crates/lexical-core-0.7.6/src/util/ |
H A D | cast.rs | 478 try_cast_isize(u16::max_value()); in try_cast_test() 504 try_cast_usize(u32::max_value()); in try_cast_test() 505 try_cast_isize(u32::max_value()); in try_cast_test() 531 try_cast_usize(u64::max_value()); in try_cast_test() 532 try_cast_isize(u64::max_value()); in try_cast_test() 672 try_cast_usize(i32::max_value()); in try_cast_test() 673 try_cast_isize(i32::max_value()); in try_cast_test() 711 try_cast_usize(i64::max_value()); in try_cast_test() 712 try_cast_isize(i64::max_value()); in try_cast_test() 774 try_cast_u16(usize::max_value()); in try_cast_test() [all …]
|
/dports/sysutils/zoxide/zoxide-0.6.0/cargo-crates/lexical-core-0.7.5/src/util/ |
H A D | cast.rs | 478 try_cast_isize(u16::max_value()); in try_cast_test() 504 try_cast_usize(u32::max_value()); in try_cast_test() 505 try_cast_isize(u32::max_value()); in try_cast_test() 531 try_cast_usize(u64::max_value()); in try_cast_test() 532 try_cast_isize(u64::max_value()); in try_cast_test() 672 try_cast_usize(i32::max_value()); in try_cast_test() 673 try_cast_isize(i32::max_value()); in try_cast_test() 711 try_cast_usize(i64::max_value()); in try_cast_test() 712 try_cast_isize(i64::max_value()); in try_cast_test() 774 try_cast_u16(usize::max_value()); in try_cast_test() [all …]
|
/dports/sysutils/vector/vector-0.10.0/cargo-crates/lexical-core-0.7.6/src/util/ |
H A D | cast.rs | 478 try_cast_isize(u16::max_value()); in try_cast_test() 504 try_cast_usize(u32::max_value()); in try_cast_test() 505 try_cast_isize(u32::max_value()); in try_cast_test() 531 try_cast_usize(u64::max_value()); in try_cast_test() 532 try_cast_isize(u64::max_value()); in try_cast_test() 672 try_cast_usize(i32::max_value()); in try_cast_test() 673 try_cast_isize(i32::max_value()); in try_cast_test() 711 try_cast_usize(i64::max_value()); in try_cast_test() 712 try_cast_isize(i64::max_value()); in try_cast_test() 774 try_cast_u16(usize::max_value()); in try_cast_test() [all …]
|
/dports/security/cargo-audit/rustsec-cargo-audit-v0.15.2/cargo-audit/cargo-crates/lexical-core-0.7.6/src/util/ |
H A D | cast.rs | 478 try_cast_isize(u16::max_value()); in try_cast_test() 504 try_cast_usize(u32::max_value()); in try_cast_test() 505 try_cast_isize(u32::max_value()); in try_cast_test() 531 try_cast_usize(u64::max_value()); in try_cast_test() 532 try_cast_isize(u64::max_value()); in try_cast_test() 672 try_cast_usize(i32::max_value()); in try_cast_test() 673 try_cast_isize(i32::max_value()); in try_cast_test() 711 try_cast_usize(i64::max_value()); in try_cast_test() 712 try_cast_isize(i64::max_value()); in try_cast_test() 774 try_cast_u16(usize::max_value()); in try_cast_test() [all …]
|
/dports/x11/sirula/sirula-1.0.0/cargo-crates/lexical-core-0.7.6/src/util/ |
H A D | cast.rs | 478 try_cast_isize(u16::max_value()); in try_cast_test() 504 try_cast_usize(u32::max_value()); in try_cast_test() 505 try_cast_isize(u32::max_value()); in try_cast_test() 531 try_cast_usize(u64::max_value()); in try_cast_test() 532 try_cast_isize(u64::max_value()); in try_cast_test() 672 try_cast_usize(i32::max_value()); in try_cast_test() 673 try_cast_isize(i32::max_value()); in try_cast_test() 711 try_cast_usize(i64::max_value()); in try_cast_test() 712 try_cast_isize(i64::max_value()); in try_cast_test() 774 try_cast_u16(usize::max_value()); in try_cast_test() [all …]
|
/dports/security/arti/arti-9d0ede26801cdb182daa85c3eb5f0058dc178eb6/cargo-crates/lexical-core-0.7.6/src/util/ |
H A D | cast.rs | 478 try_cast_isize(u16::max_value()); in try_cast_test() 504 try_cast_usize(u32::max_value()); in try_cast_test() 505 try_cast_isize(u32::max_value()); in try_cast_test() 531 try_cast_usize(u64::max_value()); in try_cast_test() 532 try_cast_isize(u64::max_value()); in try_cast_test() 672 try_cast_usize(i32::max_value()); in try_cast_test() 673 try_cast_isize(i32::max_value()); in try_cast_test() 711 try_cast_usize(i64::max_value()); in try_cast_test() 712 try_cast_isize(i64::max_value()); in try_cast_test() 774 try_cast_u16(usize::max_value()); in try_cast_test() [all …]
|
/dports/graphics/pastel/pastel-0.8.1/cargo-crates/lexical-core-0.7.6/src/util/ |
H A D | cast.rs | 478 try_cast_isize(u16::max_value()); in try_cast_test() 504 try_cast_usize(u32::max_value()); in try_cast_test() 505 try_cast_isize(u32::max_value()); in try_cast_test() 531 try_cast_usize(u64::max_value()); in try_cast_test() 532 try_cast_isize(u64::max_value()); in try_cast_test() 672 try_cast_usize(i32::max_value()); in try_cast_test() 673 try_cast_isize(i32::max_value()); in try_cast_test() 711 try_cast_usize(i64::max_value()); in try_cast_test() 712 try_cast_isize(i64::max_value()); in try_cast_test() 774 try_cast_u16(usize::max_value()); in try_cast_test() [all …]
|
/dports/www/zola/zola-0.15.2/cargo-crates/lexical-core-0.7.6/src/util/ |
H A D | cast.rs | 478 try_cast_isize(u16::max_value()); in try_cast_test() 504 try_cast_usize(u32::max_value()); in try_cast_test() 505 try_cast_isize(u32::max_value()); in try_cast_test() 531 try_cast_usize(u64::max_value()); in try_cast_test() 532 try_cast_isize(u64::max_value()); in try_cast_test() 672 try_cast_usize(i32::max_value()); in try_cast_test() 673 try_cast_isize(i32::max_value()); in try_cast_test() 711 try_cast_usize(i64::max_value()); in try_cast_test() 712 try_cast_isize(i64::max_value()); in try_cast_test() 774 try_cast_u16(usize::max_value()); in try_cast_test() [all …]
|
/dports/textproc/angle-grinder/angle-grinder-0.18.0/cargo-crates/lexical-core-0.7.6/src/util/ |
H A D | cast.rs | 478 try_cast_isize(u16::max_value()); in try_cast_test() 504 try_cast_usize(u32::max_value()); in try_cast_test() 505 try_cast_isize(u32::max_value()); in try_cast_test() 531 try_cast_usize(u64::max_value()); in try_cast_test() 532 try_cast_isize(u64::max_value()); in try_cast_test() 672 try_cast_usize(i32::max_value()); in try_cast_test() 673 try_cast_isize(i32::max_value()); in try_cast_test() 711 try_cast_usize(i64::max_value()); in try_cast_test() 712 try_cast_isize(i64::max_value()); in try_cast_test() 774 try_cast_u16(usize::max_value()); in try_cast_test() [all …]
|
/dports/www/newsboat/newsboat-2.22.1/cargo-crates/lexical-core-0.7.6/src/util/ |
H A D | cast.rs | 478 try_cast_isize(u16::max_value()); in try_cast_test() 504 try_cast_usize(u32::max_value()); in try_cast_test() 505 try_cast_isize(u32::max_value()); in try_cast_test() 531 try_cast_usize(u64::max_value()); in try_cast_test() 532 try_cast_isize(u64::max_value()); in try_cast_test() 672 try_cast_usize(i32::max_value()); in try_cast_test() 673 try_cast_isize(i32::max_value()); in try_cast_test() 711 try_cast_usize(i64::max_value()); in try_cast_test() 712 try_cast_isize(i64::max_value()); in try_cast_test() 774 try_cast_u16(usize::max_value()); in try_cast_test() [all …]
|
/dports/multimedia/neolink/neolink-cf54129/cargo-crates/lexical-core-0.7.6/src/util/ |
H A D | cast.rs | 478 try_cast_isize(u16::max_value()); in try_cast_test() 504 try_cast_usize(u32::max_value()); in try_cast_test() 505 try_cast_isize(u32::max_value()); in try_cast_test() 531 try_cast_usize(u64::max_value()); in try_cast_test() 532 try_cast_isize(u64::max_value()); in try_cast_test() 672 try_cast_usize(i32::max_value()); in try_cast_test() 673 try_cast_isize(i32::max_value()); in try_cast_test() 711 try_cast_usize(i64::max_value()); in try_cast_test() 712 try_cast_isize(i64::max_value()); in try_cast_test() 774 try_cast_u16(usize::max_value()); in try_cast_test() [all …]
|
/dports/multimedia/librav1e/rav1e-0.5.1/cargo-crates/bytemuck-1.7.2/src/ |
H A D | contiguous.rs | 182 u8 as u8 in [0, u8::max_value()]; 183 u16 as u16 in [0, u16::max_value()]; 184 u32 as u32 in [0, u32::max_value()]; 185 u64 as u64 in [0, u64::max_value()]; 186 u128 as u128 in [0, u128::max_value()]; 187 usize as usize in [0, usize::max_value()]; 196 NonZeroU8 as u8 in [1, u8::max_value()]; 197 NonZeroU16 as u16 in [1, u16::max_value()]; 198 NonZeroU32 as u32 in [1, u32::max_value()]; 199 NonZeroU64 as u64 in [1, u64::max_value()]; [all …]
|
/dports/multimedia/rav1e/rav1e-0.5.1/cargo-crates/bytemuck-1.7.2/src/ |
H A D | contiguous.rs | 182 u8 as u8 in [0, u8::max_value()]; 183 u16 as u16 in [0, u16::max_value()]; 184 u32 as u32 in [0, u32::max_value()]; 185 u64 as u64 in [0, u64::max_value()]; 186 u128 as u128 in [0, u128::max_value()]; 187 usize as usize in [0, usize::max_value()]; 196 NonZeroU8 as u8 in [1, u8::max_value()]; 197 NonZeroU16 as u16 in [1, u16::max_value()]; 198 NonZeroU32 as u32 in [1, u32::max_value()]; 199 NonZeroU64 as u64 in [1, u64::max_value()]; [all …]
|
/dports/misc/broot/broot-1.7.0/cargo-crates/bytemuck-1.7.2/src/ |
H A D | contiguous.rs | 182 u8 as u8 in [0, u8::max_value()]; 183 u16 as u16 in [0, u16::max_value()]; 184 u32 as u32 in [0, u32::max_value()]; 185 u64 as u64 in [0, u64::max_value()]; 186 u128 as u128 in [0, u128::max_value()]; 187 usize as usize in [0, usize::max_value()]; 196 NonZeroU8 as u8 in [1, u8::max_value()]; 197 NonZeroU16 as u16 in [1, u16::max_value()]; 198 NonZeroU32 as u32 in [1, u32::max_value()]; 199 NonZeroU64 as u64 in [1, u64::max_value()]; [all …]
|