Home
last modified time | relevance | path

Searched refs:new (Results 1 – 25 of 2978) sorted by relevance

12345678910>>...120

/openbsd/sys/ufs/ext2fs/
H A Dext2fs_bswap.c54 memcpy(new, old, sizeof(struct ext2fs)); in e2fs_sb_bswap()
63 new->e2fs_bpg = swap32(old->e2fs_bpg); in e2fs_sb_bswap()
64 new->e2fs_fpg = swap32(old->e2fs_fpg); in e2fs_sb_bswap()
65 new->e2fs_ipg = swap32(old->e2fs_ipg); in e2fs_sb_bswap()
72 new->e2fs_beh = swap16(old->e2fs_beh); in e2fs_sb_bswap()
77 new->e2fs_rev = swap32(old->e2fs_rev); in e2fs_sb_bswap()
78 new->e2fs_ruid = swap16(old->e2fs_ruid); in e2fs_sb_bswap()
79 new->e2fs_rgid = swap16(old->e2fs_rgid); in e2fs_sb_bswap()
86 new->e2fs_algo = swap32(old->e2fs_algo); in e2fs_sb_bswap()
114 struct ext2fs_dinode *new) in e2fs_i_bswap() argument
[all …]
/openbsd/gnu/usr.bin/perl/cpan/Math-BigInt/t/
H A Dbiglog.t27 is($class->new(2)->blog(), '0', "$class->new(2)->blog()");
28 is($class->new(288)->blog(), '5', "$class->new(288)->blog()");
29 is($class->new(2000)->blog(), '7', "$class->new(2000)->blog()");
34 is($class->new(1)->bexp(), '2', "$class->new(1)->bexp()");
35 is($class->new(2)->bexp(), '7', "$class->new(2)->bexp()");
36 is($class->new(3)->bexp(), '20', "$class->new(3)->bexp()");
73 is($class->new(-2)->blog(), 'NaN', "$class->new(-2)->blog()");
74 is($class->new(-1)->blog(), 'NaN', "$class->new(-1)->blog()");
75 is($class->new(-10)->blog(), 'NaN', "$class->new(-10)->blog()");
76 is($class->new(-2, 2)->blog(), 'NaN', "$class->new(-2, 2)->blog()");
[all …]
H A Dbigfltpm.inc182 # check whether $CLASS->new(Math::BigInt->new()) destroys it
202 # new and exponent
211 is($CLASS->new($monster) > 0, 1, qq|$CLASS->new("$monster") > 0|);
324 is($CLASS->new(-1)->is_one(), 0, qq|$CLASS->new(-1)->is_one()|);
452 qq|\$x = $CLASS->new("2"); \$y = $CLASS->new("18");|
455 qq|\$x = $CLASS->new("2"); \$y = $CLASS->new("18");|
458 qq|\$x = $CLASS->new("2"); \$y = $CLASS->new("18");|
461 qq|\$x = $CLASS->new("2"); \$y = $CLASS->new("18");|
470 qq|\$x = $CLASS->new("2"); \$y = $CLASS->new("18.2");| .
475 qq|\$x = $CLASS->new("2"); \$y = $CLASS->new("18.2");| .
[all …]
H A Dtrap.t27 # also test that new() still works normally
30 is($x, 42, '$x after new() never modified');
44 eval ("\$x = \$class->new('inf');");
48 eval ("\$x = \$class->new('-inf');");
60 is($x, '-815', '$x after new not modified');
66 is($x, '0', '$x after new not modified');
72 $x = Math::BigInt->new(2);
73 eval ("\$x = \$mbi->new('0.1');");
75 eval ("\$x = \$mbi->new('0a.1');");
81 $x = Math::BigFloat->new(2);
[all …]
/openbsd/gnu/usr.bin/perl/cpan/Math-BigInt-FastCalc/t/
H A Dbiglog.t27 is($class->new(2)->blog(), '0', "$class->new(2)->blog()");
28 is($class->new(288)->blog(), '5', "$class->new(288)->blog()");
29 is($class->new(2000)->blog(), '7', "$class->new(2000)->blog()");
34 is($class->new(1)->bexp(), '2', "$class->new(1)->bexp()");
35 is($class->new(2)->bexp(), '7', "$class->new(2)->bexp()");
36 is($class->new(3)->bexp(), '20', "$class->new(3)->bexp()");
73 is($class->new(-2)->blog(), 'NaN', "$class->new(-2)->blog()");
74 is($class->new(-1)->blog(), 'NaN', "$class->new(-1)->blog()");
75 is($class->new(-10)->blog(), 'NaN', "$class->new(-10)->blog()");
76 is($class->new(-2, 2)->blog(), 'NaN', "$class->new(-2, 2)->blog()");
[all …]
/openbsd/regress/usr.bin/jot/
H A Dregress.ed.out1 2s/old/new/
2 7s/old/new/
3 12s/old/new/
4 17s/old/new/
5 22s/old/new/
6 27s/old/new/
7 32s/old/new/
8 37s/old/new/
9 42s/old/new/
10 47s/old/new/
[all …]
H A Dregress.man7.out1 2s/old/new/
2 7s/old/new/
3 12s/old/new/
4 17s/old/new/
5 22s/old/new/
6 27s/old/new/
7 32s/old/new/
8 37s/old/new/
9 42s/old/new/
10 47s/old/new/
[all …]
/openbsd/gnu/usr.bin/perl/cpan/Math-BigRat/t/
H A Dbigrat.t171 is($mbr->new($mbi->new(3), $mbi->new(7))->badd(1), '10/7');
172 is($mbr->new($mbi->new(-13), $mbi->new(7)), '-13/7');
173 is($mbr->new($mbi->new(13), $mbi->new(-7)), '-13/7');
174 is($mbr->new($mbi->new(-13), $mbi->new(-7)), '13/7');
181 is($mbr->new('3/7')->badd($mbi->new(1)), '10/7');
182 is($mbr->new('3/10')->badd($mbf->new('1.1')), '7/5');
186 is($mbr->new('3/7')->bsub($mbi->new(1)), '-4/7');
187 is($mbr->new('3/10')->bsub($mbf->new('1.1')), '-4/5');
191 is($mbr->new('3/7')->bmul($mbi->new(1)), '3/7');
196 is($mbr->new('3/7')->bdiv($mbi->new(1)), '3/7');
[all …]
H A Dbig_ap.t28 # new()
30 note "Test new()";
47 $z = Math::BigRat->new($proper_int);
59 $y = Math::BigRat->new("2");
68 $x = Math::BigRat->new("$proper");
69 $y = Math::BigRat->new("1");
88 $y = Math::BigRat->new("2");
97 $x = Math::BigRat->new("$proper");
98 $y = Math::BigRat->new("1");
102 $x = Math::BigRat->new("$proper");
[all …]
H A Dtrap.t44 # also test that new() still works normally
45 eval { $x = $class->new("42"); $x->bnan(); };
47 # after new() never modified
53 # after new() never modified
66 # after new() never modified
72 # after new() never modified
78 # after new() never modified
89 my $x = Math::BigRat->new('7/4');
95 eval { $x = $mbr->new("$trap"); };
98 eval { $x = $mbr->new("$trap"); };
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/f/
H A Dstt.c86 new->next->previous = new; in ffestt_caselist_append()
87 new->previous->next = new; in ffestt_caselist_append()
109 new->next = new->previous = new; in ffestt_caselist_create()
158 new->next->previous = new; in ffestt_dimlist_append()
159 new->previous->next = new; in ffestt_dimlist_append()
405 new->next = new->previous = new; in ffestt_dimlist_create()
510 new->next->previous = new; in ffestt_exprlist_append()
511 new->previous->next = new; in ffestt_exprlist_append()
530 new->next = new->previous = new; in ffestt_exprlist_create()
618 new->next = new->previous = new; in ffestt_formatlist_create()
[all …]
/openbsd/usr.bin/find/
H A Dfunction.c186 PLAN *new; in c_amin() local
213 PLAN *new; in c_atime() local
241 PLAN *new; in c_cmin() local
268 PLAN *new; in c_ctime() local
586 if (new->flags & F_NEEDOK && new->flags & F_PLUSSET) in c_exec()
601 new->ep_bxp = &new->e_argv[cnt]; in c_exec()
634 new->ep_p = new->ep_bbp = malloc(bufsize + 1); in c_exec()
635 new->ep_ebp = new->ep_bbp + bufsize - 1; in c_exec()
775 new->e_argv[cnt] = new->e_orig[cnt] = NULL; in c_execdir()
806 PLAN *new; in c_flags() local
[all …]
/openbsd/regress/bin/ksh/
H A Dstrsub.t9 v='old new'
22 new new
23 new new
24 new new
56 new new new
71 new
72 new new new
87 new
97 r=new
101 new
[all …]
/openbsd/gnu/usr.bin/perl/utils/
H A Dh2ph.PL137 $new = '';
160 $new = 1 if $new eq '';
165 $new = reindent($new);
227 $new = '';
235 $new = '';
340 $new = '';
348 $new =~ s['
357 $new =~ s['
393 $new = reindent($new);
516 $new .= "\$$id";
[all …]
/openbsd/usr.bin/diff3/
H A Ddiff3prog.c313 d1->new.from,d1->new.to, in merge()
315 d2->new.from,d2->new.to); in merge()
346 d1[1].new.from = d1->new.from; in merge()
354 d2[1].new.from = d2->new.from; in merge()
359 if (d1->new.from == d2->new.from && d1->new.to == d2->new.to) { in merge()
383 d2->new.from = d1->new.from; in merge()
386 d1->new.from = d2->new.from; in merge()
388 if (d1->new.to > d2->new.to) { in merge()
390 d2->new.to = d1->new.to; in merge()
393 d1->new.to = d2->new.to; in merge()
[all …]
/openbsd/gnu/usr.bin/perl/cpan/JSON-PP/t/
H A D002_error.t15 eval { JSON::PP->new->encode ([\-1]) }; ok $@ =~ /cannot encode reference/;
17 eval { JSON::PP->new->encode ([\2]) }; ok $@ =~ /cannot encode reference/;
18 eval { JSON::PP->new->encode ([\{}]) }; ok $@ =~ /cannot encode reference/;
19 eval { JSON::PP->new->encode ([\[]]) }; ok $@ =~ /cannot encode reference/;
20 eval { JSON::PP->new->encode ([\\1]) }; ok $@ =~ /cannot encode reference/;
38 eval { JSON::PP->new->decode ('[5') }; ok $@ =~ /parsing array/;
39 eval { JSON::PP->new->decode ('{"5"') }; ok $@ =~ /':' expected/;
42 eval { JSON::PP->new->decode (undef) }; ok $@ =~ /malformed/;
43 eval { JSON::PP->new->decode (\5) }; ok !!$@; # Can't coerce readonly
44 eval { JSON::PP->new->decode ([]) }; ok $@ =~ /malformed/;
[all …]
/openbsd/gnu/llvm/clang/lib/Headers/
H A Dhexagon_types.h340 #define HEXAGON_V64_PUT_D(v, new) (new) argument
933 #define HEXAGON_V32_PUT_W(v, new) (new) argument
964 #define HEXAGON_V32_PUT_H1(v, new) (((v) & 0x0000ffff) | (((HEXAGON_Vect32)(new)) << 16)) argument
1021 #define HEXAGON_V32_PUT_B3(v, new) (((v) & 0x00ffffff) | (((HEXAGON_Vect32)(new)) << 24)) argument
1567 #define Q6V64_PUT_D(v, new) (new) argument
2160 #define Q6V32_PUT_W(v, new) (new) argument
2190 (((v) & 0xffff0000) | ((Q6Vect32)((unsigned short)(new))))
2191 #define Q6V32_PUT_H1(v, new) (((v) & 0x0000ffff) | (((Q6Vect32)(new)) << 16)) argument
2243 (((v) & 0xffffff00) | ((Q6Vect32)((unsigned char)(new))))
2248 #define Q6V32_PUT_B3(v, new) (((v) & 0x00ffffff) | (((Q6Vect32)(new)) << 24)) argument
[all …]
/openbsd/gnu/usr.bin/perl/dist/Dumpvalue/t/
H A Dextend-coverage.t30 my $d = Dumpvalue->new( dumpReused => 1 );
31 ok( $d, 'create a new Dumpvalue object' );
41 ok( $d = Dumpvalue->new(), 'create a new Dumpvalue object' );
54 ok( $d = Dumpvalue->new(), 'create a new Dumpvalue object' );
334 my $f = Dumpvalue->new( dumpReused => 1 );
335 ok( $f, 'create a new Dumpvalue object' );
342 my $g = Dumpvalue->new( dumpReused => 1 );
343 ok( $g, 'create a new Dumpvalue object' );
350 my $h = Dumpvalue->new( dumpReused => 1 );
351 ok( $h, 'create a new Dumpvalue object' );
[all …]
/openbsd/usr.bin/vi/vi/
H A Dvs_split.c114 new->t_maxrows = IS_ONELINE(new) ? 1 : new->rows - 1; in vs_split()
136 if (new->t_rows > new->t_maxrows) in vs_split()
137 new->t_rows = new->t_maxrows; in vs_split()
138 if (new->t_minrows > new->t_maxrows) in vs_split()
139 new->t_minrows = new->t_maxrows; in vs_split()
150 if (new->t_rows > new->rows - 1) in vs_split()
151 new->t_minrows = new->t_rows = in vs_split()
152 IS_ONELINE(new) ? 1 : new->rows - 1; in vs_split()
158 _TMAP(new) = IS_ONELINE(new) ? in vs_split()
159 _HMAP(new) : _HMAP(new) + (new->t_rows - 1); in vs_split()
[all …]
/openbsd/usr.bin/vi/ex/
H A Dex_edit.c109 SCR *new; in ex_N_edit() local
114 if (vs_split(sp, new, 0)) { in ex_N_edit()
115 (void)screen_end(new); in ex_N_edit()
122 new->ep = sp->ep; in ex_N_edit()
123 ++new->ep->refcnt; in ex_N_edit()
125 new->frp = frp; in ex_N_edit()
128 new->lno = sp->lno; in ex_N_edit()
129 new->cno = sp->cno; in ex_N_edit()
133 (void)screen_end(new); in ex_N_edit()
138 new->cargv = new->argv = ex_buildargv(sp, NULL, frp->name); in ex_N_edit()
[all …]
/openbsd/usr.bin/cvs/
H A Ddiff3.c555 d1->new.from, d1->new.to, in merge()
557 d2->new.from, d2->new.to); in merge()
591 d1[1].new.from = d1->new.from; in merge()
599 d2[1].new.from = d2->new.from; in merge()
604 if (d1->new.from == d2->new.from && d1->new.to == d2->new.to) { in merge()
632 d2->new.from = d1->new.from; in merge()
635 d1->new.from = d2->new.from; in merge()
637 if (d1->new.to > d2->new.to) { in merge()
639 d2->new.to = d1->new.to; in merge()
642 d1->new.to = d2->new.to; in merge()
[all …]
/openbsd/gnu/usr.bin/perl/cpan/Unicode-Collate/t/
H A Dcjkrange.t89 ok($coll->cmp("\x{9FA6}", "\x{9FBB}") == -1); # new < new
90 ok($coll->cmp("\x{9FBB}", "\x{9FBC}") == -1); # new < new
91 ok($coll->cmp("\x{9FBC}", "\x{9FC3}") == -1); # new < new
92 ok($coll->cmp("\x{9FC3}", "\x{9FC4}") == -1); # new < new
93 ok($coll->cmp("\x{9FC4}", "\x{9FCB}") == -1); # new < new
94 ok($coll->cmp("\x{9FCB}", "\x{9FCC}") == -1); # new < new
95 ok($coll->cmp("\x{9FCC}", "\x{9FCD}") == -1); # new < new
96 ok($coll->cmp("\x{9FCD}", "\x{9FD5}") == -1); # new < new
97 ok($coll->cmp("\x{9FD5}", "\x{9FD6}") == -1); # new < new
98 ok($coll->cmp("\x{9FD6}", "\x{9FEA}") == -1); # new < new
[all …]
/openbsd/usr.sbin/npppd/common/
H A Dradish.c79 struct radish *new; in rd_inithead() local
179 R_Malloc(new, struct radish *, sizeof(*new) + slen); in rd_insert()
180 if (new == NULL) in rd_insert()
182 Bzero(new, sizeof(*new) + slen); in rd_insert()
183 new->rd_route = (struct sockaddr *)(new + 1); in rd_insert()
220 Free(new); in rd_insert()
317 if (new->rd_btest & rp[new->rd_masklim]) in rd_insert()
318 new->rd_r = cur; in rd_insert()
320 new->rd_l = cur; in rd_insert()
322 cur->rd_p = new; in rd_insert()
[all …]
/openbsd/gnu/usr.bin/perl/t/lib/feature/
H A Dindirect7 sub new { bless {}, shift }
16 my $x = new Foo;
23 my $y = new Foo;
42 my $x = new { $class };
51 my $y = new { $class };
59 my $z = new { $class };
78 my $x = new $class;
87 my $y = new $class;
95 my $z = new $class;
115 my $x = new $class ();
[all …]
/openbsd/gnu/usr.bin/perl/dist/Data-Dumper/t/
H A Dmisc.t66 $obj = Data::Dumper->new([$a,$b]);
69 $obj = Data::Dumper->new([$a,$b]);
78 $obj = Data::Dumper->new([$a,$b]);
82 $obj = Data::Dumper->new([$a,$b]);
96 $obj = Data::Dumper->new([$a,$b]);
99 $obj = Data::Dumper->new([$a,$b]);
110 $obj = Data::Dumper->new([$a,$b]);
114 $obj = Data::Dumper->new([$a,$b]);
131 $obj = Data::Dumper->new([$a,$b]);
134 $obj = Data::Dumper->new([$a,$b]);
[all …]

12345678910>>...120