Update of /cvsroot/arcem/arcem/arch In directory vz-cvs-4.sog:/tmp/cvs-serv24428/arch
Modified Files: stddisplaydev.c Log Message: Revise sanity checks. This allows the cMEMC to display properly. Index: stddisplaydev.c =================================================================== RCS file: /cvsroot/arcem/arcem/arch/stddisplaydev.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- stddisplaydev.c 21 Oct 2012 16:59:32 -0000 1.6 +++ stddisplaydev.c 30 Oct 2012 01:00:24 -0000 1.7 @@ -365,8 +365,8 @@ Remaining = DC.LastHostWidth; /* Sanity checks to avoid looping forever */ - if((Vptr >= Vend) || (Vstart >= Vend)) - return 0; + if(Vend == Vstart) + Vend = Vstart+16; if(Vptr >= Vend) Vptr = Vstart; @@ -457,8 +457,8 @@ Remaining = DC.LastHostWidth*2; /* Scale up to account for everything else counting in bits */ /* Sanity checks to avoid looping forever */ - if((Vptr >= Vend) || (Vstart >= Vend)) - return 0; + if(Vend == Vstart) + Vend = Vstart+16; if(Vptr >= Vend) Vptr = Vstart; @@ -551,8 +551,8 @@ Remaining = DC.LastHostWidth*4; /* Scale up to account for everything else counting in bits */ /* Sanity checks to avoid looping forever */ - if((Vptr >= Vend) || (Vstart >= Vend)) - return 0; + if(Vend == Vstart) + Vend = Vstart+16; if(Vptr >= Vend) Vptr = Vstart; @@ -649,8 +649,8 @@ Remaining = DC.LastHostWidth*8; /* Scale up to account for everything else counting in bits */ /* Sanity checks to avoid looping forever */ - if((Vptr >= Vend) || (Vstart >= Vend)) - return 0; + if(Vend == Vstart) + Vend = Vstart+16; if(Vptr >= Vend) Vptr = Vstart; @@ -758,8 +758,8 @@ Remaining = DC.LastHostWidth; /* Sanity checks to avoid looping forever */ - if((Vptr >= Vend) || (Vstart >= Vend)) - return 0; + if(Vend == Vstart) + Vend = Vstart+16; if(Vptr >= Vend) Vptr = Vstart; @@ -850,8 +850,8 @@ Remaining = DC.LastHostWidth*2; /* Scale up to account for everything else counting in bits */ /* Sanity checks to avoid looping forever */ - if((Vptr >= Vend) || (Vstart >= Vend)) - return 0; + if(Vend == Vstart) + Vend = Vstart+16; if(Vptr >= Vend) Vptr = Vstart; @@ -944,8 +944,8 @@ Remaining = DC.LastHostWidth*4; /* Scale up to account for everything else counting in bits */ /* Sanity checks to avoid looping forever */ - if((Vptr >= Vend) || (Vstart >= Vend)) - return 0; + if(Vend == Vstart) + Vend = Vstart+16; if(Vptr >= Vend) Vptr = Vstart; @@ -1042,8 +1042,8 @@ Remaining = DC.LastHostWidth*8; /* Scale up to account for everything else counting in bits */ /* Sanity checks to avoid looping forever */ - if((Vptr >= Vend) || (Vstart >= Vend)) - return 0; + if(Vend == Vstart) + Vend = Vstart+16; if(Vptr >= Vend) Vptr = Vstart; @@ -1149,8 +1149,8 @@ Remaining = DC.LastHostWidth; /* Sanity checks to avoid looping forever */ - if((Vptr >= Vend) || (Vstart >= Vend)) - return; + if(Vend == Vstart) + Vend = Vstart+16; if(Vptr >= Vend) Vptr = Vstart; @@ -1203,8 +1203,8 @@ Remaining = DC.LastHostWidth*2; /* Scale up to account for everything else counting in bits */ /* Sanity checks to avoid looping forever */ - if((Vptr >= Vend) || (Vstart >= Vend)) - return; + if(Vend == Vstart) + Vend = Vstart+16; if(Vptr >= Vend) Vptr = Vstart; @@ -1260,8 +1260,8 @@ Remaining = DC.LastHostWidth*4; /* Scale up to account for everything else counting in bits */ /* Sanity checks to avoid looping forever */ - if((Vptr >= Vend) || (Vstart >= Vend)) - return; + if(Vend == Vstart) + Vend = Vstart+16; if(Vptr >= Vend) Vptr = Vstart; @@ -1321,8 +1321,8 @@ Remaining = DC.LastHostWidth*8; /* Scale up to account for everything else counting in bits */ /* Sanity checks to avoid looping forever */ - if((Vptr >= Vend) || (Vstart >= Vend)) - return; + if(Vend == Vstart) + Vend = Vstart+16; if(Vptr >= Vend) Vptr = Vstart; @@ -1393,8 +1393,8 @@ Remaining = DC.LastHostWidth; /* Sanity checks to avoid looping forever */ - if((Vptr >= Vend) || (Vstart >= Vend)) - return; + if(Vend == Vstart) + Vend = Vstart+16; if(Vptr >= Vend) Vptr = Vstart; @@ -1448,8 +1448,8 @@ Remaining = DC.LastHostWidth*2; /* Scale up to account for everything else counting in bits */ /* Sanity checks to avoid looping forever */ - if((Vptr >= Vend) || (Vstart >= Vend)) - return; + if(Vend == Vstart) + Vend = Vstart+16; if(Vptr >= Vend) Vptr = Vstart; @@ -1505,8 +1505,8 @@ Remaining = DC.LastHostWidth*4; /* Scale up to account for everything else counting in bits */ /* Sanity checks to avoid looping forever */ - if((Vptr >= Vend) || (Vstart >= Vend)) - return; + if(Vend == Vstart) + Vend = Vstart+16; if(Vptr >= Vend) Vptr = Vstart; @@ -1566,8 +1566,8 @@ Remaining = DC.LastHostWidth*8; /* Scale up to account for everything else counting in bits */ /* Sanity checks to avoid looping forever */ - if((Vptr >= Vend) || (Vstart >= Vend)) - return; + if(Vend == Vstart) + Vend = Vstart+16; if(Vptr >= Vend) Vptr = Vstart; ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct -- arcem-cvs mailing list arcem-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/arcem-cvs