Home | History | Annotate | Download | only in tests

Lines Matching refs:Length

27 	int Length;
107 tokens.Negate.Length = match_length(matches, 1);
109 tokens.Abs.Length = match_length(matches, 2);
111 tokens.File.Length = match_length(matches, 3);
113 tokens.Index.Length = match_length(matches, 4);
115 tokens.Swizzle.Length = match_length(matches, 5);
118 if (tokens.Negate.Length > 0) {
123 if (tokens.Abs.Length > 0) {
128 if (!strncmp(tokens.File.String, "temp", tokens.File.Length)) {
130 } else if (!strncmp(tokens.File.String, "input", tokens.File.Length)) {
132 } else if (!strncmp(tokens.File.String, "const", tokens.File.Length)) {
134 } else if (!strncmp(tokens.File.String, "none", tokens.File.Length)) {
147 if (tokens.Swizzle.Length == 0) {
233 tokens.File.Length = match_length(matches, 1);
235 tokens.Index.Length = match_length(matches, 2);
237 tokens.WriteMask.Length = match_length(matches, 3);
240 if (!strncmp(tokens.File.String, "temp", tokens.File.Length)) {
242 } else if (!strncmp(tokens.File.String, "output", tokens.File.Length)) {
259 if (tokens.WriteMask.Length == 0) {
267 for (i = 1; i < tokens.WriteMask.Length; i++) {
335 tokens.Opcode.Length = match_length(matches, 1);
338 tokens.Sat.Length = match_length(matches, 2);
347 if (strncmp(tokens.Opcode.String, info->Name, tokens.Opcode.Length)) {
354 tokens.Dst.Length = match_length(matches, 3);
357 dst_str = malloc(sizeof(char) * (tokens.Dst.Length + 1));
358 strncpy(dst_str, tokens.Dst.String, tokens.Dst.Length);
359 dst_str[tokens.Dst.Length] = '\0';
367 tokens.Srcs[j].Length =
371 (tokens.Srcs[j].Length + 1));
373 tokens.Srcs[j].Length);
374 src_str[tokens.Srcs[j].Length] = '\0';