shithub: brokentoys

ref: f64d365463e5d7b8c0d06bbf0930eeb96d1130a3
dir: /signed.c/

View raw version
#include <u.h>
#include <libc.h>

void
main()
{
	int x;

	x = 25;
	print("n:%d,s:%d\n", x, (x>>31));
	x *= -1;
	print("n:%d,s:%d\n", x, (x>>31));
	exits(0);
}