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 242,180 of 243,242   
   Ike Naar to bart   
   Re: _BitInt(N)   
   27 Nov 25 08:10:10   
   
   From: ike@sdf.org   
      
   On 2025-11-26, bart  wrote:   
   > In C, the solution for my example might look like this:   
   >   
   >      double temp = x+y;   
   >      printf("%llu", ((*(uint64_t*)&temp)>>52) & 2047);   
   >   
   > Rather more fiddly and error prone, and it needs an auxiliary statement   
   > that makes it awkward to embed into an expression. (I also had to think   
   > twice about that format code.)   
      
   The ilogb() function from  extracts the exponent of a double.   
      
   --- 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