From f65c22643c899204a9df9eb6a01d8e6f0a387fc3 Mon Sep 17 00:00:00 2001 From: AntKrotov Date: Tue, 5 Jan 2021 23:00:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BC=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LICENSE | 2 +- lib/RVM32I/FPU.ob07 | 6 +++--- lib/STM32CM3/FPU.ob07 | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/LICENSE b/LICENSE index e56a7ff..7fd6e69 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ BSD 2-Clause License -Copyright (c) 2018-2020, Anton Krotov +Copyright (c) 2018-2021, Anton Krotov All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/lib/RVM32I/FPU.ob07 b/lib/RVM32I/FPU.ob07 index d5e59d2..28069c4 100644 --- a/lib/RVM32I/FPU.ob07 +++ b/lib/RVM32I/FPU.ob07 @@ -407,13 +407,13 @@ BEGIN n := 32 ELSE IF x < 0 THEN - s := 80000000H + s := 80000000H; + x := -x ELSE s := 0 END; n := 0; - y := ABS(x); - x := y; + y := x; WHILE y > 0 DO y := y DIV 2; INC(n) diff --git a/lib/STM32CM3/FPU.ob07 b/lib/STM32CM3/FPU.ob07 index d5e59d2..28069c4 100644 --- a/lib/STM32CM3/FPU.ob07 +++ b/lib/STM32CM3/FPU.ob07 @@ -407,13 +407,13 @@ BEGIN n := 32 ELSE IF x < 0 THEN - s := 80000000H + s := 80000000H; + x := -x ELSE s := 0 END; n := 0; - y := ABS(x); - x := y; + y := x; WHILE y > 0 DO y := y DIV 2; INC(n)