u-boot-2016/arch/arc/include/asm
Alexey Brodkin 2178817c4a arc: Get rid of handwritten string routines
U-Boot is a bit special piese of software because it is being
only executed once on power-on as compared to operating system
for example. That's why we don't care much about performance
optimizations instead we're more concerned about size. And up-to-date
compilers might produce much smaller code compared to
performance-optimized routines copy-pasted from the Linux kernel.

Here's an example:
------------------------------->8--------------------------
--- size_asm_strings.txt
+++ size_c_strings.txt
@@ -1,2 +1,2 @@
    text	   data	    bss	    dec	    hex	filename
- 121260	   3784	   3308	 128352	  1f560	u-boot
+ 120448	   3784	   3308	 127540	  1f234	u-boot
------------------------------->8--------------------------

See we were able to shave off ~800 bytes of .text section.

Also usage of string routines implemented in C gives us an ability
to support more HW flavors for free: generated instructions will match
our target as long as correct compiler option is used.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2018-03-21 16:21:34 +03:00
..
arcregs.h ARC: ARCv2: Cache: Fixed operation without IOC 2018-01-19 17:59:34 +03:00
bitops.h arc: Use the generic bitops headers 2015-11-05 10:52:29 -05:00
byteorder.h arc: add architecture header files 2014-02-07 08:14:32 -05:00
cache.h arc: cache - accommodate different L1 cache line lengths 2016-02-20 11:19:53 +03:00
config.h Convert CONFIG_ARCH_EARLY_INIT_R to Kconfig 2017-01-25 16:43:48 -05:00
global_data.h arc: make global_data.h usable in assembly files 2016-07-04 11:43:41 +03:00
gpio.h ARC: add asm/gpio.h to fix compilation error with CONFIG_CMD_GPIO 2017-12-10 21:13:05 +03:00
io.h arc: Use asm-generic/io.h 2017-10-02 21:52:20 -04:00
linkage.h use ASM_NL instead of '; ' for assembler new line character in the macro 2015-03-05 20:49:43 -05:00
posix_types.h arc: Fix printf size_t format related warnings (again...) 2014-08-26 17:41:58 +04:00
processor.h arc: add empty asm/processor.h to satisfy compilation of USB code 2015-11-18 00:39:22 +03:00
ptrace.h arc: add architecture header files 2014-02-07 08:14:32 -05:00
sections.h arc: No need in sections defined in sources with newer tools 2016-08-05 12:50:25 +03:00
string.h arc: Get rid of handwritten string routines 2018-03-21 16:21:34 +03:00
types.h arc: add architecture header files 2014-02-07 08:14:32 -05:00
u-boot-arc.h arc: clean-up init procedure 2015-04-03 09:47:49 +03:00
u-boot.h arc: Make u-boot-arc.h a private header 2017-06-05 11:02:31 -04:00
unaligned.h arc: add architecture header files 2014-02-07 08:14:32 -05:00