LinuxSystemOptimizations

Contains optimizations, for example fast redefinitions for functions.

Summary
LinuxSystemOptimizationsContains optimizations, for example fast redefinitions for functions.
CopyrightThis program is free software.
Files
C-kern/api/platform/Linux/sysoptimize.hHeader file LinuxSystemOptimizations.
C-kern/konfig.hIncluded from Konfiguration.
system specific configurations
Supported Function Replacements
GNU C-Compiler
sys_sqroot_int64Replaces sqroot_int64 with faster sqrtl (long double version).
Default Definitions
default sys_sqroot_int64If no compiler specific version is defined use sqroot_int64 as default.

Copyright

This program is free software.  You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.

Author

© 2012 Jörg Seebohn

Files

C-kern/api/platform/Linux/sysoptimize.h

C-kern/konfig.h

Included from Konfiguration.

system specific configurations

Summary
Supported Function Replacements
GNU C-Compiler
sys_sqroot_int64Replaces sqroot_int64 with faster sqrtl (long double version).
Default Definitions
default sys_sqroot_int64If no compiler specific version is defined use sqroot_int64 as default.

Supported Function Replacements

sys_sqroot_int64Replaces sqroot_int64.  Set it either to sqroot_int64 or another system specific implementation.

GNU C-Compiler

sys_sqroot_int64

#define sys_sqroot_int64 sqrtl

Replaces sqroot_int64 with faster sqrtl (long double version).  The x86 fpu is faster than the standard integer algorithm for computing the square root.

Default Definitions

default sys_sqroot_int64

If no compiler specific version is defined use sqroot_int64 as default.

Contains optimizations, for example fast redefinitions for functions.
Global generic configurations.
#define sys_sqroot_int64 sqrtl
Replaces sqroot_int64 with faster sqrtl (long double version).
uint32_t sqroot_int64(uint64_t number)
Implements the High School Square Root Algorithm for 64 bit unsigned integer.
Close