Created
December 9, 2022 20:04
-
-
Save ConnorRigby/b2ddf222a3791cec1b16d225d2b3733d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zig.h:351:12: error: implicit declaration of function 'zig_addw_u32'; did you mean 'zig_addo_u32'? [-Werror=implicit-function-declaration] | |
*res = zig_addw_u32(lhs, rhs, bits); | |
^~~~~~~~~~~~ | |
zig_addo_u32 | |
zig.h: In function 'zig_addo_u64': | |
zig.h:389:12: error: implicit declaration of function 'zig_addw_u64'; did you mean 'zig_addo_u64'? [-Werror=implicit-function-declaration] | |
*res = zig_addw_u64(lhs, rhs, bits); | |
^~~~~~~~~~~~ | |
zig_addo_u64 | |
zig.h: In function 'zig_addo_u8': | |
zig.h:427:25: warning: passing argument 1 of 'zig_addo_u32' from incompatible pointer type [-Wincompatible-pointer-types] | |
return zig_addo_u32(res, lhs, rhs, bits); | |
^~~ | |
zig.h:344:42: note: expected 'zig_u32 *' {aka 'unsigned int *'} but argument is of type 'zig_u8 *' {aka 'unsigned char *'} static inline bool zig_addo_u32(zig_u32 *res, zig_u32 lhs, zig_u32 rhs, zig_u8 bits) { | |
~~~~~~~~~^~~ | |
zig.h: In function 'zig_addo_i8': | |
zig.h:444:25: warning: passing argument 1 of 'zig_addo_i32' from incompatible pointer type [-Wincompatible-pointer-types] | |
return zig_addo_i32(res, lhs, rhs, bits); | |
^~~ | |
zig.h:363:42: note: expected 'zig_i32 *' {aka 'int *'} but argument is of type 'zig_i8 *' {aka 'signed char *'} | |
static inline bool zig_addo_i32(zig_i32 *res, zig_i32 lhs, zig_i32 rhs, zig_u8 bits) { | |
~~~~~~~~~^~~ | |
zig.h: In function 'zig_addo_u16': | |
zig.h:461:25: warning: passing argument 1 of 'zig_addo_u32' from incompatible pointer type [-Wincompatible-pointer-types] | |
return zig_addo_u32(res, lhs, rhs, bits); | |
^~~ | |
zig.h:344:42: note: expected 'zig_u32 *' {aka 'unsigned int *'} but argument is of type 'zig_u16 *' {aka 'short unsigned int *'} | |
static inline bool zig_addo_u32(zig_u32 *res, zig_u32 lhs, zig_u32 rhs, zig_u8 bits) { | |
~~~~~~~~~^~~ | |
zig.h: In function 'zig_addo_i16': | |
zig.h:478:25: warning: passing argument 1 of 'zig_addo_i32' from incompatible pointer type [-Wincompatible-pointer-types] | |
return zig_addo_i32(res, lhs, rhs, bits); | |
^~~ | |
zig.h:363:42: note: expected 'zig_i32 *' {aka 'int *'} but argument is of type 'zig_i16 *' {aka 'short int *'} | |
static inline bool zig_addo_i32(zig_i32 *res, zig_i32 lhs, zig_i32 rhs, zig_u8 bits) { | |
~~~~~~~~~^~~ | |
zig.h: In function 'zig_subo_u32': | |
zig.h:495:12: error: implicit declaration of function 'zig_subw_u32'; did you mean 'zig_subo_u32'? [-Werror=implicit-function-declaration] | |
*res = zig_subw_u32(lhs, rhs, bits); | |
^~~~~~~~~~~~ | |
zig_subo_u32 | |
zig.h: In function 'zig_subo_u64': | |
zig.h:533:12: error: implicit declaration of function 'zig_subw_u64'; did you mean 'zig_subo_u64'? [-Werror=implicit-function-declaration] | |
*res = zig_subw_u64(lhs, rhs, bits); | |
^~~~~~~~~~~~ | |
zig_subo_u64 | |
zig.h: In function 'zig_subo_u8': | |
zig.h:571:25: warning: passing argument 1 of 'zig_subo_u32' from incompatible pointer type [-Wincompatible-pointer-types] | |
return zig_subo_u32(res, lhs, rhs, bits); | |
^~~ | |
zig.h:488:42: note: expected 'zig_u32 *' {aka 'unsigned int *'} but argument is of type 'zig_u8 *' {aka 'unsigned char *'} static inline bool zig_subo_u32(zig_u32 *res, zig_u32 lhs, zig_u32 rhs, zig_u8 bits) { | |
~~~~~~~~~^~~ | |
zig.h: In function 'zig_subo_i8': | |
zig.h:588:25: warning: passing argument 1 of 'zig_subo_i32' from incompatible pointer type [-Wincompatible-pointer-types] | |
return zig_subo_i32(res, lhs, rhs, bits); | |
^~~ | |
zig.h:507:42: note: expected 'zig_i32 *' {aka 'int *'} but argument is of type 'zig_i8 *' {aka 'signed char *'} | |
static inline bool zig_subo_i32(zig_i32 *res, zig_i32 lhs, zig_i32 rhs, zig_u8 bits) { | |
~~~~~~~~~^~~ | |
zig.h: In function 'zig_subo_u16': | |
zig.h:606:25: warning: passing argument 1 of 'zig_subo_u32' from incompatible pointer type [-Wincompatible-pointer-types] | |
return zig_subo_u32(res, lhs, rhs, bits); | |
^~~ | |
zig.h:488:42: note: expected 'zig_u32 *' {aka 'unsigned int *'} but argument is of type 'zig_u16 *' {aka 'short unsigned int *'} | |
static inline bool zig_subo_u32(zig_u32 *res, zig_u32 lhs, zig_u32 rhs, zig_u8 bits) { | |
~~~~~~~~~^~~ | |
zig.h: In function 'zig_subo_i16': | |
zig.h:624:25: warning: passing argument 1 of 'zig_subo_i32' from incompatible pointer type [-Wincompatible-pointer-types] | |
return zig_subo_i32(res, lhs, rhs, bits); | |
^~~ | |
zig.h:507:42: note: expected 'zig_i32 *' {aka 'int *'} but argument is of type 'zig_i16 *' {aka 'short int *'} | |
static inline bool zig_subo_i32(zig_i32 *res, zig_i32 lhs, zig_i32 rhs, zig_u8 bits) { | |
~~~~~~~~~^~~ | |
zig.h: In function 'zig_mulo_u32': | |
zig.h:641:12: error: implicit declaration of function 'zig_mulw_u32'; did you mean 'zig_mulo_u32'? [-Werror=implicit-function-declaration] | |
*res = zig_mulw_u32(lhs, rhs, bits); | |
^~~~~~~~~~~~ | |
zig_mulo_u32 | |
zig.h: In function 'zig_mulo_u64': | |
zig.h:679:12: error: implicit declaration of function 'zig_mulw_u64'; did you mean 'zig_mulo_u64'? [-Werror=implicit-function-declaration] | |
*res = zig_mulw_u64(lhs, rhs, bits); | |
^~~~~~~~~~~~ | |
zig_mulo_u64 | |
zig.h: In function 'zig_mulo_u8': | |
zig.h:717:25: warning: passing argument 1 of 'zig_mulo_u32' from incompatible pointer type [-Wincompatible-pointer-types] | |
return zig_mulo_u32(res, lhs, rhs, bits); | |
^~~ | |
zig.h:634:42: note: expected 'zig_u32 *' {aka 'unsigned int *'} but argument is of type 'zig_u8 *' {aka 'unsigned char *'} static inline bool zig_mulo_u32(zig_u32 *res, zig_u32 lhs, zig_u32 rhs, zig_u8 bits) { | |
~~~~~~~~~^~~ | |
zig.h: In function 'zig_mulo_i8': | |
zig.h:734:25: warning: passing argument 1 of 'zig_mulo_i32' from incompatible pointer type [-Wincompatible-pointer-types] | |
return zig_mulo_i32(res, lhs, rhs, bits); | |
^~~ | |
zig.h:653:42: note: expected 'zig_i32 *' {aka 'int *'} but argument is of type 'zig_i8 *' {aka 'signed char *'} | |
static inline bool zig_mulo_i32(zig_i32 *res, zig_i32 lhs, zig_i32 rhs, zig_u8 bits) { | |
~~~~~~~~~^~~ | |
zig.h: In function 'zig_mulo_u16': | |
zig.h:751:25: warning: passing argument 1 of 'zig_mulo_u32' from incompatible pointer type [-Wincompatible-pointer-types] | |
return zig_mulo_u32(res, lhs, rhs, bits); | |
^~~ | |
zig.h:634:42: note: expected 'zig_u32 *' {aka 'unsigned int *'} but argument is of type 'zig_u16 *' {aka 'short unsigned int *'} | |
static inline bool zig_mulo_u32(zig_u32 *res, zig_u32 lhs, zig_u32 rhs, zig_u8 bits) { | |
~~~~~~~~~^~~ | |
zig.h: In function 'zig_mulo_i16': | |
zig.h:768:25: warning: passing argument 1 of 'zig_mulo_i32' from incompatible pointer type [-Wincompatible-pointer-types] | |
return zig_mulo_i32(res, lhs, rhs, bits); | |
^~~ | |
zig.h:653:42: note: expected 'zig_i32 *' {aka 'int *'} but argument is of type 'zig_i16 *' {aka 'short int *'} | |
static inline bool zig_mulo_i32(zig_i32 *res, zig_i32 lhs, zig_i32 rhs, zig_u8 bits) { | |
~~~~~~~~~^~~ | |
zig.h: At top level: | |
zig.h:787:28: error: conflicting types for 'zig_addw_u32' | |
static inline zig_u##w zig_addw_u##w(zig_u##w lhs, zig_u##w rhs, zig_u8 bits) { \ | |
^~~~~~~~~~ | |
zig.h:868:1: note: in expansion of macro 'zig_int_builtins' | |
zig_int_builtins(32) | |
^~~~~~~~~~~~~~~~ | |
zig.h:351:12: note: previous implicit declaration of 'zig_addw_u32' was here | |
*res = zig_addw_u32(lhs, rhs, bits); | |
^~~~~~~~~~~~ | |
zig.h:795:28: error: conflicting types for 'zig_subw_u32' | |
static inline zig_u##w zig_subw_u##w(zig_u##w lhs, zig_u##w rhs, zig_u8 bits) { \ | |
^~~~~~~~~~ | |
zig.h:868:1: note: in expansion of macro 'zig_int_builtins' | |
zig_int_builtins(32) | |
^~~~~~~~~~~~~~~~ | |
zig.h:495:12: note: previous implicit declaration of 'zig_subw_u32' was here | |
*res = zig_subw_u32(lhs, rhs, bits); | |
^~~~~~~~~~~~ | |
zig.h:803:28: error: conflicting types for 'zig_mulw_u32' | |
static inline zig_u##w zig_mulw_u##w(zig_u##w lhs, zig_u##w rhs, zig_u8 bits) { \ | |
^~~~~~~~~~ | |
zig.h:868:1: note: in expansion of macro 'zig_int_builtins' | |
zig_int_builtins(32) | |
^~~~~~~~~~~~~~~~ | |
zig.h:641:12: note: previous implicit declaration of 'zig_mulw_u32' was here | |
*res = zig_mulw_u32(lhs, rhs, bits); | |
^~~~~~~~~~~~ | |
zig.h:787:28: error: conflicting types for 'zig_addw_u64' | |
static inline zig_u##w zig_addw_u##w(zig_u##w lhs, zig_u##w rhs, zig_u8 bits) { \ | |
^~~~~~~~~~ | |
zig.h:869:1: note: in expansion of macro 'zig_int_builtins' | |
zig_int_builtins(64) | |
^~~~~~~~~~~~~~~~ | |
zig.h:389:12: note: previous implicit declaration of 'zig_addw_u64' was here | |
*res = zig_addw_u64(lhs, rhs, bits); | |
^~~~~~~~~~~~ | |
zig.h:795:28: error: conflicting types for 'zig_subw_u64' | |
static inline zig_u##w zig_subw_u##w(zig_u##w lhs, zig_u##w rhs, zig_u8 bits) { \ | |
^~~~~~~~~~ | |
zig.h:869:1: note: in expansion of macro 'zig_int_builtins' | |
zig_int_builtins(64) | |
^~~~~~~~~~~~~~~~ | |
zig.h:533:12: note: previous implicit declaration of 'zig_subw_u64' was here | |
*res = zig_subw_u64(lhs, rhs, bits); | |
^~~~~~~~~~~~ | |
zig.h:803:28: error: conflicting types for 'zig_mulw_u64' | |
static inline zig_u##w zig_mulw_u##w(zig_u##w lhs, zig_u##w rhs, zig_u8 bits) { \ | |
^~~~~~~~~~ | |
zig.h:869:1: note: in expansion of macro 'zig_int_builtins' | |
zig_int_builtins(64) | |
^~~~~~~~~~~~~~~~ | |
zig.h:679:12: note: previous implicit declaration of 'zig_mulw_u64' was here | |
*res = zig_mulw_u64(lhs, rhs, bits); | |
^~~~~~~~~~~~ | |
zig.h: In function 'zig_byte_swap_u16': | |
zig.h:958:25: error: too few arguments to function 'zig_byte_swap_u8' | |
full_res = (zig_u16)zig_byte_swap_u8((zig_u8)(val >> 0)) << 8 | | |
^~~~~~~~~~~~~~~~ | |
zig.h:945:22: note: declared here | |
static inline zig_u8 zig_byte_swap_u8(zig_u8 val, zig_u8 bits) { | |
^~~~~~~~~~~~~~~~ | |
zig.h:959:25: error: too few arguments to function 'zig_byte_swap_u8' | |
(zig_u16)zig_byte_swap_u8((zig_u8)(val >> 8)) >> 0; | |
^~~~~~~~~~~~~~~~ | |
zig.h:945:22: note: declared here | |
static inline zig_u8 zig_byte_swap_u8(zig_u8 val, zig_u8 bits) { | |
^~~~~~~~~~~~~~~~ | |
zig.h: In function 'zig_byte_swap_u32': | |
zig.h:973:25: error: too few arguments to function 'zig_byte_swap_u16' | |
full_res = (zig_u32)zig_byte_swap_u16((zig_u16)(val >> 0)) << 16 | | |
^~~~~~~~~~~~~~~~~ | |
zig.h:953:23: note: declared here | |
static inline zig_u16 zig_byte_swap_u16(zig_u16 val, zig_u8 bits) { | |
^~~~~~~~~~~~~~~~~ | |
zig.h:974:25: error: too few arguments to function 'zig_byte_swap_u16' | |
(zig_u32)zig_byte_swap_u16((zig_u16)(val >> 16)) >> 0; | |
^~~~~~~~~~~~~~~~~ | |
zig.h:953:23: note: declared here | |
static inline zig_u16 zig_byte_swap_u16(zig_u16 val, zig_u8 bits) { | |
^~~~~~~~~~~~~~~~~ | |
zig.h: In function 'zig_byte_swap_u64': | |
zig.h:988:25: error: too few arguments to function 'zig_byte_swap_u32' | |
full_res = (zig_u64)zig_byte_swap_u32((zig_u32)(val >> 0)) << 32 | | |
^~~~~~~~~~~~~~~~~ | |
zig.h:968:23: note: declared here | |
static inline zig_u32 zig_byte_swap_u32(zig_u32 val, zig_u8 bits) { | |
^~~~~~~~~~~~~~~~~ | |
zig.h:989:25: error: too few arguments to function 'zig_byte_swap_u32' | |
(zig_u64)zig_byte_swap_u32((zig_u32)(val >> 32)) >> 0; | |
^~~~~~~~~~~~~~~~~ | |
zig.h:968:23: note: declared here | |
static inline zig_u32 zig_byte_swap_u32(zig_u32 val, zig_u8 bits) { | |
^~~~~~~~~~~~~~~~~ | |
zig.h: In function 'zig_add_u128': | |
zig.h:1242:70: warning: conversion from 'long long unsigned int' to 'zig_u8' {aka 'unsigned char'} changes value from '18446744073709551615' to '255' [-Woverflow] | |
res.hi = lhs.hi + rhs.hi + zig_addo_u64(&res.lo, lhs.lo, rhs.lo, zig_maxInt_u64); | |
^~~~~~~~~~~~~~ | |
zig.h: In function 'zig_add_i128': | |
zig.h:1248:70: warning: conversion from 'long long unsigned int' to 'zig_u8' {aka 'unsigned char'} changes value from '18446744073709551615' to '255' [-Woverflow] | |
res.hi = lhs.hi + rhs.hi + zig_addo_u64(&res.lo, lhs.lo, rhs.lo, zig_maxInt_u64); | |
^~~~~~~~~~~~~~ | |
zig.h: In function 'zig_sub_u128': | |
zig.h:1254:70: warning: conversion from 'long long unsigned int' to 'zig_u8' {aka 'unsigned char'} changes value from '18446744073709551615' to '255' [-Woverflow] | |
res.hi = lhs.hi - rhs.hi - zig_subo_u64(&res.lo, lhs.lo, rhs.lo, zig_maxInt_u64); | |
^~~~~~~~~~~~~~ | |
zig.h: In function 'zig_sub_i128': | |
zig.h:1260:70: warning: conversion from 'long long unsigned int' to 'zig_u8' {aka 'unsigned char'} changes value from '18446744073709551615' to '255' [-Woverflow] | |
res.hi = lhs.hi - rhs.hi - zig_subo_u64(&res.lo, lhs.lo, rhs.lo, zig_maxInt_u64); | |
^~~~~~~~~~~~~~ | |
zig.h: In function 'zig_div_floor_i128': | |
zig.h:1265:25: error: implicit declaration of function 'zig_div_trunc_i128'; did you mean 'zig_div_floor_i128'? [-Werror=implicit-function-declaration] | |
return zig_sub_i128(zig_div_trunc_i128(lhs, rhs), (((lhs.hi ^ rhs.hi) & zig_rem_i128(lhs, rhs).hi) < zig_as_i64(0)) ? zig_as_i128(0, 1) : zig_as_i128(0, 0)); | |
^~~~~~~~~~~~~~~~~~ | |
zig_div_floor_i128 | |
zig.h:1265:77: error: implicit declaration of function 'zig_rem_i128'; did you mean 'zig_sub_i128'? [-Werror=implicit-function-declaration] | |
return zig_sub_i128(zig_div_trunc_i128(lhs, rhs), (((lhs.hi ^ rhs.hi) & zig_rem_i128(lhs, rhs).hi) < zig_as_i64(0)) ? zig_as_i128(0, 1) : zig_as_i128(0, 0)); | |
^~~~~~~~~~~~ | |
zig_sub_i128 | |
zig.h:1265:99: error: request for member 'hi' in something not a structure or union | |
return zig_sub_i128(zig_div_trunc_i128(lhs, rhs), (((lhs.hi ^ rhs.hi) & zig_rem_i128(lhs, rhs).hi) < zig_as_i64(0)) ? zig_as_i128(0, 1) : zig_as_i128(0, 0)); | |
^ | |
zig.h:1265:25: error: incompatible type for argument 1 of 'zig_sub_i128' | |
return zig_sub_i128(zig_div_trunc_i128(lhs, rhs), (((lhs.hi ^ rhs.hi) & zig_rem_i128(lhs, rhs).hi) < zig_as_i64(0)) ? zig_as_i128(0, 1) : zig_as_i128(0, 0)); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
zig.h:1258:46: note: expected 'zig_i128' {aka 'struct <anonymous>'} but argument is of type 'int' | |
static inline zig_i128 zig_sub_i128(zig_i128 lhs, zig_i128 rhs) { | |
~~~~~~~~~^~~ | |
zig.h: In function 'zig_mod_i128': | |
zig.h:1269:20: error: invalid initializer | |
zig_i128 rem = zig_rem_i128(lhs, rhs); | |
^~~~~~~~~~~~ | |
zig.h:1270:16: error: invalid operands to binary + (have 'zig_i128' {aka 'struct <anonymous>'} and 'zig_i128' {aka 'struct <anonymous>'}) | |
return rem + (((lhs.hi ^ rhs.hi) & rem.hi) < zig_as_i64(0) ? rhs : zig_as_i128(0, 0)); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
zig.h: In function 'zig_shr_i128': | |
zig.h:1295:81: error: wrong type argument to unary minus | |
zig_i128 sign_mask = zig_cmp_i128(lhs, zig_as_i128(0, 0)) < zig_as_i32(0) ? -zig_as_i128(0, 1) : zig_as_i128(0, 0); | |
^ | |
zig.h: In function 'zig_shlw_i128': | |
zig.h:1109:57: error: request for member 'hi' in something not a structure or union | |
#define zig_bitcast_u128(val) zig_as_u128((zig_u64)(val).hi, (val).lo) | |
^ | |
zig.h:1104:51: note: in definition of macro 'zig_as_i128' | |
#define zig_as_i128(hi, lo) ((zig_i128){ .h##i = (hi), .l##o = (lo) }) | |
^~ | |
zig.h:1312:26: note: in expansion of macro 'zig_bitcast_i128' | |
return zig_wrap_i128(zig_bitcast_i128(zig_shl_u128(zig_bitcast_u128(lhs), zig_bitcast_u128(rhs))), bits); | |
^~~~~~~~~~~~~~~~ | |
zig.h:1109:31: note: in expansion of macro 'zig_as_u128' | |
#define zig_bitcast_u128(val) zig_as_u128((zig_u64)(val).hi, (val).lo) | |
^~~~~~~~~~~ | |
zig.h:1312:79: note: in expansion of macro 'zig_bitcast_u128' | |
return zig_wrap_i128(zig_bitcast_i128(zig_shl_u128(zig_bitcast_u128(lhs), zig_bitcast_u128(rhs))), bits); | |
^~~~~~~~~~~~~~~~ | |
zig.h:1109:67: error: request for member 'lo' in something not a structure or union | |
#define zig_bitcast_u128(val) zig_as_u128((zig_u64)(val).hi, (val).lo) | |
^ | |
zig.h:1104:51: note: in definition of macro 'zig_as_i128' | |
#define zig_as_i128(hi, lo) ((zig_i128){ .h##i = (hi), .l##o = (lo) }) | |
^~ | |
zig.h:1312:26: note: in expansion of macro 'zig_bitcast_i128' | |
return zig_wrap_i128(zig_bitcast_i128(zig_shl_u128(zig_bitcast_u128(lhs), zig_bitcast_u128(rhs))), bits); | |
^~~~~~~~~~~~~~~~ | |
zig.h:1109:31: note: in expansion of macro 'zig_as_u128' | |
#define zig_bitcast_u128(val) zig_as_u128((zig_u64)(val).hi, (val).lo) | |
^~~~~~~~~~~ | |
zig.h:1312:79: note: in expansion of macro 'zig_bitcast_u128' | |
return zig_wrap_i128(zig_bitcast_i128(zig_shl_u128(zig_bitcast_u128(lhs), zig_bitcast_u128(rhs))), bits); | |
^~~~~~~~~~~~~~~~ | |
zig.h:1109:57: error: request for member 'hi' in something not a structure or union | |
#define zig_bitcast_u128(val) zig_as_u128((zig_u64)(val).hi, (val).lo) | |
^ | |
zig.h:1104:65: note: in definition of macro 'zig_as_i128' | |
#define zig_as_i128(hi, lo) ((zig_i128){ .h##i = (hi), .l##o = (lo) }) | |
^~ | |
zig.h:1312:26: note: in expansion of macro 'zig_bitcast_i128' | |
return zig_wrap_i128(zig_bitcast_i128(zig_shl_u128(zig_bitcast_u128(lhs), zig_bitcast_u128(rhs))), bits); | |
^~~~~~~~~~~~~~~~ | |
zig.h:1109:31: note: in expansion of macro 'zig_as_u128' | |
#define zig_bitcast_u128(val) zig_as_u128((zig_u64)(val).hi, (val).lo) | |
^~~~~~~~~~~ | |
zig.h:1312:79: note: in expansion of macro 'zig_bitcast_u128' | |
return zig_wrap_i128(zig_bitcast_i128(zig_shl_u128(zig_bitcast_u128(lhs), zig_bitcast_u128(rhs))), bits); | |
^~~~~~~~~~~~~~~~ | |
zig.h:1109:67: error: request for member 'lo' in something not a structure or union | |
#define zig_bitcast_u128(val) zig_as_u128((zig_u64)(val).hi, (val).lo) | |
^ | |
zig.h:1104:65: note: in definition of macro 'zig_as_i128' | |
#define zig_as_i128(hi, lo) ((zig_i128){ .h##i = (hi), .l##o = (lo) }) | |
^~ | |
zig.h:1312:26: note: in expansion of macro 'zig_bitcast_i128' | |
return zig_wrap_i128(zig_bitcast_i128(zig_shl_u128(zig_bitcast_u128(lhs), zig_bitcast_u128(rhs))), bits); | |
^~~~~~~~~~~~~~~~ | |
zig.h:1109:31: note: in expansion of macro 'zig_as_u128' | |
#define zig_bitcast_u128(val) zig_as_u128((zig_u64)(val).hi, (val).lo) | |
^~~~~~~~~~~ | |
zig.h:1312:79: note: in expansion of macro 'zig_bitcast_u128' | |
return zig_wrap_i128(zig_bitcast_i128(zig_shl_u128(zig_bitcast_u128(lhs), zig_bitcast_u128(rhs))), bits); | |
^~~~~~~~~~~~~~~~ | |
zig.h:1311:59: error: parameter 'rhs' set but not used [-Werror=unused-but-set-parameter] | |
static inline zig_i128 zig_shlw_i128(zig_i128 lhs, zig_u8 rhs, zig_u8 bits) { | |
~~~~~~~^~~ | |
zig.h: In function 'zig_mulw_u128': | |
zig.h:1332:26: error: implicit declaration of function 'zig_mul_u128'; did you mean 'zig_mulw_u128'? [-Werror=implicit-function-declaration] | |
return zig_wrap_u128(zig_mul_u128(lhs, rhs), bits); | |
^~~~~~~~~~~~ | |
zig_mulw_u128 | |
zig.h:1332:26: error: incompatible type for argument 1 of 'zig_wrap_u128' | |
return zig_wrap_u128(zig_mul_u128(lhs, rhs), bits); | |
^~~~~~~~~~~~~~~~~~~~~~ | |
zig.h:1299:47: note: expected 'zig_u128' {aka 'struct <anonymous>'} but argument is of type 'int' | |
static inline zig_u128 zig_wrap_u128(zig_u128 val, zig_u8 bits) { | |
~~~~~~~~~^~~ | |
zig.h: In function 'zig_mulw_i128': | |
zig.h:1110:57: error: request for member 'hi' in something not a structure or union | |
#define zig_bitcast_i128(val) zig_as_i128((zig_i64)(val).hi, (val).lo) | |
^ | |
zig.h:1104:51: note: in definition of macro 'zig_as_i128' | |
#define zig_as_i128(hi, lo) ((zig_i128){ .h##i = (hi), .l##o = (lo) }) | |
^~ | |
zig.h:1336:26: note: in expansion of macro 'zig_bitcast_i128' | |
return zig_wrap_i128(zig_bitcast_i128(zig_mul_u128(zig_bitcast_u128(lhs), zig_bitcast_u128(rhs))), bits); | |
^~~~~~~~~~~~~~~~ | |
zig.h: In function 'zig_addo_u128': | |
zig.h:1434:51: warning: conversion from 'long long unsigned int' to 'zig_u8' {aka 'unsigned char'} changes value from '18446744073709551615' to '255' [-Woverflow] | |
return zig_addo_u64(&res->hi, lhs.hi, rhs.hi, UINT64_MAX) | | |
^~~~~~~~~~ | |
zig.h:1435:83: warning: conversion from 'long long unsigned int' to 'zig_u8' {aka 'unsigned char'} changes value from '18446744073709551615' to '255' [-Woverflow] | |
zig_addo_u64(&res->hi, res->hi, zig_addo_u64(&res->lo, lhs.lo, rhs.lo, UINT64_MAX)); | |
^~~~~~~~~~ | |
zig.h:1435:12: error: too few arguments to function 'zig_addo_u64' | |
zig_addo_u64(&res->hi, res->hi, zig_addo_u64(&res->lo, lhs.lo, rhs.lo, UINT64_MAX)); | |
^~~~~~~~~~~~ | |
zig.h:382:20: note: declared here | |
static inline bool zig_addo_u64(zig_u64 *res, zig_u64 lhs, zig_u64 rhs, zig_u8 bits) { | |
^~~~~~~~~~~~ | |
zig.h: In function 'zig_subo_u128': | |
zig.h:1439:51: warning: conversion from 'long long unsigned int' to 'zig_u8' {aka 'unsigned char'} changes value from '18446744073709551615' to '255' [-Woverflow] | |
return zig_subo_u64(&res->hi, lhs.hi, rhs.hi, UINT64_MAX) | | |
^~~~~~~~~~ | |
zig.h:1440:83: warning: conversion from 'long long unsigned int' to 'zig_u8' {aka 'unsigned char'} changes value from '18446744073709551615' to '255' [-Woverflow] | |
zig_subo_u64(&res->hi, res->hi, zig_subo_u64(&res->lo, lhs.lo, rhs.lo, UINT64_MAX)); | |
^~~~~~~~~~ | |
zig.h:1440:12: error: too few arguments to function 'zig_subo_u64' | |
zig_subo_u64(&res->hi, res->hi, zig_subo_u64(&res->lo, lhs.lo, rhs.lo, UINT64_MAX)); | |
^~~~~~~~~~~~ | |
zig.h:526:20: note: declared here | |
static inline bool zig_subo_u64(zig_u64 *res, zig_u64 lhs, zig_u64 rhs, zig_u8 bits) { | |
^~~~~~~~~~~~ | |
zig.h: In function 'zig_shls_u128': | |
zig.h:1449:12: error: implicit declaration of function 'zig_shlo_u128'; did you mean 'zig_shls_u128'? [-Werror=implicit-function-declaration] | |
return zig_shlo_u128(&res, lhs, (zig_u8)rhs, bits) ? zig_maxInt(u128, bits) : res; | |
^~~~~~~~~~~~~ | |
zig_shls_u128 | |
zig.h:1449:5: error: aggregate value used where an integer was expected | |
return zig_shlo_u128(&res, lhs, (zig_u8)rhs, bits) ? zig_maxInt(u128, bits) : res; | |
^~~~~~ | |
zig.h: In function 'zig_shls_i128': | |
zig.h:1454:87: error: implicit declaration of function 'zig_shlo_i128'; did you mean 'zig_shls_i128'? [-Werror=implicit-function-declaration] | |
if (zig_cmp_u128(zig_bitcast_u128(rhs), zig_as_u128(0, bits)) < zig_as_i32(0) && !zig_shlo_i128(&res, lhs, rhs, bits)) return res; | |
^~~~~~~~~~~~~ | |
zig_shls_i128 | |
zig.h: In function 'zig_adds_u128': | |
zig.h:1460:12: error: too many arguments to function 'zig_addo_u128' | |
return zig_addo_u128(&res, lhs, rhs, bits) ? zig_maxInt(u128, bits) : res; | |
^~~~~~~~~~~~~ | |
zig.h:1433:20: note: declared here | |
static inline bool zig_addo_u128(zig_u128 *res, zig_u128 lhs, zig_u128 rhs) { | |
^~~~~~~~~~~~~ | |
zig.h: In function 'zig_adds_i128': | |
zig.h:1465:10: error: implicit declaration of function 'zig_addo_i128'; did you mean 'zig_adds_i128'? [-Werror=implicit-function-declaration] | |
if (!zig_addo_i128(&res, lhs, rhs, bits)) return res; | |
^~~~~~~~~~~~~ | |
zig_adds_i128 | |
zig.h: In function 'zig_subs_u128': | |
zig.h:1471:12: error: too many arguments to function 'zig_subo_u128' | |
return zig_subo_u128(&res, lhs, rhs, bits) ? zig_minInt(u128, bits) : res; | |
^~~~~~~~~~~~~ | |
zig.h:1438:20: note: declared here | |
static inline bool zig_subo_u128(zig_u128 *res, zig_u128 lhs, zig_u128 rhs) { | |
^~~~~~~~~~~~~ | |
zig.h: In function 'zig_subs_i128': | |
zig.h:1476:10: error: implicit declaration of function 'zig_subo_i128'; did you mean 'zig_subs_i128'? [-Werror=implicit-function-declaration] | |
if (!zig_subo_i128(&res, lhs, rhs, bits)) return res; | |
^~~~~~~~~~~~~ | |
zig_subs_i128 | |
zig.h: In function 'zig_muls_u128': | |
zig.h:1482:12: error: implicit declaration of function 'zig_mulo_u128'; did you mean 'zig_muls_u128'? [-Werror=implicit-function-declaration] | |
return zig_mulo_u128(&res, lhs, rhs, bits) ? zig_maxInt(u128, bits) : res; | |
^~~~~~~~~~~~~ | |
zig_muls_u128 | |
zig.h: In function 'zig_muls_i128': | |
zig.h:1487:10: error: implicit declaration of function 'zig_mulo_i128'; did you mean 'zig_muls_i128'? [-Werror=implicit-function-declaration] | |
if (!zig_mulo_i128(&res, lhs, rhs, bits)) return res; | |
^~~~~~~~~~~~~ | |
zig_muls_i128 | |
zig.h: In function 'zig_clz_u128': | |
zig.h:1492:39: error: implicit declaration of function 'zig_clz_u64'; did you mean 'zig_clz_u128'? [-Werror=implicit-function-declaration] | |
if (zig_hi_u128(val) != 0) return zig_clz_u64(zig_hi_u128(val), bits - zig_as_u8(64)); | |
^~~~~~~~~~~ | |
zig_clz_u128 | |
zig.h: In function 'zig_ctz_u128': | |
zig.h:1501:39: error: implicit declaration of function 'zig_ctz_u64'; did you mean 'zig_ctz_u128'? [-Werror=implicit-function-declaration] | |
if (zig_lo_u128(val) != 0) return zig_ctz_u64(zig_lo_u128(val), zig_as_u8(64)); | |
^~~~~~~~~~~ | |
zig_ctz_u128 | |
zig.h: In function 'zig_popcount_u128': | |
zig.h:1510:12: error: implicit declaration of function 'zig_popcount_u64'; did you mean 'zig_popcount_u128'? [-Werror=implicit-function-declaration] | |
return zig_popcount_u64(zig_hi_u128(val), bits - zig_as_u8(64)) + | |
^~~~~~~~~~~~~~~~ | |
zig_popcount_u128 | |
zig.h: In function 'zig_byte_swap_i128': | |
zig.h:1530:12: error: incompatible types when returning type 'zig_u128' {aka 'struct <anonymous>'} but 'zig_i128' {aka 'struct <anonymous>'} was expected | |
return zig_byte_swap_u128(zig_bitcast_u128(val), bits); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
zig.h: In function 'zig_bit_reverse_i128': | |
zig.h:1540:12: error: incompatible types when returning type 'zig_u128' {aka 'struct <anonymous>'} but 'zig_i128' {aka 'struct <anonymous>'} was expected | |
return zig_bit_reverse_u128(zig_bitcast_u128(val), bits); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
At top level: | |
app.c:21:16: warning: 'builtin_zig_backend' defined but not used [-Wunused-variable] | |
static zig_u64 builtin_zig_backend = zig_as_u64(3); | |
^~~~~~~~~~~~~~~~~~~ | |
app.c:22:15: warning: 'builtin_output_mode' defined but not used [-Wunused-variable] | |
static zig_u8 builtin_output_mode = 1; | |
^~~~~~~~~~~~~~~~~~~ | |
app.c:23:15: warning: 'builtin_link_mode' defined but not used [-Wunused-variable] | |
static zig_u8 builtin_link_mode = 0; | |
^~~~~~~~~~~~~~~~~ | |
app.c:11:23: error: 'zig_errorName' defined but not used [-Werror=unused-const-variable=] | |
static zig_L_u8 const zig_errorName[zig_as_u64(1)] = {{zig_errorName__28no_20error_29, zig_as_u64(10)}}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment