Lines Matching full:d2
78 ldns_duration_compare(const ldns_duration_type* d1, const ldns_duration_type* d2) in ldns_duration_compare() argument
80 if (!d1 && !d2) { in ldns_duration_compare()
83 if (!d1 || !d2) { in ldns_duration_compare()
87 if (d1->years != d2->years) { in ldns_duration_compare()
88 return (int) (d1->years - d2->years); in ldns_duration_compare()
90 if (d1->months != d2->months) { in ldns_duration_compare()
91 return (int) (d1->months - d2->months); in ldns_duration_compare()
93 if (d1->weeks != d2->weeks) { in ldns_duration_compare()
94 return (int) (d1->weeks - d2->weeks); in ldns_duration_compare()
96 if (d1->days != d2->days) { in ldns_duration_compare()
97 return (int) (d1->days - d2->days); in ldns_duration_compare()
99 if (d1->hours != d2->hours) { in ldns_duration_compare()
100 return (int) (d1->hours - d2->hours); in ldns_duration_compare()
102 if (d1->minutes != d2->minutes) { in ldns_duration_compare()
103 return (int) (d1->minutes - d2->minutes); in ldns_duration_compare()
105 if (d1->seconds != d2->seconds) { in ldns_duration_compare()
106 return (int) (d1->seconds - d2->seconds); in ldns_duration_compare()