mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d-shader/hlsl: Write SM4 signatures.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
486c525dc1
commit
464dae2c46
@@ -166,6 +166,20 @@ static inline int ascii_tolower(int c)
|
||||
return ascii_isupper(c) ? c - 'A' + 'a' : c;
|
||||
}
|
||||
|
||||
static inline int ascii_strncasecmp(const char *a, const char *b, size_t n)
|
||||
{
|
||||
int c_a, c_b;
|
||||
|
||||
while (n--)
|
||||
{
|
||||
c_a = ascii_tolower(*a++);
|
||||
c_b = ascii_tolower(*b++);
|
||||
if (c_a != c_b || !c_a)
|
||||
return c_a - c_b;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int ascii_strcasecmp(const char *a, const char *b)
|
||||
{
|
||||
int c_a, c_b;
|
||||
|
Reference in New Issue
Block a user