Closed GoogleCodeExporter closed 9 years ago
forget me, after benchmark, no gain.
declare as:
uint32 out_; // 32 bits of out, aligned make ip->out() fast
union {
uint32 out1_opcode_;
struct { // additional instruction arguments:
uint8 opcode_; // opcode 8 bit, only 3 bit used.
union {
uint8 foldcase_; // convert A-Z to a-z before checking range.
};
union {
uint16 cap_; // opcode == kInstCapture
uint16 match_id_; // opcode == kInstMatch
struct { // opcode == kInstByteRange
uint8 lo_; // byte range is lo_-hi_ inclusive
uint8 hi_; //
};
uint16 empty_; // opcode == kInstEmptyWidth
};
};
};
Original comment by Lyricconch
on 27 Oct 2013 at 11:47
Original comment by rsc@golang.org
on 29 Oct 2013 at 1:20
Original issue reported on code.google.com by
Lyricconch
on 27 Oct 2013 at 9:20