Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 25 of 104) sorted by relevance

12345

/plan9/sys/src/cmd/unix/drawterm/libmp/
H A Dmpsub.c7 mpmagsub(mpint *b1, mpint *b2, mpint *diff) in mpmagsub() argument
23 mpassign(b1, diff); in mpmagsub()
24 diff->sign = sign; in mpmagsub()
27 mpbits(diff, n*Dbits); in mpmagsub()
29 mpvecsub(b1->p, n, b2->p, m, diff->p); in mpmagsub()
30 diff->sign = sign; in mpmagsub()
31 diff->top = n; in mpmagsub()
32 mpnorm(diff); in mpmagsub()
37 mpsub(mpint *b1, mpint *b2, mpint *diff) in mpsub() argument
43 mpmagadd(b1, b2, diff); in mpsub()
[all …]
H A Dmpvecsub.c7 mpvecsub(mpdigit *a, int alen, mpdigit *b, int blen, mpdigit *diff) in mpvecsub() argument
23 *diff++ = x - y; in mpvecsub()
32 *diff++ = y; in mpvecsub()
/plan9/sys/src/libmp/port/
H A Dmpsub.c7 mpmagsub(mpint *b1, mpint *b2, mpint *diff) in mpmagsub() argument
23 mpassign(b1, diff); in mpmagsub()
24 diff->sign = sign; in mpmagsub()
27 mpbits(diff, n*Dbits); in mpmagsub()
29 mpvecsub(b1->p, n, b2->p, m, diff->p); in mpmagsub()
30 diff->sign = sign; in mpmagsub()
31 diff->top = n; in mpmagsub()
32 mpnorm(diff); in mpmagsub()
37 mpsub(mpint *b1, mpint *b2, mpint *diff) in mpsub() argument
43 mpmagadd(b1, b2, diff); in mpsub()
[all …]
H A Dmpvecsub.c7 mpvecsub(mpdigit *a, int alen, mpdigit *b, int blen, mpdigit *diff) in mpvecsub() argument
23 *diff++ = x - y; in mpvecsub()
32 *diff++ = y; in mpvecsub()
/plan9/sys/src/cmd/gs/src/
H A Dgdevpcl.c259 register const byte *diff; in gdev_pcl_mode3compress() local
270 diff = cur; in gdev_pcl_mode3compress()
279 offset = diff - run; in gdev_pcl_mode3compress()
280 cbyte = (cur - diff - 1) << 5; in gdev_pcl_mode3compress()
291 while (diff < cur) in gdev_pcl_mode3compress()
292 *out++ = *diff++; in gdev_pcl_mode3compress()
315 register const byte *diff; in gdev_pcl_mode9compress() local
325 diff = cur; in gdev_pcl_mode9compress()
333 offset = diff - run; in gdev_pcl_mode9compress()
338 while (diff < cur) { in gdev_pcl_mode9compress()
[all …]
H A Dgxfill.h31 gs_fixed_point diff; /* end - start */ member
40 ((alp)->diff.x >= 0 ? 0 : -(alp)->diff.y + fixed_epsilon)
51 (alp)->diff.y = (endp).y - (startp).y;\
52 (alp)->diff.x = (endp).x - (startp).x;\
55 (((alp)->diff.x >= 0 ? (alp)->diff.x : -(alp)->diff.x) | 1) +\
67 ADD_NUM_ADJUST(((yv) - (alp)->start.y) * (alp)->diff.x, alp) / (alp)->diff.y :\
69 fixed_mult_quo((alp)->diff.x, (yv) - (alp)->start.y, (alp)->diff.y))) +\
H A Dgsserial.c313 uint diff = 1; in check_u_vals() local
317 check_u(uval - diff); in check_u_vals()
318 check_u(uval + diff); in check_u_vals()
319 } while ((diff <<= 1) < uval); in check_u_vals()
325 int diff = 1; in check_s_vals() local
330 check_s(ival - diff); in check_s_vals()
331 check_s(ival + diff); in check_s_vals()
332 } while ((diff <<= 1) != enc_s_min_int); in check_s_vals()
337 check_s(ival - diff); in check_s_vals()
338 check_s(ival + diff); in check_s_vals()
[all …]
H A Dgxbcache.c115 uint diff, gx_bits_cache_chunk * bck) in gx_bits_cache_shorten() argument
122 bc->cnext -= diff; in gx_bits_cache_shorten()
123 bc->bsize -= diff; in gx_bits_cache_shorten()
124 bck->allocated -= diff; in gx_bits_cache_shorten()
125 cbh->size -= diff; in gx_bits_cache_shorten()
128 next->size = diff; in gx_bits_cache_shorten()
H A Dgdevmem.c569 register int diff = *pptr - br; in mem_mapped_map_rgb_color() local
571 if (diff < 0) in mem_mapped_map_rgb_color()
572 diff = -diff; in mem_mapped_map_rgb_color()
573 if (diff < best) { /* quick rejection */ in mem_mapped_map_rgb_color()
578 if ((diff += dg) < best) { /* quick rejection */ in mem_mapped_map_rgb_color()
583 if ((diff += db) < best) in mem_mapped_map_rgb_color()
584 which = pptr, best = diff; in mem_mapped_map_rgb_color()
587 if (diff == 0) /* can't get any better than 0 diff */ in mem_mapped_map_rgb_color()
595 register int diff = *pptr - br; in mem_mapped_map_rgb_color() local
597 if (diff < 0) in mem_mapped_map_rgb_color()
[all …]
H A Dgshsb.c71 frac V, Temp, diff; in color_rgb_to_hsb() local
80 diff = V - Temp; in color_rgb_to_hsb()
82 H = (green - blue) * frac_1_long / diff; in color_rgb_to_hsb()
84 H = (blue - red) * frac_1_long / diff + 2 * frac_1_long; in color_rgb_to_hsb()
86 H = (red - green) * frac_1_long / diff + 4 * frac_1_long; in color_rgb_to_hsb()
90 rsat = diff / (float)V; in color_rgb_to_hsb()
/plan9/sys/src/ape/cmd/diff/
H A DFREEBSD-upgrade1 Import of GNU diff 2.7
11 diff.info
12 diff.info-1
13 diff.info-2
14 diff.info-3
15 diff.info-4
H A DNEWS3 * New diff option: --binary (useful only on non-Posix hosts)
4 * diff -b and -w now ignore line incompleteness; -B no longer does this.
11 * New cmp, diff, diff3, sdiff option: --help
12 * A new heuristic for diff greatly reduces the time needed to compare
14 * Partly as a result, GNU diff's output is not exactly the same as before.
27 * New diff option: --line-format=FORMAT
28 * New diff group format specifications:
55 * New diff line format specifications:
67 * cmp and diff now conform to Posix.2 (ISO/IEC 9945-2:1993)
71 - When comparing directories, if `diff' finds a file that is not a regular
[all …]
H A DChangeLog48 * diff.h (PR_FILE_NAME): Rename to PR_PROGRAM and move to Makefile.in,
61 * diff.c: Add comment.
63 * util.c (PR_PROGRAM): Moved here from diff.h.
113 * diff.c, diff.h (ignore_some_line_changes):
146 * cmp.c, diff.c, diff3.c, sdiff.c (check_stdout, try_help): New fns.
148 * diff.c (option_help): New variable.
157 * diff.c, diff3.c, (main), sdiff.c (trapsigs): If we'll have children,
172 * cmp.c, diff.c, diff3.c, sdiff.c, (main): Call initialize_main first.
173 * diff.c (binary_I_O): New variable for --binary option.
177 * cmp.c (main), diff.c (compare_files), dir.c (compare_names,
[all …]
H A Ddiff3.c86 #define D_LOWLINE(diff, filenum) \ argument
87 ((diff)->ranges[filenum][START])
88 #define D_HIGHLINE(diff, filenum) \ argument
89 ((diff)->ranges[filenum][END])
90 #define D_NUMLINES(diff, filenum) \ argument
91 (D_HIGHLINE (diff, filenum) - D_LOWLINE (diff, filenum) + 1)
98 #define D_RELNUM(diff, filenum, linenum) \ argument
99 ((diff)->lines[filenum][linenum])
100 #define D_RELLEN(diff, filenum, linenum) \ argument
101 ((diff)->lengths[filenum][linenum])
[all …]
H A DREADME1 This directory contains the GNU diff, diff3, sdiff, and cmp utilities.
6 See the file diff.texi (or diff.info*) for documentation.
H A Dmkfile8 TARG=diff diff3
44 -DHAVE_CONFIG_H -DDIFF_PROGRAM="/bin/ape/diff" \
46 $O.diff: $DIFFO
H A Ddiff.texi3 @setfilename diff.info
9 This file documents the the GNU @code{diff}, @code{diff3}, @code{sdiff},
39 @subtitle @code{diff}, @code{diff3}, @code{sdiff}, @code{cmp}, and @code{patch}
40 @subtitle Edition 1.3, for @code{diff} 2.5 and @code{patch} 2.1
66 This file documents the the GNU @code{diff}, @code{diff3}, @code{sdiff},
70 This is Edition 1.2, for @code{diff} 2.4 and @code{patch} 2.1.
79 * Adjusting Output:: Making @code{diff} output prettier.
80 * diff Performance:: Making @code{diff} smarter or faster.
89 * Invoking diff:: How to run @code{diff} and a summary of its options.
102 @cindex overview of @code{diff} and @code{patch}
[all …]
/plan9/sys/src/9/port/
H A Dtod.c131 vlong ticks, diff; in todget() local
156 diff = ticks - tod.last; in todget()
157 if(diff < 0) in todget()
158 diff = 0; in todget()
159 mul64fract(&x, diff, tod.multiplier); in todget()
197 vlong ticks, diff; in todfix() local
202 diff = ticks - tod.last; in todfix()
203 if(diff > tod.hz){ in todfix()
207 mul64fract(&x, diff, tod.multiplier); in todfix()
/plan9/rc/bin/
H A Dyesterday30 echo diff $1 $2
31 diff $1 $2
34 echo diff -n $1 $2
35 diff -n $1 $2
/plan9/sys/src/cmd/aux/vga/
H A Dct65540.c90 ulong bestm, bestn, diff, bestdiff, lastdiff; in setclock() local
123 diff = abs(fvco-t); in setclock()
124 if(diff < bestdiff){ in setclock()
125 bestdiff = diff; in setclock()
129 if(diff > lastdiff) in setclock()
132 lastdiff = diff; in setclock()
/plan9/sys/src/cmd/aux/
H A Dtimesync.c103 static int adjustperiod(vlong diff, vlong accuracy, int secs);
129 static void writefreqfile(int fd, vlong hz, int secs, vlong diff);
149 vlong diff, accuracy, taccuracy; in main() local
352 diff = 0; in main()
375 diff = ntpsample(); in main()
376 if(diff == 0LL){ in main()
386 diff = gpssample(); in main()
387 if(diff == 0LL){ in main()
400 s->stime = s->ltime + diff; in main()
409 diff = s->stime - s->ltime; in main()
[all …]
/plan9/sys/src/cmd/gs/libpng/
H A Dpnggccrd.c617 int diff; in png_combine_row() local
627 diff = (int) (png_ptr->width & 7); // amount lost in png_combine_row()
690 "0" (diff), // eax in png_combine_row()
711 int diff = (int) (png_ptr->width & 7); /* amount lost */ in png_combine_row() local
723 if (diff) /* number of leftover pixels: 3 for pngtest */ in png_combine_row()
725 final_val+=diff /* *BPP1 */ ; in png_combine_row()
755 int diff; in png_combine_row() local
765 diff = (int) (png_ptr->width & 7); // amount lost // in png_combine_row()
841 : "0" (diff), // eax // input regs in png_combine_row()
865 int diff = (int) (png_ptr->width & 7); /* amount lost */ in png_combine_row() local
[all …]
/plan9/sys/src/cmd/jpg/
H A Dclose.c15 double diff, min; in closest() local
34 diff = (R-r)*(R-r) + (G-g)*(G-g) + (B-b)*(B-b); in closest()
38 if(diff < min){ in closest()
52 min = diff; in closest()
H A Drgbycc.c14 double diff, min; in closest() local
33 diff = (R-r)*(R-r) + (G-g)*(G-g) + (B-b)*(B-b); in closest()
37 if(diff < min){ in closest()
51 min = diff; in closest()
/plan9/sys/src/cmd/diff/
H A Dmkfile3 TARG=diff
10 HFILES=diff.h

12345