65 |
# MIN to MAX (included). |
# MIN to MAX (included). |
66 |
m4_define([b4_int_type], |
m4_define([b4_int_type], |
67 |
[m4_if(b4_ints_in($@, [0], [255]), [1], [unsigned char], |
[m4_if(b4_ints_in($@, [0], [255]), [1], [unsigned char], |
68 |
b4_ints_in($@, [-128], [127]), [1], [yysigned_char], |
b4_ints_in($@, [-128], [127]), [1], [signed char], |
69 |
|
|
70 |
b4_ints_in($@, [0], [65535]), [1], [unsigned short], |
b4_ints_in($@, [0], [65535]), [1], [unsigned short], |
71 |
b4_ints_in($@, [-32768], [32767]), [1], [short], |
b4_ints_in($@, [-32768], [32767]), [1], [short], |
74 |
|
|
75 |
[int])]) |
[int])]) |
76 |
|
|
77 |
|
|
78 |
# b4_int_type_for(NAME) |
# b4_int_type_for(NAME) |
79 |
# --------------------- |
# --------------------- |
80 |
# Return the smallest int type able to handle numbers ranging from |
# Return the smallest int type able to handle numbers ranging from |