代码搜索:unsigned
找到约 10,000 项符合「unsigned」的源代码
代码结果 10,000
www.eeworm.com/read/162614/5526632
c 950605-1.c
f (c)
unsigned char c;
{
if (c != 0xFF)
abort ();
}
main ()
{
f (-1);
exit (0);
}
www.eeworm.com/read/162614/5526673
c bf-sign-2.c
/*
This test checks promotion of bitfields. Bitfields should be promoted
very much like chars and shorts:
Bitfields (signed or unsigned) should be promoted to signed int if their
value will fi
www.eeworm.com/read/162614/5526981
c 950322-1.c
f (unsigned char *a)
{
int i, j;
int x, y;
j = a[1];
i = a[0] - j;
if (i < 0)
{
x = 1;
y = -i;
}
else
{
x = 0;
y = i;
}
return x + y;
}
main (
www.eeworm.com/read/162614/5526993
c pr22348.c
void abort (void);
void f(int i)
{
if (i>4 + 3 * 16)
abort();
}
int main()
{
unsigned int buflen, i;
buflen = 4 + 3 * 16;
for (i = 4; i < buflen; i+= 3)
f(i);
return 0;
}
www.eeworm.com/read/162614/5527141
c 20031211-1.c
struct a { unsigned int bitfield : 1; };
unsigned int x;
main()
{
struct a a = {0};
x = 0xbeef;
a.bitfield |= x;
if (a.bitfield != 1)
abort ();
exit (0);
}
www.eeworm.com/read/162614/5527249
c mul-subnormal-single-1.c
/* Check that certain subnormal numbers (formerly known as denormalized
numbers) are rounded to within 0.5 ulp. PR other/14354. */
/* This test requires that float and unsigned int are the same
www.eeworm.com/read/162614/5527509
c 921218-1.c
f()
{
return (unsigned char)("\377"[0]);
}
main()
{
if (f() != (unsigned char)(0377))
abort();
exit (0);
}
www.eeworm.com/read/162614/5527871
c loadhicc.c
typedef int xtype;
foo (p, pc)
xtype *p;
char *pc;
{
xtype a;
unsigned b = 0;
a = *p;
p[1] = a;
if ((unsigned) p[1] > 0)
return 1;
return a;
}
www.eeworm.com/read/162614/5528107
c 920301-1.c
#ifndef NO_LABEL_VALUES
f(){static void*t[]={&&x};x:;}
#endif
g(){static unsigned p[5];}
www.eeworm.com/read/162614/5528132
c pr24227.c
int Fdisplay_buffer (int buffer)
{
if (((struct buffer *) ((unsigned int) buffer)) ==
(0,(struct buffer *) ((unsigned int) ((buffer) & 1))))
return 1;
}