repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
builtins
/
lib
/
memset.c
blob
615dff6e7c0a5f6df2a2a87302e2e09abd28cea3
1
extern
void
abort
(
void
);
2
extern
int
inside_main
;
3
4
void
*
5
memset
(
void
*
dst
,
int
c
,
__SIZE_TYPE__ n
)
6
{
7
/* Single-byte memsets should be done inline when optimisation
8
is enabled. */
9
#ifdef __OPTIMIZE__
10
if
(
inside_main
&&
n
<
2
)
11
abort
();
12
#endif
13
14
while
(
n
-- !=
0
)
15
n
[(
char
*)
dst
] =
c
;
16
17
return
dst
;
18
}