home bbs files messages ]

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

   comp.lang.c      Meh, in C you gotta define EVERYTHING      243,242 messages   

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

   Message 241,328 of 243,242   
   Lawrence =?iso-8859-13?q?D=FFOlivei to Alexis   
   Re: "The Weird Concept of Branchless Pro   
   17 Oct 25 07:06:48   
   
   From: ldo@nz.invalid   
      
   On Thu, 16 Oct 2025 20:13:48 +1100, Alexis wrote:   
      
   > "By rewriting conditional logic into arithmetic and bit operations, or   
   > using CPU instructions like cmov, we let the CPU chew through code   
   > without pausing to guess. It’s smoother, faster, and often more   
   > deterministic, which is crucial in performance-critical or   
   > side-channel-resistant scenarios (looking at you, cryptography)."   
      
   The original 32-bit ARM architecture (you know, the most popular CPU   
   architecture in the world) had extra bits in the opcode to allow (nearly?)   
   every instruction to be executed conditionally, without explicit   
   branching.   
      
   They gave up on this idea in the 64-bit version of ARM.   
      
   --- 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