From: Lars Balker Rasmussen [mailto:[EMAIL PROTECTED] "Burnett, David" <[EMAIL PROTECTED]> writes: >> the idea of having a 'floor' op.
>I've implemented an op for floor on native numbers. Feel free to >give it a whirl. (I'm not sure if floor(-0.0) is meant to return -0.0 or not, but it does.) Floor is supposed to return the lowest 'integer' not greater than the original value, so floor(-1.0) returns (-1.0) therefore ignoring the oddity of there being a -0.0 in the first place it make sense that floor(-0.0) returns -0.0 :-) >> So I now I have a working my perlin noise (with turbulence) >> implementation written in pure pasm :-) >Cool! So, how does it perform? ;) Slow :-) But I'm making no claims on how good the code is. It's my first, from scratch assembler program ever. On the 2.4GHz P4 at work, its 63s to create a 1001x10001 pgm using no optimisation options when running parrot, from the POW distribution, which also means no JIT. My Java version creates a 1001x10001 PNG in around 10 seconds. There are big differences in IO (the Java version is buffered) to consider and the Java version probably has optimised floor and rand capability :-) Dave ========================================================================== Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other binding commitment through the use of this electronic communication unless it is issued in accordance with the Experian Limited standard terms and conditions of purchase or other express written agreement between Experian Limited and the recipient Experian Limited (registration number 653331) Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF