update CHANGELOG; make utility functions private

This commit is contained in:
Jorge Aparicio 2018-07-15 13:24:09 -05:00
parent d04494b693
commit ee33990f46
2 changed files with 18 additions and 4 deletions

View file

@ -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

View file

@ -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;