You are viewing deviant_

THE MAGIC WORDS ARE SQUEAMISH OSSIFRAGE - My moment of Zen. [entries|archive|friends|userinfo]
THE MAGIC WORDS ARE SQUEAMISH OSSIFRAGE

[ website | My Website ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

My moment of Zen. [Nov. 22nd, 2006|05:02 pm]
Previous Entry Share Next Entry
[mood |scaredscared]
[music |Goner - Anthem]

So, reading through some code today, I came across this bit:
pvh_dlocn_xl->offset = xlate64(UINT64_C(0));
pvh_dlocn_xl->size = xlate64(UINT64_C(0));

That is all.
linkReply

Comments:
[User Picture]From: grimepoch
2006-11-22 10:21 pm (UTC)

(Link)

So is that like double-y casting 0 to two different 64 bit data types?
[User Picture]From: deviant_
2006-11-22 10:25 pm (UTC)

(Link)

Casting to 64-bit and then byte-swapping it.
[User Picture]From: grimepoch
2006-11-22 10:49 pm (UTC)

(Link)

Hahahaha!

// Not all zeros are created equal.

Great comment to put above it ;)
(Deleted comment)