Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ansi-test
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michał Herda
ansi-test
Commits
250e3912
Commit
250e3912
authored
20 years ago
by
pfdietz
Browse files
Options
Downloads
Patches
Plain Diff
Are 0.0 and -0.0 'of the same type'? Add checks for paranoia
parent
3aee2a41
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansi-tests/sxhash.lsp
+9
-3
9 additions, 3 deletions
ansi-tests/sxhash.lsp
with
9 additions
and
3 deletions
ansi-tests/sxhash.lsp
+
9
−
3
View file @
250e3912
...
...
@@ -158,7 +158,9 @@
for c2 in '(-0.0s0 -0.0f0 -0.0d0 -0.0l0)
for sx1 = (sxhash c1)
for sx2 = (sxhash c2)
unless (eql sx1 sx2)
unless (or (not (typep c1 (type-of c2)))
(not (typep c2 (type-of c1)))
(eql sx1 sx2))
collect (list c1 c2 sx1 sx2))
nil)
...
...
@@ -169,7 +171,9 @@
for c2 = (complex r2)
for sx1 = (sxhash c1)
for sx2 = (sxhash c2)
unless (eql sx1 sx2)
unless (or (not (typep c1 (type-of c2)))
(not (typep c2 (type-of c1)))
(eql sx1 sx2))
collect (list c1 c2 sx1 sx2))
nil)
...
...
@@ -180,7 +184,9 @@
for c2 = (complex 0 r2)
for sx1 = (sxhash c1)
for sx2 = (sxhash c2)
unless (eql sx1 sx2)
unless (or (not (typep c1 (type-of c2)))
(not (typep c2 (type-of c1)))
(eql sx1 sx2))
collect (list c1 c2 sx1 sx2))
nil)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment