-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Реализована функция длинного умножения (#130)
- Loading branch information
Showing
7 changed files
with
136 additions
and
10 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
//FROM Library | ||
$EXTERN Mul; | ||
|
||
Eq { (e.X) e.X = (e.X); } | ||
|
||
$ENTRY Go { | ||
= <Test-Mul>; | ||
} | ||
|
||
// 9999*99 = 989901 | ||
N-9999 { = 4294967295 4294967295 4294967295 4294967295; } | ||
N-99 { = 4294967295 4294967295; } | ||
N-989901 { = 4294967295 4294967294 4294967295 4294967295 0 1; } | ||
|
||
Test-Mul { | ||
= <Eq (1) <Mul 1 1>> | ||
<Eq ('-' 1) <Mul 1 '-' 1>> | ||
<Eq ('-' 1) <Mul ('-' 1) 1>> | ||
<Eq (1) <Mul ('-' 1) '-' 1>> | ||
<Eq (0) <Mul 0 1 2 3>> | ||
<Eq (0) <Mul (2 3 1) 0>> | ||
<Eq (670592745) <Mul 12345 54321>> | ||
<Eq (100000) <Mul 100 1000>> | ||
<Eq (100000) <Mul 1000 100>> | ||
<Eq (<N-989901>) <Mul (<N-9999>) <N-99>>> | ||
<Eq (<N-989901>) <Mul (<N-99>) <N-9999>>>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters