lkml.org 
[lkml]   [2013]   [Jul]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 02/10] Add a generic associative array implementation.
I have to say, the entire boolean type seems strange.  I haven't looked at
all the users, but wouldn't it be better to provide some simple helpers
to allow call sites to set and test lsbits, and document the array as
requiring 2-byte alignment of pointers?

Factoring it into two features like this would eliminate a significant
source of API cruft for callers that don't use the feature, without
cluttering callers that do too much.

And callers could take advantage of known alignment to use more lsbits
if they wanted to.


\
 
 \ /
  Last update: 2013-07-18 00:21    [W:0.021 / U:0.784 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site