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 129,855 of 131,241   
   Thomas Koenig to Kent Dickey   
   Re: sign/zero/garbage extension (was: Ti   
   09 Oct 25 05:28:56   
   
   From: tkoenig@netcologne.de   
      
   Kent Dickey  schrieb:   
      
   > GCC has actually optimized the loop itself better, but it has lots of   
   > fixup code to create 64-bit register versions of the unsigned inputs   
   > (because the RISC-V ABI specifies all 32-bit quantities must be   
   > sign-extended at the function call boundaries, even if they are   
   > unsigned).   
      
   You mean 0xffffffff as unsigned has to be passed as   
   0xffffffffffffffff ?  Somebody was not thinking that one through...   
      
   At least Loongarch gets that one right; unsigned and signed are   
   zero- and sign-extended, respectively.   
      
      
   [...]   
      
   > RISC-V gives us a modern example   
   > of how to handle not having a full suite of 32-bit instructions, and   
   > what that would look like.   
      
   Seems like it...   
   --   
   This USENET posting was made without artificial intelligence,   
   artificial impertinence, artificial arrogance, artificial stupidity,   
   artificial flavorings or artificial colorants.   
      
   --- 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