Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(659)

Side by Side Diff: tools/generate-ten-powers.scm

Issue 866002: Fast double-to-ascii conversion. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/cctest/test-grisu3.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ;; Copyright 2010 the V8 project authors. All rights reserved. 1 ;; Copyright 2010 the V8 project authors. All rights reserved.
2 ;; Redistribution and use in source and binary forms, with or without 2 ;; Redistribution and use in source and binary forms, with or without
3 ;; modification, are permitted provided that the following conditions are 3 ;; modification, are permitted provided that the following conditions are
4 ;; met: 4 ;; met:
5 ;; 5 ;;
6 ;; * Redistributions of source code must retain the above copyright 6 ;; * Redistributions of source code must retain the above copyright
7 ;; notice, this list of conditions and the following disclaimer. 7 ;; notice, this list of conditions and the following disclaimer.
8 ;; * Redistributions in binary form must reproduce the above 8 ;; * Redistributions in binary form must reproduce the above
9 ;; copyright notice, this list of conditions and the following 9 ;; copyright notice, this list of conditions and the following
10 ;; disclaimer in the documentation and/or other materials provided 10 ;; disclaimer in the documentation and/or other materials provided
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 (let* ((power (vector-ref powers i)) 164 (let* ((power (vector-ref powers i))
165 (e (Cached-Fast-e power))) 165 (e (Cached-Fast-e power)))
166 (display-power power (+ i from)) 166 (display-power power (+ i from))
167 (loop (+ i n) 167 (loop (+ i n)
168 (+ nb-elements 1) 168 (+ nb-elements 1)
169 e 169 e
170 (cond 170 (cond
171 ((=fx i 0) max-distance) 171 ((=fx i 0) max-distance)
172 ((> (- e last-e) max-distance) (- e last-e)) 172 ((> (- e last-e) max-distance) (- e last-e))
173 (else max-distance)))))))) 173 (else max-distance))))))))
174 (print "// Copyright 2010 the V8 project authors. All rights reserved.")
174 (print "// ------------ GENERATED FILE ----------------") 175 (print "// ------------ GENERATED FILE ----------------")
175 (print "// command used:") 176 (print "// command used:")
176 (print "// " 177 (print "// "
177 (apply string-append (map (lambda (str) 178 (apply string-append (map (lambda (str)
178 (string-append " " str)) 179 (string-append " " str))
179 *main-args*)) 180 *main-args*))
180 " // NOLINT") 181 " // NOLINT")
181 (print) 182 (print)
182 (print 183 (print
183 "// This file is intended to be included inside another .h or .cc files\n" 184 "// This file is intended to be included inside another .h or .cc files\n"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 (unwind-protect 277 (unwind-protect
277 (with-output-to-port p 278 (with-output-to-port p
278 (lambda () 279 (lambda ()
279 (print-c dividers *from* *to* 280 (print-c dividers *from* *to*
280 "GRISU_CACHE_STRUCT" "GRISU_CACHE_NAME" 281 "GRISU_CACHE_STRUCT" "GRISU_CACHE_NAME"
281 "GRISU_CACHE_MAX_DISTANCE" "GRISU_CACHE_OFFSET" 282 "GRISU_CACHE_MAX_DISTANCE" "GRISU_CACHE_OFFSET"
282 "GRISU_UINT64_C" 283 "GRISU_UINT64_C"
283 ))) 284 )))
284 (if *dest* 285 (if *dest*
285 (close-output-port p))))) 286 (close-output-port p)))))
OLDNEW
« no previous file with comments | « test/cctest/test-grisu3.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698