-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
correctly use no_std, get rid of macro in exchange for zips and maps,…
… bump ver
- Loading branch information
1 parent
783ed18
commit 973b879
Showing
8 changed files
with
33 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
#![feature(core_intrinsics, portable_simd)] | ||
// #![no_std] | ||
|
||
pub extern crate std as core; | ||
|
||
extern crate alloc; | ||
#![feature(core_intrinsics, portable_simd, array_zip)] | ||
#![no_std] | ||
|
||
pub mod scalar; | ||
pub mod shared; | ||
// #![cfg_attr(feature = "portable_simd", feature(portable_simd))] | ||
pub mod simd; | ||
|
||
#[cfg(test)] | ||
pub mod test; | ||
pub mod test; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
pub mod consts; | ||
pub mod float; | ||
pub mod int; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
use crate::shared::int::*; | ||
use crate::shared::float::FastApproxFloat; | ||
use core::simd::*; | ||
|
||
#[inline(never)] | ||
#[allow(dead_code)] | ||
pub fn test(x: u32x8) -> u32x8 { | ||
unsafe { x.ilog_const_base_unchecked::<2>() } | ||
pub fn test(x: f32x8, base: f32x8) -> f32x8 { | ||
unsafe { x.log_fast_approx::<0>(base) } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
#[cfg(test)] | ||
pub mod checks; | ||
pub mod compile; | ||
|
||
pub mod compile; |