Loading...
Searching...
No Matches
Go to the documentation of this file.
24#ifndef __ACT_EXPR_WIDTH_H__
25#define __ACT_EXPR_WIDTH_H__
55#define MAX(a,b) ((a) < (b) ? (b) : (a))
58#define WIDTH_UPDATE(mode) \
60 if (mode == WIDTH_MAX) { \
61 *width = MAX(lw,rw); \
63 else if (mode == WIDTH_MAX1) { \
64 *width = MAX(lw,rw)+1; \
66 else if (mode == WIDTH_SUM) { \
69 else if (mode == WIDTH_BOOL) { \
72 else if (mode == WIDTH_LEFT) { \
75 else if (mode == WIDTH_RIGHT) { \
78 else if (mode == WIDTH_LSHIFT) { \
79 *width = lw + ((1 << rw)-1); \