Skip to content
This repository
Browse code

opt-unsafe-* goes before opt-vague-ints - alphabetical order and all …

…that.
  • Loading branch information...
commit bb0b3ffcf56ba72aa609fdc0a63767b347d2897c 1 parent 3c972bb
Anton Ekblad authored

Showing 1 changed file with 8 additions and 8 deletions. Show diff stats Hide diff stats

  1. +8 8 src/ArgSpecs.hs
16 src/ArgSpecs.hs
@@ -35,14 +35,6 @@ argSpecs = [
35 35 updateCfg = \cfg _ -> cfg {doTCE = True,
36 36 evalLib = evalTrampolining},
37 37 info = "Perform tail call elimination."},
38   - ArgSpec { optName = "opt-vague-ints",
39   - updateCfg = vagueInts,
40   - info = "Int math has 53 bits of precision, but gives incorrect "
41   - ++ "results rather than properly wrapping around when "
42   - ++ "those 53 bits are exceeded. Bitwise operations still "
43   - ++ "only work on the lowest 32 bits. This option should "
44   - ++ "give a substantial performance boost for Int math "
45   - ++ "heavy code."},
46 38 ArgSpec { optName = "opt-unsafe-ints",
47 39 updateCfg = unsafeMath,
48 40 info = "Enable all unsafe Int math optimizations. Equivalent to "
@@ -54,6 +46,14 @@ argSpecs = [
54 46 ++ "up Int multiplication by a factor of at least four, "
55 47 ++ "but may give incorrect results when the product "
56 48 ++ "falls outside the interval [-2^52, 2^52]."},
  49 + ArgSpec { optName = "opt-vague-ints",
  50 + updateCfg = vagueInts,
  51 + info = "Int math has 53 bits of precision, but gives incorrect "
  52 + ++ "results rather than properly wrapping around when "
  53 + ++ "those 53 bits are exceeded. Bitwise operations still "
  54 + ++ "only work on the lowest 32 bits. This option should "
  55 + ++ "give a substantial performance boost for Int math "
  56 + ++ "heavy code."},
57 57 ArgSpec { optName = "out=",
58 58 updateCfg = \cfg outfile -> cfg {outFile = const $ head outfile},
59 59 info = "Write the JS blob to <arg>."},

0 comments on commit bb0b3ff

Please sign in to comment.
Something went wrong with that request. Please try again.