Case Mod
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 420 articles for 0.007 sec
Re: difference between mod and modulo     

Group: comp.lang.fortran · Group Profile · Search for Case Mod in comp.lang.fortran
Author: nospam
Date: Jul 14, 2008 10:12

...> what is the difference between the MOD and the MODULO functions in ...to the book Fortran 90-95 Explained, mod(a,p) returns a-int(a/p..., just like, for example, a clock. MOD can also return values between 0 ...of a problem if you forget about that case and were counting on mod to give a ...happen). Modulo(-10,60) gives 50 Mod(-10,60) gives -10. -- Richard Maine ...
Show full article (1.19Kb) · Show article thread
Re: P: HTPC case, DVB-T hybrid, DVB-S, Dell dock     

Group: hr.ponuda.hardver · Group Profile · Search for Case Mod in hr.ponuda.hardver
Author: brashnaiputra
Date: Jul 9, 2008 04:14

>> 098 devet 08 7762 Jel ovo neka antispam metoda? :) je, antispam mod :o)
Show full article (0.08Kb) · Show article thread
Re: Duff's device [Re: More fun with Miser's CASE]     

Group: comp.lang.forth · Group Profile · Search for Case Mod in comp.lang.forth
Author: Jonah Thomas
Date: Jun 14, 2008 07:17

... in size: : badduff2 ( n -- )    dup mod 0 ?do \ handle the odd ... second FOR NEXT for the mod case (or if you factor ... faster: : duff2 ( n -- ) dup 8 mod for \ does FOR loop n ... drop ; : duff3 ( n -- ) dup 8 mod ?dup if 1- for dup ...drop ; : duff4 ( n -- ) dup 8 mod 0 ?do dup send 1...1- loop ; : duff5 dup 8 mod ?dup if innerduff then dup...
Show full article (5.35Kb) · Show article thread
Re: Duff's device [Re: More fun with Miser's CASE]     

Group: comp.lang.forth · Group Profile · Search for Case Mod in comp.lang.forth
Author: Gerry
Date: Jun 13, 2008 23:55

... unrolled loop to send data out as fast as possible. Deal with the (n mod 8) items by jumping into the loop and then do 8 at a time ...You could increase the speed at a big increase in size: : badduff2 ( n -- )    dup mod 0 ?do \ handle the odd lot      dup send 1- ... do we get to it? If we have to use nested IFs or CASE they'll take on average 4 branches. You could improve the IF ...
Show full article (2.43Kb) · Show article thread
Re: Duff's device [Re: More fun with Miser's CASE]     

Group: comp.lang.forth · Group Profile · Search for Case Mod in comp.lang.forth
Author: Ed
Date: Jun 13, 2008 23:52

... make it shorter with Ed's CONTINUE . case 7 of dup send 1- continue ... avoid the endof / else in the classic CASE. Here's a working version. \ ...'s Device in Forth \ Requires "Miser's CASE" \ cs-push cs-pop (not-portable) ...count ) dup 7 + 8 / swap 8 mod case 0 of begin [ cs-push ] send endof 7 of continue send endof...
Show full article (1.78Kb) · Show article thread
Re: Duff's device [Re: More fun with Miser's CASE]     

Group: comp.lang.forth · Group Profile · Search for Case Mod in comp.lang.forth
Author: Jonah Thomas
Date: Jun 13, 2008 07:52

...speed at a big increase in size: : badduff2 ( n -- ) dup mod 0 ?do \ handle the odd lot dup send 1-... it? If we have to use nested IFs or CASE they'll take on average 4 branches. You could... You could make it shorter with Ed's CONTINUE . case 7 of dup send 1- continue 6 of dup...every 8th term, plus the odd terms from the MOD . If you need this efficiency, you could drop to...
Show full article (4.35Kb) · Show article thread
Re: Duff's device [Re: More fun with Miser's CASE]     

Group: comp.lang.forth · Group Profile · Search for Case Mod in comp.lang.forth
Author: Marcel Hendrix
Date: Jun 13, 2008 07:16

Gerry <gerry@jackson9000.fsnet.co.uk> writes Re: Duff's device [Re: More fun with Miser's CASE] On 12 Jun, 18:54, Ian Osgood <i...@quirkster.com> wrote: [...] Actually, I've never mastered meta...'0' - CELLS ctab + HERE SWAP ! ; IMMEDIATE : []CALL ( ix -- ) CELLS ctab + @ R ; : duff 8 /MOD ROT SWAP ( -- rem addr quot ) 0 ?DO 8 []CALL LOOP SWAP []CALL DROP ; : }do HERE ctab ! ...
Show full article (2.71Kb) · Show article thread
Re: Duff's device [Re: More fun with Miser's CASE]     

Group: comp.lang.forth · Group Profile · Search for Case Mod in comp.lang.forth
Author: Gerry
Date: Jun 13, 2008 04:50

...is to factor it into some meaningful words that can be applied more generally. I don't think CASE and friends can be used as CS-ROLL is only guaranteed to work with dests and origs ...else" evaluate ; immediate : duff ( from to count -- ) dup 7 + 8 / swap 8 mod ( -- from to n ct ) 0 if ( C: -- ox ) begin 1cs-roll ( -- ...
Show full article (3.89Kb) · Show article thread
Re: Compatibility of MOD files     

Group: comp.lang.fortran · Group Profile · Search for Case Mod in comp.lang.fortran
Author: Craig Powers
Date: Jan 24, 2008 11:50

... Better yet, don't use .mod suffixes in your Fortran95 makefiles.... it is a bad advice. .mod files are dependancies and have to be recreated in many cases. My makefiles handle module dependencies ... corresponding object file (not the mod file). It works fine if...the compiler regenerates the .mod file every time it recompiles the... were to avoid unnecessarily regenerating .mod files, which I don't...
Show full article (0.71Kb) · Show article thread
Re: Compatibility of MOD files     

Group: comp.lang.fortran · Group Profile · Search for Case Mod in comp.lang.fortran
Author: Gordon Sande
Date: Jan 24, 2008 09:48

... Better yet, don't use .mod suffixes in your Fortran95 makefiles. I think it is a bad advice. .mod files are dependancies and have to be recreated in many cases. If you do not account for such cases in your building script, be it a makefile or something else...html It addresses the issue of including .mod files in makefiles and avoiding unnecessary recompilation. ...
Show full article (1.57Kb) · Show article thread
1 · 2 · 3 · 4 · 5 · 6 · 7 · 8 · 9 · next