home bbs files messages ]

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

   comp.arch      Apparently more than just beeps & boops      131,241 messages   

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

   Message 130,286 of 131,241   
   Anton Ertl to BGB   
   Re: Tonights Tradeoff   
   13 Nov 25 21:58:13   
   
   From: anton@mips.complang.tuwien.ac.at   
      
   BGB  writes:   
   >Can note that GCC seemingly doesn't support 128-bit integers on 64-bit   
   >RISC-V.   
      
   What makes you think so?  It has certainly worked every time I tried   
   it.  E.g., Gforth's "configure" reports:   
      
   checking size of __int128_t... 16   
   checking size of __uint128_t... 16   
   [...]   
   checking for a C type for double-cells... __int128_t   
   checking for a C type for unsigned double-cells... __uint128_t   
      
   That's with gcc 10.3.1   
      
   >Also, doing 128-bit arithmetic on RV64 kinda sucks as there is   
   >basically no good way to do extended precision arithmetic (essentially,   
   >the ISA offers nothing more here than what C already gives you).   
   >   
   >Like, you can do what is essentially:   
   >   c_lo = a_lo + b_lo;   
   >   c_hi = a_hi + b_hi;   
   >   if((c_lo     c_hi++;   
      
   You only need to check for c_lo   
      
   --- 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