Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for __attribute__ (0.21 sec)

  1. ci/official/containers/linux_arm64/builder.devtoolset/gcc9-fixups.patch

     # define strong_alias(name, aliasname) _strong_alias(name, aliasname)
     # define _strong_alias(name, aliasname) \
    -  extern __typeof (name) aliasname __attribute__ ((alias (#name)));
    +  extern __typeof (name) aliasname __attribute__ ((alias (#name))) \
    +    __attribute_copy__ (name);
     
     /* This comes between the return type and function name in
        a function definition to make that definition weak.  */
    Others
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 8.9K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_macros.h

    #else
    #define TF_CAPI_EXPORT __declspec(dllimport)
    #endif  // TF_COMPILE_LIBRARY
    #else
    #ifdef TF_CAPI_WEAK
    #define TF_CAPI_EXPORT \
      __attribute__((visibility("default"))) __attribute((weak))
    #else
    #define TF_CAPI_EXPORT __attribute__((visibility("default")))
    #endif  // TF_CAPI_WEAK
    #endif  // _WIN32
    #endif  // SWIG
    
    // TF_Bool is the C API typedef for unsigned char, while TF_BOOL is
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sat May 13 04:44:45 GMT 2023
    - 1.6K bytes
    - Viewed (1)
  3. src/cmd/cgo/internal/test/issue29563/weak1.c

    // Copyright 2019 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    extern int weaksym __attribute__((__weak__));
    int weaksym = 42;
    
    int foo1()
    {
    	return weaksym;
    C
    - Registered: Tue Jan 30 11:13:10 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 257 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/issue29563/weak2.c

    // Copyright 2019 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    extern int weaksym __attribute__((__weak__));
    int weaksym = 42;
    
    int foo2()
    {
    	return weaksym;
    C
    - Registered: Tue Jan 30 11:13:10 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 257 bytes
    - Viewed (0)
  5. src/cmd/cgo/doc.go

    file compiled by gcc, the file x.cgo2.c:
    
    	void
    	_cgo_be59f0f25121_Cfunc_puts(void *v)
    	{
    		struct {
    			char* p0;
    			int r;
    			char __pad12[4];
    		} __attribute__((__packed__, __gcc_struct__)) *a = v;
    		a->r = puts((void*)a->p0);
    	}
    
    It extracts the arguments from the pointer to _Cfunc_puts's argument
    frame, invokes the system C function (in this case, puts), stores the
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  6. ci/official/containers/linux_arm64/builder.devtoolset/stringop_trunc.patch

    +/* Describes a char array whose address can safely be passed as the first
    +   argument to strncpy and strncat, as the char array is not necessarily
    +   a NUL-terminated string.  */
    +# define __attribute_nonstring__ __attribute__ ((__nonstring__))
    +#else
    +# define __attribute_nonstring__
    +#endif
    +
     #if defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
     # define __LDBL_COMPAT 1
     # ifdef __REDIRECT
    Others
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 42.9K bytes
    - Viewed (1)
  7. src/cmd/cgo/gcc.go

    				break
    			}
    
    			t = c.Type(ptr, pos)
    			if t == nil {
    				return nil
    			}
    
    			// For a struct/union/class, remember the C spelling,
    			// in case it has __attribute__((unavailable)).
    			// See issue 2888.
    			if isStructUnionClass(t.Go) {
    				t.Typedef = dt.Name
    			}
    		}
    	}
    	return t
    }
    
    // FuncType returns the Go type analogous to dtype.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
Back to top