home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.forth      Forth programmers eat a lot of Bratwurst      117,927 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 116,344 of 117,927   
   Krishna Myneni to Anton Ertl   
   Re: double-cell shifts   
   24 Mar 24 08:08:39   
   
   From: krishna.myneni@ccreweb.org   
      
   On 3/24/24 02:37, Anton Ertl wrote:   
   > Krishna Myneni  writes:   
   >> On a possibly related note, standard Forth has D2* and D2/ but not   
   >> DLSHIFT and DRSHIFT. These are double number, non-arithmetic, left shift   
   >> and right shift words with a specified number of bits to shift.   
   >   
   > Gforth has DLSHIFT, DRSHIFT, and DARSHIFT (the latter works on signed   
   > doubles).  They are used exactly 0 times in the Gforth image.  There   
   > are uses in the cross-compiler (for building 64-bit images on 32-bit   
   > machines) and in MINOS2.   
   >   
      
   I'm considering writing a portable IEEE 754-compatible quad-precision   
   floating point arithmetic module in Forth, along the lines of the C++   
   package QPFloat [1]. For a 64-bit Forth, DLSHIFT and DRSHIFT are useful   
   primitives.   
      
   --   
   Krishna   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca