update CHANGELOG; make utility functions private
This commit is contained in:
@@ -5,6 +5,19 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
|
||||
- atan2f
|
||||
- cos
|
||||
- coshf
|
||||
- fmaf
|
||||
- sin
|
||||
- sinh
|
||||
- sinhf
|
||||
- tan
|
||||
- tanh
|
||||
- tanhf
|
||||
|
||||
## [v0.1.1] - 2018-07-14
|
||||
|
||||
### Added
|
||||
|
||||
+5
-4
@@ -150,17 +150,18 @@ use self::rem_pio2_large::rem_pio2_large;
|
||||
use self::rem_pio2f::rem_pio2f;
|
||||
|
||||
#[inline]
|
||||
pub fn get_high_word(x: f64) -> u32 {
|
||||
fn get_high_word(x: f64) -> u32 {
|
||||
(x.to_bits() >> 32) as u32
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn get_low_word(x: f64) -> u32 {
|
||||
fn get_low_word(x: f64) -> u32 {
|
||||
x.to_bits() as u32
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[inline]
|
||||
pub fn with_set_high_word(f: f64, hi: u32) -> f64 {
|
||||
fn with_set_high_word(f: f64, hi: u32) -> f64 {
|
||||
let mut tmp = f.to_bits();
|
||||
tmp &= 0x00000000_ffffffff;
|
||||
tmp |= (hi as u64) << 32;
|
||||
@@ -168,7 +169,7 @@ pub fn with_set_high_word(f: f64, hi: u32) -> f64 {
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn with_set_low_word(f: f64, lo: u32) -> f64 {
|
||||
fn with_set_low_word(f: f64, lo: u32) -> f64 {
|
||||
let mut tmp = f.to_bits();
|
||||
tmp &= 0xffffffff_00000000;
|
||||
tmp |= lo as u64;
|
||||
|
||||
Reference in New Issue
Block a user