shithub: brokentoys

ref: 5a0e28438fe4c0f8cc55430c388c2016cc185cbf
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);
}