Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2006/0116/1

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


Allow dumb shifts.
 [rsc] --rw-rw-r-- M 661145 glenda sys 35737 Jan 16 19:52 sys/src/cmd/ql/asmout.c
	/n/sourcesdump/2006/0116/plan9/sys/src/cmd/ql/asmout.c:590,597 - 
	/n/sourcesdump/2006/0117/plan9/sys/src/cmd/ql/asmout.c:590,602
	  		r = p->reg;
	  		if(r == NREG)
	  			r = p->to.reg;
	+ 		/*
	+ 		 * Let user (gs) shoot himself in the foot. 
	+ 		 * qc has already complained.
	+ 		 *
	  		if(v < 0 || v > 31)
	  			diag("illegal shift %ld\n%P", v, p);
	+ 		 */
	  		if(v < 0)
	  			v = 0;
	  		else if(v > 32)


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.