rust/fpnum/src/lib.rs
changeset 14081 5d42204ac35e
parent 13939 665b4c6612ee
child 14122 c27461e6a9eb
equal deleted inserted replaced
14080:af203fb307a7 14081: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 {