update CHANGELOG; make utility functions private
This commit is contained in:
parent
d04494b693
commit
ee33990f46
2 changed files with 18 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue