Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Lisp BigO

Name: Anonymous 2012-01-02 16:07

How fast is:
 
(cdr list...)

Name: Anonymous 2012-01-02 18:14

>>14
struct simple_cons {
  union {
    struct simple_cons *car;
    intptr_t intcar;
  };
  union {
    struct simple_cons *cdr;
    intptr_t intcdr;
  };
};

If intptr_t and pointer to struct are the same size, this could work.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List