Home
last modified time | relevance | path

Searched refs:binc (Results 1 – 13 of 13) sorted by relevance

/openbsd/gnu/usr.bin/perl/cpan/Math-BigRat/t/
H A Dbig_ap.t16 my $proper_inc = Math::BigRat -> new('12345678901234567890/2') -> binc();
108 # binc
110 note "Test binc()";
112 $x = $proper->copy()->binc();
116 # binc
H A Ddowngrade.t150 note("binc()");
152 $x = $zero -> copy() -> binc();
153 cmp_ok($x, "==", 1, "binc(0)");
154 is(ref($x), "Math::BigInt", "binc(0) => Math::BigInt");
156 $x = $four -> copy() -> binc();
157 cmp_ok($x, "==", 5, "binc(4)");
158 is(ref($x), "Math::BigInt", "binc(4) => Math::BigInt");
160 $x = $inf -> copy() -> binc();
161 cmp_ok($x, "==", "inf", "binc(Inf)");
164 $x = $nan -> copy() -> binc();
[all …]
H A Dbigrat.t325 # binc/bdec
327 note("binc()");
329 is($x->binc(), '5/2');
/openbsd/gnu/usr.bin/perl/cpan/Math-BigInt/t/
H A Ddowngrade.t303 note("testing binc()");
305 $x = $zero -> copy() -> binc();
308 cmp_ok($x, '==', 1, 'binc(0)');
312 $x = $four -> copy() -> binc();
315 cmp_ok($x, '==', 5, 'binc(4)');
319 $x = $inf -> copy() -> binc();
320 subtest '$x = $inf -> copy() -> binc();' => sub {
322 cmp_ok($x, '==', 'inf', 'binc(Inf)');
326 $x = $nan -> copy() -> binc();
327 subtest '$x = $nan -> copy() -> binc();' => sub {
[all …]
H A Dupgrade.inc704 &binc
H A Dbigfltpm.inc1580 &binc
H A Dbigintpm.inc1598 &binc
/openbsd/usr.bin/vi/common/
H A Dmem.h20 if ((L__bincp = binc((sp), (lp), &(llen), (nlen))) \
33 if ((L__bincp = binc((sp), (lp), &(llen), (nlen))) \
H A Dutil.c36 binc(SCR *sp, void *bp, size_t *bsizep, size_t min) in binc() function
/openbsd/gnu/usr.bin/perl/cpan/Math-BigInt/lib/Math/
H A DBigFloat.pm168 '++' => sub { $_[0] -> binc() },
1669 sub binc { subroutine
2949 $factorial = $factorial->binc();
2951 $factorial = $factorial->binc();
3047 $factorial = $factorial -> binc();
3049 $factorial = $factorial -> binc();
3155 $x = $x->bdiv($x->copy()->bmul($x)->binc()->bsqrt($scale + 4)->binc(),
5154 $expo = $expo -> binc();
5195 $expo = $expo -> binc();
5217 $expo = $expo -> binc();
[all …]
H A DBigInt.pm177 '++' => sub { $_[0] -> binc() },
1633 sub binc { subroutine
1641 return $upgrade -> binc($x, @r) if defined($upgrade) && !$x -> isa($class);
2983 $n = $n -> badd($m) -> binc();
3445 $x = $x -> binc(); # -3 => -2
3461 $res = $res -> binc(); # remember to increment
3566 $x -> binc() -> bneg(@r);
4142 my $c = $expo -> copy() -> bdec() -> bmod(3) -> binc();
/openbsd/usr.bin/vi/include/
H A Dcom_extern.h106 void *binc(SCR *, void *, size_t *, size_t);
/openbsd/gnu/usr.bin/perl/cpan/Math-BigRat/lib/Math/
H A DBigRat.pm165 '++' => sub { $_[0] -> binc() },
1186 sub binc { subroutine