/dports/math/py-mpmath/mpmath-1.2.1/mpmath/tests/ |
H A D | test_bitwise.py | 62 assert from_man_exp(0, -4, 4, round_nearest)[:3] == (0, 0, 0) 63 assert from_man_exp(0xf0, -4, 4, round_nearest)[:3] == (0, 15, 0) 64 assert from_man_exp(0xf7, -4, 4, round_nearest)[:3] == (0, 15, 0) 69 assert from_man_exp(-0xf0, -4, 4, round_nearest)[:3] == (1, 15, 0) 71 assert from_man_exp(-0xf8, -4, 4, round_nearest)[:3] == (1, 1, 4) 72 assert from_man_exp(-0xf9, -4, 4, round_nearest)[:3] == (1, 1, 4) 73 assert from_man_exp(-0xe8, -4, 4, round_nearest)[:3] == (1, 7, 1) 99 assert mpf_perturb(a, 0, 53, round_nearest) == a 100 assert mpf_perturb(a, 1, 53, round_nearest) == a 112 assert mpf_perturb(a, 0, 53, round_nearest) == a [all …]
|
H A D | test_division.py | 6 all_modes = [round_floor, round_ceiling, round_down, round_up, round_nearest] 23 assert mpf_div(a, b, 7, round_nearest) == fb('0.01010101') 30 assert mpf_div(c, b, 7, round_nearest) == fb('-0.01010101') 40 assert mpf_rdiv_int(a, b, 7, round_nearest) == fb('0.01010101') 45 assert mpf_rdiv_int(c, b, 7, round_nearest) == fb('-0.01010101') 65 assert mpf_div(a, q, 9, round_nearest) == fi(300) 66 assert mpf_div(b, q, 9, round_nearest) == fi(300) 67 assert mpf_div(c, q, 9, round_nearest) == fi(301) 73 assert mpf_div(a, q, 9, round_nearest) == fi(301) 74 assert mpf_div(b, q, 9, round_nearest) == fi(302) [all …]
|
H A D | test_trig.py | 33 for r in [round_nearest, round_down, round_up, round_floor, round_ceiling]: 40 assert sin(a, rounding=round_nearest) == a 45 assert sin(b, rounding=round_nearest) == b 51 assert cos(a, rounding=round_nearest) == 1 56 assert cos(b, rounding=round_nearest) == 1 81 r = round_nearest
|
/dports/math/ideep/ideep-2.0.0-119-gb57539e/tests/in/ |
H A D | convolution_attr.h | 19 round_nearest, 0.3f, COMMON, 25 round_nearest, 0.5f, COMMON, 28 round_nearest, 0.5f, COMMON,
|
/dports/emulators/mess/mame-mame0226/src/osd/modules/render/ |
H A D | draw13.cpp | 191 static inline float round_nearest(float f) in round_nearest() function 257 target_rect.w = round_nearest(prim.bounds.x1) - round_nearest(prim.bounds.x0); in render_quad() 258 target_rect.h = round_nearest(prim.bounds.y1) - round_nearest(prim.bounds.y0); in render_quad() 588 round_nearest(hofs + prim.bounds.x0), in draw() 589 round_nearest(vofs + prim.bounds.y0)); in draw() 846 dudx = round_nearest(65536.0f * fdudx); in compute() 847 dvdx = round_nearest(65536.0f * fdvdx); in compute() 848 dudy = round_nearest(65536.0f * fdudy); in compute() 849 dvdy = round_nearest(65536.0f * fdvdy); in compute() 855 rotwidth = round_nearest(width); in compute() [all …]
|
/dports/emulators/mame/mame-mame0226/src/osd/modules/render/ |
H A D | draw13.cpp | 191 static inline float round_nearest(float f) in round_nearest() function 257 target_rect.w = round_nearest(prim.bounds.x1) - round_nearest(prim.bounds.x0); in render_quad() 258 target_rect.h = round_nearest(prim.bounds.y1) - round_nearest(prim.bounds.y0); in render_quad() 588 round_nearest(hofs + prim.bounds.x0), in draw() 589 round_nearest(vofs + prim.bounds.y0)); in draw() 846 dudx = round_nearest(65536.0f * fdudx); in compute() 847 dvdx = round_nearest(65536.0f * fdvdx); in compute() 848 dudy = round_nearest(65536.0f * fdudy); in compute() 849 dvdy = round_nearest(65536.0f * fdvdy); in compute() 855 rotwidth = round_nearest(width); in compute() [all …]
|
/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/lexical-core-0.7.6/src/float/ |
H A D | rounding.rs | 17 pub(crate) fn round_nearest<M>(fp: &mut ExtendedFloat<M>, shift: i32) 65 let (is_above, is_halfway) = round_nearest(fp, shift); 92 let (is_above, is_halfway) = round_nearest(fp, shift); 348 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 355 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 362 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test()
|
/dports/lang/gleam/gleam-0.18.2/cargo-crates/lexical-core-0.7.6/src/float/ |
H A D | rounding.rs | 17 pub(crate) fn round_nearest<M>(fp: &mut ExtendedFloat<M>, shift: i32) 65 let (is_above, is_halfway) = round_nearest(fp, shift); 92 let (is_above, is_halfway) = round_nearest(fp, shift); 348 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 355 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 362 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test()
|
/dports/sysutils/zoxide/zoxide-0.6.0/cargo-crates/lexical-core-0.7.5/src/float/ |
H A D | rounding.rs | 17 pub(crate) fn round_nearest<M>(fp: &mut ExtendedFloat<M>, shift: i32) 65 let (is_above, is_halfway) = round_nearest(fp, shift); 92 let (is_above, is_halfway) = round_nearest(fp, shift); 348 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 355 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 362 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test()
|
/dports/sysutils/vector/vector-0.10.0/cargo-crates/lexical-core-0.7.6/src/float/ |
H A D | rounding.rs | 17 pub(crate) fn round_nearest<M>(fp: &mut ExtendedFloat<M>, shift: i32) 65 let (is_above, is_halfway) = round_nearest(fp, shift); 92 let (is_above, is_halfway) = round_nearest(fp, shift); 348 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 355 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 362 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test()
|
/dports/security/cargo-audit/rustsec-cargo-audit-v0.15.2/cargo-audit/cargo-crates/lexical-core-0.7.6/src/float/ |
H A D | rounding.rs | 17 pub(crate) fn round_nearest<M>(fp: &mut ExtendedFloat<M>, shift: i32) 65 let (is_above, is_halfway) = round_nearest(fp, shift); 92 let (is_above, is_halfway) = round_nearest(fp, shift); 348 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 355 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 362 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test()
|
/dports/shells/ion/ion-a8872014dbce730ccd00aaa722397dc394a52bf4/cargo-crates/lexical-core-0.4.2/src/float/ |
H A D | rounding.rs | 17 pub(crate) fn round_nearest<M>(fp: &mut ExtendedFloat<M>, shift: i32) in round_nearest() function 65 let (is_above, is_halfway) = round_nearest(fp, shift); in round_nearest_tie_even() 92 let (is_above, is_halfway) = round_nearest(fp, shift); in round_nearest_tie_away_zero() 359 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 366 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 373 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test()
|
/dports/x11/sirula/sirula-1.0.0/cargo-crates/lexical-core-0.7.6/src/float/ |
H A D | rounding.rs | 17 pub(crate) fn round_nearest<M>(fp: &mut ExtendedFloat<M>, shift: i32) 65 let (is_above, is_halfway) = round_nearest(fp, shift); 92 let (is_above, is_halfway) = round_nearest(fp, shift); 348 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 355 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 362 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test()
|
/dports/security/suricata/suricata-6.0.4/rust/vendor/lexical-core/src/float/ |
H A D | rounding.rs | 17 pub(crate) fn round_nearest<M>(fp: &mut ExtendedFloat<M>, shift: i32) 65 let (is_above, is_halfway) = round_nearest(fp, shift); 92 let (is_above, is_halfway) = round_nearest(fp, shift); 356 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 363 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 370 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test()
|
/dports/security/arti/arti-9d0ede26801cdb182daa85c3eb5f0058dc178eb6/cargo-crates/lexical-core-0.7.6/src/float/ |
H A D | rounding.rs | 17 pub(crate) fn round_nearest<M>(fp: &mut ExtendedFloat<M>, shift: i32) 65 let (is_above, is_halfway) = round_nearest(fp, shift); 92 let (is_above, is_halfway) = round_nearest(fp, shift); 348 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 355 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 362 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test()
|
/dports/graphics/pastel/pastel-0.8.1/cargo-crates/lexical-core-0.7.6/src/float/ |
H A D | rounding.rs | 17 pub(crate) fn round_nearest<M>(fp: &mut ExtendedFloat<M>, shift: i32) 65 let (is_above, is_halfway) = round_nearest(fp, shift); 92 let (is_above, is_halfway) = round_nearest(fp, shift); 348 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 355 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 362 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test()
|
/dports/www/zola/zola-0.15.2/cargo-crates/lexical-core-0.7.6/src/float/ |
H A D | rounding.rs | 17 pub(crate) fn round_nearest<M>(fp: &mut ExtendedFloat<M>, shift: i32) 65 let (is_above, is_halfway) = round_nearest(fp, shift); 92 let (is_above, is_halfway) = round_nearest(fp, shift); 348 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 355 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 362 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test()
|
/dports/textproc/angle-grinder/angle-grinder-0.18.0/cargo-crates/lexical-core-0.7.6/src/float/ |
H A D | rounding.rs | 17 pub(crate) fn round_nearest<M>(fp: &mut ExtendedFloat<M>, shift: i32) 65 let (is_above, is_halfway) = round_nearest(fp, shift); 92 let (is_above, is_halfway) = round_nearest(fp, shift); 348 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 355 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 362 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test()
|
/dports/www/newsboat/newsboat-2.22.1/cargo-crates/lexical-core-0.7.6/src/float/ |
H A D | rounding.rs | 17 pub(crate) fn round_nearest<M>(fp: &mut ExtendedFloat<M>, shift: i32) 65 let (is_above, is_halfway) = round_nearest(fp, shift); 92 let (is_above, is_halfway) = round_nearest(fp, shift); 348 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 355 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 362 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test()
|
/dports/multimedia/neolink/neolink-cf54129/cargo-crates/lexical-core-0.7.6/src/float/ |
H A D | rounding.rs | 17 pub(crate) fn round_nearest<M>(fp: &mut ExtendedFloat<M>, shift: i32) 65 let (is_above, is_halfway) = round_nearest(fp, shift); 92 let (is_above, is_halfway) = round_nearest(fp, shift); 348 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 355 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test() 362 let (above, halfway) = round_nearest(&mut fp, 6); in round_nearest_test()
|
/dports/devel/aarch64-none-elf-gcc/gcc-8.4.0/gcc/config/m68k/ |
H A D | math-68881.h | 414 int rounding_mode, round_nearest; in rint() local 420 round_nearest = rounding_mode & ~0x30; in rint() 423 : "dmi" (round_nearest)); in rint()
|
/dports/lang/gcc9/gcc-9.4.0/gcc/config/m68k/ |
H A D | math-68881.h | 414 int rounding_mode, round_nearest; in rint() local 420 round_nearest = rounding_mode & ~0x30; in rint() 423 : "dmi" (round_nearest)); in rint()
|
/dports/devel/arm-none-eabi-gcc492/gcc-4.9.2/gcc/config/m68k/ |
H A D | math-68881.h | 414 int rounding_mode, round_nearest; in rint() local 420 round_nearest = rounding_mode & ~0x30; in rint() 423 : "dmi" (round_nearest)); in rint()
|
/dports/devel/arm-none-eabi-gcc/gcc-8.4.0/gcc/config/m68k/ |
H A D | math-68881.h | 414 int rounding_mode, round_nearest; in rint() local 420 round_nearest = rounding_mode & ~0x30; in rint() 423 : "dmi" (round_nearest)); in rint()
|
/dports/devel/riscv64-gcc/gcc-8.3.0/gcc/config/m68k/ |
H A D | math-68881.h | 414 int rounding_mode, round_nearest; in rint() local 420 round_nearest = rounding_mode & ~0x30; in rint() 423 : "dmi" (round_nearest)); in rint()
|