What does 10l mean?

puffpio

Golden Member
Dec 21, 1999
1,664
0
0
Its a shorthand for something..but I dunno what..

I know that i18n = internationalization, and L10n = localization...
but 10l? I cant figure it out and google has trouble with something that short and generic..

can anyone share their insight?
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,603
4,521
75
In C or similar languages, 10l is a long immediate value, which may differ in length from an int immediate on 64-bit machines.

In SVG, 10l may be part of a command to draw a line.

Or perhaps you misread the first characters as numbers, and it's just somebody Laughing Out Loud? :laugh:
 

puffpio

Golden Member
Dec 21, 1999
1,664
0
0
i see it in commit logs for x264 ( a video encoder) a lot.

an example would be: "Fix another 10l in MBtree"
and the code diffwould be

- int dist_scale_factor = p1 != p0 ? 128 : ( ((b-p0) << 8) + ((p1-p0) >> 1) ) / (p1-p0);
+ int dist_scale_factor = p1 == p0 ? 128 : ( ((b-p0) << 8) + ((p1-p0) >> 1) ) / (p1-p0);
 

habbakuk87

Member
Jun 8, 2008
117
0
0
I too read it on doom9.org, afaik it seems to be some kind of joke on giving someone a punishment of drinking 10L of softdrink for committing wrong code or something to that effect.
 

Cogman

Lifer
Sep 19, 2000
10,284
138
106
Aha, Akapenguin had not consumed enough coke (10L) or something along those lines. thus the 10L comment.