Lines Matching refs:w
52 static long evalexp(char *s, int w) in evalexp() argument
61 buf = map_physmem(addr, w, MAP_WRBACK); in evalexp()
66 switch (w) { in evalexp()
77 unmap_physmem(buf, w); in evalexp()
84 return (w >= sizeof(long)) ? l : (l & ((1UL << (w * 8)) - 1)); in evalexp()
130 static int arithcomp (char *s, char *t, int op, int w) in arithcomp() argument
134 l = evalexp (s, w); in arithcomp()
135 r = evalexp (t, w); in arithcomp()
148 static int binary_test(char *op, char *arg1, char *arg2, int w) in binary_test() argument
160 if (w == 0) { in binary_test()
163 return (arithcomp (arg1, arg2, optp->opcode, w)); in binary_test()
175 int value, w; in do_itest() local
185 switch (w = cmd_get_data_size(argv[0], 4)) { in do_itest()
189 value = binary_test (argv[2], argv[1], argv[3], w); in do_itest()