Skip to content

Commit

Permalink
aeabi
Browse files Browse the repository at this point in the history
  • Loading branch information
Lokathor committed Jan 10, 2025
1 parent 7ecdc1b commit b79ec56
Show file tree
Hide file tree
Showing 4 changed files with 717 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

#### 0.14.0

* **Break:** `copy_u32x8_unchecked` is an `extern "C"` fn now.
* new cargo feature `aeabi_mem_fns` causes the appropriate functions to be
generated. They're still written as `#[naked]` functions, so they require
nightly. It turns out that rust has so many implicit memcpy calls that it did
make a performance difference.

#### 0.13.3

* Added `TextEntry::to_u16`
Expand Down
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ default = ["track_caller", "on_gba"]
track_caller = []
on_gba = []
fixed = ["dep:fixed"]
# Provide the ARM AEABI memory functions, requires Nightly because they're
# written as naked functions for efficiency. They're `no_mangle` and they're
# placed in IWRAM.
aeabi_mem_fns = []

[dependencies]
voladdress = "1.3.0"
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#![no_std]
#![cfg_attr(feature = "aeabi_mem_fns", feature(naked_functions))]
#![allow(unused_mut)]
#![allow(unused_imports)]
#![allow(clippy::let_and_return)]
#![allow(clippy::result_unit_err)]
Expand Down
Loading

0 comments on commit b79ec56

Please sign in to comment.