Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 60 for macro (0.02 sec)

  1. src/cmd/asm/internal/lex/input.go

    // parameters substituted for the formals.
    // Invoking a macro does not touch the PC/line history.
    func (in *Input) invokeMacro(macro *Macro) {
    	// If the macro has no arguments, just substitute the text.
    	if macro.args == nil {
    		in.Push(NewSlice(in.Base(), in.Line(), macro.tokens))
    		return
    	}
    	tok := in.Stack.Next()
    	if tok != '(' {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Sep 06 13:17:27 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/lex/lex_test.go

    	{
    		"define without value",
    		"#define A",
    		"",
    	},
    	{
    		"macro without arguments",
    		"#define A() 1234\n" + "A()\n",
    		"1234.\n",
    	},
    	{
    		"macro with just parens as body",
    		"#define A () \n" + "A\n",
    		"(.).\n",
    	},
    	{
    		"macro with parens but no arguments",
    		"#define A (x) \n" + "A\n",
    		"(.x.).\n",
    	},
    	{
    		"macro with arguments",
    		"#define A(x, y, z) x+z+y\n" + "A(1, 2, 3)\n",
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Aug 29 07:48:38 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/lex/lex.go

    	return Token{ScanToken: token, text: text}
    }
    
    func (l Token) String() string {
    	return l.text
    }
    
    // A Macro represents the definition of a #defined macro.
    type Macro struct {
    	name   string   // The #define name.
    	args   []string // Formal arguments.
    	tokens []Token  // Body of macro.
    }
    
    // Tokenize turns a string into a list of Tokens; used to parse the -D flag and in tests.
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Aug 29 18:31:05 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_macros_internal.h

    #ifndef TENSORFLOW_C_C_API_MACROS_INTERNAL_H_
    #define TENSORFLOW_C_C_API_MACROS_INTERNAL_H_
    
    #ifdef __cplusplus
    #include "tensorflow/core/platform/status.h"
    
    // Macro to verify that the field `struct_size` of STRUCT_OBJ is initialized.
    // `struct_size` is used for struct member compatibility check between core TF
    // and plug-ins with the same C API minor version. More info here:
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Mon Mar 13 17:40:56 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/lex/slice.go

    }
    
    func (s *Slice) Line() int {
    	return s.line
    }
    
    func (s *Slice) Col() int {
    	// TODO: Col is only called when defining a macro and all it cares about is increasing
    	// position to discover whether there is a blank before the parenthesis.
    	// We only get here if defining a macro inside a macro.
    	// This imperfect implementation means we cannot tell the difference between
    	//	#define A #define B(x) x
    	// and
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Thu Jun 29 22:49:50 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  6. .gitattributes

    *.htm           text diff=html
    *.html          text diff=html
    *.java          text diff=java
    *.sh            text eol=lf
    
    
    # These files are binary and should be left untouched
    # (binary is a macro for -text -diff)
    *.a             binary
    *.lib           binary
    *.icns          binary
    *.png           binary
    *.jpg           binary
    *.jpeg          binary
    *.gif           binary
    *.ico           binary
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Wed Sep 02 12:15:16 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_macros.h

    #endif  // _WIN32
    #endif  // SWIG
    
    // TF_Bool is the C API typedef for unsigned char, while TF_BOOL is
    // the datatype for boolean tensors.
    #ifndef TF_Bool
    #define TF_Bool unsigned char
    #endif  // TF_Bool
    
    // Macro used to calculate struct size for maintaining ABI stability across
    // different struct implementations.
    #ifndef TF_OFFSET_OF_END
    #define TF_OFFSET_OF_END(TYPE, MEMBER) \
      (offsetof(TYPE, MEMBER) + sizeof(((TYPE *)0)->MEMBER))
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Sat May 13 04:44:45 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  8. WORKSPACE

    # The cascade of load() statements and tf_workspace?() calls works around the
    # restriction that load() statements need to be at the top of .bzl files.
    # E.g. we can not retrieve a new repository with http_archive and then load()
    # a macro from that repository in the same file.
    load("@//tensorflow:workspace3.bzl", "tf_workspace3")
    
    tf_workspace3()
    
    load("@rules_shell//shell:repositories.bzl", "rules_shell_dependencies", "rules_shell_toolchains")
    
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Wed Sep 03 23:57:17 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/testdata/mips.s

    	//	{
    	//		outcode(int($1), &$2, int($4), &$6);
    	//	}
    	SLL	$4, R1, R2
    
    	//	LSHW imm ',' rreg
    	//	{
    	//		outcode(int($1), &$2, 0, &$4);
    	//	}
    	SLL	$4, R1
    
    	//
    	// move immediate: macro for lui+or, addi, addis, and other combinations
    	//
    	//	LMOVW imm ',' rreg
    	//	{
    	//		outcode(int($1), &$2, 0, &$4);
    	//	}
    	MOVW	$1, R1
    	MOVW	$1, R1
    
    	//	LMOVW ximm ',' rreg
    	//	{
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Aug 08 12:17:12 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/testdata/mips64.s

    //	LAND/LXOR/LOR imm ',' rreg
    //	{
    //		outcode(int($1), &$2, 0, &$4);
    //	}
    	AND	$11, R17, R7	// 3227000b
    	XOR	$341, R1, R23	// 38370155
    	OR	$254, R25, R13	// 372d00fe
    //
    // move immediate: macro for lui+or, addi, addis, and other combinations
    //
    //	LMOVW imm ',' rreg
    //	{
    //		outcode(int($1), &$2, 0, &$4);
    //	}
    	MOVW	$1, R1
    	MOVV	$1, R1
    
    //	LMOVW ximm ',' rreg
    //	{
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Aug 08 12:17:12 UTC 2023
    - 12.4K bytes
    - Viewed (0)
Back to top