Skip to content

Commit

Permalink
Port fix for Smalltalk version of CD benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Jul 29, 2022
1 parent 531b0ae commit 8985802
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/AWFY-Benchmarks/AWFYCollisionDetector.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ AWFYCollisionDetector >> isInVoxel: voxel motion: motion [
y0 := init y.
yv := fin y - init y.

xv = 0.0
xv = 0.0 "follow IEEE floating point semantics"
ifTrue: [
low_x := Float negativeInfinity.
low_x := Float infinity.
high_x := Float infinity ]
ifFalse: [
low_x := (v_x - r - x0) / xv.
Expand All @@ -108,9 +108,9 @@ AWFYCollisionDetector >> isInVoxel: voxel motion: motion [
low_x := high_x.
high_x := tmp ].

yv = 0.0
yv = 0.0 "follow IEEE floating point semantics"
ifTrue: [
low_y := Float negativeInfinity.
low_y := Float infinity.
high_y := Float infinity ]
ifFalse: [
low_y := (v_y - r - y0) / yv.
Expand Down

0 comments on commit 8985802

Please sign in to comment.