Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/UnitTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: false
matrix:
julia-version: ['1.0', '1.6', '1', 'nightly']
os: [ubuntu-latest, windows-latest, macos-13]
os: [ubuntu-latest, windows-latest]
julia-arch: [x64]
include:
- os: ubuntu-latest # only test one 32-bit job
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/UnitTestArm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
matrix:
julia-version: ['1.0', '1.6', '1', 'nightly']
os: [ubuntu-latest]
distro: [ubuntu_latest]
distro: [ubuntu24.04]
arch: [aarch64]

steps:
Expand Down Expand Up @@ -51,8 +51,7 @@ jobs:
mkdir -p /home/runner/work/julia/
tar -xf /tmp/julia-aarch64.tar.gz --strip-components=1 -C /home/runner/work/julia/
rm /tmp/julia-aarch64.tar.gz

- uses: uraimo/run-on-arch-action@v2.7.2
- uses: uraimo/run-on-arch-action@v3
name: Unit Test
with:
arch: ${{ matrix.arch }}
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "FixedPointNumbers"
uuid = "53c48c17-4a7d-5ca2-90c5-79b7896eea93"
version = "0.8.5"
version = "0.8.6"

[deps]
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Expand Down
24 changes: 12 additions & 12 deletions src/precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@ function _precompile_()
realtypes = (Float16, Float32, Float64, Int) # types for mixed Normed/Real operations
for T in normedtypes
for f in (+, -, abs, eps, rand) # unary operations
@assert precompile(Tuple{typeof(f),T})
precompile(Tuple{typeof(f),T})
end
@assert precompile(Tuple{typeof(rand),T,Tuple{Int}})
@assert precompile(Tuple{typeof(rand),T,Tuple{Int,Int}})
precompile(Tuple{typeof(rand),T,Tuple{Int}})
precompile(Tuple{typeof(rand),T,Tuple{Int,Int}})
for f in (trunc, floor, ceil, round) # rounding operations
@assert precompile(Tuple{typeof(f),T})
@assert precompile(Tuple{typeof(f),Type{Int},T})
precompile(Tuple{typeof(f),T})
precompile(Tuple{typeof(f),Type{Int},T})
end
for f in (+, -, *, /, <, <=, ==) # binary operations
@assert precompile(Tuple{typeof(f),T,T})
precompile(Tuple{typeof(f),T,T})
for S in realtypes
@assert precompile(Tuple{typeof(f),T,S})
@assert precompile(Tuple{typeof(f),S,T})
precompile(Tuple{typeof(f),T,S})
precompile(Tuple{typeof(f),S,T})
end
end
# conversions
for S in realtypes
@assert precompile(Tuple{Type{T},S})
@assert precompile(Tuple{Type{S},T})
@assert precompile(Tuple{typeof(convert),Type{T},S})
@assert precompile(Tuple{typeof(convert),Type{S},T})
precompile(Tuple{Type{T},S})
precompile(Tuple{Type{S},T})
precompile(Tuple{typeof(convert),Type{T},S})
precompile(Tuple{typeof(convert),Type{S},T})
end
end
end
Loading