Calculates sign of integer.
Intop-Sign | Calculates sign of integer. |
Copyright | This program is free software. |
Files | |
C-kern/ | Header file of Intop-Sign. |
C-kern/ | Implementation file Intop-Sign impl. |
Functions | |
test | |
unittest_math_int_sign | Tests implementation of sign_int. |
int_t | |
query | |
sign_int | Return the sign of an integer (signum function). |
inline implementation | |
Macros | |
sign_int | Implements int_t.sign_int as a generic function. |
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.
© 2011 Jörg Seebohn
Header file of Intop-Sign.
Implementation file Intop-Sign impl.
test | |
unittest_math_int_sign | Tests implementation of sign_int. |
int unittest_math_int_sign( void )
Tests implementation of sign_int.
Macros | |
sign_int | Implements int_t.sign_int as a generic function. |
Implements int_t.sign_int as a generic function.
Tests implementation of sign_int.
int unittest_math_int_sign( void )
Return the sign of an integer (signum function).
int sign_int( int i )