|
iPXE
|
String functions. More...
Go to the source code of this file.
Macros | |
| #define | ffsll(x) |
| Find first (i.e. | |
| #define | ffsl(x) |
| Find first (i.e. | |
| #define | ffs(x) |
| Find first (i.e. | |
| #define | flsll(x) |
| Find last (i.e. | |
| #define | flsl(x) |
| Find last (i.e. | |
| #define | fls(x) |
| Find last (i.e. | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| FILE_SECBOOT (PERMITTED) | |
| static | __attribute__ ((always_inline)) int __constant_ffsll(unsigned long long x) |
| Find first (i.e. | |
| int | __ffsll (long long x) |
| int | __ffsl (long x) |
| int | __flsll (long long x) |
| int | __flsl (long x) |
| int __pure | strcasecmp (const char *first, const char *second) __nonnull |
| Compare case-insensitive strings. | |
| int __pure | strncasecmp (const char *first, const char *second, size_t max) __nonnull |
| Compare case-insensitive strings. | |
Variables | |
| static void * | dest |
| static void size_t | len |
String functions.
Definition in file strings.h.
| #define ffsll | ( | x | ) |
Find first (i.e.
least significant) set bit
| x | Value |
| lsb | Least significant bit set in value (LSB=1), or zero |
Definition at line 123 of file strings.h.
Referenced by ffsll_okx(), ffsll_var(), and usb_alloc_address().
| #define ffsl | ( | x | ) |
Find first (i.e.
least significant) set bit
| x | Value |
| lsb | Least significant bit set in value (LSB=1), or zero |
Definition at line 132 of file strings.h.
Referenced by ffsl_okx(), and ffsl_var().
| #define ffs | ( | x | ) |
Find first (i.e.
least significant) set bit
| x | Value |
| lsb | Least significant bit set in value (LSB=1), or zero |
Definition at line 141 of file strings.h.
Referenced by efifb_colour_map_mask(), ehci_periodic_schedule(), exanic_expired(), and uhci_periodic_schedule().
| #define flsll | ( | x | ) |
Find last (i.e.
most significant) set bit
| x | Value |
| msb | Most significant bit set in value (LSB=1), or zero |
Definition at line 149 of file strings.h.
Referenced by flsll_okx(), flsll_var(), and profile_update().
| #define flsl | ( | x | ) |
Find last (i.e.
most significant) set bit
| x | Value |
| msb | Most significant bit set in value (LSB=1), or zero |
Definition at line 158 of file strings.h.
Referenced by flsl_okx(), flsl_var(), ipv6_match_len(), profile_update(), and slam_put_value().
| #define fls | ( | x | ) |
Find last (i.e.
most significant) set bit
| x | Value |
| msb | Most significant bit set in value (LSB=1), or zero |
Definition at line 167 of file strings.h.
Referenced by alloc_iob_raw(), arbel_alloc_icm(), arbel_create_cq(), arbel_create_eq(), arbel_create_qp(), arbel_map_vpm(), ath5k_hw_write_ofdm_timings(), efifb_colour_map_mask(), ehci_align(), hermon_create_cq(), hermon_create_eq(), hermon_create_qp(), hermon_map_icm(), hermon_map_vpm(), hermon_unmap_icm(), icm_align(), icm_align(), ilog2(), ioremap_pages(), mlx_utils_ilog2_priv(), nii_io(), xengrant_init(), xhci_align(), and xhci_endpoint_open().
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
|
inlinestatic |
Find first (i.e.
Zero memory.
Copy memory.
Find last (i.e.
least significant) set bit
| x | Value |
| lsb | Least significant bit set in value (LSB=1), or zero |
most significant) set bit
| x | Value |
| msb | Most significant bit set in value (LSB=1), or zero |
| src | Source |
| dest | Destination |
| len | Length |
| dest | Destination |
| len | Length |
| int __ffsll | ( | long long | x | ) |
References x.
| int __ffsl | ( | long | x | ) |
References x.
| int __flsll | ( | long long | x | ) |
References x.
| int __flsl | ( | long | x | ) |
References x.
| int __pure strcasecmp | ( | const char * | first, |
| const char * | second ) |
Compare case-insensitive strings.
| first | First string |
| second | Second string |
| diff | Difference |
Definition at line 209 of file string.c.
References first, and strncasecmp().
Referenced by com32_identify(), comboot_identify(), efi_block_label(), efi_file_find(), efi_file_open(), efi_local_check_volume_name(), efi_snp_hii_fetch(), efi_snp_hii_store(), http_authentication(), http_digest_authenticate(), http_format_metadata_flavor(), http_parse_connection(), http_parse_content_encoding(), http_parse_digest_auth(), http_parse_header(), http_parse_transfer_encoding(), http_scheme(), parse_fc_els_handler(), string_test_exec(), sundance_probe(), tftp_process_option(), uart_find(), and xfer_uri_opener().
Compare case-insensitive strings.
| first | First string |
| second | Second string |
| max | Maximum length to compare |
| diff | Difference |
Definition at line 222 of file string.c.
References first, max, and toupper().
Referenced by efi_file_open(), strcasecmp(), string_test_exec(), and x509_check_dnsname().
| size_t len |