MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / fastfloat_strncasecmp

Function fastfloat_strncasecmp

external/include/fast_float/fast_float.h:215–222  ·  view source on GitHub ↗

Compares two ASCII strings in a case insensitive manner.

Source from the content-addressed store, hash-verified

213
214// Compares two ASCII strings in a case insensitive manner.
215inline bool fastfloat_strncasecmp(const char *input1, const char *input2,
216 size_t length) {
217 char running_diff{0};
218 for (size_t i = 0; i < length; i++) {
219 running_diff |= (input1[i] ^ input2[i]);
220 }
221 return (running_diff == 0) || (running_diff == 32);
222}
223
224#ifndef FLT_EVAL_METHOD
225#error "FLT_EVAL_METHOD should be defined, please include cfloat."

Callers 1

parse_infnanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected