Removed extraneous slashes.

This commit is contained in:
Maggie Mari 2012-08-20 13:34:40 -05:00
commit 67ee2792bf
2 changed files with 4 additions and 4 deletions

View file

@ -557,8 +557,8 @@ converge:
# Solve for z = z^2 + c in the complex plane. # Solve for z = z^2 + c in the complex plane.
def mandelconverger(real imag iters creal cimag) def mandelconverger(real imag iters creal cimag)
if iters > 255 | if iters > 255 |
(real\ *real + imag*\ imag > 4) then iters else (real*real + imag* imag > 4) then iters else
mandelconverger(real\ *real - imag*\ imag + creal, 2\ *real*\ imag + mandelconverger(real*real - imag* imag + creal, 2\ *real* imag +
cimag, iters+1, creal, cimag) cimag, iters+1, creal, cimag)
# return the number of iterations required for the iteration to escape # return the number of iterations required for the iteration to escape
@ -589,7 +589,7 @@ but we can whip together something using the density plotter above:
# mandel - This is a convenient helper function for ploting the mandelbrot set # mandel - This is a convenient helper function for ploting the mandelbrot set
# from the specified position with the specified Magnification. # from the specified position with the specified Magnification.
def mandel(realstart imagstart realmag imagmag) mandelhelp(realstart, def mandel(realstart imagstart realmag imagmag) mandelhelp(realstart,
realstart+realmag\ *78, realmag, imagstart, imagstart+imagmag*\ 40, realstart+realmag\ *78, realmag, imagstart, imagstart+imagmag* 40,
imagmag); imagmag);

View file

@ -102,7 +102,7 @@ In LLVM, all memory accesses are explicit with load/store instructions,
and it is carefully designed not to have (or need) an "address-of" and it is carefully designed not to have (or need) an "address-of"
operator. Notice how the type of the @G/@H global variables is actually operator. Notice how the type of the @G/@H global variables is actually
"i32\ *" even though the variable is defined as "i32". What this means "i32\ *" even though the variable is defined as "i32". What this means
is that @G defines*\ space* for an i32 in the global data area, but its is that @G defines* space* for an i32 in the global data area, but its
*name* actually refers to the address for that space. Stack variables *name* actually refers to the address for that space. Stack variables
work the same way, except that instead of being declared with global work the same way, except that instead of being declared with global
variable definitions, they are declared with the `LLVM alloca variable definitions, they are declared with the `LLVM alloca