Lines Matching refs:oth
315 /// Compare the absolute values of `self` and `oth`.
328 pub fn ucmp(&self, oth: &BigNumRef) -> Ordering {
329 unsafe { ffi::BN_ucmp(self.as_ptr(), oth.as_ptr()).cmp(&0) }
1185 fn eq(&self, oth: &BigNumRef) -> bool {
1186 self.cmp(oth) == Ordering::Equal
1191 fn eq(&self, oth: &BigNum) -> bool {
1192 self.eq(oth.deref())
1199 fn eq(&self, oth: &BigNum) -> bool {
1200 self.deref().eq(oth)
1205 fn eq(&self, oth: &BigNumRef) -> bool {
1206 self.deref().eq(oth)
1213 fn partial_cmp(&self, oth: &BigNumRef) -> Option<Ordering> {
1214 Some(self.cmp(oth))
1219 fn partial_cmp(&self, oth: &BigNum) -> Option<Ordering> {
1220 Some(self.cmp(oth.deref()))
1225 fn cmp(&self, oth: &BigNumRef) -> Ordering {
1226 unsafe { ffi::BN_cmp(self.as_ptr(), oth.as_ptr()).cmp(&0) }
1231 fn partial_cmp(&self, oth: &BigNum) -> Option<Ordering> {
1232 self.deref().partial_cmp(oth.deref())
1237 fn partial_cmp(&self, oth: &BigNumRef) -> Option<Ordering> {
1238 self.deref().partial_cmp(oth)
1243 fn cmp(&self, oth: &BigNum) -> Ordering {
1244 self.deref().cmp(oth.deref())
1253 fn $m(self, oth: &BigNum) -> BigNum {
1254 $t::$m(self, oth.deref())
1261 fn $m(self, oth: &BigNumRef) -> BigNum {
1262 $t::$m(self.deref(), oth)
1269 fn $m(self, oth: &BigNum) -> BigNum {
1270 $t::$m(self.deref(), oth.deref())
1279 fn add(self, oth: &BigNumRef) -> BigNum {
1281 r.checked_add(self, oth).unwrap();
1291 fn sub(self, oth: &BigNumRef) -> BigNum {
1293 r.checked_sub(self, oth).unwrap();
1303 fn mul(self, oth: &BigNumRef) -> BigNum {
1306 r.checked_mul(self, oth, &mut ctx).unwrap();
1316 fn div(self, oth: &'b BigNumRef) -> BigNum {
1319 r.checked_div(self, oth, &mut ctx).unwrap();
1329 fn rem(self, oth: &'b BigNumRef) -> BigNum {
1332 r.checked_rem(self, oth, &mut ctx).unwrap();