代码搜索:Sign
找到约 10,000 项符合「Sign」的源代码
代码结果 10,000
www.eeworm.com/read/190666/5177982
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/190666/5178249
c bf-sign-1.c
main ()
{
struct {
signed int s:3;
unsigned int u:3;
int i:3;
} x = {-1, -1, -1};
if (x.u != 7)
abort ();
if (x.s != - 1)
abort ();
if (x.i != -1 && x.i != 7)
abor
www.eeworm.com/read/178758/5314147
c s_sign1.c
/* s_significandf.c -- float version of s_significand.c.
* Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
*/
/*
* ====================================================
*
www.eeworm.com/read/162614/5523325
f90 intrinsic_sign.f90
! Program to test SIGN intrinsic
program intrinsic_sign
implicit none
integer i, j
real r, s
i = 2
j = 3
if (sign (i, j) .ne. 2) call abort
i = 4
j = -5
if (sign (i, j) .ne
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/5527185
c bf-sign-1.c
main ()
{
struct {
signed int s:3;
unsigned int u:3;
int i:3;
} x = {-1, -1, -1};
if (x.u != 7)
abort ();
if (x.s != - 1)
abort ();
if (x.i != -1 && x.i != 7)
abor
www.eeworm.com/read/162614/5528687
c wpointer-sign-pedantic-no.c
/* This is from PR c/25892. See Wpointer-sign.c for more details. */
/* { dg-options "-Wno-pointer-sign -pedantic" } */
void foo(unsigned long* ulp);
void bar(long* lp) {
foo(lp);
}
www.eeworm.com/read/162614/5528975
c wno-pointer-sign.c
/* { dg-do compile } */
/* { dg-options "-Wno-pointer-sign" } */
void f1(long *);
void f2(unsigned long *);
int main()
{
long *lp;
unsigned long *ulp;
char *cp;
unsigned char *ucp;
signed
www.eeworm.com/read/162614/5529052
c wpointer-sign-wall-no.c
/* This is from PR c/25892. See Wpointer-sign.c for more details. */
/* { dg-options "-Wno-pointer-sign -Wall" } */
void foo(unsigned long* ulp);
void bar(long* lp) {
foo(lp);
}