Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.275
 
1.276
 
MAIN:ragge:20100401122656
 
pftn.c
_>21732173 }
 21742174 
 21752175 /*
<> 2176+ * Just invoke memset(3).
  2177+ */
  2178+static NODE *
  2179+builtin_memset(NODE *f, NODE *a)
  2180+{
  2181+
  2182+        if (a == NULL)
  2183+                goto bad;
  2184+
  2185+        f->n_sp = lookup("memset", SNORMAL);
  2186+        return buildtree(CALL, f, a);
  2187+
  2188+bad:
  2189+        uerror("bad argument to __builtin_memset");
  2190+        return bcon(0);
  2191+}
  2192+
  2193+/*
21762194  * Take integer absolute value.
 21772195  * Simply does: ((((x)>>(8*sizeof(x)-1))^(x))-((x)>>(8*sizeof(x)-1)))
 21782196  */
     
 !
23332351         { "__builtin_abs", builtin_abs },
 23342352         { "__builtin_expect", builtin_expect },
 23352353         { "__builtin_memcpy", builtin_memcpy },
<> 2354+        { "__builtin_memset", builtin_memset },
<_23362355 #ifndef TARGET_STDARGS
 23372356         { "__builtin_stdarg_start", builtin_stdarg_start },
 23382357         { "__builtin_va_start", builtin_stdarg_start },
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-09-19 23:54 +0200