Ignore:
Timestamp:
Dec 24, 2007, 8:52:08 AM (11 years ago)
Author:
cameron
Message:

Reading XML declaration: version/encoding.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/multiliteral.h

    r4 r11  
    6060}
    6161
    62 /*  Specialized helpers for 3 and 5 character combinations. */
     62/*  Specialized helpers for 3, 5, 6, and 7 character combinations. */
    6363
    6464static inline uint32_t c3int32(unsigned char c1, unsigned char c2,
     
    7171                               unsigned char c5) {
    7272  return c8int64(c1, c2, c3, c4, c5, 0, 0, 0);
     73}
     74
     75static inline uint64_t c6int64(unsigned char c1, unsigned char c2,
     76                               unsigned char c3, unsigned char c4,
     77                               unsigned char c5, unsigned char c6) {
     78  return c8int64(c1, c2, c3, c4, c5, c6, 0, 0);
     79}
     80
     81static inline uint64_t c7int64(unsigned char c1, unsigned char c2,
     82                               unsigned char c3, unsigned char c4,
     83                               unsigned char c5, unsigned char c6,
     84                               unsigned char c7) {
     85  return c8int64(c1, c2, c3, c4, c5, c6, c7, 0);
    7386}
    7487
     
    98111}
    99112
     113static inline uint64_t s6int64(unsigned char s[]) {
     114  return s8int64(s) & c6int64(0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF);
     115}
     116
     117static inline uint64_t s7int64(unsigned char s[]) {
     118  return s8int64(s) & c7int64(0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF);
     119}
     120
    100121#endif
Note: See TracChangeset for help on using the changeset viewer.