Skip to content

Commit

Permalink
limit instruction_set use
Browse files Browse the repository at this point in the history
  • Loading branch information
Lokathor committed Jun 3, 2024
1 parent 7376e8b commit d3fdb93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bios.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub fn VBlankIntrWait() {
/// * **Returns:** The output is in the range +/- `pi/2`, but accuracy is worse
/// outside of +/- `pi/4`.
#[inline]
#[instruction_set(arm::t32)]
#[cfg_attr(feature = "on_gba", instruction_set(arm::t32))]
pub fn ArcTan(theta: crate::i16fx14) -> crate::i16fx14 {
let mut i = theta.to_bits();
on_gba_or_unimplemented!(unsafe {
Expand All @@ -87,7 +87,7 @@ pub fn ArcTan(theta: crate::i16fx14) -> crate::i16fx14 {
/// * **Returns:** The angle of the input vector, with `u16::MAX` being
/// equivalent to `2pi`.
#[inline]
#[instruction_set(arm::t32)]
#[cfg_attr(feature = "on_gba", instruction_set(arm::t32))]
pub fn ArcTan2(x: crate::i16fx14, y: crate::i16fx14) -> u16 {
let x = x.to_bits();
let y = y.to_bits();
Expand Down

0 comments on commit d3fdb93

Please sign in to comment.