From 99ccdb1e02560d40e4fbfac9c3b90d7c843caeb0 Mon Sep 17 00:00:00 2001 From: Milan Date: Tue, 16 Jan 2024 17:22:22 -0500 Subject: [PATCH 1/2] round :Down removed --- src/bfloat16.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bfloat16.jl b/src/bfloat16.jl index 1de6ee8..d7eb918 100644 --- a/src/bfloat16.jl +++ b/src/bfloat16.jl @@ -54,5 +54,4 @@ Base.BigFloat(x::BFloat16) = BigFloat(Float32(x)) Base.maxintfloat(::Type{BFloat16}) = reinterpret(BFloat16,0x4380) -Base.round(x::BFloat16, r::RoundingMode{:ToZero}) = BFloat16(trunc(Float32(x))) -Base.round(x::BFloat16, r::RoundingMode{:Down}) = BFloat16(floor(Float32(x))) \ No newline at end of file +Base.round(x::BFloat16, r::RoundingMode{:ToZero}) = BFloat16(trunc(Float32(x))) \ No newline at end of file From e7877e5cc02a3982b6ddb4a174ba32f7addf4622 Mon Sep 17 00:00:00 2001 From: Milan Date: Tue, 16 Jan 2024 17:46:54 -0500 Subject: [PATCH 2/2] bump to v0.8.1 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 49d1eaa..66e6dab 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "StochasticRounding" uuid = "3843c9a1-1f18-49ff-9d99-1b4c8a8e97ed" authors = ["Milan Kloewer and StochasticRounding.jl contributors"] -version = "0.8.0" +version = "0.8.1" [deps] BFloat16s = "ab4f0b2a-ad5b-11e8-123f-65d77653426b"