Displaying 4 results from an estimated 4 matches for "elementindex".
2007 Sep 07
0
[LLVMdev] [PATCH]: Add SparseBitmap implementation
...s to fit in 80 columns.
+ template <int ElementSize = 128>
+ struct SparseBitVectorElement {
+ public:
I'd suggest outdenting this. Indenting due to the namespace doesn't add
any value. Also, I'd suggest making ElementSize 'unsigned' instead of
int.
+ unsigned ElementIndex; // Index of Element in terms of where first bit
+ // starts
Please use:
/// ElementIndex - Index of Element in terms of where first bit starts.
unsigned ElementIndex;
Please end sentences in comments with periods :)
+ // This implementation is used for strict weak ordering guarantee...
2007 Sep 04
6
[LLVMdev] [PATCH]: Add SparseBitmap implementation
On 9/4/07, Dan Gohman <djg at cray.com> wrote:
> On Tue, Sep 04, 2007 at 10:35:10AM -0400, Daniel Berlin wrote:
> > On 9/4/07, Dan Gohman <djg at cray.com> wrote:
> > > On Fri, Aug 31, 2007 at 08:10:33PM -0400, Daniel Berlin wrote:
> > > > + template <int ElementSize>
> > > > + class SparseBitmap {
> > >
> > > Do you
2007 Sep 07
1
[LLVMdev] [PATCH]: Add SparseBitmap implementation
...nt ElementSize = 128>
> + struct SparseBitVectorElement {
> + public:
>
> I'd suggest outdenting this. Indenting due to the namespace doesn't add
> any value. Also, I'd suggest making ElementSize 'unsigned' instead of
> int.
Done
>
> + unsigned ElementIndex; // Index of Element in terms of where first bit
> + // starts
>
> Please use:
> /// ElementIndex - Index of Element in terms of where first bit starts.
> unsigned ElementIndex;
>
> Please end sentences in comments with periods :)
Fixed
>
> + // This implemen...
2001 Dec 19
2
R strings from C
Hi,
I am trying to study R internal behaviour. So long, I have not
succeeded to access the value of R strings from C.
I use:
void salvesta_tabel(
SEXP data_frame,
SEXP file
)
{
printf( "nimi %d\n", (R_CHAR)( file));
}
and from the R side:
salvesta.tabel <-
function (x, file = "") {
.Call( "salvesta_tabel", x, file)
}
When calling