SCM Repository
Diff of /branches/pure-cfg/src/compiler/cl-target/print-as-cl.sml
Parent Directory
|
Revision Log
|
Patch
revision 981, Tue Apr 26 12:02:21 2011 UTC | revision 982, Tue Apr 26 13:35:52 2011 UTC | |
---|---|---|
# | Line 229 | Line 229 |
229 | then if isDouble | then if isDouble |
230 | then "HUGE_VAL" | then "HUGE_VAL" |
231 | else "HUGE_VALF" | else "HUGE_VALF" |
(* what does OpenCL do about NaN support? | ||
232 | else if FloatLit.same(FloatLit.nan, f) | else if FloatLit.same(FloatLit.nan, f) |
then if isDouble | ||
233 | then "nan(0)" | then "nan(0)" |
else "nanf(0)" | ||
*) | ||
234 | else if isDouble | else if isDouble |
235 | then FloatLit.toString f | then FloatLit.toString f |
236 | else FloatLit.toString f ^ "f" | else FloatLit.toString f ^ "f" |
|
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |