#include <limits.h>#include <string.h>Go to the source code of this file.
Defines | |
| #define | flsl(x) ( __builtin_constant_p ( x ) ? __constant_flsl ( x ) : __flsl ( x ) ) |
| #define | fls(x) flsl ( x ) |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER) | |
| static | __attribute__ ((always_inline)) int __constant_flsl(unsigned long x) |
| int | __flsl (long x) |
| int | strcasecmp (const char *s1, const char *s2) |
Variables | |
| static void * | dest |
| #define flsl | ( | x | ) | ( __builtin_constant_p ( x ) ? __constant_flsl ( x ) : __flsl ( x ) ) |
| #define fls | ( | x | ) | flsl ( x ) |
Definition at line 51 of file strings.h.
Referenced by arbel_alloc_icm(), arbel_create_cq(), arbel_create_eq(), arbel_create_qp(), arbel_start_firmware(), ath5k_hw_write_ofdm_timings(), hermon_alloc_icm(), hermon_create_cq(), hermon_create_eq(), hermon_create_qp(), hermon_free_icm(), mtnic_CONFIG_CQ(), mtnic_CONFIG_EQ(), mtnic_CONFIG_RX_RING(), and mtnic_CONFIG_TX_RING().
| FILE_LICENCE | ( | GPL2_OR_LATER | ) |
| static __attribute__ | ( | (always_inline) | ) | [inline, static] |
Definition at line 9 of file strings.h.
References r.
00010 { 00011 int r = 0; 00012 00013 #if ULONG_MAX > 0xffffffff 00014 if ( x & 0xffffffff00000000UL ) { 00015 x >>= 32; 00016 r += 32; 00017 } 00018 #endif 00019 if ( x & 0xffff0000UL ) { 00020 x >>= 16; 00021 r += 16; 00022 } 00023 if ( x & 0xff00 ) { 00024 x >>= 8; 00025 r += 8; 00026 } 00027 if ( x & 0xf0 ) { 00028 x >>= 4; 00029 r += 4; 00030 } 00031 if ( x & 0xc ) { 00032 x >>= 2; 00033 r += 2; 00034 } 00035 if ( x & 0x2 ) { 00036 x >>= 1; 00037 r += 1; 00038 } 00039 if ( x & 0x1 ) { 00040 r += 1; 00041 } 00042 return r; 00043 }
| int __flsl | ( | long | x | ) |
| int strcasecmp | ( | const char * | s1, | |
| const char * | s2 | |||
| ) |
Definition at line 131 of file string.c.
Referenced by com32_identify(), comboot_identify(), http_rx_header(), sundance_probe(), and tftp_process_option().
00132 { 00133 while (*a && *b && (*a & ~0x20) == (*b & ~0x20)) {a++; b++; } 00134 return((*a & ~0x20) - (*b & ~0x20)); 00135 }
| void* dest |
Definition at line 56 of file strings.h.
Referenced by a3c90x_internal_ReadEeprom(), ccmp_ctr_xor(), elf_load_segment(), ibft_alloc_string(), ibft_set_string(), ibft_set_string_option(), ipoib_pull(), ipoib_push(), ipoib_transmit(), ipv4_rx(), ipv6_rx(), ipv6_tx(), job_done(), job_kill(), job_progress(), resize_dhcp_option(), resolv_done(), shuffle(), xfer_alloc_iob(), xfer_close(), xfer_deliver_iob_meta(), xfer_deliver_raw(), xfer_vredirect(), and xfer_window().
1.5.7.1