Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Ectara

Member Since 27 Feb 2009
Offline Last Active Today, 01:12 AM

Posts I've Made

In Topic: Java - Maximum Recommended Threads At One Time ?

16 November 2014 - 06:41 PM

What's the processor specifications (cores, hyper-threading, etc.)?


In Topic: A little brain teaser

11 November 2014 - 11:37 AM

high = val / 4294967296; // or high = val >> 32; if having one right-shift is a requirement
low = val  - (high * 4294967296);

 

One more operation, I suppose. Alternatively, if the IDE doesn't try to be clever:

 

high = val / 4294967296;
low = (val * 4294967296) / 4294967296;


In Topic: A little brain teaser

10 November 2014 - 10:51 AM


So, to recap, given the 64-bit sample value "515396075660", extract the low and and high dwords using a combination of only RSH (>>) and any non-bitwise operators.

Non-bitwise permitting +, -, *, /, and % ?

 

high = val / 4294967296; // or high = val >> 32; if having one right-shift is a requirement

low = val % 4294967296;

 

// low = 140, high = 120

 

I feel like I'm missing something.


In Topic: Feedback on my kickstarter

08 November 2014 - 09:49 PM

What kind of space pipe am I looking at here?

In Topic: The intersection between cubic Béziers

02 November 2014 - 08:58 PM

I started sweating just reading that function call.

PARTNERS