5 #include "count-delta.h"
7 static int diffcore_count_changes_1(void *src
, unsigned long src_size
,
8 void *dst
, unsigned long dst_size
,
9 unsigned long delta_limit
,
10 unsigned long *src_copied
,
11 unsigned long *literal_added
)
14 unsigned long delta_size
;
16 delta
= diff_delta(src
, src_size
,
18 &delta_size
, delta_limit
);
20 /* If delta_limit is exceeded, we have too much differences */
23 /* Estimate the edit size by interpreting delta. */
24 if (count_delta(delta
, delta_size
, src_copied
, literal_added
)) {
32 int diffcore_count_changes(void *src
, unsigned long src_size
,
33 void *dst
, unsigned long dst_size
,
34 unsigned long delta_limit
,
35 unsigned long *src_copied
,
36 unsigned long *literal_added
)
38 return diffcore_count_changes_1(src
, src_size
,