diff options
author | Claudiu Zissulescu <claziss@gmail.com> | 2024-05-21 10:56:45 +0100 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2024-05-22 14:22:26 -0400 |
commit | d85bb55f455100b71708bf0a886a9fac958b4191 (patch) | |
tree | 1d888a64be20526263adc8c990fbd0ff3f4399e3 /newlib/libc/machine/arc/memset-stub.c | |
parent | f84fed52916dae4d297f3a9b6b607cd6a1ed3ede (diff) | |
download | newlib-d85bb55f455100b71708bf0a886a9fac958b4191.zip newlib-d85bb55f455100b71708bf0a886a9fac958b4191.tar.gz newlib-d85bb55f455100b71708bf0a886a9fac958b4191.tar.bz2 |
arc: libc: Add support of 16-entry register file
ARC supports a restricted register file with 16 registers.
However, optimized routines support only a full register
file. Thus, fallback on default implementation in case
of 16-entry register file.
Signed-off-by: Claudiu Zissulescu <claziss@gmail.com>
Diffstat (limited to 'newlib/libc/machine/arc/memset-stub.c')
-rw-r--r-- | newlib/libc/machine/arc/memset-stub.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/newlib/libc/machine/arc/memset-stub.c b/newlib/libc/machine/arc/memset-stub.c index 981ca1f..d285eb4 100644 --- a/newlib/libc/machine/arc/memset-stub.c +++ b/newlib/libc/machine/arc/memset-stub.c @@ -1,5 +1,5 @@ /* - Copyright (c) 2015, Synopsys, Inc. All rights reserved. + Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -29,7 +29,8 @@ */ -#if defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED) +#if defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED) \ + || defined (__ARC_RF16__) # include "../../string/memset.c" #else /* See memset-*.S. */ |