changeset 14102 | 5d42204ac35e |
parent 13960 | 665b4c6612ee |
child 14143 | c27461e6a9eb |
14101:af203fb307a7 | 14102:5d42204ac35e |
---|---|
50 if self.is_negative { |
50 if self.is_negative { |
51 -((self.value >> 32) as i64) |
51 -((self.value >> 32) as i64) |
52 } else { |
52 } else { |
53 (self.value >> 32) as i64 |
53 (self.value >> 32) as i64 |
54 } |
54 } |
55 } |
|
56 |
|
57 #[inline] |
|
58 pub fn abs_round(&self) -> u32 { |
|
59 (self.value >> 32) as u32 |
|
55 } |
60 } |
56 |
61 |
57 #[inline] |
62 #[inline] |
58 pub fn sqr(&self) -> Self { |
63 pub fn sqr(&self) -> Self { |
59 Self { |
64 Self { |