Log in

No account? Create an account
Wizard question - dmv/blogs/lj

> Recent Entries
> Archive
> Friends
> Profile
> dmv/index


Alt. Info Streams
Flickr Stream

August 7th, 2002

Previous Entry Share Next Entry
01:43 pm - Wizard question
In C++

Our floating point library needs a value for inf and -inf. Presently, this was done by

min_real_val = -1.0 / 0.0;

and the obvious counter to that. This causes the compiler (our compiler, even) to complain... but it works (I believe). Is there a better way to get these values?

(12 comments | Leave a comment)


[User Picture]
Date:August 7th, 2002 07:12 pm (UTC)

Re: More Monkeys!

Yes. The compiler I am modifying (Open64) is SGI's internal compiler which had the GCC frontend added, open sourced, and retargeted to ia64. While it is fun to have an account on an actual ia64 machine (the emulators suck) -- and it is amusing to have first person anectodal stories about how bad the ia32 emulation is -- it is not all fun.

> Go to Top