chapel-lang/chapel — pull request #34 by benharsh (2014-07-21 18:50:31+00:00)
Title: Fannkuch cleanup to improve style and use atomics

Most of these changes were initiated based off of an offline review. While there are many small style changes, the biggest change is using atomics in favor of reducing arrays.

The total checksum can be added to easily enough. To keep track of the maximum number of flips, we use 'compareExchange' to make sure we don't overwrite any changes made by another task.

@Kyle-B or @lydia-duncan might want to review this.