[lkml]   [2002]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] hex <-> int conversion routines.
>>>+static __inline__ char inthex_nibble(int x)
>>>+ const char* digits = "0123456789abcdef";
>>>+ return digits[x & 0x0f];
>>perhaps better do static const char *digits.
> GCC doesn't copy const strings, as opposed to other const arrays.

> So it should be fine as it is. GCC also reuse duplicated strings.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:24    [W:0.066 / U:0.024 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site