[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] 64 bit integers & the scheduler question



queue monitors in ns uses long long when it's available. And ns's
configure checks for the avaialbility of long long (or quad_t). You can 
find examples in queue-monitor.{h,cc} and misc.cc.

- Haobo

> I've run into a little problem; I'm simulating some complex topologies which
> include gigabit links, and the simulator is running out of unique identifiers in
> the scheduler (because it's using 32 bit integers to store this information).
> 
> Are there any patches to use `long long' as provided by the gcc compiler, or by
> creating a simple Int64 class to do it by hand with unsigned 32 bit integers?
> (I'm on Intel hardware which does not support native 64 bit processing).
> 
> Basically, I need this kind of functionality and just wanted to know if it's
> already been done before I waste my time implementing it, and more importantly
> what other things may break due to 32-bit integer overflows.