roundrdsrec3
Adjusts a rectangle to lambda grid step
Synopsys
#include "rfmnnn.h"
void roundrdsrec( Rectangle )
rdsrec_list ∗Rectangle;
Parameter
- Rectangle
-
RDS rectangle to treat.
Overview
the roundrdsrec function adjusts (in lambda) to lower grid step for rectangle extremity which has coordinates (X,Y), adjusts to upper grid step for rectangle extremity which has coordinates (X+DX,Y+DY).
Return value
nothing
Errors
none
Examples
#include "mphnnn.h"
#include "mutnnn.h"
#include "rdsnnn.h"
#include "rfmnnn.h"
#include "rtlnnn.h"
typedef struct UserStruct
{
char ∗STRING;
void ∗USER1;
} UserStruct;
main()
{
rdsfig_list ∗RdsFigure;
rdsrec_list ∗Rectangle;
mbkenv();
rdsenv();
loadrdsparam();
RdsFigure = addrdsfig("core_2",sizeof(UserStruct));
Rectangle =
addrdsfigrec(RdsFigure, "seg", RDS_ALU1, 2.5, 3.5, 6, 7);
viewrfmrec ( Rectangle );
/∗ ∗/ roundrdsrec ( Rectangle );
/∗ view rectangle after rounding ∗/
viewrfmrec ( Rectangle );
}
History
- Debian 10 (Buster) to Debian 9 (Stretch): the text shown here
- Debian 8 (Jessie) to Debian 7 (Wheezy)