Lines Matching refs:jim_wide
39 static jim_wide JimSignExtend(jim_wide n, int width)
41 if (width == sizeof(jim_wide) * 8) {
45 if (n & ((jim_wide)1 << (width - 1))) {
47 n -= ((jim_wide)1 << width);
61 * and the width be no more than the width of jim_wide.
63 static jim_wide JimBitIntBigEndian(const unsigned char *bitvec, int pos, int width)
65 jim_wide result = 0;
79 result |= ((jim_wide)1 << i);
91 static jim_wide JimBitIntLittleEndian(const unsigned char *bitvec, int pos, int width)
93 jim_wide result = 0;
99 result += (jim_wide)bitvec[(pos + i) / 8] << i;
107 result |= ((jim_wide)1 << i);
156 * and the width be no more than the width of jim_wide.
158 static void JimSetBitsIntBigEndian(unsigned char *bitvec, jim_wide value, int pos, int width)
169 int bit = !!(value & ((jim_wide)1 << i));
177 static void JimSetBitsIntLittleEndian(unsigned char *bitvec, jim_wide value, int pos, int width)
188 int bit = !!(value & ((jim_wide)1 << i));
206 jim_wide pos;
207 jim_wide width;
244 jim_wide result = 0;
246 if (width > sizeof(jim_wide) * 8) {
285 jim_wide pos = 0;
286 jim_wide width;
287 jim_wide value;
305 if (width <= 0 || (option == OPT_STR && width % 8) || (option != OPT_STR && width > sizeof(jim_wide) * 8)) {