summaryrefslogtreecommitdiff
path: root/vendor/modernc.org/libc/ccgo_linux_arm64.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/modernc.org/libc/ccgo_linux_arm64.go')
-rw-r--r--vendor/modernc.org/libc/ccgo_linux_arm64.go5235
1 files changed, 2626 insertions, 2609 deletions
diff --git a/vendor/modernc.org/libc/ccgo_linux_arm64.go b/vendor/modernc.org/libc/ccgo_linux_arm64.go
index 001231a5b..e62081955 100644
--- a/vendor/modernc.org/libc/ccgo_linux_arm64.go
+++ b/vendor/modernc.org/libc/ccgo_linux_arm64.go
@@ -1,4 +1,4 @@
-// Code generated for linux/arm64 by 'gcc --package-name=libc --prefix-enumerator=_ --prefix-external=x_ --prefix-field=F --prefix-static-internal=_ --prefix-static-none=_ --prefix-tagged-enum=_ --prefix-tagged-struct=T --prefix-tagged-union=T --prefix-typename=T --prefix-undefined=_ -emit-func-aliases -eval-all-macros -extended-errors -ignore-asm-errors -isystem -std=c99 -nostdinc -ffreestanding -D_XOPEN_SOURCE=700 -I./arch/aarch64 -I./arch/generic -Iobj/src/internal -I./src/include -I./src/internal -Iobj/include -I./include -DNDEBUG -nostdlib -shared -o lib/libc.so.go obj/src/complex/__cexp.lo.go obj/src/complex/__cexpf.lo.go obj/src/complex/cabs.lo.go obj/src/complex/cabsf.lo.go obj/src/complex/cabsl.lo.go obj/src/complex/cacos.lo.go obj/src/complex/cacosf.lo.go obj/src/complex/cacosh.lo.go obj/src/complex/cacoshf.lo.go obj/src/complex/cacoshl.lo.go obj/src/complex/cacosl.lo.go obj/src/complex/carg.lo.go obj/src/complex/cargf.lo.go obj/src/complex/cargl.lo.go obj/src/complex/casin.lo.go obj/src/complex/casinf.lo.go obj/src/complex/casinh.lo.go obj/src/complex/casinhf.lo.go obj/src/complex/casinhl.lo.go obj/src/complex/casinl.lo.go obj/src/complex/catan.lo.go obj/src/complex/catanf.lo.go obj/src/complex/catanh.lo.go obj/src/complex/catanhf.lo.go obj/src/complex/catanhl.lo.go obj/src/complex/catanl.lo.go obj/src/complex/ccos.lo.go obj/src/complex/ccosf.lo.go obj/src/complex/ccosh.lo.go obj/src/complex/ccoshf.lo.go obj/src/complex/ccoshl.lo.go obj/src/complex/ccosl.lo.go obj/src/complex/cexp.lo.go obj/src/complex/cexpf.lo.go obj/src/complex/cexpl.lo.go obj/src/complex/cimag.lo.go obj/src/complex/cimagf.lo.go obj/src/complex/cimagl.lo.go obj/src/complex/clog.lo.go obj/src/complex/clogf.lo.go obj/src/complex/clogl.lo.go obj/src/complex/conj.lo.go obj/src/complex/conjf.lo.go obj/src/complex/conjl.lo.go obj/src/complex/cpow.lo.go obj/src/complex/cpowf.lo.go obj/src/complex/cpowl.lo.go obj/src/complex/cproj.lo.go obj/src/complex/cprojf.lo.go obj/src/complex/cprojl.lo.go obj/src/complex/creal.lo.go obj/src/complex/crealf.lo.go obj/src/complex/creall.lo.go obj/src/complex/csin.lo.go obj/src/complex/csinf.lo.go obj/src/complex/csinh.lo.go obj/src/complex/csinhf.lo.go obj/src/complex/csinhl.lo.go obj/src/complex/csinl.lo.go obj/src/complex/csqrt.lo.go obj/src/complex/csqrtf.lo.go obj/src/complex/csqrtl.lo.go obj/src/complex/ctan.lo.go obj/src/complex/ctanf.lo.go obj/src/complex/ctanh.lo.go obj/src/complex/ctanhf.lo.go obj/src/complex/ctanhl.lo.go obj/src/complex/ctanl.lo.go obj/src/conf/confstr.lo.go obj/src/conf/fpathconf.lo.go obj/src/conf/legacy.lo.go obj/src/conf/pathconf.lo.go obj/src/conf/sysconf.lo.go obj/src/crypt/crypt.lo.go obj/src/crypt/crypt_blowfish.lo.go obj/src/crypt/crypt_des.lo.go obj/src/crypt/crypt_md5.lo.go obj/src/crypt/crypt_r.lo.go obj/src/crypt/crypt_sha256.lo.go obj/src/crypt/crypt_sha512.lo.go obj/src/crypt/encrypt.lo.go obj/src/ctype/__ctype_b_loc.lo.go obj/src/ctype/__ctype_get_mb_cur_max.lo.go obj/src/ctype/__ctype_tolower_loc.lo.go obj/src/ctype/__ctype_toupper_loc.lo.go obj/src/ctype/isalnum.lo.go obj/src/ctype/isalpha.lo.go obj/src/ctype/isascii.lo.go obj/src/ctype/isblank.lo.go obj/src/ctype/iscntrl.lo.go obj/src/ctype/isdigit.lo.go obj/src/ctype/isgraph.lo.go obj/src/ctype/islower.lo.go obj/src/ctype/isprint.lo.go obj/src/ctype/ispunct.lo.go obj/src/ctype/isspace.lo.go obj/src/ctype/isupper.lo.go obj/src/ctype/iswalnum.lo.go obj/src/ctype/iswalpha.lo.go obj/src/ctype/iswblank.lo.go obj/src/ctype/iswcntrl.lo.go obj/src/ctype/iswctype.lo.go obj/src/ctype/iswdigit.lo.go obj/src/ctype/iswgraph.lo.go obj/src/ctype/iswlower.lo.go obj/src/ctype/iswprint.lo.go obj/src/ctype/iswpunct.lo.go obj/src/ctype/iswspace.lo.go obj/src/ctype/iswupper.lo.go obj/src/ctype/iswxdigit.lo.go obj/src/ctype/isxdigit.lo.go obj/src/ctype/toascii.lo.go obj/src/ctype/tolower.lo.go obj/src/ctype/toupper.lo.go obj/src/ctype/towctrans.lo.go obj/src/ctype/wcswidth.lo.go obj/src/ctype/wctrans.lo.go obj/src/ctype/wcwidth.lo.go obj/src/dirent/alphasort.lo.go obj/src/dirent/closedir.lo.go obj/src/dirent/dirfd.lo.go obj/src/dirent/fdopendir.lo.go obj/src/dirent/opendir.lo.go obj/src/dirent/readdir.lo.go obj/src/dirent/readdir_r.lo.go obj/src/dirent/rewinddir.lo.go obj/src/dirent/scandir.lo.go obj/src/dirent/seekdir.lo.go obj/src/dirent/telldir.lo.go obj/src/dirent/versionsort.lo.go obj/src/env/__environ.lo.go obj/src/env/__reset_tls.lo.go obj/src/env/__stack_chk_fail.lo.go obj/src/env/clearenv.lo.go obj/src/env/getenv.lo.go obj/src/env/putenv.lo.go obj/src/env/secure_getenv.lo.go obj/src/env/setenv.lo.go obj/src/env/unsetenv.lo.go obj/src/errno/strerror.lo.go obj/src/exit/_Exit.lo.go obj/src/exit/abort_lock.lo.go obj/src/exit/assert.lo.go obj/src/exit/at_quick_exit.lo.go obj/src/exit/quick_exit.lo.go obj/src/fcntl/creat.lo.go obj/src/fcntl/fcntl.lo.go obj/src/fcntl/open.lo.go obj/src/fcntl/openat.lo.go obj/src/fcntl/posix_fadvise.lo.go obj/src/fcntl/posix_fallocate.lo.go obj/src/fenv/fenv.lo.go obj/src/internal/defsysinfo.lo.go obj/src/internal/emulate_wait4.lo.go obj/src/internal/floatscan.lo.go obj/src/internal/intscan.lo.go obj/src/internal/libc.lo.go obj/src/internal/procfdname.lo.go obj/src/internal/shgetc.lo.go obj/src/internal/syscall_ret.lo.go obj/src/internal/vdso.lo.go obj/src/internal/version.lo.go obj/src/ipc/ftok.lo.go obj/src/ipc/msgctl.lo.go obj/src/ipc/msgget.lo.go obj/src/ipc/msgrcv.lo.go obj/src/ipc/msgsnd.lo.go obj/src/ipc/semctl.lo.go obj/src/ipc/semget.lo.go obj/src/ipc/semop.lo.go obj/src/ipc/semtimedop.lo.go obj/src/ipc/shmat.lo.go obj/src/ipc/shmctl.lo.go obj/src/ipc/shmdt.lo.go obj/src/ipc/shmget.lo.go obj/src/legacy/cuserid.lo.go obj/src/legacy/err.lo.go obj/src/legacy/euidaccess.lo.go obj/src/legacy/ftw.lo.go obj/src/legacy/futimes.lo.go obj/src/legacy/getdtablesize.lo.go obj/src/legacy/getloadavg.lo.go obj/src/legacy/getpagesize.lo.go obj/src/legacy/getpass.lo.go obj/src/legacy/getusershell.lo.go obj/src/legacy/isastream.lo.go obj/src/legacy/lutimes.lo.go obj/src/legacy/ulimit.lo.go obj/src/legacy/utmpx.lo.go obj/src/linux/adjtime.lo.go obj/src/linux/adjtimex.lo.go obj/src/linux/arch_prctl.lo.go obj/src/linux/brk.lo.go obj/src/linux/cache.lo.go obj/src/linux/cap.lo.go obj/src/linux/chroot.lo.go obj/src/linux/clock_adjtime.lo.go obj/src/linux/copy_file_range.lo.go obj/src/linux/epoll.lo.go obj/src/linux/eventfd.lo.go obj/src/linux/fallocate.lo.go obj/src/linux/fanotify.lo.go obj/src/linux/flock.lo.go obj/src/linux/getdents.lo.go obj/src/linux/getrandom.lo.go obj/src/linux/inotify.lo.go obj/src/linux/ioperm.lo.go obj/src/linux/iopl.lo.go obj/src/linux/klogctl.lo.go obj/src/linux/memfd_create.lo.go obj/src/linux/mlock2.lo.go obj/src/linux/module.lo.go obj/src/linux/mount.lo.go obj/src/linux/name_to_handle_at.lo.go obj/src/linux/open_by_handle_at.lo.go obj/src/linux/personality.lo.go obj/src/linux/pivot_root.lo.go obj/src/linux/prctl.lo.go obj/src/linux/preadv2.lo.go obj/src/linux/prlimit.lo.go obj/src/linux/process_vm.lo.go obj/src/linux/ptrace.lo.go obj/src/linux/pwritev2.lo.go obj/src/linux/quotactl.lo.go obj/src/linux/readahead.lo.go obj/src/linux/reboot.lo.go obj/src/linux/remap_file_pages.lo.go obj/src/linux/sbrk.lo.go obj/src/linux/sendfile.lo.go obj/src/linux/setfsgid.lo.go obj/src/linux/setfsuid.lo.go obj/src/linux/sethostname.lo.go obj/src/linux/setns.lo.go obj/src/linux/settimeofday.lo.go obj/src/linux/signalfd.lo.go obj/src/linux/splice.lo.go obj/src/linux/statx.lo.go obj/src/linux/stime.lo.go obj/src/linux/swap.lo.go obj/src/linux/sync_file_range.lo.go obj/src/linux/syncfs.lo.go obj/src/linux/sysinfo.lo.go obj/src/linux/tee.lo.go obj/src/linux/timerfd.lo.go obj/src/linux/unshare.lo.go obj/src/linux/utimes.lo.go obj/src/linux/vhangup.lo.go obj/src/linux/vmsplice.lo.go obj/src/linux/wait3.lo.go obj/src/linux/wait4.lo.go obj/src/linux/xattr.lo.go obj/src/locale/__lctrans.lo.go obj/src/locale/__mo_lookup.lo.go obj/src/locale/bind_textdomain_codeset.lo.go obj/src/locale/c_locale.lo.go obj/src/locale/catclose.lo.go obj/src/locale/catgets.lo.go obj/src/locale/catopen.lo.go obj/src/locale/dcngettext.lo.go obj/src/locale/duplocale.lo.go obj/src/locale/freelocale.lo.go obj/src/locale/iconv.lo.go obj/src/locale/iconv_close.lo.go obj/src/locale/langinfo.lo.go obj/src/locale/locale_map.lo.go obj/src/locale/localeconv.lo.go obj/src/locale/newlocale.lo.go obj/src/locale/pleval.lo.go obj/src/locale/setlocale.lo.go obj/src/locale/strcoll.lo.go obj/src/locale/strfmon.lo.go obj/src/locale/strtod_l.lo.go obj/src/locale/strxfrm.lo.go obj/src/locale/textdomain.lo.go obj/src/locale/uselocale.lo.go obj/src/locale/wcscoll.lo.go obj/src/locale/wcsxfrm.lo.go obj/src/malloc/reallocarray.lo.go obj/src/math/__cos.lo.go obj/src/math/__cosdf.lo.go obj/src/math/__cosl.lo.go obj/src/math/__expo2.lo.go obj/src/math/__expo2f.lo.go obj/src/math/__fpclassify.lo.go obj/src/math/__fpclassifyf.lo.go obj/src/math/__fpclassifyl.lo.go obj/src/math/__invtrigl.lo.go obj/src/math/__math_divzero.lo.go obj/src/math/__math_divzerof.lo.go obj/src/math/__math_invalid.lo.go obj/src/math/__math_invalidf.lo.go obj/src/math/__math_invalidl.lo.go obj/src/math/__math_oflow.lo.go obj/src/math/__math_oflowf.lo.go obj/src/math/__math_uflow.lo.go obj/src/math/__math_uflowf.lo.go obj/src/math/__math_xflow.lo.go obj/src/math/__math_xflowf.lo.go obj/src/math/__polevll.lo.go obj/src/math/__rem_pio2.lo.go obj/src/math/__rem_pio2_large.lo.go obj/src/math/__rem_pio2f.lo.go obj/src/math/__rem_pio2l.lo.go obj/src/math/__signbit.lo.go obj/src/math/__signbitf.lo.go obj/src/math/__signbitl.lo.go obj/src/math/__sin.lo.go obj/src/math/__sindf.lo.go obj/src/math/__sinl.lo.go obj/src/math/__tan.lo.go obj/src/math/__tandf.lo.go obj/src/math/__tanl.lo.go obj/src/math/acos.lo.go obj/src/math/acosf.lo.go obj/src/math/acosh.lo.go obj/src/math/acoshf.lo.go obj/src/math/acoshl.lo.go obj/src/math/acosl.lo.go obj/src/math/asin.lo.go obj/src/math/asinf.lo.go obj/src/math/asinh.lo.go obj/src/math/asinhf.lo.go obj/src/math/asinhl.lo.go obj/src/math/asinl.lo.go obj/src/math/atan.lo.go obj/src/math/atan2.lo.go obj/src/math/atan2f.lo.go obj/src/math/atan2l.lo.go obj/src/math/atanf.lo.go obj/src/math/atanh.lo.go obj/src/math/atanhf.lo.go obj/src/math/atanhl.lo.go obj/src/math/atanl.lo.go obj/src/math/cbrt.lo.go obj/src/math/cbrtf.lo.go obj/src/math/cbrtl.lo.go obj/src/math/ceil.lo.go obj/src/math/ceilf.lo.go obj/src/math/ceill.lo.go obj/src/math/copysign.lo.go obj/src/math/copysignf.lo.go obj/src/math/copysignl.lo.go obj/src/math/cos.lo.go obj/src/math/cosf.lo.go obj/src/math/cosh.lo.go obj/src/math/coshf.lo.go obj/src/math/coshl.lo.go obj/src/math/cosl.lo.go obj/src/math/erf.lo.go obj/src/math/erff.lo.go obj/src/math/erfl.lo.go obj/src/math/exp.lo.go obj/src/math/exp10.lo.go obj/src/math/exp10f.lo.go obj/src/math/exp10l.lo.go obj/src/math/exp2.lo.go obj/src/math/exp2f.lo.go obj/src/math/exp2f_data.lo.go obj/src/math/exp2l.lo.go obj/src/math/exp_data.lo.go obj/src/math/expf.lo.go obj/src/math/expl.lo.go obj/src/math/expm1.lo.go obj/src/math/expm1f.lo.go obj/src/math/expm1l.lo.go obj/src/math/fabs.lo.go obj/src/math/fabsf.lo.go obj/src/math/fabsl.lo.go obj/src/math/fdim.lo.go obj/src/math/fdimf.lo.go obj/src/math/fdiml.lo.go obj/src/math/finite.lo.go obj/src/math/finitef.lo.go obj/src/math/floor.lo.go obj/src/math/floorf.lo.go obj/src/math/floorl.lo.go obj/src/math/fma.lo.go obj/src/math/fmal.lo.go obj/src/math/fmax.lo.go obj/src/math/fmaxf.lo.go obj/src/math/fmaxl.lo.go obj/src/math/fmin.lo.go obj/src/math/fminf.lo.go obj/src/math/fminl.lo.go obj/src/math/fmod.lo.go obj/src/math/fmodf.lo.go obj/src/math/fmodl.lo.go obj/src/math/frexp.lo.go obj/src/math/frexpf.lo.go obj/src/math/frexpl.lo.go obj/src/math/hypot.lo.go obj/src/math/hypotf.lo.go obj/src/math/hypotl.lo.go obj/src/math/ilogb.lo.go obj/src/math/ilogbf.lo.go obj/src/math/ilogbl.lo.go obj/src/math/j0.lo.go obj/src/math/j0f.lo.go obj/src/math/j1.lo.go obj/src/math/j1f.lo.go obj/src/math/jn.lo.go obj/src/math/jnf.lo.go obj/src/math/ldexp.lo.go obj/src/math/ldexpf.lo.go obj/src/math/ldexpl.lo.go obj/src/math/lgamma.lo.go obj/src/math/lgamma_r.lo.go obj/src/math/lgammaf.lo.go obj/src/math/lgammaf_r.lo.go obj/src/math/lgammal.lo.go obj/src/math/llrint.lo.go obj/src/math/llrintf.lo.go obj/src/math/llrintl.lo.go obj/src/math/llround.lo.go obj/src/math/llroundf.lo.go obj/src/math/llroundl.lo.go obj/src/math/log.lo.go obj/src/math/log10.lo.go obj/src/math/log10f.lo.go obj/src/math/log10l.lo.go obj/src/math/log1p.lo.go obj/src/math/log1pf.lo.go obj/src/math/log1pl.lo.go obj/src/math/log2.lo.go obj/src/math/log2_data.lo.go obj/src/math/log2f.lo.go obj/src/math/log2f_data.lo.go obj/src/math/log2l.lo.go obj/src/math/log_data.lo.go obj/src/math/logb.lo.go obj/src/math/logbf.lo.go obj/src/math/logbl.lo.go obj/src/math/logf.lo.go obj/src/math/logf_data.lo.go obj/src/math/logl.lo.go obj/src/math/lrint.lo.go obj/src/math/lrintf.lo.go obj/src/math/lrintl.lo.go obj/src/math/lround.lo.go obj/src/math/lroundf.lo.go obj/src/math/lroundl.lo.go obj/src/math/modf.lo.go obj/src/math/modff.lo.go obj/src/math/modfl.lo.go obj/src/math/nan.lo.go obj/src/math/nanf.lo.go obj/src/math/nanl.lo.go obj/src/math/nextafter.lo.go obj/src/math/nextafterf.lo.go obj/src/math/nextafterl.lo.go obj/src/math/nexttoward.lo.go obj/src/math/nexttowardf.lo.go obj/src/math/nexttowardl.lo.go obj/src/math/pow.lo.go obj/src/math/pow_data.lo.go obj/src/math/powf.lo.go obj/src/math/powf_data.lo.go obj/src/math/powl.lo.go obj/src/math/remainder.lo.go obj/src/math/remainderf.lo.go obj/src/math/remainderl.lo.go obj/src/math/remquo.lo.go obj/src/math/remquof.lo.go obj/src/math/remquol.lo.go obj/src/math/rint.lo.go obj/src/math/rintf.lo.go obj/src/math/rintl.lo.go obj/src/math/round.lo.go obj/src/math/roundf.lo.go obj/src/math/roundl.lo.go obj/src/math/scalb.lo.go obj/src/math/scalbf.lo.go obj/src/math/scalbln.lo.go obj/src/math/scalblnf.lo.go obj/src/math/scalblnl.lo.go obj/src/math/scalbn.lo.go obj/src/math/scalbnf.lo.go obj/src/math/scalbnl.lo.go obj/src/math/signgam.lo.go obj/src/math/significand.lo.go obj/src/math/significandf.lo.go obj/src/math/sin.lo.go obj/src/math/sincos.lo.go obj/src/math/sincosf.lo.go obj/src/math/sincosl.lo.go obj/src/math/sinf.lo.go obj/src/math/sinh.lo.go obj/src/math/sinhf.lo.go obj/src/math/sinhl.lo.go obj/src/math/sinl.lo.go obj/src/math/sqrt.lo.go obj/src/math/sqrt_data.lo.go obj/src/math/sqrtf.lo.go obj/src/math/sqrtl.lo.go obj/src/math/tan.lo.go obj/src/math/tanf.lo.go obj/src/math/tanh.lo.go obj/src/math/tanhf.lo.go obj/src/math/tanhl.lo.go obj/src/math/tanl.lo.go obj/src/math/tgamma.lo.go obj/src/math/tgammaf.lo.go obj/src/math/tgammal.lo.go obj/src/math/trunc.lo.go obj/src/math/truncf.lo.go obj/src/math/truncl.lo.go obj/src/misc/a64l.lo.go obj/src/misc/basename.lo.go obj/src/misc/dirname.lo.go obj/src/misc/ffs.lo.go obj/src/misc/ffsl.lo.go obj/src/misc/ffsll.lo.go obj/src/misc/fmtmsg.lo.go obj/src/misc/get_current_dir_name.lo.go obj/src/misc/getauxval.lo.go obj/src/misc/getdomainname.lo.go obj/src/misc/getentropy.lo.go obj/src/misc/gethostid.lo.go obj/src/misc/getopt.lo.go obj/src/misc/getopt_long.lo.go obj/src/misc/getpriority.lo.go obj/src/misc/getresgid.lo.go obj/src/misc/getresuid.lo.go obj/src/misc/getrlimit.lo.go obj/src/misc/getrusage.lo.go obj/src/misc/getsubopt.lo.go obj/src/misc/ioctl.lo.go obj/src/misc/issetugid.lo.go obj/src/misc/lockf.lo.go obj/src/misc/login_tty.lo.go obj/src/misc/mntent.lo.go obj/src/misc/nftw.lo.go obj/src/misc/openpty.lo.go obj/src/misc/ptsname.lo.go obj/src/misc/pty.lo.go obj/src/misc/realpath.lo.go obj/src/misc/setdomainname.lo.go obj/src/misc/setpriority.lo.go obj/src/misc/setrlimit.lo.go obj/src/misc/syscall.lo.go obj/src/misc/syslog.lo.go obj/src/misc/uname.lo.go obj/src/mman/madvise.lo.go obj/src/mman/mincore.lo.go obj/src/mman/mlock.lo.go obj/src/mman/mlockall.lo.go obj/src/mman/mmap.lo.go obj/src/mman/mprotect.lo.go obj/src/mman/mremap.lo.go obj/src/mman/msync.lo.go obj/src/mman/munlock.lo.go obj/src/mman/munlockall.lo.go obj/src/mman/munmap.lo.go obj/src/mman/posix_madvise.lo.go obj/src/mman/shm_open.lo.go obj/src/multibyte/btowc.lo.go obj/src/multibyte/c16rtomb.lo.go obj/src/multibyte/c32rtomb.lo.go obj/src/multibyte/internal.lo.go obj/src/multibyte/mblen.lo.go obj/src/multibyte/mbrlen.lo.go obj/src/multibyte/mbrtoc16.lo.go obj/src/multibyte/mbrtoc32.lo.go obj/src/multibyte/mbrtowc.lo.go obj/src/multibyte/mbsinit.lo.go obj/src/multibyte/mbsnrtowcs.lo.go obj/src/multibyte/mbsrtowcs.lo.go obj/src/multibyte/mbstowcs.lo.go obj/src/multibyte/mbtowc.lo.go obj/src/multibyte/wcrtomb.lo.go obj/src/multibyte/wcsnrtombs.lo.go obj/src/multibyte/wcsrtombs.lo.go obj/src/multibyte/wcstombs.lo.go obj/src/multibyte/wctob.lo.go obj/src/multibyte/wctomb.lo.go obj/src/network/accept.lo.go obj/src/network/accept4.lo.go obj/src/network/bind.lo.go obj/src/network/connect.lo.go obj/src/network/dn_comp.lo.go obj/src/network/dn_expand.lo.go obj/src/network/dn_skipname.lo.go obj/src/network/dns_parse.lo.go obj/src/network/ent.lo.go obj/src/network/ether.lo.go obj/src/network/freeaddrinfo.lo.go obj/src/network/gai_strerror.lo.go obj/src/network/getaddrinfo.lo.go obj/src/network/gethostbyaddr.lo.go obj/src/network/gethostbyaddr_r.lo.go obj/src/network/gethostbyname.lo.go obj/src/network/gethostbyname2.lo.go obj/src/network/gethostbyname2_r.lo.go obj/src/network/gethostbyname_r.lo.go obj/src/network/getifaddrs.lo.go obj/src/network/getnameinfo.lo.go obj/src/network/getpeername.lo.go obj/src/network/getservbyname.lo.go obj/src/network/getservbyname_r.lo.go obj/src/network/getsockname.lo.go obj/src/network/getsockopt.lo.go obj/src/network/h_errno.lo.go obj/src/network/herror.lo.go obj/src/network/hstrerror.lo.go obj/src/network/htonl.lo.go obj/src/network/htons.lo.go obj/src/network/if_freenameindex.lo.go obj/src/network/if_indextoname.lo.go obj/src/network/if_nameindex.lo.go obj/src/network/if_nametoindex.lo.go obj/src/network/in6addr_any.lo.go obj/src/network/in6addr_loopback.lo.go obj/src/network/inet_addr.lo.go obj/src/network/inet_aton.lo.go obj/src/network/inet_legacy.lo.go obj/src/network/inet_ntoa.lo.go obj/src/network/inet_ntop.lo.go obj/src/network/inet_pton.lo.go obj/src/network/listen.lo.go obj/src/network/lookup_ipliteral.lo.go obj/src/network/lookup_name.lo.go obj/src/network/lookup_serv.lo.go obj/src/network/netlink.lo.go obj/src/network/netname.lo.go obj/src/network/ns_parse.lo.go obj/src/network/ntohl.lo.go obj/src/network/ntohs.lo.go obj/src/network/proto.lo.go obj/src/network/recv.lo.go obj/src/network/recvfrom.lo.go obj/src/network/recvmmsg.lo.go obj/src/network/recvmsg.lo.go obj/src/network/res_init.lo.go obj/src/network/res_mkquery.lo.go obj/src/network/res_msend.lo.go obj/src/network/res_send.lo.go obj/src/network/res_state.lo.go obj/src/network/resolvconf.lo.go obj/src/network/send.lo.go obj/src/network/sendmmsg.lo.go obj/src/network/sendmsg.lo.go obj/src/network/sendto.lo.go obj/src/network/serv.lo.go obj/src/network/setsockopt.lo.go obj/src/network/shutdown.lo.go obj/src/network/sockatmark.lo.go obj/src/network/socket.lo.go obj/src/network/socketpair.lo.go obj/src/passwd/fgetgrent.lo.go obj/src/passwd/fgetpwent.lo.go obj/src/passwd/getgr_a.lo.go obj/src/passwd/getgr_r.lo.go obj/src/passwd/getgrent.lo.go obj/src/passwd/getgrent_a.lo.go obj/src/passwd/getgrouplist.lo.go obj/src/passwd/getpw_a.lo.go obj/src/passwd/getpw_r.lo.go obj/src/passwd/getpwent.lo.go obj/src/passwd/getpwent_a.lo.go obj/src/passwd/getspent.lo.go obj/src/passwd/lckpwdf.lo.go obj/src/passwd/nscd_query.lo.go obj/src/passwd/putgrent.lo.go obj/src/passwd/putpwent.lo.go obj/src/passwd/putspent.lo.go obj/src/prng/__rand48_step.lo.go obj/src/prng/__seed48.lo.go obj/src/prng/drand48.lo.go obj/src/prng/lcong48.lo.go obj/src/prng/lrand48.lo.go obj/src/prng/mrand48.lo.go obj/src/prng/rand.lo.go obj/src/prng/rand_r.lo.go obj/src/prng/random.lo.go obj/src/prng/seed48.lo.go obj/src/prng/srand48.lo.go obj/src/process/execl.lo.go obj/src/process/execle.lo.go obj/src/process/execlp.lo.go obj/src/process/execv.lo.go obj/src/process/execve.lo.go obj/src/process/execvp.lo.go obj/src/process/fexecve.lo.go obj/src/process/fork.lo.go obj/src/process/posix_spawn_file_actions_addchdir.lo.go obj/src/process/posix_spawn_file_actions_addclose.lo.go obj/src/process/posix_spawn_file_actions_adddup2.lo.go obj/src/process/posix_spawn_file_actions_addfchdir.lo.go obj/src/process/posix_spawn_file_actions_addopen.lo.go obj/src/process/posix_spawn_file_actions_destroy.lo.go obj/src/process/posix_spawn_file_actions_init.lo.go obj/src/process/posix_spawnattr_destroy.lo.go obj/src/process/posix_spawnattr_getflags.lo.go obj/src/process/posix_spawnattr_getpgroup.lo.go obj/src/process/posix_spawnattr_getsigdefault.lo.go obj/src/process/posix_spawnattr_getsigmask.lo.go obj/src/process/posix_spawnattr_init.lo.go obj/src/process/posix_spawnattr_sched.lo.go obj/src/process/posix_spawnattr_setflags.lo.go obj/src/process/posix_spawnattr_setpgroup.lo.go obj/src/process/posix_spawnattr_setsigdefault.lo.go obj/src/process/posix_spawnattr_setsigmask.lo.go obj/src/process/vfork.lo.go obj/src/process/wait.lo.go obj/src/process/waitid.lo.go obj/src/process/waitpid.lo.go obj/src/regex/fnmatch.lo.go obj/src/regex/glob.lo.go obj/src/regex/regcomp.lo.go obj/src/regex/regerror.lo.go obj/src/regex/regexec.lo.go obj/src/regex/tre-mem.lo.go obj/src/search/hsearch.lo.go obj/src/search/insque.lo.go obj/src/search/lsearch.lo.go obj/src/search/tdelete.lo.go obj/src/search/tdestroy.lo.go obj/src/search/tfind.lo.go obj/src/search/tsearch.lo.go obj/src/search/twalk.lo.go obj/src/select/poll.lo.go obj/src/select/ppoll.lo.go obj/src/select/pselect.lo.go obj/src/select/select.lo.go obj/src/setjmp/longjmp.lo.go obj/src/setjmp/setjmp.lo.go obj/src/signal/block.lo.go obj/src/signal/getitimer.lo.go obj/src/signal/kill.lo.go obj/src/signal/killpg.lo.go obj/src/signal/psiginfo.lo.go obj/src/signal/psignal.lo.go obj/src/signal/raise.lo.go obj/src/signal/restore.lo.go obj/src/signal/setitimer.lo.go obj/src/signal/sigaction.lo.go obj/src/signal/sigaddset.lo.go obj/src/signal/sigaltstack.lo.go obj/src/signal/sigandset.lo.go obj/src/signal/sigdelset.lo.go obj/src/signal/sigemptyset.lo.go obj/src/signal/sigfillset.lo.go obj/src/signal/sigisemptyset.lo.go obj/src/signal/sigismember.lo.go obj/src/signal/sigorset.lo.go obj/src/signal/sigpending.lo.go obj/src/signal/sigprocmask.lo.go obj/src/signal/sigqueue.lo.go obj/src/signal/sigrtmax.lo.go obj/src/signal/sigrtmin.lo.go obj/src/signal/sigsetjmp.lo.go obj/src/signal/sigsetjmp_tail.lo.go obj/src/signal/sigsuspend.lo.go obj/src/signal/sigtimedwait.lo.go obj/src/signal/sigwait.lo.go obj/src/signal/sigwaitinfo.lo.go obj/src/stat/__xstat.lo.go obj/src/stat/chmod.lo.go obj/src/stat/fchmod.lo.go obj/src/stat/fchmodat.lo.go obj/src/stat/fstat.lo.go obj/src/stat/fstatat.lo.go obj/src/stat/futimens.lo.go obj/src/stat/futimesat.lo.go obj/src/stat/lchmod.lo.go obj/src/stat/lstat.lo.go obj/src/stat/mkdir.lo.go obj/src/stat/mkdirat.lo.go obj/src/stat/mkfifo.lo.go obj/src/stat/mkfifoat.lo.go obj/src/stat/mknod.lo.go obj/src/stat/mknodat.lo.go obj/src/stat/stat.lo.go obj/src/stat/statvfs.lo.go obj/src/stat/umask.lo.go obj/src/stat/utimensat.lo.go obj/src/stdio/__fclose_ca.lo.go obj/src/stdio/__fdopen.lo.go obj/src/stdio/__fmodeflags.lo.go obj/src/stdio/__fopen_rb_ca.lo.go obj/src/stdio/__overflow.lo.go obj/src/stdio/__stdio_close.lo.go obj/src/stdio/__stdio_exit.lo.go obj/src/stdio/__stdio_read.lo.go obj/src/stdio/__stdio_seek.lo.go obj/src/stdio/__stdio_write.lo.go obj/src/stdio/__stdout_write.lo.go obj/src/stdio/__toread.lo.go obj/src/stdio/__towrite.lo.go obj/src/stdio/__uflow.lo.go obj/src/stdio/asprintf.lo.go obj/src/stdio/clearerr.lo.go obj/src/stdio/dprintf.lo.go obj/src/stdio/ext.lo.go obj/src/stdio/ext2.lo.go obj/src/stdio/fclose.lo.go obj/src/stdio/feof.lo.go obj/src/stdio/ferror.lo.go obj/src/stdio/fflush.lo.go obj/src/stdio/fgetc.lo.go obj/src/stdio/fgetln.lo.go obj/src/stdio/fgetpos.lo.go obj/src/stdio/fgets.lo.go obj/src/stdio/fgetwc.lo.go obj/src/stdio/fgetws.lo.go obj/src/stdio/fileno.lo.go obj/src/stdio/flockfile.lo.go obj/src/stdio/fmemopen.lo.go obj/src/stdio/fopen.lo.go obj/src/stdio/fopencookie.lo.go obj/src/stdio/fprintf.lo.go obj/src/stdio/fputc.lo.go obj/src/stdio/fputs.lo.go obj/src/stdio/fputwc.lo.go obj/src/stdio/fputws.lo.go obj/src/stdio/fread.lo.go obj/src/stdio/freopen.lo.go obj/src/stdio/fscanf.lo.go obj/src/stdio/fseek.lo.go obj/src/stdio/fsetpos.lo.go obj/src/stdio/ftell.lo.go obj/src/stdio/ftrylockfile.lo.go obj/src/stdio/funlockfile.lo.go obj/src/stdio/fwide.lo.go obj/src/stdio/fwprintf.lo.go obj/src/stdio/fwrite.lo.go obj/src/stdio/fwscanf.lo.go obj/src/stdio/getc.lo.go obj/src/stdio/getc_unlocked.lo.go obj/src/stdio/getchar.lo.go obj/src/stdio/getchar_unlocked.lo.go obj/src/stdio/getdelim.lo.go obj/src/stdio/getline.lo.go obj/src/stdio/gets.lo.go obj/src/stdio/getw.lo.go obj/src/stdio/getwc.lo.go obj/src/stdio/getwchar.lo.go obj/src/stdio/ofl.lo.go obj/src/stdio/ofl_add.lo.go obj/src/stdio/open_memstream.lo.go obj/src/stdio/open_wmemstream.lo.go obj/src/stdio/pclose.lo.go obj/src/stdio/perror.lo.go obj/src/stdio/printf.lo.go obj/src/stdio/putc.lo.go obj/src/stdio/putc_unlocked.lo.go obj/src/stdio/putchar.lo.go obj/src/stdio/putchar_unlocked.lo.go obj/src/stdio/puts.lo.go obj/src/stdio/putw.lo.go obj/src/stdio/putwc.lo.go obj/src/stdio/putwchar.lo.go obj/src/stdio/remove.lo.go obj/src/stdio/rename.lo.go obj/src/stdio/rewind.lo.go obj/src/stdio/scanf.lo.go obj/src/stdio/setbuf.lo.go obj/src/stdio/setbuffer.lo.go obj/src/stdio/setlinebuf.lo.go obj/src/stdio/setvbuf.lo.go obj/src/stdio/snprintf.lo.go obj/src/stdio/sprintf.lo.go obj/src/stdio/sscanf.lo.go obj/src/stdio/stderr.lo.go obj/src/stdio/stdin.lo.go obj/src/stdio/stdout.lo.go obj/src/stdio/swprintf.lo.go obj/src/stdio/swscanf.lo.go obj/src/stdio/tempnam.lo.go obj/src/stdio/tmpfile.lo.go obj/src/stdio/tmpnam.lo.go obj/src/stdio/ungetc.lo.go obj/src/stdio/ungetwc.lo.go obj/src/stdio/vasprintf.lo.go obj/src/stdio/vdprintf.lo.go obj/src/stdio/vfprintf.lo.go obj/src/stdio/vfscanf.lo.go obj/src/stdio/vfwprintf.lo.go obj/src/stdio/vfwscanf.lo.go obj/src/stdio/vprintf.lo.go obj/src/stdio/vscanf.lo.go obj/src/stdio/vsnprintf.lo.go obj/src/stdio/vsprintf.lo.go obj/src/stdio/vsscanf.lo.go obj/src/stdio/vswprintf.lo.go obj/src/stdio/vswscanf.lo.go obj/src/stdio/vwprintf.lo.go obj/src/stdio/vwscanf.lo.go obj/src/stdio/wprintf.lo.go obj/src/stdio/wscanf.lo.go obj/src/stdlib/abs.lo.go obj/src/stdlib/atof.lo.go obj/src/stdlib/atoi.lo.go obj/src/stdlib/atol.lo.go obj/src/stdlib/atoll.lo.go obj/src/stdlib/bsearch.lo.go obj/src/stdlib/div.lo.go obj/src/stdlib/ecvt.lo.go obj/src/stdlib/fcvt.lo.go obj/src/stdlib/gcvt.lo.go obj/src/stdlib/imaxabs.lo.go obj/src/stdlib/imaxdiv.lo.go obj/src/stdlib/labs.lo.go obj/src/stdlib/ldiv.lo.go obj/src/stdlib/llabs.lo.go obj/src/stdlib/lldiv.lo.go obj/src/stdlib/qsort.lo.go obj/src/stdlib/qsort_nr.lo.go obj/src/stdlib/strtod.lo.go obj/src/stdlib/strtol.lo.go obj/src/stdlib/wcstod.lo.go obj/src/stdlib/wcstol.lo.go obj/src/string/bcmp.lo.go obj/src/string/bcopy.lo.go obj/src/string/bzero.lo.go obj/src/string/explicit_bzero.lo.go obj/src/string/index.lo.go obj/src/string/memccpy.lo.go obj/src/string/memchr.lo.go obj/src/string/memcmp.lo.go obj/src/string/memcpy.lo.go obj/src/string/memmem.lo.go obj/src/string/memmove.lo.go obj/src/string/mempcpy.lo.go obj/src/string/memrchr.lo.go obj/src/string/memset.lo.go obj/src/string/rindex.lo.go obj/src/string/stpcpy.lo.go obj/src/string/stpncpy.lo.go obj/src/string/strcasecmp.lo.go obj/src/string/strcasestr.lo.go obj/src/string/strcat.lo.go obj/src/string/strchr.lo.go obj/src/string/strchrnul.lo.go obj/src/string/strcmp.lo.go obj/src/string/strcpy.lo.go obj/src/string/strcspn.lo.go obj/src/string/strdup.lo.go obj/src/string/strerror_r.lo.go obj/src/string/strlcat.lo.go obj/src/string/strlcpy.lo.go obj/src/string/strlen.lo.go obj/src/string/strncasecmp.lo.go obj/src/string/strncat.lo.go obj/src/string/strncmp.lo.go obj/src/string/strncpy.lo.go obj/src/string/strndup.lo.go obj/src/string/strnlen.lo.go obj/src/string/strpbrk.lo.go obj/src/string/strrchr.lo.go obj/src/string/strsep.lo.go obj/src/string/strsignal.lo.go obj/src/string/strspn.lo.go obj/src/string/strstr.lo.go obj/src/string/strtok.lo.go obj/src/string/strtok_r.lo.go obj/src/string/strverscmp.lo.go obj/src/string/swab.lo.go obj/src/string/wcpcpy.lo.go obj/src/string/wcpncpy.lo.go obj/src/string/wcscasecmp.lo.go obj/src/string/wcscasecmp_l.lo.go obj/src/string/wcscat.lo.go obj/src/string/wcschr.lo.go obj/src/string/wcscmp.lo.go obj/src/string/wcscpy.lo.go obj/src/string/wcscspn.lo.go obj/src/string/wcsdup.lo.go obj/src/string/wcslen.lo.go obj/src/string/wcsncasecmp.lo.go obj/src/string/wcsncasecmp_l.lo.go obj/src/string/wcsncat.lo.go obj/src/string/wcsncmp.lo.go obj/src/string/wcsncpy.lo.go obj/src/string/wcsnlen.lo.go obj/src/string/wcspbrk.lo.go obj/src/string/wcsrchr.lo.go obj/src/string/wcsspn.lo.go obj/src/string/wcsstr.lo.go obj/src/string/wcstok.lo.go obj/src/string/wcswcs.lo.go obj/src/string/wmemchr.lo.go obj/src/string/wmemcmp.lo.go obj/src/string/wmemcpy.lo.go obj/src/string/wmemmove.lo.go obj/src/string/wmemset.lo.go obj/src/temp/mkdtemp.lo.go obj/src/temp/mkostemp.lo.go obj/src/temp/mkostemps.lo.go obj/src/temp/mkstemp.lo.go obj/src/temp/mkstemps.lo.go obj/src/temp/mktemp.lo.go obj/src/termios/cfgetospeed.lo.go obj/src/termios/cfmakeraw.lo.go obj/src/termios/cfsetospeed.lo.go obj/src/termios/tcdrain.lo.go obj/src/termios/tcflow.lo.go obj/src/termios/tcflush.lo.go obj/src/termios/tcgetattr.lo.go obj/src/termios/tcgetsid.lo.go obj/src/termios/tcgetwinsize.lo.go obj/src/termios/tcsendbreak.lo.go obj/src/termios/tcsetattr.lo.go obj/src/termios/tcsetwinsize.lo.go obj/src/time/__map_file.lo.go obj/src/time/__month_to_secs.lo.go obj/src/time/__secs_to_tm.lo.go obj/src/time/__tm_to_secs.lo.go obj/src/time/__tz.lo.go obj/src/time/__year_to_secs.lo.go obj/src/time/asctime.lo.go obj/src/time/asctime_r.lo.go obj/src/time/clock.lo.go obj/src/time/clock_getcpuclockid.lo.go obj/src/time/clock_getres.lo.go obj/src/time/clock_gettime.lo.go obj/src/time/clock_nanosleep.lo.go obj/src/time/clock_settime.lo.go obj/src/time/ctime.lo.go obj/src/time/ctime_r.lo.go obj/src/time/difftime.lo.go obj/src/time/ftime.lo.go obj/src/time/getdate.lo.go obj/src/time/gettimeofday.lo.go obj/src/time/gmtime.lo.go obj/src/time/gmtime_r.lo.go obj/src/time/localtime.lo.go obj/src/time/localtime_r.lo.go obj/src/time/mktime.lo.go obj/src/time/nanosleep.lo.go obj/src/time/strftime.lo.go obj/src/time/strptime.lo.go obj/src/time/time.lo.go obj/src/time/timegm.lo.go obj/src/time/timer_delete.lo.go obj/src/time/timer_getoverrun.lo.go obj/src/time/timer_gettime.lo.go obj/src/time/timer_settime.lo.go obj/src/time/times.lo.go obj/src/time/timespec_get.lo.go obj/src/time/utime.lo.go obj/src/time/wcsftime.lo.go obj/src/unistd/_exit.lo.go obj/src/unistd/access.lo.go obj/src/unistd/acct.lo.go obj/src/unistd/alarm.lo.go obj/src/unistd/chdir.lo.go obj/src/unistd/chown.lo.go obj/src/unistd/close.lo.go obj/src/unistd/ctermid.lo.go obj/src/unistd/dup.lo.go obj/src/unistd/dup2.lo.go obj/src/unistd/dup3.lo.go obj/src/unistd/faccessat.lo.go obj/src/unistd/fchdir.lo.go obj/src/unistd/fchown.lo.go obj/src/unistd/fchownat.lo.go obj/src/unistd/fdatasync.lo.go obj/src/unistd/fsync.lo.go obj/src/unistd/ftruncate.lo.go obj/src/unistd/getcwd.lo.go obj/src/unistd/getegid.lo.go obj/src/unistd/geteuid.lo.go obj/src/unistd/getgid.lo.go obj/src/unistd/getgroups.lo.go obj/src/unistd/gethostname.lo.go obj/src/unistd/getlogin.lo.go obj/src/unistd/getlogin_r.lo.go obj/src/unistd/getpgid.lo.go obj/src/unistd/getpgrp.lo.go obj/src/unistd/getpid.lo.go obj/src/unistd/getppid.lo.go obj/src/unistd/getsid.lo.go obj/src/unistd/getuid.lo.go obj/src/unistd/isatty.lo.go obj/src/unistd/lchown.lo.go obj/src/unistd/link.lo.go obj/src/unistd/linkat.lo.go obj/src/unistd/lseek.lo.go obj/src/unistd/nice.lo.go obj/src/unistd/pause.lo.go obj/src/unistd/pipe.lo.go obj/src/unistd/pipe2.lo.go obj/src/unistd/posix_close.lo.go obj/src/unistd/pread.lo.go obj/src/unistd/preadv.lo.go obj/src/unistd/pwrite.lo.go obj/src/unistd/pwritev.lo.go obj/src/unistd/read.lo.go obj/src/unistd/readlink.lo.go obj/src/unistd/readlinkat.lo.go obj/src/unistd/readv.lo.go obj/src/unistd/renameat.lo.go obj/src/unistd/rmdir.lo.go obj/src/unistd/setgid.lo.go obj/src/unistd/setpgid.lo.go obj/src/unistd/setpgrp.lo.go obj/src/unistd/setsid.lo.go obj/src/unistd/setuid.lo.go obj/src/unistd/setxid.lo.go obj/src/unistd/sleep.lo.go obj/src/unistd/symlink.lo.go obj/src/unistd/symlinkat.lo.go obj/src/unistd/sync.lo.go obj/src/unistd/tcgetpgrp.lo.go obj/src/unistd/tcsetpgrp.lo.go obj/src/unistd/truncate.lo.go obj/src/unistd/ttyname.lo.go obj/src/unistd/ttyname_r.lo.go obj/src/unistd/ualarm.lo.go obj/src/unistd/unlink.lo.go obj/src/unistd/unlinkat.lo.go obj/src/unistd/usleep.lo.go obj/src/unistd/write.lo.go obj/src/unistd/writev.lo.go -lgcc -lgcc_eh', DO NOT EDIT.
+// Code generated for linux/arm64 by 'gcc --package-name=libc --prefix-enumerator=_ --prefix-external=x_ --prefix-field=F --prefix-static-internal=_ --prefix-static-none=_ --prefix-tagged-enum=_ --prefix-tagged-struct=T --prefix-tagged-union=T --prefix-typename=T --prefix-undefined=_ -emit-func-aliases -eval-all-macros -extended-errors -ignore-asm-errors -ignore-unsupported-alignment -isystem -std=c99 -nostdinc -ffreestanding -D_XOPEN_SOURCE=700 -I./arch/aarch64 -I./arch/generic -Iobj/src/internal -I./src/include -I./src/internal -Iobj/include -I./include -DNDEBUG -nostdlib -shared -o lib/libc.so.go obj/src/complex/__cexp.lo.go obj/src/complex/__cexpf.lo.go obj/src/complex/cabs.lo.go obj/src/complex/cabsf.lo.go obj/src/complex/cabsl.lo.go obj/src/complex/cacos.lo.go obj/src/complex/cacosf.lo.go obj/src/complex/cacosh.lo.go obj/src/complex/cacoshf.lo.go obj/src/complex/cacoshl.lo.go obj/src/complex/cacosl.lo.go obj/src/complex/carg.lo.go obj/src/complex/cargf.lo.go obj/src/complex/cargl.lo.go obj/src/complex/casin.lo.go obj/src/complex/casinf.lo.go obj/src/complex/casinh.lo.go obj/src/complex/casinhf.lo.go obj/src/complex/casinhl.lo.go obj/src/complex/casinl.lo.go obj/src/complex/catan.lo.go obj/src/complex/catanf.lo.go obj/src/complex/catanh.lo.go obj/src/complex/catanhf.lo.go obj/src/complex/catanhl.lo.go obj/src/complex/catanl.lo.go obj/src/complex/ccos.lo.go obj/src/complex/ccosf.lo.go obj/src/complex/ccosh.lo.go obj/src/complex/ccoshf.lo.go obj/src/complex/ccoshl.lo.go obj/src/complex/ccosl.lo.go obj/src/complex/cexp.lo.go obj/src/complex/cexpf.lo.go obj/src/complex/cexpl.lo.go obj/src/complex/cimag.lo.go obj/src/complex/cimagf.lo.go obj/src/complex/cimagl.lo.go obj/src/complex/clog.lo.go obj/src/complex/clogf.lo.go obj/src/complex/clogl.lo.go obj/src/complex/conj.lo.go obj/src/complex/conjf.lo.go obj/src/complex/conjl.lo.go obj/src/complex/cpow.lo.go obj/src/complex/cpowf.lo.go obj/src/complex/cpowl.lo.go obj/src/complex/cproj.lo.go obj/src/complex/cprojf.lo.go obj/src/complex/cprojl.lo.go obj/src/complex/creal.lo.go obj/src/complex/crealf.lo.go obj/src/complex/creall.lo.go obj/src/complex/csin.lo.go obj/src/complex/csinf.lo.go obj/src/complex/csinh.lo.go obj/src/complex/csinhf.lo.go obj/src/complex/csinhl.lo.go obj/src/complex/csinl.lo.go obj/src/complex/csqrt.lo.go obj/src/complex/csqrtf.lo.go obj/src/complex/csqrtl.lo.go obj/src/complex/ctan.lo.go obj/src/complex/ctanf.lo.go obj/src/complex/ctanh.lo.go obj/src/complex/ctanhf.lo.go obj/src/complex/ctanhl.lo.go obj/src/complex/ctanl.lo.go obj/src/conf/confstr.lo.go obj/src/conf/fpathconf.lo.go obj/src/conf/legacy.lo.go obj/src/conf/pathconf.lo.go obj/src/conf/sysconf.lo.go obj/src/crypt/crypt.lo.go obj/src/crypt/crypt_blowfish.lo.go obj/src/crypt/crypt_des.lo.go obj/src/crypt/crypt_md5.lo.go obj/src/crypt/crypt_r.lo.go obj/src/crypt/crypt_sha256.lo.go obj/src/crypt/crypt_sha512.lo.go obj/src/crypt/encrypt.lo.go obj/src/ctype/__ctype_b_loc.lo.go obj/src/ctype/__ctype_get_mb_cur_max.lo.go obj/src/ctype/__ctype_tolower_loc.lo.go obj/src/ctype/__ctype_toupper_loc.lo.go obj/src/ctype/isalnum.lo.go obj/src/ctype/isalpha.lo.go obj/src/ctype/isascii.lo.go obj/src/ctype/isblank.lo.go obj/src/ctype/iscntrl.lo.go obj/src/ctype/isdigit.lo.go obj/src/ctype/isgraph.lo.go obj/src/ctype/islower.lo.go obj/src/ctype/isprint.lo.go obj/src/ctype/ispunct.lo.go obj/src/ctype/isspace.lo.go obj/src/ctype/isupper.lo.go obj/src/ctype/iswalnum.lo.go obj/src/ctype/iswalpha.lo.go obj/src/ctype/iswblank.lo.go obj/src/ctype/iswcntrl.lo.go obj/src/ctype/iswctype.lo.go obj/src/ctype/iswdigit.lo.go obj/src/ctype/iswgraph.lo.go obj/src/ctype/iswlower.lo.go obj/src/ctype/iswprint.lo.go obj/src/ctype/iswpunct.lo.go obj/src/ctype/iswspace.lo.go obj/src/ctype/iswupper.lo.go obj/src/ctype/iswxdigit.lo.go obj/src/ctype/isxdigit.lo.go obj/src/ctype/toascii.lo.go obj/src/ctype/tolower.lo.go obj/src/ctype/toupper.lo.go obj/src/ctype/towctrans.lo.go obj/src/ctype/wcswidth.lo.go obj/src/ctype/wctrans.lo.go obj/src/ctype/wcwidth.lo.go obj/src/dirent/alphasort.lo.go obj/src/dirent/closedir.lo.go obj/src/dirent/dirfd.lo.go obj/src/dirent/fdopendir.lo.go obj/src/dirent/opendir.lo.go obj/src/dirent/readdir.lo.go obj/src/dirent/readdir_r.lo.go obj/src/dirent/rewinddir.lo.go obj/src/dirent/scandir.lo.go obj/src/dirent/seekdir.lo.go obj/src/dirent/telldir.lo.go obj/src/dirent/versionsort.lo.go obj/src/env/__environ.lo.go obj/src/env/__reset_tls.lo.go obj/src/env/__stack_chk_fail.lo.go obj/src/env/clearenv.lo.go obj/src/env/getenv.lo.go obj/src/env/putenv.lo.go obj/src/env/secure_getenv.lo.go obj/src/env/setenv.lo.go obj/src/env/unsetenv.lo.go obj/src/errno/strerror.lo.go obj/src/exit/_Exit.lo.go obj/src/exit/abort_lock.lo.go obj/src/exit/assert.lo.go obj/src/exit/at_quick_exit.lo.go obj/src/exit/quick_exit.lo.go obj/src/fcntl/creat.lo.go obj/src/fcntl/fcntl.lo.go obj/src/fcntl/open.lo.go obj/src/fcntl/openat.lo.go obj/src/fcntl/posix_fadvise.lo.go obj/src/fcntl/posix_fallocate.lo.go obj/src/fenv/fenv.lo.go obj/src/internal/defsysinfo.lo.go obj/src/internal/emulate_wait4.lo.go obj/src/internal/floatscan.lo.go obj/src/internal/intscan.lo.go obj/src/internal/libc.lo.go obj/src/internal/procfdname.lo.go obj/src/internal/shgetc.lo.go obj/src/internal/syscall_ret.lo.go obj/src/internal/vdso.lo.go obj/src/internal/version.lo.go obj/src/ipc/ftok.lo.go obj/src/ipc/msgctl.lo.go obj/src/ipc/msgget.lo.go obj/src/ipc/msgrcv.lo.go obj/src/ipc/msgsnd.lo.go obj/src/ipc/semctl.lo.go obj/src/ipc/semget.lo.go obj/src/ipc/semop.lo.go obj/src/ipc/semtimedop.lo.go obj/src/ipc/shmat.lo.go obj/src/ipc/shmctl.lo.go obj/src/ipc/shmdt.lo.go obj/src/ipc/shmget.lo.go obj/src/legacy/cuserid.lo.go obj/src/legacy/err.lo.go obj/src/legacy/euidaccess.lo.go obj/src/legacy/ftw.lo.go obj/src/legacy/futimes.lo.go obj/src/legacy/getdtablesize.lo.go obj/src/legacy/getloadavg.lo.go obj/src/legacy/getpagesize.lo.go obj/src/legacy/getpass.lo.go obj/src/legacy/getusershell.lo.go obj/src/legacy/isastream.lo.go obj/src/legacy/lutimes.lo.go obj/src/legacy/ulimit.lo.go obj/src/legacy/utmpx.lo.go obj/src/linux/adjtime.lo.go obj/src/linux/adjtimex.lo.go obj/src/linux/arch_prctl.lo.go obj/src/linux/brk.lo.go obj/src/linux/cache.lo.go obj/src/linux/cap.lo.go obj/src/linux/chroot.lo.go obj/src/linux/clock_adjtime.lo.go obj/src/linux/copy_file_range.lo.go obj/src/linux/epoll.lo.go obj/src/linux/eventfd.lo.go obj/src/linux/fallocate.lo.go obj/src/linux/fanotify.lo.go obj/src/linux/flock.lo.go obj/src/linux/getdents.lo.go obj/src/linux/getrandom.lo.go obj/src/linux/inotify.lo.go obj/src/linux/ioperm.lo.go obj/src/linux/iopl.lo.go obj/src/linux/klogctl.lo.go obj/src/linux/memfd_create.lo.go obj/src/linux/mlock2.lo.go obj/src/linux/module.lo.go obj/src/linux/mount.lo.go obj/src/linux/name_to_handle_at.lo.go obj/src/linux/open_by_handle_at.lo.go obj/src/linux/personality.lo.go obj/src/linux/pivot_root.lo.go obj/src/linux/prctl.lo.go obj/src/linux/preadv2.lo.go obj/src/linux/prlimit.lo.go obj/src/linux/process_vm.lo.go obj/src/linux/ptrace.lo.go obj/src/linux/pwritev2.lo.go obj/src/linux/quotactl.lo.go obj/src/linux/readahead.lo.go obj/src/linux/reboot.lo.go obj/src/linux/remap_file_pages.lo.go obj/src/linux/sbrk.lo.go obj/src/linux/sendfile.lo.go obj/src/linux/setfsgid.lo.go obj/src/linux/setfsuid.lo.go obj/src/linux/sethostname.lo.go obj/src/linux/setns.lo.go obj/src/linux/settimeofday.lo.go obj/src/linux/signalfd.lo.go obj/src/linux/splice.lo.go obj/src/linux/statx.lo.go obj/src/linux/stime.lo.go obj/src/linux/swap.lo.go obj/src/linux/sync_file_range.lo.go obj/src/linux/syncfs.lo.go obj/src/linux/sysinfo.lo.go obj/src/linux/tee.lo.go obj/src/linux/timerfd.lo.go obj/src/linux/unshare.lo.go obj/src/linux/utimes.lo.go obj/src/linux/vhangup.lo.go obj/src/linux/vmsplice.lo.go obj/src/linux/wait3.lo.go obj/src/linux/wait4.lo.go obj/src/linux/xattr.lo.go obj/src/locale/__lctrans.lo.go obj/src/locale/__mo_lookup.lo.go obj/src/locale/bind_textdomain_codeset.lo.go obj/src/locale/c_locale.lo.go obj/src/locale/catclose.lo.go obj/src/locale/catgets.lo.go obj/src/locale/catopen.lo.go obj/src/locale/dcngettext.lo.go obj/src/locale/duplocale.lo.go obj/src/locale/freelocale.lo.go obj/src/locale/iconv.lo.go obj/src/locale/iconv_close.lo.go obj/src/locale/langinfo.lo.go obj/src/locale/locale_map.lo.go obj/src/locale/localeconv.lo.go obj/src/locale/newlocale.lo.go obj/src/locale/pleval.lo.go obj/src/locale/setlocale.lo.go obj/src/locale/strcoll.lo.go obj/src/locale/strfmon.lo.go obj/src/locale/strtod_l.lo.go obj/src/locale/strxfrm.lo.go obj/src/locale/textdomain.lo.go obj/src/locale/uselocale.lo.go obj/src/locale/wcscoll.lo.go obj/src/locale/wcsxfrm.lo.go obj/src/malloc/reallocarray.lo.go obj/src/math/__cos.lo.go obj/src/math/__cosdf.lo.go obj/src/math/__cosl.lo.go obj/src/math/__expo2.lo.go obj/src/math/__expo2f.lo.go obj/src/math/__fpclassify.lo.go obj/src/math/__fpclassifyf.lo.go obj/src/math/__fpclassifyl.lo.go obj/src/math/__invtrigl.lo.go obj/src/math/__math_divzero.lo.go obj/src/math/__math_divzerof.lo.go obj/src/math/__math_invalid.lo.go obj/src/math/__math_invalidf.lo.go obj/src/math/__math_invalidl.lo.go obj/src/math/__math_oflow.lo.go obj/src/math/__math_oflowf.lo.go obj/src/math/__math_uflow.lo.go obj/src/math/__math_uflowf.lo.go obj/src/math/__math_xflow.lo.go obj/src/math/__math_xflowf.lo.go obj/src/math/__polevll.lo.go obj/src/math/__rem_pio2.lo.go obj/src/math/__rem_pio2_large.lo.go obj/src/math/__rem_pio2f.lo.go obj/src/math/__rem_pio2l.lo.go obj/src/math/__signbit.lo.go obj/src/math/__signbitf.lo.go obj/src/math/__signbitl.lo.go obj/src/math/__sin.lo.go obj/src/math/__sindf.lo.go obj/src/math/__sinl.lo.go obj/src/math/__tan.lo.go obj/src/math/__tandf.lo.go obj/src/math/__tanl.lo.go obj/src/math/acos.lo.go obj/src/math/acosf.lo.go obj/src/math/acosh.lo.go obj/src/math/acoshf.lo.go obj/src/math/acoshl.lo.go obj/src/math/acosl.lo.go obj/src/math/asin.lo.go obj/src/math/asinf.lo.go obj/src/math/asinh.lo.go obj/src/math/asinhf.lo.go obj/src/math/asinhl.lo.go obj/src/math/asinl.lo.go obj/src/math/atan.lo.go obj/src/math/atan2.lo.go obj/src/math/atan2f.lo.go obj/src/math/atan2l.lo.go obj/src/math/atanf.lo.go obj/src/math/atanh.lo.go obj/src/math/atanhf.lo.go obj/src/math/atanhl.lo.go obj/src/math/atanl.lo.go obj/src/math/cbrt.lo.go obj/src/math/cbrtf.lo.go obj/src/math/cbrtl.lo.go obj/src/math/ceil.lo.go obj/src/math/ceilf.lo.go obj/src/math/ceill.lo.go obj/src/math/copysign.lo.go obj/src/math/copysignf.lo.go obj/src/math/copysignl.lo.go obj/src/math/cos.lo.go obj/src/math/cosf.lo.go obj/src/math/cosh.lo.go obj/src/math/coshf.lo.go obj/src/math/coshl.lo.go obj/src/math/cosl.lo.go obj/src/math/erf.lo.go obj/src/math/erff.lo.go obj/src/math/erfl.lo.go obj/src/math/exp.lo.go obj/src/math/exp10.lo.go obj/src/math/exp10f.lo.go obj/src/math/exp10l.lo.go obj/src/math/exp2.lo.go obj/src/math/exp2f.lo.go obj/src/math/exp2f_data.lo.go obj/src/math/exp2l.lo.go obj/src/math/exp_data.lo.go obj/src/math/expf.lo.go obj/src/math/expl.lo.go obj/src/math/expm1.lo.go obj/src/math/expm1f.lo.go obj/src/math/expm1l.lo.go obj/src/math/fabs.lo.go obj/src/math/fabsf.lo.go obj/src/math/fabsl.lo.go obj/src/math/fdim.lo.go obj/src/math/fdimf.lo.go obj/src/math/fdiml.lo.go obj/src/math/finite.lo.go obj/src/math/finitef.lo.go obj/src/math/floor.lo.go obj/src/math/floorf.lo.go obj/src/math/floorl.lo.go obj/src/math/fma.lo.go obj/src/math/fmal.lo.go obj/src/math/fmax.lo.go obj/src/math/fmaxf.lo.go obj/src/math/fmaxl.lo.go obj/src/math/fmin.lo.go obj/src/math/fminf.lo.go obj/src/math/fminl.lo.go obj/src/math/fmod.lo.go obj/src/math/fmodf.lo.go obj/src/math/fmodl.lo.go obj/src/math/frexp.lo.go obj/src/math/frexpf.lo.go obj/src/math/frexpl.lo.go obj/src/math/hypot.lo.go obj/src/math/hypotf.lo.go obj/src/math/hypotl.lo.go obj/src/math/ilogb.lo.go obj/src/math/ilogbf.lo.go obj/src/math/ilogbl.lo.go obj/src/math/j0.lo.go obj/src/math/j0f.lo.go obj/src/math/j1.lo.go obj/src/math/j1f.lo.go obj/src/math/jn.lo.go obj/src/math/jnf.lo.go obj/src/math/ldexp.lo.go obj/src/math/ldexpf.lo.go obj/src/math/ldexpl.lo.go obj/src/math/lgamma.lo.go obj/src/math/lgamma_r.lo.go obj/src/math/lgammaf.lo.go obj/src/math/lgammaf_r.lo.go obj/src/math/lgammal.lo.go obj/src/math/llrint.lo.go obj/src/math/llrintf.lo.go obj/src/math/llrintl.lo.go obj/src/math/llround.lo.go obj/src/math/llroundf.lo.go obj/src/math/llroundl.lo.go obj/src/math/log.lo.go obj/src/math/log10.lo.go obj/src/math/log10f.lo.go obj/src/math/log10l.lo.go obj/src/math/log1p.lo.go obj/src/math/log1pf.lo.go obj/src/math/log1pl.lo.go obj/src/math/log2.lo.go obj/src/math/log2_data.lo.go obj/src/math/log2f.lo.go obj/src/math/log2f_data.lo.go obj/src/math/log2l.lo.go obj/src/math/log_data.lo.go obj/src/math/logb.lo.go obj/src/math/logbf.lo.go obj/src/math/logbl.lo.go obj/src/math/logf.lo.go obj/src/math/logf_data.lo.go obj/src/math/logl.lo.go obj/src/math/lrint.lo.go obj/src/math/lrintf.lo.go obj/src/math/lrintl.lo.go obj/src/math/lround.lo.go obj/src/math/lroundf.lo.go obj/src/math/lroundl.lo.go obj/src/math/modf.lo.go obj/src/math/modff.lo.go obj/src/math/modfl.lo.go obj/src/math/nan.lo.go obj/src/math/nanf.lo.go obj/src/math/nanl.lo.go obj/src/math/nextafter.lo.go obj/src/math/nextafterf.lo.go obj/src/math/nextafterl.lo.go obj/src/math/nexttoward.lo.go obj/src/math/nexttowardf.lo.go obj/src/math/nexttowardl.lo.go obj/src/math/pow.lo.go obj/src/math/pow_data.lo.go obj/src/math/powf.lo.go obj/src/math/powf_data.lo.go obj/src/math/powl.lo.go obj/src/math/remainder.lo.go obj/src/math/remainderf.lo.go obj/src/math/remainderl.lo.go obj/src/math/remquo.lo.go obj/src/math/remquof.lo.go obj/src/math/remquol.lo.go obj/src/math/rint.lo.go obj/src/math/rintf.lo.go obj/src/math/rintl.lo.go obj/src/math/round.lo.go obj/src/math/roundf.lo.go obj/src/math/roundl.lo.go obj/src/math/scalb.lo.go obj/src/math/scalbf.lo.go obj/src/math/scalbln.lo.go obj/src/math/scalblnf.lo.go obj/src/math/scalblnl.lo.go obj/src/math/scalbn.lo.go obj/src/math/scalbnf.lo.go obj/src/math/scalbnl.lo.go obj/src/math/signgam.lo.go obj/src/math/significand.lo.go obj/src/math/significandf.lo.go obj/src/math/sin.lo.go obj/src/math/sincos.lo.go obj/src/math/sincosf.lo.go obj/src/math/sincosl.lo.go obj/src/math/sinf.lo.go obj/src/math/sinh.lo.go obj/src/math/sinhf.lo.go obj/src/math/sinhl.lo.go obj/src/math/sinl.lo.go obj/src/math/sqrt.lo.go obj/src/math/sqrt_data.lo.go obj/src/math/sqrtf.lo.go obj/src/math/sqrtl.lo.go obj/src/math/tan.lo.go obj/src/math/tanf.lo.go obj/src/math/tanh.lo.go obj/src/math/tanhf.lo.go obj/src/math/tanhl.lo.go obj/src/math/tanl.lo.go obj/src/math/tgamma.lo.go obj/src/math/tgammaf.lo.go obj/src/math/tgammal.lo.go obj/src/math/trunc.lo.go obj/src/math/truncf.lo.go obj/src/math/truncl.lo.go obj/src/misc/a64l.lo.go obj/src/misc/basename.lo.go obj/src/misc/dirname.lo.go obj/src/misc/ffs.lo.go obj/src/misc/ffsl.lo.go obj/src/misc/ffsll.lo.go obj/src/misc/fmtmsg.lo.go obj/src/misc/get_current_dir_name.lo.go obj/src/misc/getauxval.lo.go obj/src/misc/getdomainname.lo.go obj/src/misc/getentropy.lo.go obj/src/misc/gethostid.lo.go obj/src/misc/getopt.lo.go obj/src/misc/getopt_long.lo.go obj/src/misc/getpriority.lo.go obj/src/misc/getresgid.lo.go obj/src/misc/getresuid.lo.go obj/src/misc/getrlimit.lo.go obj/src/misc/getrusage.lo.go obj/src/misc/getsubopt.lo.go obj/src/misc/ioctl.lo.go obj/src/misc/issetugid.lo.go obj/src/misc/lockf.lo.go obj/src/misc/login_tty.lo.go obj/src/misc/mntent.lo.go obj/src/misc/nftw.lo.go obj/src/misc/openpty.lo.go obj/src/misc/ptsname.lo.go obj/src/misc/pty.lo.go obj/src/misc/realpath.lo.go obj/src/misc/setdomainname.lo.go obj/src/misc/setpriority.lo.go obj/src/misc/setrlimit.lo.go obj/src/misc/syscall.lo.go obj/src/misc/syslog.lo.go obj/src/misc/uname.lo.go obj/src/mman/madvise.lo.go obj/src/mman/mincore.lo.go obj/src/mman/mlock.lo.go obj/src/mman/mlockall.lo.go obj/src/mman/mmap.lo.go obj/src/mman/mprotect.lo.go obj/src/mman/mremap.lo.go obj/src/mman/msync.lo.go obj/src/mman/munlock.lo.go obj/src/mman/munlockall.lo.go obj/src/mman/munmap.lo.go obj/src/mman/posix_madvise.lo.go obj/src/mman/shm_open.lo.go obj/src/multibyte/btowc.lo.go obj/src/multibyte/c16rtomb.lo.go obj/src/multibyte/c32rtomb.lo.go obj/src/multibyte/internal.lo.go obj/src/multibyte/mblen.lo.go obj/src/multibyte/mbrlen.lo.go obj/src/multibyte/mbrtoc16.lo.go obj/src/multibyte/mbrtoc32.lo.go obj/src/multibyte/mbrtowc.lo.go obj/src/multibyte/mbsinit.lo.go obj/src/multibyte/mbsnrtowcs.lo.go obj/src/multibyte/mbsrtowcs.lo.go obj/src/multibyte/mbstowcs.lo.go obj/src/multibyte/mbtowc.lo.go obj/src/multibyte/wcrtomb.lo.go obj/src/multibyte/wcsnrtombs.lo.go obj/src/multibyte/wcsrtombs.lo.go obj/src/multibyte/wcstombs.lo.go obj/src/multibyte/wctob.lo.go obj/src/multibyte/wctomb.lo.go obj/src/network/accept.lo.go obj/src/network/accept4.lo.go obj/src/network/bind.lo.go obj/src/network/connect.lo.go obj/src/network/dn_comp.lo.go obj/src/network/dn_expand.lo.go obj/src/network/dn_skipname.lo.go obj/src/network/dns_parse.lo.go obj/src/network/ent.lo.go obj/src/network/ether.lo.go obj/src/network/freeaddrinfo.lo.go obj/src/network/gai_strerror.lo.go obj/src/network/getaddrinfo.lo.go obj/src/network/gethostbyaddr.lo.go obj/src/network/gethostbyaddr_r.lo.go obj/src/network/gethostbyname.lo.go obj/src/network/gethostbyname2.lo.go obj/src/network/gethostbyname2_r.lo.go obj/src/network/gethostbyname_r.lo.go obj/src/network/getifaddrs.lo.go obj/src/network/getnameinfo.lo.go obj/src/network/getpeername.lo.go obj/src/network/getservbyname.lo.go obj/src/network/getservbyname_r.lo.go obj/src/network/getsockname.lo.go obj/src/network/getsockopt.lo.go obj/src/network/h_errno.lo.go obj/src/network/herror.lo.go obj/src/network/hstrerror.lo.go obj/src/network/htonl.lo.go obj/src/network/htons.lo.go obj/src/network/if_freenameindex.lo.go obj/src/network/if_indextoname.lo.go obj/src/network/if_nameindex.lo.go obj/src/network/if_nametoindex.lo.go obj/src/network/in6addr_any.lo.go obj/src/network/in6addr_loopback.lo.go obj/src/network/inet_addr.lo.go obj/src/network/inet_aton.lo.go obj/src/network/inet_legacy.lo.go obj/src/network/inet_ntoa.lo.go obj/src/network/inet_ntop.lo.go obj/src/network/inet_pton.lo.go obj/src/network/listen.lo.go obj/src/network/lookup_ipliteral.lo.go obj/src/network/lookup_name.lo.go obj/src/network/lookup_serv.lo.go obj/src/network/netlink.lo.go obj/src/network/netname.lo.go obj/src/network/ns_parse.lo.go obj/src/network/ntohl.lo.go obj/src/network/ntohs.lo.go obj/src/network/proto.lo.go obj/src/network/recv.lo.go obj/src/network/recvfrom.lo.go obj/src/network/recvmmsg.lo.go obj/src/network/recvmsg.lo.go obj/src/network/res_init.lo.go obj/src/network/res_mkquery.lo.go obj/src/network/res_msend.lo.go obj/src/network/res_send.lo.go obj/src/network/res_state.lo.go obj/src/network/resolvconf.lo.go obj/src/network/send.lo.go obj/src/network/sendmmsg.lo.go obj/src/network/sendmsg.lo.go obj/src/network/sendto.lo.go obj/src/network/serv.lo.go obj/src/network/setsockopt.lo.go obj/src/network/shutdown.lo.go obj/src/network/sockatmark.lo.go obj/src/network/socket.lo.go obj/src/network/socketpair.lo.go obj/src/passwd/fgetgrent.lo.go obj/src/passwd/fgetpwent.lo.go obj/src/passwd/getgr_a.lo.go obj/src/passwd/getgr_r.lo.go obj/src/passwd/getgrent.lo.go obj/src/passwd/getgrent_a.lo.go obj/src/passwd/getgrouplist.lo.go obj/src/passwd/getpw_a.lo.go obj/src/passwd/getpw_r.lo.go obj/src/passwd/getpwent.lo.go obj/src/passwd/getpwent_a.lo.go obj/src/passwd/getspent.lo.go obj/src/passwd/lckpwdf.lo.go obj/src/passwd/nscd_query.lo.go obj/src/passwd/putgrent.lo.go obj/src/passwd/putpwent.lo.go obj/src/passwd/putspent.lo.go obj/src/prng/__rand48_step.lo.go obj/src/prng/__seed48.lo.go obj/src/prng/drand48.lo.go obj/src/prng/lcong48.lo.go obj/src/prng/lrand48.lo.go obj/src/prng/mrand48.lo.go obj/src/prng/rand.lo.go obj/src/prng/rand_r.lo.go obj/src/prng/random.lo.go obj/src/prng/seed48.lo.go obj/src/prng/srand48.lo.go obj/src/process/execl.lo.go obj/src/process/execle.lo.go obj/src/process/execlp.lo.go obj/src/process/execv.lo.go obj/src/process/execve.lo.go obj/src/process/execvp.lo.go obj/src/process/fexecve.lo.go obj/src/process/fork.lo.go obj/src/process/posix_spawn_file_actions_addchdir.lo.go obj/src/process/posix_spawn_file_actions_addclose.lo.go obj/src/process/posix_spawn_file_actions_adddup2.lo.go obj/src/process/posix_spawn_file_actions_addfchdir.lo.go obj/src/process/posix_spawn_file_actions_addopen.lo.go obj/src/process/posix_spawn_file_actions_destroy.lo.go obj/src/process/posix_spawn_file_actions_init.lo.go obj/src/process/posix_spawnattr_destroy.lo.go obj/src/process/posix_spawnattr_getflags.lo.go obj/src/process/posix_spawnattr_getpgroup.lo.go obj/src/process/posix_spawnattr_getsigdefault.lo.go obj/src/process/posix_spawnattr_getsigmask.lo.go obj/src/process/posix_spawnattr_init.lo.go obj/src/process/posix_spawnattr_sched.lo.go obj/src/process/posix_spawnattr_setflags.lo.go obj/src/process/posix_spawnattr_setpgroup.lo.go obj/src/process/posix_spawnattr_setsigdefault.lo.go obj/src/process/posix_spawnattr_setsigmask.lo.go obj/src/process/vfork.lo.go obj/src/process/wait.lo.go obj/src/process/waitid.lo.go obj/src/process/waitpid.lo.go obj/src/regex/fnmatch.lo.go obj/src/regex/glob.lo.go obj/src/regex/regcomp.lo.go obj/src/regex/regerror.lo.go obj/src/regex/regexec.lo.go obj/src/regex/tre-mem.lo.go obj/src/search/hsearch.lo.go obj/src/search/insque.lo.go obj/src/search/lsearch.lo.go obj/src/search/tdelete.lo.go obj/src/search/tdestroy.lo.go obj/src/search/tfind.lo.go obj/src/search/tsearch.lo.go obj/src/search/twalk.lo.go obj/src/select/poll.lo.go obj/src/select/ppoll.lo.go obj/src/select/pselect.lo.go obj/src/select/select.lo.go obj/src/setjmp/longjmp.lo.go obj/src/setjmp/setjmp.lo.go obj/src/signal/block.lo.go obj/src/signal/getitimer.lo.go obj/src/signal/kill.lo.go obj/src/signal/killpg.lo.go obj/src/signal/psiginfo.lo.go obj/src/signal/psignal.lo.go obj/src/signal/raise.lo.go obj/src/signal/restore.lo.go obj/src/signal/setitimer.lo.go obj/src/signal/sigaction.lo.go obj/src/signal/sigaddset.lo.go obj/src/signal/sigaltstack.lo.go obj/src/signal/sigandset.lo.go obj/src/signal/sigdelset.lo.go obj/src/signal/sigemptyset.lo.go obj/src/signal/sigfillset.lo.go obj/src/signal/sigisemptyset.lo.go obj/src/signal/sigismember.lo.go obj/src/signal/sigorset.lo.go obj/src/signal/sigpending.lo.go obj/src/signal/sigprocmask.lo.go obj/src/signal/sigqueue.lo.go obj/src/signal/sigrtmax.lo.go obj/src/signal/sigrtmin.lo.go obj/src/signal/sigsetjmp.lo.go obj/src/signal/sigsetjmp_tail.lo.go obj/src/signal/sigsuspend.lo.go obj/src/signal/sigtimedwait.lo.go obj/src/signal/sigwait.lo.go obj/src/signal/sigwaitinfo.lo.go obj/src/stat/__xstat.lo.go obj/src/stat/chmod.lo.go obj/src/stat/fchmod.lo.go obj/src/stat/fchmodat.lo.go obj/src/stat/fstat.lo.go obj/src/stat/fstatat.lo.go obj/src/stat/futimens.lo.go obj/src/stat/futimesat.lo.go obj/src/stat/lchmod.lo.go obj/src/stat/lstat.lo.go obj/src/stat/mkdir.lo.go obj/src/stat/mkdirat.lo.go obj/src/stat/mkfifo.lo.go obj/src/stat/mkfifoat.lo.go obj/src/stat/mknod.lo.go obj/src/stat/mknodat.lo.go obj/src/stat/stat.lo.go obj/src/stat/statvfs.lo.go obj/src/stat/umask.lo.go obj/src/stat/utimensat.lo.go obj/src/stdio/__fclose_ca.lo.go obj/src/stdio/__fdopen.lo.go obj/src/stdio/__fmodeflags.lo.go obj/src/stdio/__fopen_rb_ca.lo.go obj/src/stdio/__overflow.lo.go obj/src/stdio/__stdio_close.lo.go obj/src/stdio/__stdio_exit.lo.go obj/src/stdio/__stdio_read.lo.go obj/src/stdio/__stdio_seek.lo.go obj/src/stdio/__stdio_write.lo.go obj/src/stdio/__stdout_write.lo.go obj/src/stdio/__toread.lo.go obj/src/stdio/__towrite.lo.go obj/src/stdio/__uflow.lo.go obj/src/stdio/asprintf.lo.go obj/src/stdio/clearerr.lo.go obj/src/stdio/dprintf.lo.go obj/src/stdio/ext.lo.go obj/src/stdio/ext2.lo.go obj/src/stdio/fclose.lo.go obj/src/stdio/feof.lo.go obj/src/stdio/ferror.lo.go obj/src/stdio/fflush.lo.go obj/src/stdio/fgetc.lo.go obj/src/stdio/fgetln.lo.go obj/src/stdio/fgetpos.lo.go obj/src/stdio/fgets.lo.go obj/src/stdio/fgetwc.lo.go obj/src/stdio/fgetws.lo.go obj/src/stdio/fileno.lo.go obj/src/stdio/flockfile.lo.go obj/src/stdio/fmemopen.lo.go obj/src/stdio/fopen.lo.go obj/src/stdio/fopencookie.lo.go obj/src/stdio/fprintf.lo.go obj/src/stdio/fputc.lo.go obj/src/stdio/fputs.lo.go obj/src/stdio/fputwc.lo.go obj/src/stdio/fputws.lo.go obj/src/stdio/fread.lo.go obj/src/stdio/freopen.lo.go obj/src/stdio/fscanf.lo.go obj/src/stdio/fseek.lo.go obj/src/stdio/fsetpos.lo.go obj/src/stdio/ftell.lo.go obj/src/stdio/ftrylockfile.lo.go obj/src/stdio/funlockfile.lo.go obj/src/stdio/fwide.lo.go obj/src/stdio/fwprintf.lo.go obj/src/stdio/fwrite.lo.go obj/src/stdio/fwscanf.lo.go obj/src/stdio/getc.lo.go obj/src/stdio/getc_unlocked.lo.go obj/src/stdio/getchar.lo.go obj/src/stdio/getchar_unlocked.lo.go obj/src/stdio/getdelim.lo.go obj/src/stdio/getline.lo.go obj/src/stdio/gets.lo.go obj/src/stdio/getw.lo.go obj/src/stdio/getwc.lo.go obj/src/stdio/getwchar.lo.go obj/src/stdio/ofl.lo.go obj/src/stdio/ofl_add.lo.go obj/src/stdio/open_memstream.lo.go obj/src/stdio/open_wmemstream.lo.go obj/src/stdio/pclose.lo.go obj/src/stdio/perror.lo.go obj/src/stdio/printf.lo.go obj/src/stdio/putc.lo.go obj/src/stdio/putc_unlocked.lo.go obj/src/stdio/putchar.lo.go obj/src/stdio/putchar_unlocked.lo.go obj/src/stdio/puts.lo.go obj/src/stdio/putw.lo.go obj/src/stdio/putwc.lo.go obj/src/stdio/putwchar.lo.go obj/src/stdio/remove.lo.go obj/src/stdio/rename.lo.go obj/src/stdio/rewind.lo.go obj/src/stdio/scanf.lo.go obj/src/stdio/setbuf.lo.go obj/src/stdio/setbuffer.lo.go obj/src/stdio/setlinebuf.lo.go obj/src/stdio/setvbuf.lo.go obj/src/stdio/snprintf.lo.go obj/src/stdio/sprintf.lo.go obj/src/stdio/sscanf.lo.go obj/src/stdio/stderr.lo.go obj/src/stdio/stdin.lo.go obj/src/stdio/stdout.lo.go obj/src/stdio/swprintf.lo.go obj/src/stdio/swscanf.lo.go obj/src/stdio/tempnam.lo.go obj/src/stdio/tmpfile.lo.go obj/src/stdio/tmpnam.lo.go obj/src/stdio/ungetc.lo.go obj/src/stdio/ungetwc.lo.go obj/src/stdio/vasprintf.lo.go obj/src/stdio/vdprintf.lo.go obj/src/stdio/vfprintf.lo.go obj/src/stdio/vfscanf.lo.go obj/src/stdio/vfwprintf.lo.go obj/src/stdio/vfwscanf.lo.go obj/src/stdio/vprintf.lo.go obj/src/stdio/vscanf.lo.go obj/src/stdio/vsnprintf.lo.go obj/src/stdio/vsprintf.lo.go obj/src/stdio/vsscanf.lo.go obj/src/stdio/vswprintf.lo.go obj/src/stdio/vswscanf.lo.go obj/src/stdio/vwprintf.lo.go obj/src/stdio/vwscanf.lo.go obj/src/stdio/wprintf.lo.go obj/src/stdio/wscanf.lo.go obj/src/stdlib/abs.lo.go obj/src/stdlib/atof.lo.go obj/src/stdlib/atoi.lo.go obj/src/stdlib/atol.lo.go obj/src/stdlib/atoll.lo.go obj/src/stdlib/bsearch.lo.go obj/src/stdlib/div.lo.go obj/src/stdlib/ecvt.lo.go obj/src/stdlib/fcvt.lo.go obj/src/stdlib/gcvt.lo.go obj/src/stdlib/imaxabs.lo.go obj/src/stdlib/imaxdiv.lo.go obj/src/stdlib/labs.lo.go obj/src/stdlib/ldiv.lo.go obj/src/stdlib/llabs.lo.go obj/src/stdlib/lldiv.lo.go obj/src/stdlib/qsort.lo.go obj/src/stdlib/qsort_nr.lo.go obj/src/stdlib/strtod.lo.go obj/src/stdlib/strtol.lo.go obj/src/stdlib/wcstod.lo.go obj/src/stdlib/wcstol.lo.go obj/src/string/bcmp.lo.go obj/src/string/bcopy.lo.go obj/src/string/bzero.lo.go obj/src/string/explicit_bzero.lo.go obj/src/string/index.lo.go obj/src/string/memccpy.lo.go obj/src/string/memchr.lo.go obj/src/string/memcmp.lo.go obj/src/string/memcpy.lo.go obj/src/string/memmem.lo.go obj/src/string/memmove.lo.go obj/src/string/mempcpy.lo.go obj/src/string/memrchr.lo.go obj/src/string/memset.lo.go obj/src/string/rindex.lo.go obj/src/string/stpcpy.lo.go obj/src/string/stpncpy.lo.go obj/src/string/strcasecmp.lo.go obj/src/string/strcasestr.lo.go obj/src/string/strcat.lo.go obj/src/string/strchr.lo.go obj/src/string/strchrnul.lo.go obj/src/string/strcmp.lo.go obj/src/string/strcpy.lo.go obj/src/string/strcspn.lo.go obj/src/string/strdup.lo.go obj/src/string/strerror_r.lo.go obj/src/string/strlcat.lo.go obj/src/string/strlcpy.lo.go obj/src/string/strlen.lo.go obj/src/string/strncasecmp.lo.go obj/src/string/strncat.lo.go obj/src/string/strncmp.lo.go obj/src/string/strncpy.lo.go obj/src/string/strndup.lo.go obj/src/string/strnlen.lo.go obj/src/string/strpbrk.lo.go obj/src/string/strrchr.lo.go obj/src/string/strsep.lo.go obj/src/string/strsignal.lo.go obj/src/string/strspn.lo.go obj/src/string/strstr.lo.go obj/src/string/strtok.lo.go obj/src/string/strtok_r.lo.go obj/src/string/strverscmp.lo.go obj/src/string/swab.lo.go obj/src/string/wcpcpy.lo.go obj/src/string/wcpncpy.lo.go obj/src/string/wcscasecmp.lo.go obj/src/string/wcscasecmp_l.lo.go obj/src/string/wcscat.lo.go obj/src/string/wcschr.lo.go obj/src/string/wcscmp.lo.go obj/src/string/wcscpy.lo.go obj/src/string/wcscspn.lo.go obj/src/string/wcsdup.lo.go obj/src/string/wcslen.lo.go obj/src/string/wcsncasecmp.lo.go obj/src/string/wcsncasecmp_l.lo.go obj/src/string/wcsncat.lo.go obj/src/string/wcsncmp.lo.go obj/src/string/wcsncpy.lo.go obj/src/string/wcsnlen.lo.go obj/src/string/wcspbrk.lo.go obj/src/string/wcsrchr.lo.go obj/src/string/wcsspn.lo.go obj/src/string/wcsstr.lo.go obj/src/string/wcstok.lo.go obj/src/string/wcswcs.lo.go obj/src/string/wmemchr.lo.go obj/src/string/wmemcmp.lo.go obj/src/string/wmemcpy.lo.go obj/src/string/wmemmove.lo.go obj/src/string/wmemset.lo.go obj/src/temp/mkdtemp.lo.go obj/src/temp/mkostemp.lo.go obj/src/temp/mkostemps.lo.go obj/src/temp/mkstemp.lo.go obj/src/temp/mkstemps.lo.go obj/src/temp/mktemp.lo.go obj/src/termios/cfgetospeed.lo.go obj/src/termios/cfmakeraw.lo.go obj/src/termios/cfsetospeed.lo.go obj/src/termios/tcdrain.lo.go obj/src/termios/tcflow.lo.go obj/src/termios/tcflush.lo.go obj/src/termios/tcgetattr.lo.go obj/src/termios/tcgetsid.lo.go obj/src/termios/tcgetwinsize.lo.go obj/src/termios/tcsendbreak.lo.go obj/src/termios/tcsetattr.lo.go obj/src/termios/tcsetwinsize.lo.go obj/src/time/__map_file.lo.go obj/src/time/__month_to_secs.lo.go obj/src/time/__secs_to_tm.lo.go obj/src/time/__tm_to_secs.lo.go obj/src/time/__tz.lo.go obj/src/time/__year_to_secs.lo.go obj/src/time/asctime.lo.go obj/src/time/asctime_r.lo.go obj/src/time/clock.lo.go obj/src/time/clock_getcpuclockid.lo.go obj/src/time/clock_getres.lo.go obj/src/time/clock_gettime.lo.go obj/src/time/clock_nanosleep.lo.go obj/src/time/clock_settime.lo.go obj/src/time/ctime.lo.go obj/src/time/ctime_r.lo.go obj/src/time/difftime.lo.go obj/src/time/ftime.lo.go obj/src/time/getdate.lo.go obj/src/time/gettimeofday.lo.go obj/src/time/gmtime.lo.go obj/src/time/gmtime_r.lo.go obj/src/time/localtime.lo.go obj/src/time/localtime_r.lo.go obj/src/time/mktime.lo.go obj/src/time/nanosleep.lo.go obj/src/time/strftime.lo.go obj/src/time/strptime.lo.go obj/src/time/time.lo.go obj/src/time/timegm.lo.go obj/src/time/timer_delete.lo.go obj/src/time/timer_getoverrun.lo.go obj/src/time/timer_gettime.lo.go obj/src/time/timer_settime.lo.go obj/src/time/times.lo.go obj/src/time/timespec_get.lo.go obj/src/time/utime.lo.go obj/src/time/wcsftime.lo.go obj/src/unistd/_exit.lo.go obj/src/unistd/access.lo.go obj/src/unistd/acct.lo.go obj/src/unistd/alarm.lo.go obj/src/unistd/chdir.lo.go obj/src/unistd/chown.lo.go obj/src/unistd/close.lo.go obj/src/unistd/ctermid.lo.go obj/src/unistd/dup.lo.go obj/src/unistd/dup2.lo.go obj/src/unistd/dup3.lo.go obj/src/unistd/faccessat.lo.go obj/src/unistd/fchdir.lo.go obj/src/unistd/fchown.lo.go obj/src/unistd/fchownat.lo.go obj/src/unistd/fdatasync.lo.go obj/src/unistd/fsync.lo.go obj/src/unistd/ftruncate.lo.go obj/src/unistd/getcwd.lo.go obj/src/unistd/getegid.lo.go obj/src/unistd/geteuid.lo.go obj/src/unistd/getgid.lo.go obj/src/unistd/getgroups.lo.go obj/src/unistd/gethostname.lo.go obj/src/unistd/getlogin.lo.go obj/src/unistd/getlogin_r.lo.go obj/src/unistd/getpgid.lo.go obj/src/unistd/getpgrp.lo.go obj/src/unistd/getpid.lo.go obj/src/unistd/getppid.lo.go obj/src/unistd/getsid.lo.go obj/src/unistd/getuid.lo.go obj/src/unistd/isatty.lo.go obj/src/unistd/lchown.lo.go obj/src/unistd/link.lo.go obj/src/unistd/linkat.lo.go obj/src/unistd/lseek.lo.go obj/src/unistd/nice.lo.go obj/src/unistd/pause.lo.go obj/src/unistd/pipe.lo.go obj/src/unistd/pipe2.lo.go obj/src/unistd/posix_close.lo.go obj/src/unistd/pread.lo.go obj/src/unistd/preadv.lo.go obj/src/unistd/pwrite.lo.go obj/src/unistd/pwritev.lo.go obj/src/unistd/read.lo.go obj/src/unistd/readlink.lo.go obj/src/unistd/readlinkat.lo.go obj/src/unistd/readv.lo.go obj/src/unistd/renameat.lo.go obj/src/unistd/rmdir.lo.go obj/src/unistd/setgid.lo.go obj/src/unistd/setpgid.lo.go obj/src/unistd/setpgrp.lo.go obj/src/unistd/setsid.lo.go obj/src/unistd/setuid.lo.go obj/src/unistd/setxid.lo.go obj/src/unistd/sleep.lo.go obj/src/unistd/symlink.lo.go obj/src/unistd/symlinkat.lo.go obj/src/unistd/sync.lo.go obj/src/unistd/tcgetpgrp.lo.go obj/src/unistd/tcsetpgrp.lo.go obj/src/unistd/truncate.lo.go obj/src/unistd/ttyname.lo.go obj/src/unistd/ttyname_r.lo.go obj/src/unistd/ualarm.lo.go obj/src/unistd/unlink.lo.go obj/src/unistd/unlinkat.lo.go obj/src/unistd/usleep.lo.go obj/src/unistd/write.lo.go obj/src/unistd/writev.lo.go -lgcc -lgcc_eh', DO NOT EDIT.
//go:build linux && arm64
@@ -9,10 +9,8 @@ import (
"unsafe"
)
-var (
- _ reflect.Type
- _ unsafe.Pointer
-)
+var _ reflect.Type
+var _ unsafe.Pointer
const BIG_ENDIAN = 4321
const BYTE_ORDER = 1234
@@ -564,8 +562,8 @@ func ___frexp_exp(tls *TLS, x float64, expt uintptr) (r float64) {
*/
exp_x = Xexp(tls, x-_kln2)
hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&exp_x)) >> int32(32))
- *(*int32)(unsafe.Pointer(expt)) = int32(hx>>Int32FromInt32(20) - uint32(Int32FromInt32(0x3ff)+Int32FromInt32(1023)) + _k)
- v1 = uint64(hx&Uint32FromInt32(0xfffff)|uint32((Int32FromInt32(0x3ff)+Int32FromInt32(1023))<<Int32FromInt32(20)))<<Int32FromInt32(32) | uint64(uint32(*(*Tuint64_t)(unsafe.Pointer(&exp_x))))
+ *(*int32)(unsafe.Pointer(expt)) = Int32FromUint32(hx>>Int32FromInt32(20) - Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1023)) + _k)
+ v1 = uint64(hx&Uint32FromInt32(0xfffff)|Uint32FromInt32((Int32FromInt32(0x3ff)+Int32FromInt32(1023))<<Int32FromInt32(20)))<<Int32FromInt32(32) | uint64(uint32(*(*Tuint64_t)(unsafe.Pointer(&exp_x))))
exp_x = *(*float64)(unsafe.Pointer(&v1))
return exp_x
}
@@ -603,10 +601,10 @@ func X__ldexp_cexp(tls *TLS, z complex128, expt int32) (r complex128) {
* compensate for scalbn being horrendously slow.
*/
half_expt = expt / int32(2)
- v1 = uint64((Int32FromInt32(0x3ff)+half_expt)<<Int32FromInt32(20))<<Int32FromInt32(32) | uint64(uint32(Int32FromInt32(0)))
+ v1 = Uint64FromInt32((Int32FromInt32(0x3ff)+half_expt)<<Int32FromInt32(20))<<Int32FromInt32(32) | uint64(Uint32FromInt32(Int32FromInt32(0)))
scale1 = *(*float64)(unsafe.Pointer(&v1))
half_expt = expt - half_expt
- v2 = uint64((Int32FromInt32(0x3ff)+half_expt)<<Int32FromInt32(20))<<Int32FromInt32(32) | uint64(uint32(Int32FromInt32(0)))
+ v2 = Uint64FromInt32((Int32FromInt32(0x3ff)+half_expt)<<Int32FromInt32(20))<<Int32FromInt32(32) | uint64(Uint32FromInt32(Int32FromInt32(0)))
scale2 = *(*float64)(unsafe.Pointer(&v2))
v3 = [2]float64{
0: Xcos(tls, y) * exp_x * scale1 * scale2,
@@ -632,8 +630,8 @@ func ___frexp_expf(tls *TLS, x float32, expt uintptr) (r float32) {
_, _, _ = exp_x, hx, v1
exp_x = Xexpf(tls, x-_kln21)
hx = *(*Tuint32_t)(unsafe.Pointer(&exp_x))
- *(*int32)(unsafe.Pointer(expt)) = int32(hx>>Int32FromInt32(23) - uint32(Int32FromInt32(0x7f)+Int32FromInt32(127)) + _k1)
- v1 = hx&uint32(0x7fffff) | uint32((Int32FromInt32(0x7f)+Int32FromInt32(127))<<Int32FromInt32(23))
+ *(*int32)(unsafe.Pointer(expt)) = Int32FromUint32(hx>>Int32FromInt32(23) - Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(127)) + _k1)
+ v1 = hx&uint32(0x7fffff) | Uint32FromInt32((Int32FromInt32(0x7f)+Int32FromInt32(127))<<Int32FromInt32(23))
exp_x = *(*float32)(unsafe.Pointer(&v1))
return exp_x
}
@@ -656,10 +654,10 @@ func X__ldexp_cexpf(tls *TLS, z complex64, expt int32) (r complex64) {
exp_x = ___frexp_expf(tls, x, bp)
expt += *(*int32)(unsafe.Pointer(bp))
half_expt = expt / int32(2)
- v1 = uint32((int32(0x7f) + half_expt) << int32(23))
+ v1 = Uint32FromInt32((int32(0x7f) + half_expt) << int32(23))
scale1 = *(*float32)(unsafe.Pointer(&v1))
half_expt = expt - half_expt
- v2 = uint32((int32(0x7f) + half_expt) << int32(23))
+ v2 = Uint32FromInt32((int32(0x7f) + half_expt) << int32(23))
scale2 = *(*float32)(unsafe.Pointer(&v2))
v3 = [2]float32{
0: Xcosf(tls, y) * exp_x * scale1 * scale2,
@@ -755,7 +753,7 @@ func Xcacosh(tls *TLS, z complex128) (r complex128) {
v1 = *(*uint64)(unsafe.Pointer(bp))
goto _2
_2:
- zineg = int32(v1 >> Int32FromInt32(63))
+ zineg = Int32FromUint64(v1 >> Int32FromInt32(63))
z = Xcacos(tls, z)
if zineg != 0 {
v3 = [2]float64{
@@ -792,7 +790,7 @@ func Xcacoshf(tls *TLS, z complex64) (r complex64) {
v1 = *(*uint32)(unsafe.Pointer(bp))
goto _2
_2:
- zineg = int32(v1 >> Int32FromInt32(31))
+ zineg = Int32FromUint32(v1 >> Int32FromInt32(31))
z = Xcacosf(tls, z)
if zineg != 0 {
v3 = [2]float32{
@@ -1173,11 +1171,11 @@ func Xccosh(tls *TLS, z complex128) (r complex128) {
x = Float64FromComplex128(z)
y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)]
__u = *(*Tuint64_t)(unsafe.Pointer(&x))
- hx = int32(__u >> int32(32))
- lx = int32(uint32(__u))
+ hx = Int32FromUint64(__u >> int32(32))
+ lx = Int32FromUint32(uint32(__u))
__u1 = *(*Tuint64_t)(unsafe.Pointer(&y))
- hy = int32(__u1 >> int32(32))
- ly = int32(uint32(__u1))
+ hy = Int32FromUint64(__u1 >> int32(32))
+ ly = Int32FromUint32(uint32(__u1))
ix = int32(0x7fffffff) & hx
iy = int32(0x7fffffff) & hy
/* Handle the nearly-non-exceptional cases where x and y are finite. */
@@ -1334,8 +1332,8 @@ func Xccoshf(tls *TLS, z complex64) (r complex64) {
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = h, hx, hy, ix, iy, x, y, v1, v10, v11, v12, v13, v2, v3, v4, v5, v6, v7, v8, v9
x = Float32FromComplex64(z)
y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)]
- hx = int32(*(*Tuint32_t)(unsafe.Pointer(&x)))
- hy = int32(*(*Tuint32_t)(unsafe.Pointer(&y)))
+ hx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&x)))
+ hy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&y)))
ix = int32(0x7fffffff) & hx
iy = int32(0x7fffffff) & hy
if ix < int32(0x7f800000) && iy < int32(0x7f800000) {
@@ -1929,11 +1927,11 @@ func Xcsinh(tls *TLS, z complex128) (r complex128) {
x = Float64FromComplex128(z)
y = +(*(*[2]float64)(unsafe.Pointer(&z)))[int32(1)]
__u = *(*Tuint64_t)(unsafe.Pointer(&x))
- hx = int32(__u >> int32(32))
- lx = int32(uint32(__u))
+ hx = Int32FromUint64(__u >> int32(32))
+ lx = Int32FromUint32(uint32(__u))
__u1 = *(*Tuint64_t)(unsafe.Pointer(&y))
- hy = int32(__u1 >> int32(32))
- ly = int32(uint32(__u1))
+ hy = Int32FromUint64(__u1 >> int32(32))
+ ly = Int32FromUint32(uint32(__u1))
ix = int32(0x7fffffff) & hx
iy = int32(0x7fffffff) & hy
/* Handle the nearly-non-exceptional cases where x and y are finite. */
@@ -2091,8 +2089,8 @@ func Xcsinhf(tls *TLS, z complex64) (r complex64) {
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = h, hx, hy, ix, iy, x, y, v1, v10, v11, v12, v13, v2, v3, v4, v5, v6, v7, v8, v9
x = Float32FromComplex64(z)
y = +(*(*[2]float32)(unsafe.Pointer(&z)))[int32(1)]
- hx = int32(*(*Tuint32_t)(unsafe.Pointer(&x)))
- hy = int32(*(*Tuint32_t)(unsafe.Pointer(&y)))
+ hx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&x)))
+ hy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(&y)))
ix = int32(0x7fffffff) & hx
iy = int32(0x7fffffff) & hy
if ix < int32(0x7f800000) && iy < int32(0x7f800000) {
@@ -2287,7 +2285,7 @@ _9:
v10 = *(*uint64)(unsafe.Pointer(bp))
goto _11
_11:
- if int32(v10>>Int32FromInt32(63)) != 0 {
+ if Int32FromUint64(v10>>Int32FromInt32(63)) != 0 {
v12 = [2]float64{
0: Xfabs(tls, b-b),
1: Xcopysign(tls, a, b),
@@ -2407,7 +2405,7 @@ _9:
v10 = *(*uint32)(unsafe.Pointer(bp))
goto _11
_11:
- if int32(v10>>Int32FromInt32(31)) != 0 {
+ if Int32FromUint32(v10>>Int32FromInt32(31)) != 0 {
v12 = [2]float32{
0: Xfabsf(tls, b-b),
1: Xcopysignf(tls, a, b),
@@ -3169,14 +3167,14 @@ func Xconfstr(tls *TLS, name int32, buf uintptr, len1 Tsize_t) (r Tsize_t) {
if !(name != 0) {
s = __ccgo_ts + 1
} else {
- if uint32(name) & ^Uint32FromUint32(4) != uint32(1) && uint32(name-int32(_CS_POSIX_V6_ILP32_OFF32_CFLAGS)) > uint32(35) {
+ if Uint32FromInt32(name) & ^Uint32FromUint32(4) != uint32(1) && Uint32FromInt32(name-int32(_CS_POSIX_V6_ILP32_OFF32_CFLAGS)) > uint32(35) {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EINVAL)
return uint64(0)
}
}
// snprintf is overkill but avoid wasting code size to implement
// this completely useless function and its truncation semantics
- return uint64(Xsnprintf(tls, buf, len1, __ccgo_ts+15, VaList(bp+8, s)) + int32(1))
+ return Uint64FromInt32(Xsnprintf(tls, buf, len1, __ccgo_ts+15, VaList(bp+8, s)) + int32(1))
}
const ARG_MAX = 131072
@@ -3294,7 +3292,7 @@ func Xfpathconf(tls *TLS, fd int32, name int32) (r int64) {
trc("tls=%v fd=%v name=%v, (%v:)", tls, fd, name, origin(2))
defer func() { trc("-> %v", r) }()
}
- if uint64(name) >= Uint64FromInt64(42)/Uint64FromInt64(2) {
+ if Uint64FromInt32(name) >= Uint64FromInt64(42)/Uint64FromInt64(2) {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EINVAL)
return int64(-int32(1))
}
@@ -7380,7 +7378,7 @@ func Xsysconf(tls *TLS, name int32) (r int64) {
var _ /* set at bp+16 */ [128]uint8
var _ /* si at bp+144 */ Tsysinfo
_, _, _, _, _, _, _, _ = cnt, i, mem, val, v1, v3, v6, p5
- if uint64(name) >= Uint64FromInt64(502)/Uint64FromInt64(2) || !(_values1[name] != 0) {
+ if Uint64FromInt32(name) >= Uint64FromInt64(502)/Uint64FromInt64(2) || !(_values1[name] != 0) {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EINVAL)
return int64(-int32(1))
} else {
@@ -7397,11 +7395,11 @@ func Xsysconf(tls *TLS, name int32) (r int64) {
} else {
v1 = (*(*Trlimit)(unsafe.Pointer(bp))).Frlim_cur
}
- return int64(v1)
+ return Int64FromUint64(v1)
}
}
}
- switch int32(uint8(_values1[name])) {
+ switch Int32FromUint8(Uint8FromInt16(_values1[name])) {
case (-Int32FromInt32(256) | Int32FromInt32(1)) & Int32FromInt32(255):
return int64(200809)
case (-Int32FromInt32(256) | Int32FromInt32(2)) & Int32FromInt32(255):
@@ -7409,7 +7407,7 @@ func Xsysconf(tls *TLS, name int32) (r int64) {
case (-Int32FromInt32(256) | Int32FromInt32(3)) & Int32FromInt32(255):
return int64(MQ_PRIO_MAX)
case (-Int32FromInt32(256) | Int32FromInt32(4)) & Int32FromInt32(255):
- return int64(X__libc.Fpage_size)
+ return Int64FromUint64(X__libc.Fpage_size)
case (-Int32FromInt32(256) | Int32FromInt32(5)) & Int32FromInt32(255):
return int64(SEM_VALUE_MAX)
case (-Int32FromInt32(256) | Int32FromInt32(11)) & Int32FromInt32(255):
@@ -7420,12 +7418,12 @@ func Xsysconf(tls *TLS, name int32) (r int64) {
*(*[128]uint8)(unsafe.Pointer(bp + 16)) = [128]uint8{
0: uint8(1),
}
- X__syscall3(tls, int64(SYS_sched_getaffinity), int64(Int32FromInt32(0)), int64(Uint64FromInt64(128)), int64(bp+16))
+ X__syscall3(tls, int64(SYS_sched_getaffinity), int64(Int32FromInt32(0)), Int64FromUint64(Uint64FromInt64(128)), int64(bp+16))
v3 = Int32FromInt32(0)
cnt = v3
i = v3
for {
- if !(uint64(i) < uint64(128)) {
+ if !(Uint64FromInt32(i) < uint64(128)) {
break
}
for {
@@ -7436,7 +7434,7 @@ func Xsysconf(tls *TLS, name int32) (r int64) {
_4:
;
p5 = bp + 16 + uintptr(i)
- *(*uint8)(unsafe.Pointer(p5)) = uint8(int32(*(*uint8)(unsafe.Pointer(p5))) & (int32((*(*[128]uint8)(unsafe.Pointer(bp + 16)))[i]) - Int32FromInt32(1)))
+ *(*uint8)(unsafe.Pointer(p5)) = uint8(int32(*(*uint8)(unsafe.Pointer(p5))) & (Int32FromUint8((*(*[128]uint8)(unsafe.Pointer(bp + 16)))[i]) - Int32FromInt32(1)))
cnt++
}
goto _2
@@ -7464,11 +7462,11 @@ func Xsysconf(tls *TLS, name int32) (r int64) {
} else {
v6 = mem
}
- return int64(v6)
+ return Int64FromUint64(v6)
case (-Int32FromInt32(256) | Int32FromInt32(12)) & Int32FromInt32(255):
fallthrough
case (-Int32FromInt32(256) | Int32FromInt32(13)) & Int32FromInt32(255):
- val = int64(X__getauxval(tls, uint64(AT_MINSIGSTKSZ)))
+ val = Int64FromUint64(X__getauxval(tls, uint64(AT_MINSIGSTKSZ)))
if val < int64(MINSIGSTKSZ) {
val = int64(MINSIGSTKSZ)
}
@@ -9098,14 +9096,14 @@ func _BF_set_key(tls *TLS, key uintptr, expanded uintptr, initial uintptr, flags
* Prefix "$2x$": bug = 1, safety = 0
* Prefix "$2y$": bug = 0, safety = 0
*/
- bug = uint32(int32(flags) & int32(1))
+ bug = Uint32FromInt32(Int32FromUint8(flags) & int32(1))
safety = uint32(flags) & uint32(2) << int32(15)
v1 = Uint32FromInt32(0)
diff = v1
sign = v1
i = uint32(0)
for {
- if !(i < uint32(Int32FromInt32(BF_N)+Int32FromInt32(2))) {
+ if !(i < Uint32FromInt32(Int32FromInt32(BF_N)+Int32FromInt32(2))) {
break
}
v3 = Uint32FromInt32(0)
@@ -9119,7 +9117,7 @@ func _BF_set_key(tls *TLS, key uintptr, expanded uintptr, initial uintptr, flags
*(*TBF_word)(unsafe.Pointer(bp)) <<= uint32(8)
*(*TBF_word)(unsafe.Pointer(bp)) |= uint32(*(*uint8)(unsafe.Pointer(ptr))) /* correct */
*(*TBF_word)(unsafe.Pointer(bp + 1*4)) <<= uint32(8)
- *(*TBF_word)(unsafe.Pointer(bp + 1*4)) |= uint32(int8(*(*uint8)(unsafe.Pointer(ptr)))) /* bug */
+ *(*TBF_word)(unsafe.Pointer(bp + 1*4)) |= Uint32FromInt8(Int8FromUint8(*(*uint8)(unsafe.Pointer(ptr)))) /* bug */
/*
* Sign extension in the first char has no effect - nothing to overwrite yet,
* and those extra 24 bits will be fully shifted out of the 32-bit word. For
@@ -9199,15 +9197,15 @@ func _BF_crypt(tls *TLS, key uintptr, setting uintptr, output uintptr, min TBF_w
}
}
_, _, _, _, _, _, _, _, _, _, _, _, _ = L, L1, R, count, done, i, ptr, tmp1, tmp2, tmp3, tmp4, v1, v6
- if int32(*(*uint8)(unsafe.Pointer(setting))) != int32('$') || int32(*(*uint8)(unsafe.Pointer(setting + 1))) != int32('2') || uint32(int32(*(*uint8)(unsafe.Pointer(setting + 2)))-int32('a')) > uint32(25) || !(_flags_by_subtype[int32(*(*uint8)(unsafe.Pointer(setting + 2)))-int32('a')] != 0) || int32(*(*uint8)(unsafe.Pointer(setting + 3))) != int32('$') || uint32(int32(*(*uint8)(unsafe.Pointer(setting + 4)))-int32('0')) > uint32(1) || uint32(int32(*(*uint8)(unsafe.Pointer(setting + 5)))-int32('0')) > uint32(9) || int32(*(*uint8)(unsafe.Pointer(setting + 6))) != int32('$') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(setting))) != int32('$') || Int32FromUint8(*(*uint8)(unsafe.Pointer(setting + 1))) != int32('2') || Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(setting + 2)))-int32('a')) > uint32(25) || !(_flags_by_subtype[Int32FromUint8(*(*uint8)(unsafe.Pointer(setting + 2)))-int32('a')] != 0) || Int32FromUint8(*(*uint8)(unsafe.Pointer(setting + 3))) != int32('$') || Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(setting + 4)))-int32('0')) > uint32(1) || Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(setting + 5)))-int32('0')) > uint32(9) || Int32FromUint8(*(*uint8)(unsafe.Pointer(setting + 6))) != int32('$') {
return UintptrFromInt32(0)
}
- count = Uint32FromInt32(1) << ((int32(*(*uint8)(unsafe.Pointer(setting + 4)))-int32('0'))*int32(10) + (int32(*(*uint8)(unsafe.Pointer(setting + 5))) - int32('0')))
+ count = Uint32FromInt32(1) << ((Int32FromUint8(*(*uint8)(unsafe.Pointer(setting + 4)))-int32('0'))*int32(10) + (Int32FromUint8(*(*uint8)(unsafe.Pointer(setting + 5))) - int32('0')))
if count < min || _BF_decode(tls, bp+4240, setting+7, int32(16)) != 0 {
return UintptrFromInt32(0)
}
_BF_swap(tls, bp+4240, int32(4))
- _BF_set_key(tls, key, bp+4168, bp, _flags_by_subtype[int32(*(*uint8)(unsafe.Pointer(setting + 2)))-int32('a')])
+ _BF_set_key(tls, key, bp+4168, bp, _flags_by_subtype[Int32FromUint8(*(*uint8)(unsafe.Pointer(setting + 2)))-int32('a')])
Xmemcpy(tls, bp+72, uintptr(unsafe.Pointer(&_BF_init_state))+72, uint64(4096))
L = uint32(0)
R = uint32(0)
@@ -9299,8 +9297,8 @@ func _BF_crypt(tls *TLS, key uintptr, setting uintptr, output uintptr, min TBF_w
;
i += int32(2)
}
- Xmemcpy(tls, output, setting, uint64(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1)))
- *(*uint8)(unsafe.Pointer(output + uintptr(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1)))) = _BF_itoa64[int32(_BF_atoi64[int32(*(*uint8)(unsafe.Pointer(setting + uintptr(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1)))))-int32(0x20)])&int32(0x30)]
+ Xmemcpy(tls, output, setting, Uint64FromInt32(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1)))
+ *(*uint8)(unsafe.Pointer(output + uintptr(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1)))) = _BF_itoa64[Int32FromUint8(_BF_atoi64[Int32FromUint8(*(*uint8)(unsafe.Pointer(setting + uintptr(Int32FromInt32(7)+Int32FromInt32(22)-Int32FromInt32(1)))))-int32(0x20)])&int32(0x30)]
/* This has to be bug-compatible with the original implementation, so
* only encode 23 of the 24 bytes. :-) */
_BF_swap(tls, bp+4240, int32(6))
@@ -9364,14 +9362,14 @@ func X__crypt_blowfish(tls *TLS, key uintptr, setting uintptr, output uintptr) (
*/
Xmemcpy(tls, bp, test_setting, uint64(30))
if retval != 0 {
- flags = uint32(_flags_by_subtype[int32(*(*uint8)(unsafe.Pointer(setting + 2)))-int32('a')])
+ flags = uint32(_flags_by_subtype[Int32FromUint8(*(*uint8)(unsafe.Pointer(setting + 2)))-int32('a')])
test_hash = uintptr(unsafe.Pointer(&_test_hashes)) + uintptr(flags&uint32(1))*34
*(*uint8)(unsafe.Pointer(bp + 2)) = *(*uint8)(unsafe.Pointer(setting + 2))
}
Xmemset(tls, bp+30, int32(0x55), uint64(63))
*(*uint8)(unsafe.Pointer(bp + 30 + uintptr(Uint64FromInt64(63)-Uint64FromInt32(1)))) = uint8(0)
p = _BF_crypt(tls, test_key, bp, bp+30, uint32(1))
- ok = BoolInt32(p == bp+30 && !(Xmemcmp(tls, p, bp, uint64(Int32FromInt32(7)+Int32FromInt32(22))) != 0) && !(Xmemcmp(tls, p+uintptr(Int32FromInt32(7)+Int32FromInt32(22)), test_hash, uint64(Int32FromInt32(31)+Int32FromInt32(1)+Int32FromInt32(1)+Int32FromInt32(1))) != 0))
+ ok = BoolInt32(p == bp+30 && !(Xmemcmp(tls, p, bp, Uint64FromInt32(Int32FromInt32(7)+Int32FromInt32(22))) != 0) && !(Xmemcmp(tls, p+uintptr(Int32FromInt32(7)+Int32FromInt32(22)), test_hash, Uint64FromInt32(Int32FromInt32(31)+Int32FromInt32(1)+Int32FromInt32(1)+Int32FromInt32(1))) != 0))
k = __ccgo_ts + 58
_BF_set_key(tls, k, bp+96, bp+168, uint8(2)) /* $2a$ */
_BF_set_key(tls, k, bp+240, bp+312, uint8(4)) /* $2y$ */
@@ -11181,7 +11179,7 @@ func _ascii_to_bin(tls *TLS, ch int32) (r Tuint32_t) {
}
}
retval &= int32(0x3f)
- return uint32(retval)
+ return Uint32FromInt32(retval)
}
// C documentation
@@ -11191,7 +11189,7 @@ func _ascii_to_bin(tls *TLS, ch int32) (r Tuint32_t) {
// * containing characters that would violate the passwd file format.
// */
func _ascii_is_unsafe(tls *TLS, ch uint8) (r int32) {
- return BoolInt32(!(ch != 0) || int32(ch) == int32('\n') || int32(ch) == int32(':'))
+ return BoolInt32(!(ch != 0) || Int32FromUint8(ch) == int32('\n') || Int32FromUint8(ch) == int32(':'))
}
func _setup_salt(tls *TLS, salt Tuint32_t) (r Tuint32_t) {
@@ -11442,13 +11440,13 @@ func __crypt_extended_r_uut(tls *TLS, _key uintptr, _setting uintptr, output uin
for q <= bp+128+uintptr(Uint64FromInt64(8)-Uint64FromInt32(1)) {
v1 = q
q++
- *(*uint8)(unsafe.Pointer(v1)) = uint8(int32(*(*uint8)(unsafe.Pointer(key))) << int32(1))
+ *(*uint8)(unsafe.Pointer(v1)) = Uint8FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(key))) << int32(1))
if *(*uint8)(unsafe.Pointer(key)) != 0 {
key++
}
}
X__des_setkey(tls, bp+128, bp)
- if int32(*(*uint8)(unsafe.Pointer(setting))) == int32('_') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(setting))) == int32('_') {
/*
* "new"-style:
* setting - underscore, 4 chars of count, 4 chars of salt
@@ -11460,8 +11458,8 @@ func __crypt_extended_r_uut(tls *TLS, _key uintptr, _setting uintptr, output uin
if !(i < uint32(5)) {
break
}
- value = _ascii_to_bin(tls, int32(*(*uint8)(unsafe.Pointer(setting + uintptr(i)))))
- if int32(_ascii64[value]) != int32(*(*uint8)(unsafe.Pointer(setting + uintptr(i)))) {
+ value = _ascii_to_bin(tls, Int32FromUint8(*(*uint8)(unsafe.Pointer(setting + uintptr(i)))))
+ if Int32FromUint8(_ascii64[value]) != Int32FromUint8(*(*uint8)(unsafe.Pointer(setting + uintptr(i)))) {
return UintptrFromInt32(0)
}
count |= value << ((i - uint32(1)) * uint32(6))
@@ -11479,8 +11477,8 @@ func __crypt_extended_r_uut(tls *TLS, _key uintptr, _setting uintptr, output uin
if !(i < uint32(9)) {
break
}
- value1 = _ascii_to_bin(tls, int32(*(*uint8)(unsafe.Pointer(setting + uintptr(i)))))
- if int32(_ascii64[value1]) != int32(*(*uint8)(unsafe.Pointer(setting + uintptr(i)))) {
+ value1 = _ascii_to_bin(tls, Int32FromUint8(*(*uint8)(unsafe.Pointer(setting + uintptr(i)))))
+ if Int32FromUint8(_ascii64[value1]) != Int32FromUint8(*(*uint8)(unsafe.Pointer(setting + uintptr(i)))) {
return UintptrFromInt32(0)
}
salt |= value1 << ((i - uint32(5)) * uint32(6))
@@ -11504,7 +11502,7 @@ func __crypt_extended_r_uut(tls *TLS, _key uintptr, _setting uintptr, output uin
p4 = v5
v6 = key
key++
- *(*uint8)(unsafe.Pointer(p4)) = uint8(int32(*(*uint8)(unsafe.Pointer(p4))) ^ int32(*(*uint8)(unsafe.Pointer(v6)))<<Int32FromInt32(1))
+ *(*uint8)(unsafe.Pointer(p4)) = uint8(int32(*(*uint8)(unsafe.Pointer(p4))) ^ Int32FromUint8(*(*uint8)(unsafe.Pointer(v6)))<<Int32FromInt32(1))
}
X__des_setkey(tls, bp+128, bp)
}
@@ -11521,7 +11519,7 @@ func __crypt_extended_r_uut(tls *TLS, _key uintptr, _setting uintptr, output uin
if _ascii_is_unsafe(tls, *(*uint8)(unsafe.Pointer(setting))) != 0 || _ascii_is_unsafe(tls, *(*uint8)(unsafe.Pointer(setting + 1))) != 0 {
return UintptrFromInt32(0)
}
- salt = _ascii_to_bin(tls, int32(*(*uint8)(unsafe.Pointer(setting + 1))))<<Int32FromInt32(6) | _ascii_to_bin(tls, int32(*(*uint8)(unsafe.Pointer(setting))))
+ salt = _ascii_to_bin(tls, Int32FromUint8(*(*uint8)(unsafe.Pointer(setting + 1))))<<Int32FromInt32(6) | _ascii_to_bin(tls, Int32FromUint8(*(*uint8)(unsafe.Pointer(setting))))
*(*uint8)(unsafe.Pointer(output)) = *(*uint8)(unsafe.Pointer(setting))
*(*uint8)(unsafe.Pointer(output + 1)) = *(*uint8)(unsafe.Pointer(setting + 1))
p = output + uintptr(2)
@@ -11586,7 +11584,7 @@ func X__crypt_des(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uin
test_key = __ccgo_ts + 72
test_setting = __ccgo_ts + 93
test_hash = __ccgo_ts + 103
- if int32(*(*uint8)(unsafe.Pointer(setting))) != int32('_') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(setting))) != int32('_') {
test_setting = __ccgo_ts + 124
test_hash = __ccgo_ts + 127
}
@@ -11605,7 +11603,7 @@ func X__crypt_des(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uin
if p != 0 && !(Xstrcmp(tls, p, test_hash) != 0) && retval != 0 {
return retval
}
- if int32(*(*uint8)(unsafe.Pointer(setting))) == int32('*') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(setting))) == int32('*') {
v1 = __ccgo_ts + 141
} else {
v1 = __ccgo_ts + 70
@@ -11923,7 +11921,7 @@ func _md5crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintpt
var _ /* md at bp+88 */ [16]uint8
_, _, _, _, _, _ = i, klen, p, salt, slen, v5
/* reject large keys */
- klen = uint32(Xstrnlen(tls, key, uint64(Int32FromInt32(KEY_MAX)+Int32FromInt32(1))))
+ klen = uint32(Xstrnlen(tls, key, Uint64FromInt32(Int32FromInt32(KEY_MAX)+Int32FromInt32(1))))
if klen > uint32(KEY_MAX) {
return uintptr(0)
}
@@ -11934,7 +11932,7 @@ func _md5crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintpt
salt = setting + uintptr(3)
i = uint32(0)
for {
- if !(i < uint32(SALT_MAX) && *(*uint8)(unsafe.Pointer(salt + uintptr(i))) != 0 && int32(*(*uint8)(unsafe.Pointer(salt + uintptr(i)))) != int32('$')) {
+ if !(i < uint32(SALT_MAX) && *(*uint8)(unsafe.Pointer(salt + uintptr(i))) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(salt + uintptr(i)))) != int32('$')) {
break
}
goto _1
@@ -12022,7 +12020,7 @@ func _md5crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r uintpt
if !(i < uint32(5)) {
break
}
- p = _to64(tls, p, uint32(int32((*(*[16]uint8)(unsafe.Pointer(bp + 88)))[*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_perm)) + uintptr(i)*3))])<<int32(16)|int32((*(*[16]uint8)(unsafe.Pointer(bp + 88)))[*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_perm)) + uintptr(i)*3 + 1))])<<int32(8)|int32((*(*[16]uint8)(unsafe.Pointer(bp + 88)))[*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_perm)) + uintptr(i)*3 + 2))])), int32(4))
+ p = _to64(tls, p, Uint32FromInt32(Int32FromUint8((*(*[16]uint8)(unsafe.Pointer(bp + 88)))[*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_perm)) + uintptr(i)*3))])<<int32(16)|Int32FromUint8((*(*[16]uint8)(unsafe.Pointer(bp + 88)))[*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_perm)) + uintptr(i)*3 + 1))])<<int32(8)|Int32FromUint8((*(*[16]uint8)(unsafe.Pointer(bp + 88)))[*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_perm)) + uintptr(i)*3 + 2))])), int32(4))
goto _6
_6:
;
@@ -12097,17 +12095,17 @@ func X__crypt_r(tls *TLS, key uintptr, salt uintptr, data uintptr) (r uintptr) {
* use the structure to store any internal state, and treats
* it purely as a char buffer for storing the result. */
output = data
- if int32(*(*uint8)(unsafe.Pointer(salt))) == int32('$') && *(*uint8)(unsafe.Pointer(salt + 1)) != 0 && *(*uint8)(unsafe.Pointer(salt + 2)) != 0 {
- if int32(*(*uint8)(unsafe.Pointer(salt + 1))) == int32('1') && int32(*(*uint8)(unsafe.Pointer(salt + 2))) == int32('$') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(salt))) == int32('$') && *(*uint8)(unsafe.Pointer(salt + 1)) != 0 && *(*uint8)(unsafe.Pointer(salt + 2)) != 0 {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(salt + 1))) == int32('1') && Int32FromUint8(*(*uint8)(unsafe.Pointer(salt + 2))) == int32('$') {
return X__crypt_md5(tls, key, salt, output)
}
- if int32(*(*uint8)(unsafe.Pointer(salt + 1))) == int32('2') && int32(*(*uint8)(unsafe.Pointer(salt + 3))) == int32('$') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(salt + 1))) == int32('2') && Int32FromUint8(*(*uint8)(unsafe.Pointer(salt + 3))) == int32('$') {
return X__crypt_blowfish(tls, key, salt, output)
}
- if int32(*(*uint8)(unsafe.Pointer(salt + 1))) == int32('5') && int32(*(*uint8)(unsafe.Pointer(salt + 2))) == int32('$') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(salt + 1))) == int32('5') && Int32FromUint8(*(*uint8)(unsafe.Pointer(salt + 2))) == int32('$') {
return X__crypt_sha256(tls, key, salt, output)
}
- if int32(*(*uint8)(unsafe.Pointer(salt + 1))) == int32('6') && int32(*(*uint8)(unsafe.Pointer(salt + 2))) == int32('$') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(salt + 1))) == int32('6') && Int32FromUint8(*(*uint8)(unsafe.Pointer(salt + 2))) == int32('$') {
return X__crypt_sha512(tls, key, salt, output)
}
}
@@ -12423,7 +12421,7 @@ func _sha256crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 ui
_, _, _, _, _, _, _ = i, klen, p, r, salt, slen, u
*(*[20]uint8)(unsafe.Pointer(bp + 200)) = [20]uint8{}
/* reject large keys */
- klen = uint32(Xstrnlen(tls, key, uint64(Int32FromInt32(KEY_MAX1)+Int32FromInt32(1))))
+ klen = uint32(Xstrnlen(tls, key, Uint64FromInt32(Int32FromInt32(KEY_MAX1)+Int32FromInt32(1))))
if klen > uint32(KEY_MAX1) {
return uintptr(0)
}
@@ -12451,7 +12449,7 @@ func _sha256crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 ui
return uintptr(0)
}
u = Xstrtoul(tls, salt, bp+224, int32(10))
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 224))))) != int32('$') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 224))))) != int32('$') {
return uintptr(0)
}
salt = *(*uintptr)(unsafe.Pointer(bp + 224)) + uintptr(1)
@@ -12469,11 +12467,11 @@ func _sha256crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 ui
}
i = uint32(0)
for {
- if !(i < uint32(SALT_MAX1) && *(*uint8)(unsafe.Pointer(salt + uintptr(i))) != 0 && int32(*(*uint8)(unsafe.Pointer(salt + uintptr(i)))) != int32('$')) {
+ if !(i < uint32(SALT_MAX1) && *(*uint8)(unsafe.Pointer(salt + uintptr(i))) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(salt + uintptr(i)))) != int32('$')) {
break
}
/* reject characters that interfere with /etc/shadow parsing */
- if int32(*(*uint8)(unsafe.Pointer(salt + uintptr(i)))) == int32('\n') || int32(*(*uint8)(unsafe.Pointer(salt + uintptr(i)))) == int32(':') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(salt + uintptr(i)))) == int32('\n') || Int32FromUint8(*(*uint8)(unsafe.Pointer(salt + uintptr(i)))) == int32(':') {
return uintptr(0)
}
goto _1
@@ -12527,7 +12525,7 @@ func _sha256crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 ui
_sha256_init(tls, bp)
i = uint32(0)
for {
- if !(i < uint32(int32(16)+int32((*(*[32]uint8)(unsafe.Pointer(bp + 104)))[0]))) {
+ if !(i < Uint32FromInt32(int32(16)+Int32FromUint8((*(*[32]uint8)(unsafe.Pointer(bp + 104)))[0]))) {
break
}
_sha256_update(tls, bp, salt, uint64(slen))
@@ -12574,13 +12572,13 @@ func _sha256crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 ui
if !(i < uint32(10)) {
break
}
- p = _to641(tls, p, uint32(int32((*(*[32]uint8)(unsafe.Pointer(bp + 104)))[*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_perm1)) + uintptr(i)*3))])<<int32(16)|int32((*(*[32]uint8)(unsafe.Pointer(bp + 104)))[*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_perm1)) + uintptr(i)*3 + 1))])<<int32(8)|int32((*(*[32]uint8)(unsafe.Pointer(bp + 104)))[*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_perm1)) + uintptr(i)*3 + 2))])), int32(4))
+ p = _to641(tls, p, Uint32FromInt32(Int32FromUint8((*(*[32]uint8)(unsafe.Pointer(bp + 104)))[*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_perm1)) + uintptr(i)*3))])<<int32(16)|Int32FromUint8((*(*[32]uint8)(unsafe.Pointer(bp + 104)))[*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_perm1)) + uintptr(i)*3 + 1))])<<int32(8)|Int32FromUint8((*(*[32]uint8)(unsafe.Pointer(bp + 104)))[*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_perm1)) + uintptr(i)*3 + 2))])), int32(4))
goto _6
_6:
;
i++
}
- p = _to641(tls, p, uint32(int32((*(*[32]uint8)(unsafe.Pointer(bp + 104)))[int32(31)])<<int32(8)|int32((*(*[32]uint8)(unsafe.Pointer(bp + 104)))[int32(30)])), int32(3))
+ p = _to641(tls, p, Uint32FromInt32(Int32FromUint8((*(*[32]uint8)(unsafe.Pointer(bp + 104)))[int32(31)])<<int32(8)|Int32FromUint8((*(*[32]uint8)(unsafe.Pointer(bp + 104)))[int32(30)])), int32(3))
*(*uint8)(unsafe.Pointer(p)) = uint8(0)
return output
}
@@ -13020,7 +13018,7 @@ func _sha512crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 ui
return uintptr(0)
}
u = Xstrtoul(tls, salt, bp+416, int32(10))
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 416))))) != int32('$') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 416))))) != int32('$') {
return uintptr(0)
}
salt = *(*uintptr)(unsafe.Pointer(bp + 416)) + uintptr(1)
@@ -13038,11 +13036,11 @@ func _sha512crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 ui
}
i = uint32(0)
for {
- if !(i < uint32(SALT_MAX1) && *(*uint8)(unsafe.Pointer(salt + uintptr(i))) != 0 && int32(*(*uint8)(unsafe.Pointer(salt + uintptr(i)))) != int32('$')) {
+ if !(i < uint32(SALT_MAX1) && *(*uint8)(unsafe.Pointer(salt + uintptr(i))) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(salt + uintptr(i)))) != int32('$')) {
break
}
/* reject characters that interfere with /etc/shadow parsing */
- if int32(*(*uint8)(unsafe.Pointer(salt + uintptr(i)))) == int32('\n') || int32(*(*uint8)(unsafe.Pointer(salt + uintptr(i)))) == int32(':') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(salt + uintptr(i)))) == int32('\n') || Int32FromUint8(*(*uint8)(unsafe.Pointer(salt + uintptr(i)))) == int32(':') {
return uintptr(0)
}
goto _2
@@ -13096,7 +13094,7 @@ func _sha512crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 ui
_sha512_init(tls, bp)
i = uint32(0)
for {
- if !(i < uint32(int32(16)+int32((*(*[64]uint8)(unsafe.Pointer(bp + 200)))[0]))) {
+ if !(i < Uint32FromInt32(int32(16)+Int32FromUint8((*(*[64]uint8)(unsafe.Pointer(bp + 200)))[0]))) {
break
}
_sha512_update(tls, bp, salt, uint64(slen))
@@ -13143,7 +13141,7 @@ func _sha512crypt(tls *TLS, key uintptr, setting uintptr, output uintptr) (r1 ui
if !(i < uint32(21)) {
break
}
- p = _to642(tls, p, uint32(int32((*(*[64]uint8)(unsafe.Pointer(bp + 200)))[*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_perm2)) + uintptr(i)*3))])<<int32(16)|int32((*(*[64]uint8)(unsafe.Pointer(bp + 200)))[*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_perm2)) + uintptr(i)*3 + 1))])<<int32(8)|int32((*(*[64]uint8)(unsafe.Pointer(bp + 200)))[*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_perm2)) + uintptr(i)*3 + 2))])), int32(4))
+ p = _to642(tls, p, Uint32FromInt32(Int32FromUint8((*(*[64]uint8)(unsafe.Pointer(bp + 200)))[*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_perm2)) + uintptr(i)*3))])<<int32(16)|Int32FromUint8((*(*[64]uint8)(unsafe.Pointer(bp + 200)))[*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_perm2)) + uintptr(i)*3 + 1))])<<int32(8)|Int32FromUint8((*(*[64]uint8)(unsafe.Pointer(bp + 200)))[*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_perm2)) + uintptr(i)*3 + 2))])), int32(4))
goto _7
_7:
;
@@ -13310,7 +13308,7 @@ func Xsetkey(tls *TLS, key uintptr) {
break
}
p3 = bp + uintptr(i)
- *(*uint8)(unsafe.Pointer(p3)) = uint8(uint32(*(*uint8)(unsafe.Pointer(p3))) | uint32(int32(*(*uint8)(unsafe.Pointer(key)))&Int32FromInt32(1))<<j)
+ *(*uint8)(unsafe.Pointer(p3)) = uint8(uint32(*(*uint8)(unsafe.Pointer(p3))) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(key)))&Int32FromInt32(1))<<j)
goto _2
_2:
;
@@ -13348,7 +13346,7 @@ func Xencrypt(tls *TLS, block uintptr, edflag int32) {
if !(j >= 0) {
break
}
- *(*Tuint32_t)(unsafe.Pointer(bp + 128 + uintptr(i)*4)) |= uint32(int32(*(*uint8)(unsafe.Pointer(p)))&Int32FromInt32(1)) << j
+ *(*Tuint32_t)(unsafe.Pointer(bp + 128 + uintptr(i)*4)) |= Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(p)))&Int32FromInt32(1)) << j
goto _2
_2:
;
@@ -13404,134 +13402,134 @@ func Xencrypt(tls *TLS, block uintptr, edflag int32) {
}
var _table = [384]uint16{
- 128: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 129: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 130: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 131: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 132: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 133: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 134: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 135: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 136: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 137: uint16((Int32FromInt32(0x320)/Int32FromInt32(256) | Int32FromInt32(0x320)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 138: uint16((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 139: uint16((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 140: uint16((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 141: uint16((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 142: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 143: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 144: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 145: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 146: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 147: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 148: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 149: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 150: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 151: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 152: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 153: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 154: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 155: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 156: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 157: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 158: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 159: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 160: uint16((Int32FromInt32(0x160)/Int32FromInt32(256) | Int32FromInt32(0x160)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 161: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 162: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 163: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 164: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 165: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 166: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 167: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 168: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 169: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 170: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 171: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 172: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 173: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 174: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 175: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 176: uint16((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 177: uint16((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 178: uint16((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 179: uint16((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 180: uint16((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 181: uint16((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 182: uint16((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 183: uint16((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 184: uint16((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 185: uint16((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 186: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 187: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 188: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 189: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 190: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 191: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 192: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 193: uint16((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 194: uint16((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 195: uint16((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 196: uint16((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 197: uint16((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 198: uint16((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 199: uint16((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 200: uint16((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 201: uint16((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 202: uint16((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 203: uint16((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 204: uint16((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 205: uint16((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 206: uint16((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 207: uint16((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 208: uint16((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 209: uint16((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 210: uint16((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 211: uint16((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 212: uint16((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 213: uint16((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 214: uint16((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 215: uint16((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 216: uint16((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 217: uint16((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 218: uint16((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 219: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 220: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 221: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 222: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 223: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 224: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 225: uint16((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 226: uint16((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 227: uint16((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 228: uint16((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 229: uint16((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 230: uint16((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 231: uint16((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 232: uint16((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 233: uint16((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 234: uint16((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 235: uint16((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 236: uint16((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 237: uint16((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 238: uint16((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 239: uint16((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 240: uint16((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 241: uint16((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 242: uint16((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 243: uint16((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 244: uint16((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 245: uint16((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 246: uint16((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 247: uint16((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 248: uint16((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 249: uint16((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 250: uint16((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 251: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 252: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 253: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 254: uint16((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
- 255: uint16((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 128: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 129: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 130: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 131: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 132: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 133: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 134: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 135: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 136: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 137: Uint16FromInt32((Int32FromInt32(0x320)/Int32FromInt32(256) | Int32FromInt32(0x320)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 138: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 139: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 140: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 141: Uint16FromInt32((Int32FromInt32(0x220)/Int32FromInt32(256) | Int32FromInt32(0x220)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 142: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 143: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 144: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 145: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 146: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 147: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 148: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 149: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 150: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 151: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 152: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 153: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 154: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 155: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 156: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 157: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 158: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 159: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 160: Uint16FromInt32((Int32FromInt32(0x160)/Int32FromInt32(256) | Int32FromInt32(0x160)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 161: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 162: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 163: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 164: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 165: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 166: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 167: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 168: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 169: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 170: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 171: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 172: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 173: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 174: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 175: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 176: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 177: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 178: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 179: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 180: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 181: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 182: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 183: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 184: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 185: Uint16FromInt32((Int32FromInt32(0x8d8)/Int32FromInt32(256) | Int32FromInt32(0x8d8)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 186: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 187: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 188: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 189: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 190: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 191: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 192: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 193: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 194: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 195: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 196: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 197: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 198: Uint16FromInt32((Int32FromInt32(0x8d5)/Int32FromInt32(256) | Int32FromInt32(0x8d5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 199: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 200: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 201: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 202: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 203: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 204: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 205: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 206: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 207: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 208: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 209: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 210: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 211: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 212: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 213: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 214: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 215: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 216: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 217: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 218: Uint16FromInt32((Int32FromInt32(0x8c5)/Int32FromInt32(256) | Int32FromInt32(0x8c5)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 219: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 220: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 221: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 222: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 223: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 224: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 225: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 226: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 227: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 228: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 229: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 230: Uint16FromInt32((Int32FromInt32(0x8d6)/Int32FromInt32(256) | Int32FromInt32(0x8d6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 231: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 232: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 233: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 234: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 235: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 236: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 237: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 238: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 239: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 240: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 241: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 242: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 243: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 244: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 245: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 246: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 247: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 248: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 249: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 250: Uint16FromInt32((Int32FromInt32(0x8c6)/Int32FromInt32(256) | Int32FromInt32(0x8c6)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 251: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 252: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 253: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 254: Uint16FromInt32((Int32FromInt32(0x4c0)/Int32FromInt32(256) | Int32FromInt32(0x4c0)*Int32FromInt32(256)) % Int32FromInt32(65536)),
+ 255: Uint16FromInt32((Int32FromInt32(0x200)/Int32FromInt32(256) | Int32FromInt32(0x200)*Int32FromInt32(256)) % Int32FromInt32(65536)),
}
var _ptable = uintptr(unsafe.Pointer(&_table)) + uintptr(128)*2
@@ -13874,7 +13872,7 @@ func X__ctype_get_mb_cur_max(tls *TLS) (r Tsize_t) {
} else {
v1 = int32(1)
}
- return uint64(v1)
+ return Uint64FromInt32(v1)
}
var _table1 = [384]Tint32_t{
@@ -14162,7 +14160,7 @@ func Xisalnum(tls *TLS, c int32) (r int32) {
trc("tls=%v c=%v, (%v:)", tls, c, origin(2))
defer func() { trc("-> %v", r) }()
}
- return BoolInt32(BoolInt32(uint32(c)|uint32(32)-uint32('a') < uint32(26)) != 0 || BoolInt32(uint32(c)-uint32('0') < uint32(10)) != 0)
+ return BoolInt32(BoolInt32(Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(26)) != 0 || BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) != 0)
}
func X__isalnum_l(tls *TLS, c int32, l Tlocale_t) (r int32) {
@@ -14186,7 +14184,7 @@ func Xisalpha(tls *TLS, c int32) (r int32) {
trc("tls=%v c=%v, (%v:)", tls, c, origin(2))
defer func() { trc("-> %v", r) }()
}
- return BoolInt32(uint32(c)|uint32(32)-uint32('a') < uint32(26))
+ return BoolInt32(Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(26))
}
func X__isalpha_l(tls *TLS, c int32, l Tlocale_t) (r int32) {
@@ -14242,7 +14240,7 @@ func Xiscntrl(tls *TLS, c int32) (r int32) {
trc("tls=%v c=%v, (%v:)", tls, c, origin(2))
defer func() { trc("-> %v", r) }()
}
- return BoolInt32(uint32(c) < uint32(0x20) || c == int32(0x7f))
+ return BoolInt32(Uint32FromInt32(c) < uint32(0x20) || c == int32(0x7f))
}
func X__iscntrl_l(tls *TLS, c int32, l Tlocale_t) (r int32) {
@@ -14266,7 +14264,7 @@ func Xisdigit(tls *TLS, c int32) (r int32) {
trc("tls=%v c=%v, (%v:)", tls, c, origin(2))
defer func() { trc("-> %v", r) }()
}
- return BoolInt32(uint32(c)-uint32('0') < uint32(10))
+ return BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10))
}
func X__isdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) {
@@ -14290,7 +14288,7 @@ func Xisgraph(tls *TLS, c int32) (r int32) {
trc("tls=%v c=%v, (%v:)", tls, c, origin(2))
defer func() { trc("-> %v", r) }()
}
- return BoolInt32(uint32(c)-uint32(0x21) < uint32(0x5e))
+ return BoolInt32(Uint32FromInt32(c)-uint32(0x21) < uint32(0x5e))
}
func X__isgraph_l(tls *TLS, c int32, l Tlocale_t) (r int32) {
@@ -14314,7 +14312,7 @@ func Xislower(tls *TLS, c int32) (r int32) {
trc("tls=%v c=%v, (%v:)", tls, c, origin(2))
defer func() { trc("-> %v", r) }()
}
- return BoolInt32(uint32(c)-uint32('a') < uint32(26))
+ return BoolInt32(Uint32FromInt32(c)-uint32('a') < uint32(26))
}
func X__islower_l(tls *TLS, c int32, l Tlocale_t) (r int32) {
@@ -14338,7 +14336,7 @@ func Xisprint(tls *TLS, c int32) (r int32) {
trc("tls=%v c=%v, (%v:)", tls, c, origin(2))
defer func() { trc("-> %v", r) }()
}
- return BoolInt32(uint32(c)-uint32(0x20) < uint32(0x5f))
+ return BoolInt32(Uint32FromInt32(c)-uint32(0x20) < uint32(0x5f))
}
func X__isprint_l(tls *TLS, c int32, l Tlocale_t) (r int32) {
@@ -14362,7 +14360,7 @@ func Xispunct(tls *TLS, c int32) (r int32) {
trc("tls=%v c=%v, (%v:)", tls, c, origin(2))
defer func() { trc("-> %v", r) }()
}
- return BoolInt32(BoolInt32(uint32(c)-uint32(0x21) < uint32(0x5e)) != 0 && !(Xisalnum(tls, c) != 0))
+ return BoolInt32(BoolInt32(Uint32FromInt32(c)-uint32(0x21) < uint32(0x5e)) != 0 && !(Xisalnum(tls, c) != 0))
}
func X__ispunct_l(tls *TLS, c int32, l Tlocale_t) (r int32) {
@@ -14386,7 +14384,7 @@ func Xisspace(tls *TLS, c int32) (r int32) {
trc("tls=%v c=%v, (%v:)", tls, c, origin(2))
defer func() { trc("-> %v", r) }()
}
- return BoolInt32(c == int32(' ') || uint32(c)-uint32('\t') < uint32(5))
+ return BoolInt32(c == int32(' ') || Uint32FromInt32(c)-uint32('\t') < uint32(5))
}
func X__isspace_l(tls *TLS, c int32, l Tlocale_t) (r int32) {
@@ -14410,7 +14408,7 @@ func Xisupper(tls *TLS, c int32) (r int32) {
trc("tls=%v c=%v, (%v:)", tls, c, origin(2))
defer func() { trc("-> %v", r) }()
}
- return BoolInt32(uint32(c)-uint32('A') < uint32(26))
+ return BoolInt32(Uint32FromInt32(c)-uint32('A') < uint32(26))
}
func X__isupper_l(tls *TLS, c int32, l Tlocale_t) (r int32) {
@@ -17303,7 +17301,7 @@ func Xiswalpha(tls *TLS, wc Twint_t) (r int32) {
defer func() { trc("-> %v", r) }()
}
if wc < uint32(0x20000) {
- return int32(_table3[uint32(int32(_table3[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)]) >> (wc & uint32(7)) & int32(1)
+ return Int32FromUint8(_table3[Uint32FromInt32(Int32FromUint8(_table3[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)]) >> (wc & uint32(7)) & int32(1)
}
if wc < uint32(0x2fffe) {
return int32(1)
@@ -17332,7 +17330,7 @@ func Xiswblank(tls *TLS, wc Twint_t) (r int32) {
trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2))
defer func() { trc("-> %v", r) }()
}
- return Xisblank(tls, int32(wc))
+ return Xisblank(tls, Int32FromUint32(wc))
}
func X__iswblank_l(tls *TLS, c Twint_t, l Tlocale_t) (r int32) {
@@ -17436,8 +17434,8 @@ func Xwctype(tls *TLS, s uintptr) (r Twctype_t) {
if !(*(*uint8)(unsafe.Pointer(p)) != 0) {
break
}
- if int32(*(*uint8)(unsafe.Pointer(s))) == int32(*(*uint8)(unsafe.Pointer(p))) && !(Xstrcmp(tls, s, p) != 0) {
- return uint64(i)
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) && !(Xstrcmp(tls, s, p) != 0) {
+ return Uint64FromInt32(i)
}
goto _1
_1:
@@ -17571,10 +17569,10 @@ func Xiswprint(tls *TLS, wc Twint_t) (r int32) {
if wc < uint32(0xff) {
return BoolInt32((wc+uint32(1))&uint32(0x7f) >= uint32(0x21))
}
- if wc < uint32(0x2028) || wc-uint32(0x202a) < uint32(Int32FromInt32(0xd800)-Int32FromInt32(0x202a)) || wc-uint32(0xe000) < uint32(Int32FromInt32(0xfff9)-Int32FromInt32(0xe000)) {
+ if wc < uint32(0x2028) || wc-uint32(0x202a) < Uint32FromInt32(Int32FromInt32(0xd800)-Int32FromInt32(0x202a)) || wc-uint32(0xe000) < Uint32FromInt32(Int32FromInt32(0xfff9)-Int32FromInt32(0xe000)) {
return int32(1)
}
- if wc-uint32(0xfffc) > uint32(Int32FromInt32(0x10ffff)-Int32FromInt32(0xfffc)) || wc&uint32(0xfffe) == uint32(0xfffe) {
+ if wc-uint32(0xfffc) > Uint32FromInt32(Int32FromInt32(0x10ffff)-Int32FromInt32(0xfffc)) || wc&uint32(0xfffe) == uint32(0xfffe) {
return 0
}
return int32(1)
@@ -19154,7 +19152,7 @@ func Xiswpunct(tls *TLS, wc Twint_t) (r int32) {
defer func() { trc("-> %v", r) }()
}
if wc < uint32(0x20000) {
- return int32(_table4[uint32(int32(_table4[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)]) >> (wc & uint32(7)) & int32(1)
+ return Int32FromUint8(_table4[Uint32FromInt32(Int32FromUint8(_table4[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)]) >> (wc & uint32(7)) & int32(1)
}
return 0
}
@@ -19287,7 +19285,7 @@ func Xisxdigit(tls *TLS, c int32) (r int32) {
trc("tls=%v c=%v, (%v:)", tls, c, origin(2))
defer func() { trc("-> %v", r) }()
}
- return BoolInt32(BoolInt32(uint32(c)-uint32('0') < uint32(10)) != 0 || uint32(c)|uint32(32)-uint32('a') < uint32(6))
+ return BoolInt32(BoolInt32(Uint32FromInt32(c)-uint32('0') < uint32(10)) != 0 || Uint32FromInt32(c)|uint32(32)-uint32('a') < uint32(6))
}
func X__isxdigit_l(tls *TLS, c int32, l Tlocale_t) (r int32) {
@@ -19322,7 +19320,7 @@ func Xtolower(tls *TLS, c int32) (r int32) {
trc("tls=%v c=%v, (%v:)", tls, c, origin(2))
defer func() { trc("-> %v", r) }()
}
- if BoolInt32(uint32(c)-uint32('A') < uint32(26)) != 0 {
+ if BoolInt32(Uint32FromInt32(c)-uint32('A') < uint32(26)) != 0 {
return c | int32(32)
}
return c
@@ -19349,7 +19347,7 @@ func Xtoupper(tls *TLS, c int32) (r int32) {
trc("tls=%v c=%v, (%v:)", tls, c, origin(2))
defer func() { trc("-> %v", r) }()
}
- if BoolInt32(uint32(c)-uint32('a') < uint32(26)) != 0 {
+ if BoolInt32(Uint32FromInt32(c)-uint32('a') < uint32(26)) != 0 {
return c & int32(0x5f)
}
return c
@@ -22155,40 +22153,40 @@ func _casemap(tls *TLS, c uint32, dir int32) (r1 int32) {
var b, rt, try, v, x, xb, xn, y uint32
var c0, r, rd, v1 int32
_, _, _, _, _, _, _, _, _, _, _, _ = b, c0, r, rd, rt, try, v, x, xb, xn, y, v1
- c0 = int32(c)
+ c0 = Int32FromUint32(c)
if c >= uint32(0x20000) {
- return int32(c)
+ return Int32FromUint32(c)
}
b = c >> int32(8)
c &= uint32(255)
x = c / uint32(3)
y = c % uint32(3)
/* lookup entry in two-level base-6 table */
- v = uint32(_tab1[uint32(int32(_tab1[b])*int32(86))+x])
- v = v * uint32(_mt[y]) >> int32(11) % uint32(6)
+ v = uint32(_tab1[Uint32FromInt32(Int32FromUint8(_tab1[b])*int32(86))+x])
+ v = v * Uint32FromInt32(_mt[y]) >> int32(11) % uint32(6)
/* use the bit vector out of the tables as an index into
* a block-specific set of rules and decode the rule into
* a type and a case-mapping delta. */
r = _rules[uint32(_rulebases[b])+v]
- rt = uint32(r & int32(255))
+ rt = Uint32FromInt32(r & int32(255))
rd = r >> int32(8)
/* rules 0/1 are simple lower/upper case with a delta.
* apply according to desired mapping direction. */
if rt < uint32(2) {
- return int32(uint32(c0) + uint32(rd)&-(rt^uint32(dir)))
+ return Int32FromUint32(Uint32FromInt32(c0) + Uint32FromInt32(rd)&-(rt^Uint32FromInt32(dir)))
}
/* binary search. endpoints of the binary search for
* this block are stored in the rule delta field. */
- xn = uint32(rd & int32(0xff))
- xb = uint32(rd) >> int32(8)
+ xn = Uint32FromInt32(rd & int32(0xff))
+ xb = Uint32FromInt32(rd) >> int32(8)
for xn != 0 {
try = uint32(*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_exceptions)) + uintptr(xb+xn/uint32(2))*2)))
if try == c {
r = _rules[*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_exceptions)) + uintptr(xb+xn/uint32(2))*2 + 1))]
- rt = uint32(r & int32(255))
+ rt = Uint32FromInt32(r & int32(255))
rd = r >> int32(8)
if rt < uint32(2) {
- return int32(uint32(c0) + uint32(rd)&-(rt^uint32(dir)))
+ return Int32FromUint32(Uint32FromInt32(c0) + Uint32FromInt32(rd)&-(rt^Uint32FromInt32(dir)))
}
/* Hard-coded for the four exceptional titlecase */
if dir != 0 {
@@ -22220,7 +22218,7 @@ func Xtowlower(tls *TLS, wc Twint_t) (r Twint_t) {
trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2))
defer func() { trc("-> %v", r) }()
}
- return uint32(_casemap(tls, wc, 0))
+ return Uint32FromInt32(_casemap(tls, wc, 0))
}
func Xtowupper(tls *TLS, wc Twint_t) (r Twint_t) {
@@ -22228,7 +22226,7 @@ func Xtowupper(tls *TLS, wc Twint_t) (r Twint_t) {
trc("tls=%v wc=%v, (%v:)", tls, wc, origin(2))
defer func() { trc("-> %v", r) }()
}
- return uint32(_casemap(tls, wc, int32(1)))
+ return Uint32FromInt32(_casemap(tls, wc, int32(1)))
}
func X__towupper_l(tls *TLS, c Twint_t, l Tlocale_t) (r Twint_t) {
@@ -24441,10 +24439,10 @@ func Xwcwidth(tls *TLS, wc Twchar_t) (r int32) {
return v1
}
if wc&uint32(0xfffeffff) < uint32(0xfffe) {
- if int32(_table5[uint32(int32(_table5[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)])>>(wc&uint32(7))&int32(1) != 0 {
+ if Int32FromUint8(_table5[Uint32FromInt32(Int32FromUint8(_table5[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)])>>(wc&uint32(7))&int32(1) != 0 {
return 0
}
- if int32(_wtable[uint32(int32(_wtable[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)])>>(wc&uint32(7))&int32(1) != 0 {
+ if Int32FromUint8(_wtable[Uint32FromInt32(Int32FromUint8(_wtable[wc>>int32(8)])*int32(32))+wc&uint32(255)>>int32(3)])>>(wc&uint32(7))&int32(1) != 0 {
return int32(2)
}
return int32(1)
@@ -24783,7 +24781,7 @@ func Xreaddir(tls *TLS, dir uintptr) (r uintptr) {
var len1 int32
_, _ = de, len1
if (*TDIR)(unsafe.Pointer(dir)).Fbuf_pos >= (*TDIR)(unsafe.Pointer(dir)).Fbuf_end {
- len1 = int32(X__syscall3(tls, int64(SYS_getdents64), int64((*TDIR)(unsafe.Pointer(dir)).Ffd), int64(dir+24), int64(Uint64FromInt64(2048))))
+ len1 = int32(X__syscall3(tls, int64(SYS_getdents64), int64((*TDIR)(unsafe.Pointer(dir)).Ffd), int64(dir+24), Int64FromUint64(Uint64FromInt64(2048))))
if len1 <= 0 {
if len1 < 0 && len1 != -int32(ENOENT) {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = -len1
@@ -24794,7 +24792,7 @@ func Xreaddir(tls *TLS, dir uintptr) (r uintptr) {
(*TDIR)(unsafe.Pointer(dir)).Fbuf_pos = 0
}
de = dir + 24 + uintptr((*TDIR)(unsafe.Pointer(dir)).Fbuf_pos)
- *(*int32)(unsafe.Pointer(dir + 12)) += int32((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)
+ *(*int32)(unsafe.Pointer(dir + 12)) += Int32FromUint16((*Tdirent)(unsafe.Pointer(de)).Fd_reclen)
(*TDIR)(unsafe.Pointer(dir)).Ftell = (*Tdirent)(unsafe.Pointer(de)).Fd_off
return de
}
@@ -24909,7 +24907,7 @@ func Xscandir(tls *TLS, path uintptr, res uintptr, sel uintptr, cmp uintptr) (r
Xqsort(tls, names, cnt, uint64(8), cmp)
}
*(*uintptr)(unsafe.Pointer(res)) = names
- return int32(cnt)
+ return Int32FromUint64(cnt)
}
func Xseekdir(tls *TLS, dir uintptr, off int64) {
@@ -25037,14 +25035,14 @@ func Xgetenv(tls *TLS, name uintptr) (r uintptr) {
var e uintptr
var l Tsize_t
_, _ = e, l
- l = uint64(int64(X__strchrnul(tls, name, int32('='))) - int64(name))
+ l = Uint64FromInt64(int64(X__strchrnul(tls, name, int32('='))) - int64(name))
if l != 0 && !(*(*uint8)(unsafe.Pointer(name + uintptr(l))) != 0) && Xenviron != 0 {
e = Xenviron
for {
if !(*(*uintptr)(unsafe.Pointer(e)) != 0) {
break
}
- if !(Xstrncmp(tls, name, *(*uintptr)(unsafe.Pointer(e)), l) != 0) && int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(e)) + uintptr(l)))) == int32('=') {
+ if !(Xstrncmp(tls, name, *(*uintptr)(unsafe.Pointer(e)), l) != 0) && Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(e)) + uintptr(l)))) == int32('=') {
return *(*uintptr)(unsafe.Pointer(e)) + uintptr(l) + uintptr(1)
}
goto _1
@@ -25127,7 +25125,7 @@ func Xputenv(tls *TLS, s uintptr) (r int32) {
}
var l Tsize_t
_ = l
- l = uint64(int64(X__strchrnul(tls, s, int32('='))) - int64(s))
+ l = Uint64FromInt64(int64(X__strchrnul(tls, s, int32('='))) - int64(s))
if !(l != 0) || !(*(*uint8)(unsafe.Pointer(s + uintptr(l))) != 0) {
return Xunsetenv(tls, s)
}
@@ -25216,7 +25214,7 @@ func Xsetenv(tls *TLS, var1 uintptr, value uintptr, overwrite int32) (r int32) {
var v2 bool
_, _, _, _, _ = l1, l2, s, v1, v2
if v2 = !(var1 != 0); !v2 {
- v1 = uint64(int64(X__strchrnul(tls, var1, int32('='))) - int64(var1))
+ v1 = Uint64FromInt64(int64(X__strchrnul(tls, var1, int32('='))) - int64(var1))
l1 = v1
}
if v2 || !(v1 != 0) || *(*uint8)(unsafe.Pointer(var1 + uintptr(l1))) != 0 {
@@ -25248,7 +25246,7 @@ func Xunsetenv(tls *TLS, name uintptr) (r int32) {
var e, eo, v2 uintptr
var l Tsize_t
_, _, _, _ = e, eo, l, v2
- l = uint64(int64(X__strchrnul(tls, name, int32('='))) - int64(name))
+ l = Uint64FromInt64(int64(X__strchrnul(tls, name, int32('='))) - int64(name))
if !(l != 0) || *(*uint8)(unsafe.Pointer(name + uintptr(l))) != 0 {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EINVAL)
return -int32(1)
@@ -25260,7 +25258,7 @@ func Xunsetenv(tls *TLS, name uintptr) (r int32) {
if !(*(*uintptr)(unsafe.Pointer(e)) != 0) {
break
}
- if !(Xstrncmp(tls, name, *(*uintptr)(unsafe.Pointer(e)), l) != 0) && int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(e)) + uintptr(l)))) == int32('=') {
+ if !(Xstrncmp(tls, name, *(*uintptr)(unsafe.Pointer(e)), l) != 0) && Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(e)) + uintptr(l)))) == int32('=') {
X__env_rm_add(tls, *(*uintptr)(unsafe.Pointer(e)), uintptr(0))
} else {
if eo != e {
@@ -25583,7 +25581,7 @@ func X__strerror_l(tls *TLS, e int32, loc Tlocale_t) (r uintptr) {
}
var s uintptr
_ = s
- if uint64(e) >= Uint64FromInt64(264)/Uint64FromInt64(2) {
+ if Uint64FromInt32(e) >= Uint64FromInt64(264)/Uint64FromInt64(2) {
e = 0
}
s = uintptr(unsafe.Pointer(&_errmsgstr)) + uintptr(_errmsgidx[e])
@@ -25712,7 +25710,7 @@ func Xfcntl(tls *TLS, fd int32, cmd int32, va uintptr) (r int32) {
arg |= uint64(O_LARGEFILE)
}
if cmd == int32(F_SETLKW) {
- return int32(X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_fcntl), int64(fd), int64(cmd), int64(uintptr(arg)), 0, 0, 0))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_fcntl), int64(fd), int64(cmd), int64(uintptr(arg)), 0, 0, 0))))
}
if cmd == int32(F_GETOWN) {
ret = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETOWN_EX)), int64(bp)))
@@ -25720,7 +25718,7 @@ func Xfcntl(tls *TLS, fd int32, cmd int32, va uintptr) (r int32) {
return int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(cmd), int64(uintptr(arg))))
}
if ret != 0 {
- return int32(X__syscall_ret(tls, uint64(ret)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(ret)))
}
if (*(*Tf_owner_ex)(unsafe.Pointer(bp))).Ftype1 == int32(F_OWNER_PGRP) {
v1 = -(*(*Tf_owner_ex)(unsafe.Pointer(bp))).Fpid
@@ -25730,25 +25728,25 @@ func Xfcntl(tls *TLS, fd int32, cmd int32, va uintptr) (r int32) {
return v1
}
if cmd == int32(F_DUPFD_CLOEXEC) {
- ret1 = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD_CLOEXEC)), int64(arg)))
+ ret1 = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD_CLOEXEC)), Int64FromUint64(arg)))
if ret1 != -int32(EINVAL) {
if ret1 >= 0 {
X__syscall3(tls, int64(SYS_fcntl), int64(ret1), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC)))
}
- return int32(X__syscall_ret(tls, uint64(ret1)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(ret1)))
}
ret1 = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD_CLOEXEC)), int64(Int32FromInt32(0))))
if ret1 != -int32(EINVAL) {
if ret1 >= 0 {
X__syscall1(tls, int64(SYS_close), int64(ret1))
}
- return int32(X__syscall_ret(tls, uint64(-Int32FromInt32(EINVAL))))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL))))
}
- ret1 = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD)), int64(arg)))
+ ret1 = int32(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_DUPFD)), Int64FromUint64(arg)))
if ret1 >= 0 {
X__syscall3(tls, int64(SYS_fcntl), int64(ret1), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC)))
}
- return int32(X__syscall_ret(tls, uint64(ret1)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(ret1)))
}
switch cmd {
case int32(F_SETLK):
@@ -25758,9 +25756,9 @@ func Xfcntl(tls *TLS, fd int32, cmd int32, va uintptr) (r int32) {
case int32(F_GETOWN_EX):
fallthrough
case int32(F_SETOWN_EX):
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(cmd), int64(uintptr(arg))))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(cmd), int64(uintptr(arg))))))
default:
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(cmd), int64(arg)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(cmd), Int64FromUint64(arg)))))
}
return r
}
@@ -25780,11 +25778,11 @@ func Xopen(tls *TLS, filename uintptr, flags int32, va uintptr) (r int32) {
mode = VaUint32(&ap)
_ = ap
}
- fd = int32(___syscall_cp(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), int64(mode), 0, 0))
+ fd = int32(___syscall_cp(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), Int64FromUint32(mode), 0, 0))
if fd >= 0 && flags&int32(O_CLOEXEC) != 0 {
X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC)))
}
- return int32(X__syscall_ret(tls, uint64(fd)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(fd)))
}
func Xopenat(tls *TLS, fd int32, filename uintptr, flags int32, va uintptr) (r int32) {
@@ -25801,7 +25799,7 @@ func Xopenat(tls *TLS, fd int32, filename uintptr, flags int32, va uintptr) (r i
mode = VaUint32(&ap)
_ = ap
}
- return int32(X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_openat), int64(fd), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), int64(mode), 0, 0))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_openat), int64(fd), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), Int64FromUint32(mode), 0, 0))))
}
func Xposix_fadvise(tls *TLS, fd int32, base Toff_t, len1 Toff_t, advice int32) (r int32) {
@@ -25973,7 +25971,7 @@ func _scanexp(tls *TLS, f uintptr, pok int32) (r int64) {
v3 = f + 8
v2 = *(*uintptr)(unsafe.Pointer(v3))
*(*uintptr)(unsafe.Pointer(v3))++
- v1 = int32(*(*uint8)(unsafe.Pointer(v2)))
+ v1 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v2)))
} else {
v1 = X__shgetc(tls, f)
}
@@ -25984,18 +25982,18 @@ func _scanexp(tls *TLS, f uintptr, pok int32) (r int64) {
v6 = f + 8
v5 = *(*uintptr)(unsafe.Pointer(v6))
*(*uintptr)(unsafe.Pointer(v6))++
- v4 = int32(*(*uint8)(unsafe.Pointer(v5)))
+ v4 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v5)))
} else {
v4 = X__shgetc(tls, f)
}
c = v4
- if uint32(c-int32('0')) >= uint32(10) && pok != 0 {
+ if Uint32FromInt32(c-int32('0')) >= uint32(10) && pok != 0 {
if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 {
(*TFILE)(unsafe.Pointer(f)).Frpos--
}
}
}
- if uint32(c-int32('0')) >= uint32(10) {
+ if Uint32FromInt32(c-int32('0')) >= uint32(10) {
if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 {
(*TFILE)(unsafe.Pointer(f)).Frpos--
}
@@ -26003,7 +26001,7 @@ func _scanexp(tls *TLS, f uintptr, pok int32) (r int64) {
}
x = 0
for {
- if !(uint32(c-int32('0')) < uint32(10) && x < Int32FromInt32(INT_MAX)/Int32FromInt32(10)) {
+ if !(Uint32FromInt32(c-int32('0')) < uint32(10) && x < Int32FromInt32(INT_MAX)/Int32FromInt32(10)) {
break
}
x = int32(10)*x + c - int32('0')
@@ -26014,7 +26012,7 @@ func _scanexp(tls *TLS, f uintptr, pok int32) (r int64) {
v12 = f + 8
v11 = *(*uintptr)(unsafe.Pointer(v12))
*(*uintptr)(unsafe.Pointer(v12))++
- v10 = int32(*(*uint8)(unsafe.Pointer(v11)))
+ v10 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v11)))
} else {
v10 = X__shgetc(tls, f)
}
@@ -26022,7 +26020,7 @@ func _scanexp(tls *TLS, f uintptr, pok int32) (r int64) {
}
y = int64(x)
for {
- if !(uint32(c-int32('0')) < uint32(10) && y < Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(100)) {
+ if !(Uint32FromInt32(c-int32('0')) < uint32(10) && y < Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(100)) {
break
}
y = int64(10)*y + int64(c) - int64('0')
@@ -26033,14 +26031,14 @@ func _scanexp(tls *TLS, f uintptr, pok int32) (r int64) {
v16 = f + 8
v15 = *(*uintptr)(unsafe.Pointer(v16))
*(*uintptr)(unsafe.Pointer(v16))++
- v14 = int32(*(*uint8)(unsafe.Pointer(v15)))
+ v14 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v15)))
} else {
v14 = X__shgetc(tls, f)
}
c = v14
}
for {
- if !(uint32(c-int32('0')) < uint32(10)) {
+ if !(Uint32FromInt32(c-int32('0')) < uint32(10)) {
break
}
goto _17
@@ -26050,7 +26048,7 @@ func _scanexp(tls *TLS, f uintptr, pok int32) (r int64) {
v20 = f + 8
v19 = *(*uintptr)(unsafe.Pointer(v20))
*(*uintptr)(unsafe.Pointer(v20))++
- v18 = int32(*(*uint8)(unsafe.Pointer(v19)))
+ v18 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v19)))
} else {
v18 = X__shgetc(tls, f)
}
@@ -26103,7 +26101,7 @@ func _decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
v4 = f + 8
v3 = *(*uintptr)(unsafe.Pointer(v4))
*(*uintptr)(unsafe.Pointer(v4))++
- v2 = int32(*(*uint8)(unsafe.Pointer(v3)))
+ v2 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v3)))
} else {
v2 = X__shgetc(tls, f)
}
@@ -26115,7 +26113,7 @@ func _decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
v8 = f + 8
v7 = *(*uintptr)(unsafe.Pointer(v8))
*(*uintptr)(unsafe.Pointer(v8))++
- v6 = int32(*(*uint8)(unsafe.Pointer(v7)))
+ v6 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v7)))
} else {
v6 = X__shgetc(tls, f)
}
@@ -26133,7 +26131,7 @@ func _decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
v11 = f + 8
v10 = *(*uintptr)(unsafe.Pointer(v11))
*(*uintptr)(unsafe.Pointer(v11))++
- v9 = int32(*(*uint8)(unsafe.Pointer(v10)))
+ v9 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v10)))
} else {
v9 = X__shgetc(tls, f)
}
@@ -26142,7 +26140,7 @@ func _decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
}
(*(*[128]Tuint32_t)(unsafe.Pointer(bp)))[0] = uint32(0)
for {
- if !(uint32(c-int32('0')) < uint32(10) || c == int32('.')) {
+ if !(Uint32FromInt32(c-int32('0')) < uint32(10) || c == int32('.')) {
break
}
if c == int32('.') {
@@ -26158,9 +26156,9 @@ func _decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
lnz = int32(dc)
}
if j != 0 {
- (*(*[128]Tuint32_t)(unsafe.Pointer(bp)))[k] = (*(*[128]Tuint32_t)(unsafe.Pointer(bp)))[k]*uint32(10) + uint32(c) - uint32('0')
+ (*(*[128]Tuint32_t)(unsafe.Pointer(bp)))[k] = (*(*[128]Tuint32_t)(unsafe.Pointer(bp)))[k]*uint32(10) + Uint32FromInt32(c) - uint32('0')
} else {
- (*(*[128]Tuint32_t)(unsafe.Pointer(bp)))[k] = uint32(c - int32('0'))
+ (*(*[128]Tuint32_t)(unsafe.Pointer(bp)))[k] = Uint32FromInt32(c - int32('0'))
}
j++
v13 = j
@@ -26184,7 +26182,7 @@ func _decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
v16 = f + 8
v15 = *(*uintptr)(unsafe.Pointer(v16))
*(*uintptr)(unsafe.Pointer(v16))++
- v14 = int32(*(*uint8)(unsafe.Pointer(v15)))
+ v14 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v15)))
} else {
v14 = X__shgetc(tls, f)
}
@@ -26292,9 +26290,9 @@ func _decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
if !(k != z) {
break
}
- tmp = (*(*[128]Tuint32_t)(unsafe.Pointer(bp)))[k] % uint32(p10)
- (*(*[128]Tuint32_t)(unsafe.Pointer(bp)))[k] = (*(*[128]Tuint32_t)(unsafe.Pointer(bp)))[k]/uint32(p10) + carry
- carry = uint32(int32(1000000000)/p10) * tmp
+ tmp = (*(*[128]Tuint32_t)(unsafe.Pointer(bp)))[k] % Uint32FromInt32(p10)
+ (*(*[128]Tuint32_t)(unsafe.Pointer(bp)))[k] = (*(*[128]Tuint32_t)(unsafe.Pointer(bp)))[k]/Uint32FromInt32(p10) + carry
+ carry = Uint32FromInt32(int32(1000000000)/p10) * tmp
if k == a && !((*(*[128]Tuint32_t)(unsafe.Pointer(bp)))[k] != 0) {
a = (a + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1))
rp -= int32(9)
@@ -26381,9 +26379,9 @@ func _decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
if !(k != z) {
break
}
- tmp2 = (*(*[128]Tuint32_t)(unsafe.Pointer(bp)))[k] & uint32(int32(1)<<sh-int32(1))
+ tmp2 = (*(*[128]Tuint32_t)(unsafe.Pointer(bp)))[k] & Uint32FromInt32(int32(1)<<sh-int32(1))
(*(*[128]Tuint32_t)(unsafe.Pointer(bp)))[k] = (*(*[128]Tuint32_t)(unsafe.Pointer(bp)))[k]>>sh + carry2
- carry2 = uint32(Int32FromInt32(1000000000)>>sh) * tmp2
+ carry2 = Uint32FromInt32(Int32FromInt32(1000000000)>>sh) * tmp2
if k == a && !((*(*[128]Tuint32_t)(unsafe.Pointer(bp)))[k] != 0) {
a = (a + int32(1)) & (Int32FromInt32(KMAX) - Int32FromInt32(1))
i--
@@ -26516,7 +26514,7 @@ func _hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int3
v3 = f + 8
v2 = *(*uintptr)(unsafe.Pointer(v3))
*(*uintptr)(unsafe.Pointer(v3))++
- v1 = int32(*(*uint8)(unsafe.Pointer(v2)))
+ v1 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v2)))
} else {
v1 = X__shgetc(tls, f)
}
@@ -26534,7 +26532,7 @@ func _hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int3
v7 = f + 8
v6 = *(*uintptr)(unsafe.Pointer(v7))
*(*uintptr)(unsafe.Pointer(v7))++
- v5 = int32(*(*uint8)(unsafe.Pointer(v6)))
+ v5 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v6)))
} else {
v5 = X__shgetc(tls, f)
}
@@ -26546,7 +26544,7 @@ func _hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int3
v10 = f + 8
v9 = *(*uintptr)(unsafe.Pointer(v10))
*(*uintptr)(unsafe.Pointer(v10))++
- v8 = int32(*(*uint8)(unsafe.Pointer(v9)))
+ v8 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v9)))
} else {
v8 = X__shgetc(tls, f)
}
@@ -26565,7 +26563,7 @@ func _hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int3
v14 = f + 8
v13 = *(*uintptr)(unsafe.Pointer(v14))
*(*uintptr)(unsafe.Pointer(v14))++
- v12 = int32(*(*uint8)(unsafe.Pointer(v13)))
+ v12 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v13)))
} else {
v12 = X__shgetc(tls, f)
}
@@ -26574,7 +26572,7 @@ func _hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int3
}
}
for {
- if !(uint32(c-int32('0')) < uint32(10) || uint32(c|int32(32)-int32('a')) < uint32(6) || c == int32('.')) {
+ if !(Uint32FromInt32(c-int32('0')) < uint32(10) || Uint32FromInt32(c|int32(32)-int32('a')) < uint32(6) || c == int32('.')) {
break
}
if c == int32('.') {
@@ -26591,7 +26589,7 @@ func _hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int3
d = c - int32('0')
}
if dc < int64(8) {
- x = x*uint32(16) + uint32(d)
+ x = x*uint32(16) + Uint32FromInt32(d)
} else {
if dc < int64(Int32FromInt32(LDBL_MANT_DIG)/Int32FromInt32(4)+Int32FromInt32(1)) {
scale /= Float64FromInt32(16)
@@ -26612,7 +26610,7 @@ func _hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int3
v18 = f + 8
v17 = *(*uintptr)(unsafe.Pointer(v18))
*(*uintptr)(unsafe.Pointer(v18))++
- v16 = int32(*(*uint8)(unsafe.Pointer(v17)))
+ v16 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v17)))
} else {
v16 = X__shgetc(tls, f)
}
@@ -26732,14 +26730,14 @@ func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) (r float64) {
v4 = f + 8
v3 = *(*uintptr)(unsafe.Pointer(v4))
*(*uintptr)(unsafe.Pointer(v4))++
- v2 = int32(*(*uint8)(unsafe.Pointer(v3)))
+ v2 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v3)))
} else {
v2 = X__shgetc(tls, f)
}
v1 = v2
c = v1
v5 = v1
- v6 = BoolInt32(v5 == int32(' ') || uint32(v5)-uint32('\t') < uint32(5))
+ v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5))
goto _7
_7:
if !(v6 != 0) {
@@ -26752,7 +26750,7 @@ func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) (r float64) {
v10 = f + 8
v9 = *(*uintptr)(unsafe.Pointer(v10))
*(*uintptr)(unsafe.Pointer(v10))++
- v8 = int32(*(*uint8)(unsafe.Pointer(v9)))
+ v8 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v9)))
} else {
v8 = X__shgetc(tls, f)
}
@@ -26760,7 +26758,7 @@ func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) (r float64) {
}
i = uint64(0)
for {
- if !(i < uint64(8) && c|int32(32) == int32(*(*uint8)(unsafe.Pointer(__ccgo_ts + 247 + uintptr(i))))) {
+ if !(i < uint64(8) && c|int32(32) == Int32FromUint8(*(*uint8)(unsafe.Pointer(__ccgo_ts + 247 + uintptr(i))))) {
break
}
if i < uint64(7) {
@@ -26768,7 +26766,7 @@ func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) (r float64) {
v14 = f + 8
v13 = *(*uintptr)(unsafe.Pointer(v14))
*(*uintptr)(unsafe.Pointer(v14))++
- v12 = int32(*(*uint8)(unsafe.Pointer(v13)))
+ v12 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v13)))
} else {
v12 = X__shgetc(tls, f)
}
@@ -26804,7 +26802,7 @@ func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) (r float64) {
if !(i != 0) {
i = uint64(0)
for {
- if !(i < uint64(3) && c|int32(32) == int32(*(*uint8)(unsafe.Pointer(__ccgo_ts + 256 + uintptr(i))))) {
+ if !(i < uint64(3) && c|int32(32) == Int32FromUint8(*(*uint8)(unsafe.Pointer(__ccgo_ts + 256 + uintptr(i))))) {
break
}
if i < uint64(2) {
@@ -26812,7 +26810,7 @@ func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) (r float64) {
v21 = f + 8
v20 = *(*uintptr)(unsafe.Pointer(v21))
*(*uintptr)(unsafe.Pointer(v21))++
- v19 = int32(*(*uint8)(unsafe.Pointer(v20)))
+ v19 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v20)))
} else {
v19 = X__shgetc(tls, f)
}
@@ -26829,7 +26827,7 @@ func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) (r float64) {
v24 = f + 8
v23 = *(*uintptr)(unsafe.Pointer(v24))
*(*uintptr)(unsafe.Pointer(v24))++
- v22 = int32(*(*uint8)(unsafe.Pointer(v23)))
+ v22 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v23)))
} else {
v22 = X__shgetc(tls, f)
}
@@ -26845,12 +26843,12 @@ func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) (r float64) {
v29 = f + 8
v28 = *(*uintptr)(unsafe.Pointer(v29))
*(*uintptr)(unsafe.Pointer(v29))++
- v27 = int32(*(*uint8)(unsafe.Pointer(v28)))
+ v27 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v28)))
} else {
v27 = X__shgetc(tls, f)
}
c = v27
- if uint32(c-int32('0')) < uint32(10) || uint32(c-int32('A')) < uint32(26) || uint32(c-int32('a')) < uint32(26) || c == int32('_') {
+ if Uint32FromInt32(c-int32('0')) < uint32(10) || Uint32FromInt32(c-int32('A')) < uint32(26) || Uint32FromInt32(c-int32('a')) < uint32(26) || c == int32('_') {
goto _26
}
if c == int32(')') {
@@ -26895,7 +26893,7 @@ func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) (r float64) {
v36 = f + 8
v35 = *(*uintptr)(unsafe.Pointer(v36))
*(*uintptr)(unsafe.Pointer(v36))++
- v34 = int32(*(*uint8)(unsafe.Pointer(v35)))
+ v34 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v35)))
} else {
v34 = X__shgetc(tls, f)
}
@@ -26915,55 +26913,55 @@ func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) (r float64) {
//
// /* Lookup table for digit values. -1==255>=36 -> invalid */
var _table6 = [257]uint8{
- 0: uint8(-Int32FromInt32(1)),
- 1: uint8(-Int32FromInt32(1)),
- 2: uint8(-Int32FromInt32(1)),
- 3: uint8(-Int32FromInt32(1)),
- 4: uint8(-Int32FromInt32(1)),
- 5: uint8(-Int32FromInt32(1)),
- 6: uint8(-Int32FromInt32(1)),
- 7: uint8(-Int32FromInt32(1)),
- 8: uint8(-Int32FromInt32(1)),
- 9: uint8(-Int32FromInt32(1)),
- 10: uint8(-Int32FromInt32(1)),
- 11: uint8(-Int32FromInt32(1)),
- 12: uint8(-Int32FromInt32(1)),
- 13: uint8(-Int32FromInt32(1)),
- 14: uint8(-Int32FromInt32(1)),
- 15: uint8(-Int32FromInt32(1)),
- 16: uint8(-Int32FromInt32(1)),
- 17: uint8(-Int32FromInt32(1)),
- 18: uint8(-Int32FromInt32(1)),
- 19: uint8(-Int32FromInt32(1)),
- 20: uint8(-Int32FromInt32(1)),
- 21: uint8(-Int32FromInt32(1)),
- 22: uint8(-Int32FromInt32(1)),
- 23: uint8(-Int32FromInt32(1)),
- 24: uint8(-Int32FromInt32(1)),
- 25: uint8(-Int32FromInt32(1)),
- 26: uint8(-Int32FromInt32(1)),
- 27: uint8(-Int32FromInt32(1)),
- 28: uint8(-Int32FromInt32(1)),
- 29: uint8(-Int32FromInt32(1)),
- 30: uint8(-Int32FromInt32(1)),
- 31: uint8(-Int32FromInt32(1)),
- 32: uint8(-Int32FromInt32(1)),
- 33: uint8(-Int32FromInt32(1)),
- 34: uint8(-Int32FromInt32(1)),
- 35: uint8(-Int32FromInt32(1)),
- 36: uint8(-Int32FromInt32(1)),
- 37: uint8(-Int32FromInt32(1)),
- 38: uint8(-Int32FromInt32(1)),
- 39: uint8(-Int32FromInt32(1)),
- 40: uint8(-Int32FromInt32(1)),
- 41: uint8(-Int32FromInt32(1)),
- 42: uint8(-Int32FromInt32(1)),
- 43: uint8(-Int32FromInt32(1)),
- 44: uint8(-Int32FromInt32(1)),
- 45: uint8(-Int32FromInt32(1)),
- 46: uint8(-Int32FromInt32(1)),
- 47: uint8(-Int32FromInt32(1)),
- 48: uint8(-Int32FromInt32(1)),
+ 0: Uint8FromInt32(-Int32FromInt32(1)),
+ 1: Uint8FromInt32(-Int32FromInt32(1)),
+ 2: Uint8FromInt32(-Int32FromInt32(1)),
+ 3: Uint8FromInt32(-Int32FromInt32(1)),
+ 4: Uint8FromInt32(-Int32FromInt32(1)),
+ 5: Uint8FromInt32(-Int32FromInt32(1)),
+ 6: Uint8FromInt32(-Int32FromInt32(1)),
+ 7: Uint8FromInt32(-Int32FromInt32(1)),
+ 8: Uint8FromInt32(-Int32FromInt32(1)),
+ 9: Uint8FromInt32(-Int32FromInt32(1)),
+ 10: Uint8FromInt32(-Int32FromInt32(1)),
+ 11: Uint8FromInt32(-Int32FromInt32(1)),
+ 12: Uint8FromInt32(-Int32FromInt32(1)),
+ 13: Uint8FromInt32(-Int32FromInt32(1)),
+ 14: Uint8FromInt32(-Int32FromInt32(1)),
+ 15: Uint8FromInt32(-Int32FromInt32(1)),
+ 16: Uint8FromInt32(-Int32FromInt32(1)),
+ 17: Uint8FromInt32(-Int32FromInt32(1)),
+ 18: Uint8FromInt32(-Int32FromInt32(1)),
+ 19: Uint8FromInt32(-Int32FromInt32(1)),
+ 20: Uint8FromInt32(-Int32FromInt32(1)),
+ 21: Uint8FromInt32(-Int32FromInt32(1)),
+ 22: Uint8FromInt32(-Int32FromInt32(1)),
+ 23: Uint8FromInt32(-Int32FromInt32(1)),
+ 24: Uint8FromInt32(-Int32FromInt32(1)),
+ 25: Uint8FromInt32(-Int32FromInt32(1)),
+ 26: Uint8FromInt32(-Int32FromInt32(1)),
+ 27: Uint8FromInt32(-Int32FromInt32(1)),
+ 28: Uint8FromInt32(-Int32FromInt32(1)),
+ 29: Uint8FromInt32(-Int32FromInt32(1)),
+ 30: Uint8FromInt32(-Int32FromInt32(1)),
+ 31: Uint8FromInt32(-Int32FromInt32(1)),
+ 32: Uint8FromInt32(-Int32FromInt32(1)),
+ 33: Uint8FromInt32(-Int32FromInt32(1)),
+ 34: Uint8FromInt32(-Int32FromInt32(1)),
+ 35: Uint8FromInt32(-Int32FromInt32(1)),
+ 36: Uint8FromInt32(-Int32FromInt32(1)),
+ 37: Uint8FromInt32(-Int32FromInt32(1)),
+ 38: Uint8FromInt32(-Int32FromInt32(1)),
+ 39: Uint8FromInt32(-Int32FromInt32(1)),
+ 40: Uint8FromInt32(-Int32FromInt32(1)),
+ 41: Uint8FromInt32(-Int32FromInt32(1)),
+ 42: Uint8FromInt32(-Int32FromInt32(1)),
+ 43: Uint8FromInt32(-Int32FromInt32(1)),
+ 44: Uint8FromInt32(-Int32FromInt32(1)),
+ 45: Uint8FromInt32(-Int32FromInt32(1)),
+ 46: Uint8FromInt32(-Int32FromInt32(1)),
+ 47: Uint8FromInt32(-Int32FromInt32(1)),
+ 48: Uint8FromInt32(-Int32FromInt32(1)),
50: uint8(1),
51: uint8(2),
52: uint8(3),
@@ -26973,13 +26971,13 @@ var _table6 = [257]uint8{
56: uint8(7),
57: uint8(8),
58: uint8(9),
- 59: uint8(-Int32FromInt32(1)),
- 60: uint8(-Int32FromInt32(1)),
- 61: uint8(-Int32FromInt32(1)),
- 62: uint8(-Int32FromInt32(1)),
- 63: uint8(-Int32FromInt32(1)),
- 64: uint8(-Int32FromInt32(1)),
- 65: uint8(-Int32FromInt32(1)),
+ 59: Uint8FromInt32(-Int32FromInt32(1)),
+ 60: Uint8FromInt32(-Int32FromInt32(1)),
+ 61: Uint8FromInt32(-Int32FromInt32(1)),
+ 62: Uint8FromInt32(-Int32FromInt32(1)),
+ 63: Uint8FromInt32(-Int32FromInt32(1)),
+ 64: Uint8FromInt32(-Int32FromInt32(1)),
+ 65: Uint8FromInt32(-Int32FromInt32(1)),
66: uint8(10),
67: uint8(11),
68: uint8(12),
@@ -27006,12 +27004,12 @@ var _table6 = [257]uint8{
89: uint8(33),
90: uint8(34),
91: uint8(35),
- 92: uint8(-Int32FromInt32(1)),
- 93: uint8(-Int32FromInt32(1)),
- 94: uint8(-Int32FromInt32(1)),
- 95: uint8(-Int32FromInt32(1)),
- 96: uint8(-Int32FromInt32(1)),
- 97: uint8(-Int32FromInt32(1)),
+ 92: Uint8FromInt32(-Int32FromInt32(1)),
+ 93: Uint8FromInt32(-Int32FromInt32(1)),
+ 94: Uint8FromInt32(-Int32FromInt32(1)),
+ 95: Uint8FromInt32(-Int32FromInt32(1)),
+ 96: Uint8FromInt32(-Int32FromInt32(1)),
+ 97: Uint8FromInt32(-Int32FromInt32(1)),
98: uint8(10),
99: uint8(11),
100: uint8(12),
@@ -27038,139 +27036,139 @@ var _table6 = [257]uint8{
121: uint8(33),
122: uint8(34),
123: uint8(35),
- 124: uint8(-Int32FromInt32(1)),
- 125: uint8(-Int32FromInt32(1)),
- 126: uint8(-Int32FromInt32(1)),
- 127: uint8(-Int32FromInt32(1)),
- 128: uint8(-Int32FromInt32(1)),
- 129: uint8(-Int32FromInt32(1)),
- 130: uint8(-Int32FromInt32(1)),
- 131: uint8(-Int32FromInt32(1)),
- 132: uint8(-Int32FromInt32(1)),
- 133: uint8(-Int32FromInt32(1)),
- 134: uint8(-Int32FromInt32(1)),
- 135: uint8(-Int32FromInt32(1)),
- 136: uint8(-Int32FromInt32(1)),
- 137: uint8(-Int32FromInt32(1)),
- 138: uint8(-Int32FromInt32(1)),
- 139: uint8(-Int32FromInt32(1)),
- 140: uint8(-Int32FromInt32(1)),
- 141: uint8(-Int32FromInt32(1)),
- 142: uint8(-Int32FromInt32(1)),
- 143: uint8(-Int32FromInt32(1)),
- 144: uint8(-Int32FromInt32(1)),
- 145: uint8(-Int32FromInt32(1)),
- 146: uint8(-Int32FromInt32(1)),
- 147: uint8(-Int32FromInt32(1)),
- 148: uint8(-Int32FromInt32(1)),
- 149: uint8(-Int32FromInt32(1)),
- 150: uint8(-Int32FromInt32(1)),
- 151: uint8(-Int32FromInt32(1)),
- 152: uint8(-Int32FromInt32(1)),
- 153: uint8(-Int32FromInt32(1)),
- 154: uint8(-Int32FromInt32(1)),
- 155: uint8(-Int32FromInt32(1)),
- 156: uint8(-Int32FromInt32(1)),
- 157: uint8(-Int32FromInt32(1)),
- 158: uint8(-Int32FromInt32(1)),
- 159: uint8(-Int32FromInt32(1)),
- 160: uint8(-Int32FromInt32(1)),
- 161: uint8(-Int32FromInt32(1)),
- 162: uint8(-Int32FromInt32(1)),
- 163: uint8(-Int32FromInt32(1)),
- 164: uint8(-Int32FromInt32(1)),
- 165: uint8(-Int32FromInt32(1)),
- 166: uint8(-Int32FromInt32(1)),
- 167: uint8(-Int32FromInt32(1)),
- 168: uint8(-Int32FromInt32(1)),
- 169: uint8(-Int32FromInt32(1)),
- 170: uint8(-Int32FromInt32(1)),
- 171: uint8(-Int32FromInt32(1)),
- 172: uint8(-Int32FromInt32(1)),
- 173: uint8(-Int32FromInt32(1)),
- 174: uint8(-Int32FromInt32(1)),
- 175: uint8(-Int32FromInt32(1)),
- 176: uint8(-Int32FromInt32(1)),
- 177: uint8(-Int32FromInt32(1)),
- 178: uint8(-Int32FromInt32(1)),
- 179: uint8(-Int32FromInt32(1)),
- 180: uint8(-Int32FromInt32(1)),
- 181: uint8(-Int32FromInt32(1)),
- 182: uint8(-Int32FromInt32(1)),
- 183: uint8(-Int32FromInt32(1)),
- 184: uint8(-Int32FromInt32(1)),
- 185: uint8(-Int32FromInt32(1)),
- 186: uint8(-Int32FromInt32(1)),
- 187: uint8(-Int32FromInt32(1)),
- 188: uint8(-Int32FromInt32(1)),
- 189: uint8(-Int32FromInt32(1)),
- 190: uint8(-Int32FromInt32(1)),
- 191: uint8(-Int32FromInt32(1)),
- 192: uint8(-Int32FromInt32(1)),
- 193: uint8(-Int32FromInt32(1)),
- 194: uint8(-Int32FromInt32(1)),
- 195: uint8(-Int32FromInt32(1)),
- 196: uint8(-Int32FromInt32(1)),
- 197: uint8(-Int32FromInt32(1)),
- 198: uint8(-Int32FromInt32(1)),
- 199: uint8(-Int32FromInt32(1)),
- 200: uint8(-Int32FromInt32(1)),
- 201: uint8(-Int32FromInt32(1)),
- 202: uint8(-Int32FromInt32(1)),
- 203: uint8(-Int32FromInt32(1)),
- 204: uint8(-Int32FromInt32(1)),
- 205: uint8(-Int32FromInt32(1)),
- 206: uint8(-Int32FromInt32(1)),
- 207: uint8(-Int32FromInt32(1)),
- 208: uint8(-Int32FromInt32(1)),
- 209: uint8(-Int32FromInt32(1)),
- 210: uint8(-Int32FromInt32(1)),
- 211: uint8(-Int32FromInt32(1)),
- 212: uint8(-Int32FromInt32(1)),
- 213: uint8(-Int32FromInt32(1)),
- 214: uint8(-Int32FromInt32(1)),
- 215: uint8(-Int32FromInt32(1)),
- 216: uint8(-Int32FromInt32(1)),
- 217: uint8(-Int32FromInt32(1)),
- 218: uint8(-Int32FromInt32(1)),
- 219: uint8(-Int32FromInt32(1)),
- 220: uint8(-Int32FromInt32(1)),
- 221: uint8(-Int32FromInt32(1)),
- 222: uint8(-Int32FromInt32(1)),
- 223: uint8(-Int32FromInt32(1)),
- 224: uint8(-Int32FromInt32(1)),
- 225: uint8(-Int32FromInt32(1)),
- 226: uint8(-Int32FromInt32(1)),
- 227: uint8(-Int32FromInt32(1)),
- 228: uint8(-Int32FromInt32(1)),
- 229: uint8(-Int32FromInt32(1)),
- 230: uint8(-Int32FromInt32(1)),
- 231: uint8(-Int32FromInt32(1)),
- 232: uint8(-Int32FromInt32(1)),
- 233: uint8(-Int32FromInt32(1)),
- 234: uint8(-Int32FromInt32(1)),
- 235: uint8(-Int32FromInt32(1)),
- 236: uint8(-Int32FromInt32(1)),
- 237: uint8(-Int32FromInt32(1)),
- 238: uint8(-Int32FromInt32(1)),
- 239: uint8(-Int32FromInt32(1)),
- 240: uint8(-Int32FromInt32(1)),
- 241: uint8(-Int32FromInt32(1)),
- 242: uint8(-Int32FromInt32(1)),
- 243: uint8(-Int32FromInt32(1)),
- 244: uint8(-Int32FromInt32(1)),
- 245: uint8(-Int32FromInt32(1)),
- 246: uint8(-Int32FromInt32(1)),
- 247: uint8(-Int32FromInt32(1)),
- 248: uint8(-Int32FromInt32(1)),
- 249: uint8(-Int32FromInt32(1)),
- 250: uint8(-Int32FromInt32(1)),
- 251: uint8(-Int32FromInt32(1)),
- 252: uint8(-Int32FromInt32(1)),
- 253: uint8(-Int32FromInt32(1)),
- 254: uint8(-Int32FromInt32(1)),
- 255: uint8(-Int32FromInt32(1)),
- 256: uint8(-Int32FromInt32(1)),
+ 124: Uint8FromInt32(-Int32FromInt32(1)),
+ 125: Uint8FromInt32(-Int32FromInt32(1)),
+ 126: Uint8FromInt32(-Int32FromInt32(1)),
+ 127: Uint8FromInt32(-Int32FromInt32(1)),
+ 128: Uint8FromInt32(-Int32FromInt32(1)),
+ 129: Uint8FromInt32(-Int32FromInt32(1)),
+ 130: Uint8FromInt32(-Int32FromInt32(1)),
+ 131: Uint8FromInt32(-Int32FromInt32(1)),
+ 132: Uint8FromInt32(-Int32FromInt32(1)),
+ 133: Uint8FromInt32(-Int32FromInt32(1)),
+ 134: Uint8FromInt32(-Int32FromInt32(1)),
+ 135: Uint8FromInt32(-Int32FromInt32(1)),
+ 136: Uint8FromInt32(-Int32FromInt32(1)),
+ 137: Uint8FromInt32(-Int32FromInt32(1)),
+ 138: Uint8FromInt32(-Int32FromInt32(1)),
+ 139: Uint8FromInt32(-Int32FromInt32(1)),
+ 140: Uint8FromInt32(-Int32FromInt32(1)),
+ 141: Uint8FromInt32(-Int32FromInt32(1)),
+ 142: Uint8FromInt32(-Int32FromInt32(1)),
+ 143: Uint8FromInt32(-Int32FromInt32(1)),
+ 144: Uint8FromInt32(-Int32FromInt32(1)),
+ 145: Uint8FromInt32(-Int32FromInt32(1)),
+ 146: Uint8FromInt32(-Int32FromInt32(1)),
+ 147: Uint8FromInt32(-Int32FromInt32(1)),
+ 148: Uint8FromInt32(-Int32FromInt32(1)),
+ 149: Uint8FromInt32(-Int32FromInt32(1)),
+ 150: Uint8FromInt32(-Int32FromInt32(1)),
+ 151: Uint8FromInt32(-Int32FromInt32(1)),
+ 152: Uint8FromInt32(-Int32FromInt32(1)),
+ 153: Uint8FromInt32(-Int32FromInt32(1)),
+ 154: Uint8FromInt32(-Int32FromInt32(1)),
+ 155: Uint8FromInt32(-Int32FromInt32(1)),
+ 156: Uint8FromInt32(-Int32FromInt32(1)),
+ 157: Uint8FromInt32(-Int32FromInt32(1)),
+ 158: Uint8FromInt32(-Int32FromInt32(1)),
+ 159: Uint8FromInt32(-Int32FromInt32(1)),
+ 160: Uint8FromInt32(-Int32FromInt32(1)),
+ 161: Uint8FromInt32(-Int32FromInt32(1)),
+ 162: Uint8FromInt32(-Int32FromInt32(1)),
+ 163: Uint8FromInt32(-Int32FromInt32(1)),
+ 164: Uint8FromInt32(-Int32FromInt32(1)),
+ 165: Uint8FromInt32(-Int32FromInt32(1)),
+ 166: Uint8FromInt32(-Int32FromInt32(1)),
+ 167: Uint8FromInt32(-Int32FromInt32(1)),
+ 168: Uint8FromInt32(-Int32FromInt32(1)),
+ 169: Uint8FromInt32(-Int32FromInt32(1)),
+ 170: Uint8FromInt32(-Int32FromInt32(1)),
+ 171: Uint8FromInt32(-Int32FromInt32(1)),
+ 172: Uint8FromInt32(-Int32FromInt32(1)),
+ 173: Uint8FromInt32(-Int32FromInt32(1)),
+ 174: Uint8FromInt32(-Int32FromInt32(1)),
+ 175: Uint8FromInt32(-Int32FromInt32(1)),
+ 176: Uint8FromInt32(-Int32FromInt32(1)),
+ 177: Uint8FromInt32(-Int32FromInt32(1)),
+ 178: Uint8FromInt32(-Int32FromInt32(1)),
+ 179: Uint8FromInt32(-Int32FromInt32(1)),
+ 180: Uint8FromInt32(-Int32FromInt32(1)),
+ 181: Uint8FromInt32(-Int32FromInt32(1)),
+ 182: Uint8FromInt32(-Int32FromInt32(1)),
+ 183: Uint8FromInt32(-Int32FromInt32(1)),
+ 184: Uint8FromInt32(-Int32FromInt32(1)),
+ 185: Uint8FromInt32(-Int32FromInt32(1)),
+ 186: Uint8FromInt32(-Int32FromInt32(1)),
+ 187: Uint8FromInt32(-Int32FromInt32(1)),
+ 188: Uint8FromInt32(-Int32FromInt32(1)),
+ 189: Uint8FromInt32(-Int32FromInt32(1)),
+ 190: Uint8FromInt32(-Int32FromInt32(1)),
+ 191: Uint8FromInt32(-Int32FromInt32(1)),
+ 192: Uint8FromInt32(-Int32FromInt32(1)),
+ 193: Uint8FromInt32(-Int32FromInt32(1)),
+ 194: Uint8FromInt32(-Int32FromInt32(1)),
+ 195: Uint8FromInt32(-Int32FromInt32(1)),
+ 196: Uint8FromInt32(-Int32FromInt32(1)),
+ 197: Uint8FromInt32(-Int32FromInt32(1)),
+ 198: Uint8FromInt32(-Int32FromInt32(1)),
+ 199: Uint8FromInt32(-Int32FromInt32(1)),
+ 200: Uint8FromInt32(-Int32FromInt32(1)),
+ 201: Uint8FromInt32(-Int32FromInt32(1)),
+ 202: Uint8FromInt32(-Int32FromInt32(1)),
+ 203: Uint8FromInt32(-Int32FromInt32(1)),
+ 204: Uint8FromInt32(-Int32FromInt32(1)),
+ 205: Uint8FromInt32(-Int32FromInt32(1)),
+ 206: Uint8FromInt32(-Int32FromInt32(1)),
+ 207: Uint8FromInt32(-Int32FromInt32(1)),
+ 208: Uint8FromInt32(-Int32FromInt32(1)),
+ 209: Uint8FromInt32(-Int32FromInt32(1)),
+ 210: Uint8FromInt32(-Int32FromInt32(1)),
+ 211: Uint8FromInt32(-Int32FromInt32(1)),
+ 212: Uint8FromInt32(-Int32FromInt32(1)),
+ 213: Uint8FromInt32(-Int32FromInt32(1)),
+ 214: Uint8FromInt32(-Int32FromInt32(1)),
+ 215: Uint8FromInt32(-Int32FromInt32(1)),
+ 216: Uint8FromInt32(-Int32FromInt32(1)),
+ 217: Uint8FromInt32(-Int32FromInt32(1)),
+ 218: Uint8FromInt32(-Int32FromInt32(1)),
+ 219: Uint8FromInt32(-Int32FromInt32(1)),
+ 220: Uint8FromInt32(-Int32FromInt32(1)),
+ 221: Uint8FromInt32(-Int32FromInt32(1)),
+ 222: Uint8FromInt32(-Int32FromInt32(1)),
+ 223: Uint8FromInt32(-Int32FromInt32(1)),
+ 224: Uint8FromInt32(-Int32FromInt32(1)),
+ 225: Uint8FromInt32(-Int32FromInt32(1)),
+ 226: Uint8FromInt32(-Int32FromInt32(1)),
+ 227: Uint8FromInt32(-Int32FromInt32(1)),
+ 228: Uint8FromInt32(-Int32FromInt32(1)),
+ 229: Uint8FromInt32(-Int32FromInt32(1)),
+ 230: Uint8FromInt32(-Int32FromInt32(1)),
+ 231: Uint8FromInt32(-Int32FromInt32(1)),
+ 232: Uint8FromInt32(-Int32FromInt32(1)),
+ 233: Uint8FromInt32(-Int32FromInt32(1)),
+ 234: Uint8FromInt32(-Int32FromInt32(1)),
+ 235: Uint8FromInt32(-Int32FromInt32(1)),
+ 236: Uint8FromInt32(-Int32FromInt32(1)),
+ 237: Uint8FromInt32(-Int32FromInt32(1)),
+ 238: Uint8FromInt32(-Int32FromInt32(1)),
+ 239: Uint8FromInt32(-Int32FromInt32(1)),
+ 240: Uint8FromInt32(-Int32FromInt32(1)),
+ 241: Uint8FromInt32(-Int32FromInt32(1)),
+ 242: Uint8FromInt32(-Int32FromInt32(1)),
+ 243: Uint8FromInt32(-Int32FromInt32(1)),
+ 244: Uint8FromInt32(-Int32FromInt32(1)),
+ 245: Uint8FromInt32(-Int32FromInt32(1)),
+ 246: Uint8FromInt32(-Int32FromInt32(1)),
+ 247: Uint8FromInt32(-Int32FromInt32(1)),
+ 248: Uint8FromInt32(-Int32FromInt32(1)),
+ 249: Uint8FromInt32(-Int32FromInt32(1)),
+ 250: Uint8FromInt32(-Int32FromInt32(1)),
+ 251: Uint8FromInt32(-Int32FromInt32(1)),
+ 252: Uint8FromInt32(-Int32FromInt32(1)),
+ 253: Uint8FromInt32(-Int32FromInt32(1)),
+ 254: Uint8FromInt32(-Int32FromInt32(1)),
+ 255: Uint8FromInt32(-Int32FromInt32(1)),
+ 256: Uint8FromInt32(-Int32FromInt32(1)),
}
func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint64) {
@@ -27194,14 +27192,14 @@ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint
v4 = f + 8
v3 = *(*uintptr)(unsafe.Pointer(v4))
*(*uintptr)(unsafe.Pointer(v4))++
- v2 = int32(*(*uint8)(unsafe.Pointer(v3)))
+ v2 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v3)))
} else {
v2 = X__shgetc(tls, f)
}
v1 = v2
c = v1
v5 = v1
- v6 = BoolInt32(v5 == int32(' ') || uint32(v5)-uint32('\t') < uint32(5))
+ v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5))
goto _7
_7:
if !(v6 != 0) {
@@ -27214,7 +27212,7 @@ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint
v10 = f + 8
v9 = *(*uintptr)(unsafe.Pointer(v10))
*(*uintptr)(unsafe.Pointer(v10))++
- v8 = int32(*(*uint8)(unsafe.Pointer(v9)))
+ v8 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v9)))
} else {
v8 = X__shgetc(tls, f)
}
@@ -27225,7 +27223,7 @@ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint
v13 = f + 8
v12 = *(*uintptr)(unsafe.Pointer(v13))
*(*uintptr)(unsafe.Pointer(v13))++
- v11 = int32(*(*uint8)(unsafe.Pointer(v12)))
+ v11 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v12)))
} else {
v11 = X__shgetc(tls, f)
}
@@ -27235,12 +27233,12 @@ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint
v16 = f + 8
v15 = *(*uintptr)(unsafe.Pointer(v16))
*(*uintptr)(unsafe.Pointer(v16))++
- v14 = int32(*(*uint8)(unsafe.Pointer(v15)))
+ v14 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v15)))
} else {
v14 = X__shgetc(tls, f)
}
c = v14
- if int32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) >= int32(16) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) >= int32(16) {
if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 {
(*TFILE)(unsafe.Pointer(f)).Frpos--
}
@@ -27275,10 +27273,10 @@ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint
if base == uint32(10) {
x = uint32(0)
for {
- if !(uint32(c-int32('0')) < uint32(10) && x <= Uint32FromUint32(0xffffffff)/Uint32FromInt32(10)-Uint32FromInt32(1)) {
+ if !(Uint32FromInt32(c-int32('0')) < uint32(10) && x <= Uint32FromUint32(0xffffffff)/Uint32FromInt32(10)-Uint32FromInt32(1)) {
break
}
- x = x*uint32(10) + uint32(c-Int32FromUint8('0'))
+ x = x*uint32(10) + Uint32FromInt32(c-Int32FromUint8('0'))
goto _20
_20:
;
@@ -27286,7 +27284,7 @@ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint
v23 = f + 8
v22 = *(*uintptr)(unsafe.Pointer(v23))
*(*uintptr)(unsafe.Pointer(v23))++
- v21 = int32(*(*uint8)(unsafe.Pointer(v22)))
+ v21 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v22)))
} else {
v21 = X__shgetc(tls, f)
}
@@ -27294,10 +27292,10 @@ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint
}
y = uint64(x)
for {
- if !(uint32(c-int32('0')) < uint32(10) && y <= (Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))/Uint64FromInt32(10) && uint64(10)*y <= Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)-uint64(c-Int32FromUint8('0'))) {
+ if !(Uint32FromInt32(c-int32('0')) < uint32(10) && y <= (Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))/Uint64FromInt32(10) && uint64(10)*y <= Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1)-Uint64FromInt32(c-Int32FromUint8('0'))) {
break
}
- y = y*uint64(10) + uint64(c-Int32FromUint8('0'))
+ y = y*uint64(10) + Uint64FromInt32(c-Int32FromUint8('0'))
goto _24
_24:
;
@@ -27305,18 +27303,18 @@ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint
v27 = f + 8
v26 = *(*uintptr)(unsafe.Pointer(v27))
*(*uintptr)(unsafe.Pointer(v27))++
- v25 = int32(*(*uint8)(unsafe.Pointer(v26)))
+ v25 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v26)))
} else {
v25 = X__shgetc(tls, f)
}
c = v25
}
- if uint32(c-int32('0')) >= uint32(10) {
+ if Uint32FromInt32(c-int32('0')) >= uint32(10) {
goto done
}
} else {
if !(base&(base-Uint32FromInt32(1)) != 0) {
- bs = int32(*(*uint8)(unsafe.Pointer(__ccgo_ts + 260 + uintptr(uint32(0x17)*base>>int32(5)&uint32(7)))))
+ bs = Int32FromUint8(*(*uint8)(unsafe.Pointer(__ccgo_ts + 260 + uintptr(uint32(0x17)*base>>int32(5)&uint32(7)))))
x = uint32(0)
for {
if !(uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) < base && x <= Uint32FromUint32(0xffffffff)/Uint32FromInt32(32)) {
@@ -27330,7 +27328,7 @@ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint
v31 = f + 8
v30 = *(*uintptr)(unsafe.Pointer(v31))
*(*uintptr)(unsafe.Pointer(v31))++
- v29 = int32(*(*uint8)(unsafe.Pointer(v30)))
+ v29 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v30)))
} else {
v29 = X__shgetc(tls, f)
}
@@ -27349,7 +27347,7 @@ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint
v35 = f + 8
v34 = *(*uintptr)(unsafe.Pointer(v35))
*(*uintptr)(unsafe.Pointer(v35))++
- v33 = int32(*(*uint8)(unsafe.Pointer(v34)))
+ v33 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v34)))
} else {
v33 = X__shgetc(tls, f)
}
@@ -27369,7 +27367,7 @@ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint
v39 = f + 8
v38 = *(*uintptr)(unsafe.Pointer(v39))
*(*uintptr)(unsafe.Pointer(v39))++
- v37 = int32(*(*uint8)(unsafe.Pointer(v38)))
+ v37 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v38)))
} else {
v37 = X__shgetc(tls, f)
}
@@ -27388,7 +27386,7 @@ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint
v43 = f + 8
v42 = *(*uintptr)(unsafe.Pointer(v43))
*(*uintptr)(unsafe.Pointer(v43))++
- v41 = int32(*(*uint8)(unsafe.Pointer(v42)))
+ v41 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v42)))
} else {
v41 = X__shgetc(tls, f)
}
@@ -27408,7 +27406,7 @@ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) (r uint
v47 = f + 8
v46 = *(*uintptr)(unsafe.Pointer(v47))
*(*uintptr)(unsafe.Pointer(v47))++
- v45 = int32(*(*uint8)(unsafe.Pointer(v46)))
+ v45 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v46)))
} else {
v45 = X__shgetc(tls, f)
}
@@ -27437,7 +27435,7 @@ done:
}
}
}
- return y ^ uint64(neg) - uint64(neg)
+ return y ^ Uint64FromInt32(neg) - Uint64FromInt32(neg)
}
func X__procfdname(tls *TLS, buf uintptr, fd uint32) {
@@ -27537,7 +27535,7 @@ func X__shgetc(tls *TLS, f uintptr) (r int32) {
}
(*TFILE)(unsafe.Pointer(f)).Fshcnt = int64((*TFILE)(unsafe.Pointer(f)).Fbuf) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + cnt
if (*TFILE)(unsafe.Pointer(f)).Frpos <= (*TFILE)(unsafe.Pointer(f)).Fbuf {
- *(*uint8)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(-Int32FromInt32(1)))) = uint8(c)
+ *(*uint8)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Frpos + uintptr(-Int32FromInt32(1)))) = Uint8FromInt32(c)
}
return c
}
@@ -27548,10 +27546,10 @@ func X__syscall_ret(tls *TLS, r uint64) (r1 int64) {
defer func() { trc("-> %v", r1) }()
}
if r > -Uint64FromUint64(4096) {
- *(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(-r)
+ *(*int32)(unsafe.Pointer(X__errno_location(tls))) = Int32FromUint64(-r)
return int64(-int32(1))
}
- return int64(r)
+ return Int64FromUint64(r)
}
type TElf_Symndx = uint32
@@ -27623,7 +27621,7 @@ func Xftok(tls *TLS, path uintptr, id int32) (r Tkey_t) {
if Xstat(tls, path, bp) < 0 {
return -int32(1)
}
- return int32((*(*Tstat)(unsafe.Pointer(bp))).Fst_ino&Uint64FromInt32(0xffff) | (*(*Tstat)(unsafe.Pointer(bp))).Fst_dev&Uint64FromInt32(0xff)<<Int32FromInt32(16) | uint64(uint32(id)&Uint32FromUint32(0xff)<<Int32FromInt32(24)))
+ return Int32FromUint64((*(*Tstat)(unsafe.Pointer(bp))).Fst_ino&Uint64FromInt32(0xffff) | (*(*Tstat)(unsafe.Pointer(bp))).Fst_dev&Uint64FromInt32(0xff)<<Int32FromInt32(16) | uint64(Uint32FromInt32(id)&Uint32FromUint32(0xff)<<Int32FromInt32(24)))
}
const IPCOP_msgctl = 14
@@ -27682,7 +27680,7 @@ func Xmsgctl(tls *TLS, q int32, cmd int32, buf uintptr) (r1 int32) {
var r int32
_ = r
r = int32(X__syscall3(tls, int64(SYS_msgctl), int64(q), int64(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int64(buf)))
- return int32(X__syscall_ret(tls, uint64(r)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r)))
}
func Xmsgget(tls *TLS, k Tkey_t, flag int32) (r int32) {
@@ -27690,7 +27688,7 @@ func Xmsgget(tls *TLS, k Tkey_t, flag int32) (r int32) {
trc("tls=%v k=%v flag=%v, (%v:)", tls, k, flag, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_msgget), int64(k), int64(flag)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_msgget), int64(k), int64(flag)))))
}
func Xmsgrcv(tls *TLS, q int32, m uintptr, len1 Tsize_t, type1 int64, flag int32) (r Tssize_t) {
@@ -27698,7 +27696,7 @@ func Xmsgrcv(tls *TLS, q int32, m uintptr, len1 Tsize_t, type1 int64, flag int32
trc("tls=%v q=%v m=%v len1=%v type1=%v flag=%v, (%v:)", tls, q, m, len1, type1, flag, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_msgrcv), int64(q), int64(m), int64(len1), type1, int64(flag), 0)))
+ return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_msgrcv), int64(q), int64(m), Int64FromUint64(len1), type1, int64(flag), 0)))
}
func Xmsgsnd(tls *TLS, q int32, m uintptr, len1 Tsize_t, flag int32) (r int32) {
@@ -27706,7 +27704,7 @@ func Xmsgsnd(tls *TLS, q int32, m uintptr, len1 Tsize_t, flag int32) (r int32) {
trc("tls=%v q=%v m=%v len1=%v flag=%v, (%v:)", tls, q, m, len1, flag, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_msgsnd), int64(q), int64(m), int64(len1), int64(flag), 0, 0))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_msgsnd), int64(q), int64(m), Int64FromUint64(len1), int64(flag), 0, 0))))
}
const GETALL = 13
@@ -27794,7 +27792,7 @@ func Xsemctl(tls *TLS, id int32, num int32, cmd int32, va uintptr) (r1 int32) {
_ = ap
}
r = int32(X__syscall4(tls, int64(SYS_semctl), int64(id), int64(num), int64(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int64(*(*uintptr)(unsafe.Pointer(bp)))))
- return int32(X__syscall_ret(tls, uint64(r)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r)))
}
func Xsemget(tls *TLS, key Tkey_t, n int32, fl int32) (r int32) {
@@ -27807,9 +27805,9 @@ func Xsemget(tls *TLS, key Tkey_t, n int32, fl int32) (r int32) {
* n fits in the correct (per POSIX) userspace type, so
* we have to check here. */
if n > int32(USHRT_MAX) {
- return int32(X__syscall_ret(tls, uint64(-Int32FromInt32(EINVAL))))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL))))
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_semget), int64(key), int64(n), int64(fl)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_semget), int64(key), int64(n), int64(fl)))))
}
func Xsemop(tls *TLS, id int32, buf uintptr, n Tsize_t) (r int32) {
@@ -27817,7 +27815,7 @@ func Xsemop(tls *TLS, id int32, buf uintptr, n Tsize_t) (r int32) {
trc("tls=%v id=%v buf=%v n=%v, (%v:)", tls, id, buf, n, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_semop), int64(id), int64(buf), int64(n)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_semop), int64(id), int64(buf), Int64FromUint64(n)))))
}
const NO_TIME32 = 0
@@ -27851,7 +27849,7 @@ func Xsemtimedop(tls *TLS, id int32, buf uintptr, n Tsize_t, ts uintptr) (r int3
trc("tls=%v id=%v buf=%v n=%v ts=%v, (%v:)", tls, id, buf, n, ts, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall4(tls, int64(SYS_semtimedop), int64(id), int64(buf), int64(n), int64(ts)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_semtimedop), int64(id), int64(buf), Int64FromUint64(n), int64(ts)))))
}
const SHMLBA = 4096
@@ -27923,7 +27921,7 @@ func Xshmat(tls *TLS, id int32, addr uintptr, flag int32) (r uintptr) {
trc("tls=%v id=%v addr=%v flag=%v, (%v:)", tls, id, addr, flag, origin(2))
defer func() { trc("-> %v", r) }()
}
- return uintptr(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_shmat), int64(id), int64(addr), int64(flag)))))
+ return uintptr(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_shmat), int64(id), int64(addr), int64(flag)))))
}
func Xshmctl(tls *TLS, id int32, cmd int32, buf uintptr) (r1 int32) {
@@ -27934,7 +27932,7 @@ func Xshmctl(tls *TLS, id int32, cmd int32, buf uintptr) (r1 int32) {
var r int32
_ = r
r = int32(X__syscall3(tls, int64(SYS_shmctl), int64(id), int64(cmd & ^(Int32FromInt32(IPC_STAT)&Int32FromInt32(0x100)) | Int32FromInt32(IPC_64)), int64(buf)))
- return int32(X__syscall_ret(tls, uint64(r)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r)))
}
func Xshmdt(tls *TLS, addr uintptr) (r int32) {
@@ -27942,7 +27940,7 @@ func Xshmdt(tls *TLS, addr uintptr) (r int32) {
trc("tls=%v addr=%v, (%v:)", tls, addr, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall1(tls, int64(SYS_shmdt), int64(addr)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_shmdt), int64(addr)))))
}
func Xshmget(tls *TLS, key Tkey_t, size Tsize_t, flag int32) (r int32) {
@@ -27950,10 +27948,10 @@ func Xshmget(tls *TLS, key Tkey_t, size Tsize_t, flag int32) (r int32) {
trc("tls=%v key=%v size=%v flag=%v, (%v:)", tls, key, size, flag, origin(2))
defer func() { trc("-> %v", r) }()
}
- if size > uint64(Int64FromInt64(INT64_MAX)) {
+ if size > Uint64FromInt64(Int64FromInt64(INT64_MAX)) {
size = Uint64FromUint64(0xffffffffffffffff)
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_shmget), int64(key), int64(size), int64(flag)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_shmget), int64(key), Int64FromUint64(size), int64(flag)))))
}
type Tpasswd = struct {
@@ -28218,7 +28216,7 @@ func Xgetdtablesize(tls *TLS) (r int32) {
} else {
v1 = uint64(INT_MAX)
}
- return int32(v1)
+ return Int32FromUint64(v1)
}
func Xgetloadavg(tls *TLS, a uintptr, n int32) (r int32) {
@@ -28262,7 +28260,7 @@ func Xgetpagesize(tls *TLS) (r int32) {
trc("tls=%v, (%v:)", tls, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__libc.Fpage_size)
+ return Int32FromUint64(X__libc.Fpage_size)
}
const B0 = 0
@@ -28449,16 +28447,16 @@ func Xgetpass(tls *TLS, prompt uintptr) (r uintptr) {
}
Xtcgetattr(tls, fd, bp+60)
*(*Ttermios)(unsafe.Pointer(bp)) = *(*Ttermios)(unsafe.Pointer(bp + 60))
- (*(*Ttermios)(unsafe.Pointer(bp + 60))).Fc_lflag &= uint32(^(Int32FromInt32(ECHO) | Int32FromInt32(ISIG)))
+ (*(*Ttermios)(unsafe.Pointer(bp + 60))).Fc_lflag &= Uint32FromInt32(^(Int32FromInt32(ECHO) | Int32FromInt32(ISIG)))
(*(*Ttermios)(unsafe.Pointer(bp + 60))).Fc_lflag |= uint32(ICANON)
- (*(*Ttermios)(unsafe.Pointer(bp + 60))).Fc_iflag &= uint32(^(Int32FromInt32(INLCR) | Int32FromInt32(IGNCR)))
+ (*(*Ttermios)(unsafe.Pointer(bp + 60))).Fc_iflag &= Uint32FromInt32(^(Int32FromInt32(INLCR) | Int32FromInt32(IGNCR)))
(*(*Ttermios)(unsafe.Pointer(bp + 60))).Fc_iflag |= uint32(ICRNL)
Xtcsetattr(tls, fd, int32(TCSAFLUSH), bp+60)
Xtcdrain(tls, fd)
Xdprintf(tls, fd, __ccgo_ts+15, VaList(bp+128, prompt))
l = Xread(tls, fd, uintptr(unsafe.Pointer(&_password)), uint64(128))
if l >= 0 {
- if l > 0 && int32(_password[l-int64(1)]) == int32('\n') || uint64(l) == uint64(128) {
+ if l > 0 && Int32FromUint8(_password[l-int64(1)]) == int32('\n') || Uint64FromInt64(l) == uint64(128) {
l--
}
_password[l] = uint8(0)
@@ -28521,7 +28519,7 @@ func Xgetusershell(tls *TLS) (r uintptr) {
if l <= 0 {
return uintptr(0)
}
- if int32(*(*uint8)(unsafe.Pointer(_line + uintptr(l-int64(1))))) == int32('\n') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(_line + uintptr(l-int64(1))))) == int32('\n') {
*(*uint8)(unsafe.Pointer(_line + uintptr(l-int64(1)))) = uint8(0)
}
return _line
@@ -28698,12 +28696,12 @@ func Xulimit(tls *TLS, cmd int32, va uintptr) (r int64) {
ap = va
val = VaInt64(&ap)
_ = ap
- (*(*Trlimit)(unsafe.Pointer(bp))).Frlim_cur = uint64(512) * uint64(val)
+ (*(*Trlimit)(unsafe.Pointer(bp))).Frlim_cur = uint64(512) * Uint64FromInt64(val)
if Xsetrlimit(tls, int32(RLIMIT_FSIZE), bp) != 0 {
return int64(-int32(1))
}
}
- return int64((*(*Trlimit)(unsafe.Pointer(bp))).Frlim_cur / uint64(512))
+ return Int64FromUint64((*(*Trlimit)(unsafe.Pointer(bp))).Frlim_cur / uint64(512))
}
const BOOT_TIME = 2
@@ -28972,7 +28970,7 @@ func Xbrk(tls *TLS, end uintptr) (r int32) {
trc("tls=%v end=%v, (%v:)", tls, end, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(-Int32FromInt32(ENOMEM))))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(ENOMEM))))
}
func Xcapset(tls *TLS, a uintptr, b uintptr) (r int32) {
@@ -28980,7 +28978,7 @@ func Xcapset(tls *TLS, a uintptr, b uintptr) (r int32) {
trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_capset), int64(a), int64(b)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_capset), int64(a), int64(b)))))
}
func Xcapget(tls *TLS, a uintptr, b uintptr) (r int32) {
@@ -28988,7 +28986,7 @@ func Xcapget(tls *TLS, a uintptr, b uintptr) (r int32) {
trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_capget), int64(a), int64(b)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_capget), int64(a), int64(b)))))
}
func Xchroot(tls *TLS, path uintptr) (r int32) {
@@ -28996,7 +28994,7 @@ func Xchroot(tls *TLS, path uintptr) (r int32) {
trc("tls=%v path=%v, (%v:)", tls, path, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall1(tls, int64(SYS_chroot), int64(path)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_chroot), int64(path)))))
}
type Tktimex64 = struct {
@@ -29115,12 +29113,12 @@ func Xclock_adjtime(tls *TLS, clock_id Tclockid_t, utx uintptr) (r1 int32) {
(*Ttimex)(unsafe.Pointer(utx)).Fstbcnt = (*(*Tktimex)(unsafe.Pointer(bp))).Fstbcnt
(*Ttimex)(unsafe.Pointer(utx)).Ftai = (*(*Tktimex)(unsafe.Pointer(bp))).Ftai
}
- return int32(X__syscall_ret(tls, uint64(r)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r)))
}
if clock_id == CLOCK_REALTIME {
- return int32(X__syscall_ret(tls, uint64(X__syscall1(tls, int64(SYS_adjtimex), int64(utx)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_adjtimex), int64(utx)))))
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_clock_adjtime), int64(clock_id), int64(utx)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clock_adjtime), int64(clock_id), int64(utx)))))
}
func Xcopy_file_range(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintptr, len1 Tsize_t, flags uint32) (r Tssize_t) {
@@ -29128,7 +29126,7 @@ func Xcopy_file_range(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_o
trc("tls=%v fd_in=%v off_in=%v fd_out=%v off_out=%v len1=%v flags=%v, (%v:)", tls, fd_in, off_in, fd_out, off_out, len1, flags, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(X__syscall6(tls, int64(SYS_copy_file_range), int64(fd_in), int64(off_in), int64(fd_out), int64(off_out), int64(len1), int64(flags))))
+ return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_copy_file_range), int64(fd_in), int64(off_in), int64(fd_out), int64(off_out), Int64FromUint64(len1), Int64FromUint32(flags))))
}
const EPOLLERR = 8
@@ -29181,7 +29179,7 @@ func Xepoll_create(tls *TLS, size int32) (r int32) {
defer func() { trc("-> %v", r) }()
}
if size <= 0 {
- return int32(X__syscall_ret(tls, uint64(-Int32FromInt32(EINVAL))))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL))))
}
return Xepoll_create1(tls, 0)
}
@@ -29194,7 +29192,7 @@ func Xepoll_create1(tls *TLS, flags int32) (r1 int32) {
var r int32
_ = r
r = int32(X__syscall1(tls, int64(SYS_epoll_create1), int64(flags)))
- return int32(X__syscall_ret(tls, uint64(r)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r)))
}
func Xepoll_ctl(tls *TLS, fd int32, op int32, fd2 int32, ev uintptr) (r int32) {
@@ -29202,7 +29200,7 @@ func Xepoll_ctl(tls *TLS, fd int32, op int32, fd2 int32, ev uintptr) (r int32) {
trc("tls=%v fd=%v op=%v fd2=%v ev=%v, (%v:)", tls, fd, op, fd2, ev, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall4(tls, int64(SYS_epoll_ctl), int64(fd), int64(op), int64(fd2), int64(ev)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_epoll_ctl), int64(fd), int64(op), int64(fd2), int64(ev)))))
}
func Xepoll_pwait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32, sigs uintptr) (r1 int32) {
@@ -29213,7 +29211,7 @@ func Xepoll_pwait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32, sigs uint
var r int32
_ = r
r = int32(___syscall_cp(tls, int64(SYS_epoll_pwait), int64(fd), int64(ev), int64(cnt), int64(to), int64(sigs), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))))
- return int32(X__syscall_ret(tls, uint64(r)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r)))
}
func Xepoll_wait(tls *TLS, fd int32, ev uintptr, cnt int32, to int32) (r int32) {
@@ -29237,8 +29235,8 @@ func Xeventfd(tls *TLS, count uint32, flags int32) (r1 int32) {
}
var r int32
_ = r
- r = int32(X__syscall2(tls, int64(SYS_eventfd2), int64(count), int64(flags)))
- return int32(X__syscall_ret(tls, uint64(r)))
+ r = int32(X__syscall2(tls, int64(SYS_eventfd2), Int64FromUint32(count), int64(flags)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r)))
}
func Xeventfd_read(tls *TLS, fd int32, value uintptr) (r int32) {
@@ -29248,7 +29246,7 @@ func Xeventfd_read(tls *TLS, fd int32, value uintptr) (r int32) {
}
var v1 int32
_ = v1
- if uint64(8) == uint64(Xread(tls, fd, value, uint64(8))) {
+ if uint64(8) == Uint64FromInt64(Xread(tls, fd, value, uint64(8))) {
v1 = 0
} else {
v1 = -int32(1)
@@ -29266,7 +29264,7 @@ func Xeventfd_write(tls *TLS, fd int32, _value Teventfd_t) (r int32) {
*(*Teventfd_t)(unsafe.Pointer(bp)) = _value
var v1 int32
_ = v1
- if uint64(8) == uint64(Xwrite(tls, fd, bp, uint64(8))) {
+ if uint64(8) == Uint64FromInt64(Xwrite(tls, fd, bp, uint64(8))) {
v1 = 0
} else {
v1 = -int32(1)
@@ -29279,7 +29277,7 @@ func Xfallocate(tls *TLS, fd int32, mode int32, base Toff_t, len1 Toff_t) (r int
trc("tls=%v fd=%v mode=%v base=%v len1=%v, (%v:)", tls, fd, mode, base, len1, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall4(tls, int64(SYS_fallocate), int64(fd), int64(mode), base, len1))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_fallocate), int64(fd), int64(mode), base, len1))))
}
const FANOTIFY_METADATA_VERSION = 3
@@ -29424,7 +29422,7 @@ func Xfanotify_init(tls *TLS, flags uint32, event_f_flags uint32) (r int32) {
trc("tls=%v flags=%v event_f_flags=%v, (%v:)", tls, flags, event_f_flags, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_fanotify_init), int64(flags), int64(event_f_flags)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_fanotify_init), Int64FromUint32(flags), Int64FromUint32(event_f_flags)))))
}
func Xfanotify_mark(tls *TLS, fanotify_fd int32, flags uint32, mask uint64, dfd int32, pathname uintptr) (r int32) {
@@ -29432,7 +29430,7 @@ func Xfanotify_mark(tls *TLS, fanotify_fd int32, flags uint32, mask uint64, dfd
trc("tls=%v fanotify_fd=%v flags=%v mask=%v dfd=%v pathname=%v, (%v:)", tls, fanotify_fd, flags, mask, dfd, pathname, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall5(tls, int64(SYS_fanotify_mark), int64(fanotify_fd), int64(flags), int64(mask), int64(dfd), int64(pathname)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fanotify_mark), int64(fanotify_fd), Int64FromUint32(flags), Int64FromUint64(mask), int64(dfd), int64(pathname)))))
}
const LOCK_EX = 2
@@ -29445,7 +29443,7 @@ func Xflock(tls *TLS, fd int32, op int32) (r int32) {
trc("tls=%v fd=%v op=%v, (%v:)", tls, fd, op, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_flock), int64(fd), int64(op)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_flock), int64(fd), int64(op)))))
}
func Xgetdents(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) {
@@ -29456,7 +29454,7 @@ func Xgetdents(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) {
if len1 > uint64(INT_MAX) {
len1 = uint64(INT_MAX)
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_getdents64), int64(fd), int64(buf), int64(len1)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_getdents64), int64(fd), int64(buf), Int64FromUint64(len1)))))
}
const GRND_INSECURE = 4
@@ -29468,7 +29466,7 @@ func Xgetrandom(tls *TLS, buf uintptr, buflen Tsize_t, flags uint32) (r Tssize_t
trc("tls=%v buf=%v buflen=%v flags=%v, (%v:)", tls, buf, buflen, flags, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_getrandom), int64(buf), int64(buflen), int64(flags), 0, 0, 0)))
+ return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_getrandom), int64(buf), Int64FromUint64(buflen), Int64FromUint32(flags), 0, 0, 0)))
}
const IN_ACCESS = 1
@@ -29522,7 +29520,7 @@ func Xinotify_init1(tls *TLS, flags int32) (r1 int32) {
var r int32
_ = r
r = int32(X__syscall1(tls, int64(SYS_inotify_init1), int64(flags)))
- return int32(X__syscall_ret(tls, uint64(r)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r)))
}
func Xinotify_add_watch(tls *TLS, fd int32, pathname uintptr, mask Tuint32_t) (r int32) {
@@ -29530,7 +29528,7 @@ func Xinotify_add_watch(tls *TLS, fd int32, pathname uintptr, mask Tuint32_t) (r
trc("tls=%v fd=%v pathname=%v mask=%v, (%v:)", tls, fd, pathname, mask, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_inotify_add_watch), int64(fd), int64(pathname), int64(mask)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_inotify_add_watch), int64(fd), int64(pathname), Int64FromUint32(mask)))))
}
func Xinotify_rm_watch(tls *TLS, fd int32, wd int32) (r int32) {
@@ -29538,7 +29536,7 @@ func Xinotify_rm_watch(tls *TLS, fd int32, wd int32) (r int32) {
trc("tls=%v fd=%v wd=%v, (%v:)", tls, fd, wd, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_inotify_rm_watch), int64(fd), int64(wd)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_inotify_rm_watch), int64(fd), int64(wd)))))
}
func Xklogctl(tls *TLS, type1 int32, buf uintptr, len1 int32) (r int32) {
@@ -29546,7 +29544,7 @@ func Xklogctl(tls *TLS, type1 int32, buf uintptr, len1 int32) (r int32) {
trc("tls=%v type1=%v buf=%v len1=%v, (%v:)", tls, type1, buf, len1, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_syslog), int64(type1), int64(buf), int64(len1)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_syslog), int64(type1), int64(buf), int64(len1)))))
}
const MADV_COLD = 20
@@ -29584,7 +29582,7 @@ func Xmemfd_create(tls *TLS, name uintptr, flags uint32) (r int32) {
trc("tls=%v name=%v flags=%v, (%v:)", tls, name, flags, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_memfd_create), int64(name), int64(flags)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_memfd_create), int64(name), Int64FromUint32(flags)))))
}
func Xmlock2(tls *TLS, addr uintptr, len1 Tsize_t, flags uint32) (r int32) {
@@ -29595,7 +29593,7 @@ func Xmlock2(tls *TLS, addr uintptr, len1 Tsize_t, flags uint32) (r int32) {
if flags == uint32(0) {
return Xmlock(tls, addr, len1)
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_mlock2), int64(addr), int64(len1), int64(flags)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mlock2), int64(addr), Int64FromUint64(len1), Int64FromUint32(flags)))))
}
func Xinit_module(tls *TLS, a uintptr, b uint64, c uintptr) (r int32) {
@@ -29603,7 +29601,7 @@ func Xinit_module(tls *TLS, a uintptr, b uint64, c uintptr) (r int32) {
trc("tls=%v a=%v b=%v c=%v, (%v:)", tls, a, b, c, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_init_module), int64(a), int64(b), int64(c)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_init_module), int64(a), Int64FromUint64(b), int64(c)))))
}
func Xdelete_module(tls *TLS, a uintptr, b uint32) (r int32) {
@@ -29611,7 +29609,7 @@ func Xdelete_module(tls *TLS, a uintptr, b uint32) (r int32) {
trc("tls=%v a=%v b=%v, (%v:)", tls, a, b, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_delete_module), int64(a), int64(b)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_delete_module), int64(a), Int64FromUint32(b)))))
}
const BLKBSZGET = 2147488368
@@ -29860,7 +29858,7 @@ func Xmount(tls *TLS, special uintptr, dir uintptr, fstype uintptr, flags uint64
trc("tls=%v special=%v dir=%v fstype=%v flags=%v data=%v, (%v:)", tls, special, dir, fstype, flags, data, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall5(tls, int64(SYS_mount), int64(special), int64(dir), int64(fstype), int64(flags), int64(data)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_mount), int64(special), int64(dir), int64(fstype), Int64FromUint64(flags), int64(data)))))
}
func Xumount(tls *TLS, special uintptr) (r int32) {
@@ -29868,7 +29866,7 @@ func Xumount(tls *TLS, special uintptr) (r int32) {
trc("tls=%v special=%v, (%v:)", tls, special, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_umount2), int64(special), int64(Int32FromInt32(0))))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_umount2), int64(special), int64(Int32FromInt32(0))))))
}
func Xumount2(tls *TLS, special uintptr, flags int32) (r int32) {
@@ -29876,7 +29874,7 @@ func Xumount2(tls *TLS, special uintptr, flags int32) (r int32) {
trc("tls=%v special=%v flags=%v, (%v:)", tls, special, flags, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_umount2), int64(special), int64(flags)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_umount2), int64(special), int64(flags)))))
}
func Xname_to_handle_at(tls *TLS, dirfd int32, pathname uintptr, handle uintptr, mount_id uintptr, flags int32) (r int32) {
@@ -29884,7 +29882,7 @@ func Xname_to_handle_at(tls *TLS, dirfd int32, pathname uintptr, handle uintptr,
trc("tls=%v dirfd=%v pathname=%v handle=%v mount_id=%v flags=%v, (%v:)", tls, dirfd, pathname, handle, mount_id, flags, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall5(tls, int64(SYS_name_to_handle_at), int64(dirfd), int64(pathname), int64(handle), int64(mount_id), int64(flags)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_name_to_handle_at), int64(dirfd), int64(pathname), int64(handle), int64(mount_id), int64(flags)))))
}
func Xopen_by_handle_at(tls *TLS, mount_fd int32, handle uintptr, flags int32) (r int32) {
@@ -29892,7 +29890,7 @@ func Xopen_by_handle_at(tls *TLS, mount_fd int32, handle uintptr, flags int32) (
trc("tls=%v mount_fd=%v handle=%v flags=%v, (%v:)", tls, mount_fd, handle, flags, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_open_by_handle_at), int64(mount_fd), int64(handle), int64(flags)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_open_by_handle_at), int64(mount_fd), int64(handle), int64(flags)))))
}
const ADDR_COMPAT_LAYOUT = 2097152
@@ -29935,7 +29933,7 @@ func Xpersonality(tls *TLS, persona uint64) (r int32) {
trc("tls=%v persona=%v, (%v:)", tls, persona, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall1(tls, int64(SYS_personality), int64(persona)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_personality), Int64FromUint64(persona)))))
}
func Xpivot_root(tls *TLS, new1 uintptr, old uintptr) (r int32) {
@@ -29943,7 +29941,7 @@ func Xpivot_root(tls *TLS, new1 uintptr, old uintptr) (r int32) {
trc("tls=%v new1=%v old=%v, (%v:)", tls, new1, old, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_pivot_root), int64(new1), int64(old)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_pivot_root), int64(new1), int64(old)))))
}
const PR_CAPBSET_DROP = 24
@@ -30120,7 +30118,7 @@ func Xprctl(tls *TLS, op int32, va uintptr) (r int32) {
i++
}
_ = ap
- return int32(X__syscall_ret(tls, uint64(X__syscall5(tls, int64(SYS_prctl), int64(op), int64(x[0]), int64(x[int32(1)]), int64(x[int32(2)]), int64(x[int32(3)])))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_prctl), int64(op), Int64FromUint64(x[0]), Int64FromUint64(x[int32(1)]), Int64FromUint64(x[int32(2)]), Int64FromUint64(x[int32(3)])))))
}
const RWF_APPEND = 16
@@ -30139,9 +30137,9 @@ func Xpreadv2(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t, flags in
if ofs == int64(-int32(1)) {
return Xreadv(tls, fd, iov, count)
}
- return X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_preadv), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0)))
+ return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_preadv), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0)))
}
- return X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_preadv2), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), int64(flags))))
+ return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_preadv2), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), int64(flags))))
}
func Xprlimit(tls *TLS, pid Tpid_t, resource int32, new_limit uintptr, old_limit uintptr) (r1 int32) {
@@ -30164,7 +30162,7 @@ func Xprlimit(tls *TLS, pid Tpid_t, resource int32, new_limit uintptr, old_limit
}
new_limit = bp
}
- r = int32(X__syscall_ret(tls, uint64(X__syscall4(tls, int64(SYS_prlimit64), int64(pid), int64(resource), int64(new_limit), int64(old_limit)))))
+ r = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_prlimit64), int64(pid), int64(resource), int64(new_limit), int64(old_limit)))))
if !(r != 0) && old_limit != 0 && Bool(^Uint64FromUint64(0) != ^Uint64FromUint64(0)) {
if (*Trlimit)(unsafe.Pointer(old_limit)).Frlim_cur >= ^Uint64FromUint64(0) {
(*Trlimit)(unsafe.Pointer(old_limit)).Frlim_cur = ^Uint64FromUint64(0)
@@ -30181,7 +30179,7 @@ func Xprocess_vm_writev(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint64, rvec
trc("tls=%v pid=%v lvec=%v liovcnt=%v rvec=%v riovcnt=%v flags=%v, (%v:)", tls, pid, lvec, liovcnt, rvec, riovcnt, flags, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(X__syscall6(tls, int64(SYS_process_vm_writev), int64(pid), int64(lvec), int64(liovcnt), int64(rvec), int64(riovcnt), int64(flags))))
+ return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_process_vm_writev), int64(pid), int64(lvec), Int64FromUint64(liovcnt), int64(rvec), Int64FromUint64(riovcnt), Int64FromUint64(flags))))
}
func Xprocess_vm_readv(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint64, rvec uintptr, riovcnt uint64, flags uint64) (r Tssize_t) {
@@ -30189,7 +30187,7 @@ func Xprocess_vm_readv(tls *TLS, pid Tpid_t, lvec uintptr, liovcnt uint64, rvec
trc("tls=%v pid=%v lvec=%v liovcnt=%v rvec=%v riovcnt=%v flags=%v, (%v:)", tls, pid, lvec, liovcnt, rvec, riovcnt, flags, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(X__syscall6(tls, int64(SYS_process_vm_readv), int64(pid), int64(lvec), int64(liovcnt), int64(rvec), int64(riovcnt), int64(flags))))
+ return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_process_vm_readv), int64(pid), int64(lvec), Int64FromUint64(liovcnt), int64(rvec), Int64FromUint64(riovcnt), Int64FromUint64(flags))))
}
const PTRACE_ATTACH = 16
@@ -30338,11 +30336,11 @@ func Xptrace(tls *TLS, req int32, va uintptr) (r int64) {
data = VaUintptr(&ap)
/* PTRACE_{READ,WRITE}{DATA,TEXT} (16...19) are specific to SPARC. */
_ = ap
- if uint32(req)-uint32(1) < uint32(3) {
+ if Uint32FromInt32(req)-uint32(1) < uint32(3) {
data = bp
}
- ret = X__syscall_ret(tls, uint64(X__syscall5(tls, int64(SYS_ptrace), int64(req), int64(pid), int64(addr), int64(data), int64(addr2))))
- if ret < 0 || uint32(req)-uint32(1) >= uint32(3) {
+ ret = X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_ptrace), int64(req), int64(pid), int64(addr), int64(data), int64(addr2))))
+ if ret < 0 || Uint32FromInt32(req)-uint32(1) >= uint32(3) {
return ret
}
return *(*int64)(unsafe.Pointer(bp))
@@ -30357,9 +30355,9 @@ func Xpwritev2(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t, flags i
if ofs == int64(-int32(1)) {
return Xwritev(tls, fd, iov, count)
}
- return X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_pwritev), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0)))
+ return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwritev), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0)))
}
- return X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_pwritev2), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), int64(flags))))
+ return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwritev2), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), int64(flags))))
}
const GRPQUOTA = 1
@@ -30425,7 +30423,7 @@ func Xquotactl(tls *TLS, cmd int32, special uintptr, id int32, addr uintptr) (r
trc("tls=%v cmd=%v special=%v id=%v addr=%v, (%v:)", tls, cmd, special, id, addr, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall4(tls, int64(SYS_quotactl), int64(cmd), int64(special), int64(id), int64(addr)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_quotactl), int64(cmd), int64(special), int64(id), int64(addr)))))
}
func Xreadahead(tls *TLS, fd int32, pos Toff_t, len1 Tsize_t) (r Tssize_t) {
@@ -30433,7 +30431,7 @@ func Xreadahead(tls *TLS, fd int32, pos Toff_t, len1 Tsize_t) (r Tssize_t) {
trc("tls=%v fd=%v pos=%v len1=%v, (%v:)", tls, fd, pos, len1, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_readahead), int64(fd), pos, int64(len1))))
+ return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_readahead), int64(fd), pos, Int64FromUint64(len1))))
}
const RB_AUTOBOOT = 19088743
@@ -30449,7 +30447,7 @@ func Xreboot(tls *TLS, type1 int32) (r int32) {
trc("tls=%v type1=%v, (%v:)", tls, type1, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_reboot), int64(Uint32FromUint32(0xfee1dead)), int64(Int32FromInt32(672274793)), int64(type1)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_reboot), Int64FromUint32(Uint32FromUint32(0xfee1dead)), int64(Int32FromInt32(672274793)), int64(type1)))))
}
func Xremap_file_pages(tls *TLS, addr uintptr, size Tsize_t, prot int32, pgoff Tsize_t, flags int32) (r int32) {
@@ -30457,7 +30455,7 @@ func Xremap_file_pages(tls *TLS, addr uintptr, size Tsize_t, prot int32, pgoff T
trc("tls=%v addr=%v size=%v prot=%v pgoff=%v flags=%v, (%v:)", tls, addr, size, prot, pgoff, flags, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall5(tls, int64(SYS_remap_file_pages), int64(addr), int64(size), int64(prot), int64(pgoff), int64(flags)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_remap_file_pages), int64(addr), Int64FromUint64(size), int64(prot), Int64FromUint64(pgoff), int64(flags)))))
}
func Xsbrk(tls *TLS, inc Tintptr_t) (r uintptr) {
@@ -30466,7 +30464,7 @@ func Xsbrk(tls *TLS, inc Tintptr_t) (r uintptr) {
defer func() { trc("-> %v", r) }()
}
if inc != 0 {
- return uintptr(X__syscall_ret(tls, uint64(-Int32FromInt32(ENOMEM))))
+ return uintptr(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(ENOMEM))))
}
return uintptr(X__syscall1(tls, int64(SYS_brk), int64(Int32FromInt32(0))))
}
@@ -30476,7 +30474,7 @@ func Xsendfile(tls *TLS, out_fd int32, in_fd int32, ofs uintptr, count Tsize_t)
trc("tls=%v out_fd=%v in_fd=%v ofs=%v count=%v, (%v:)", tls, out_fd, in_fd, ofs, count, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(X__syscall4(tls, int64(SYS_sendfile), int64(out_fd), int64(in_fd), int64(ofs), int64(count))))
+ return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_sendfile), int64(out_fd), int64(in_fd), int64(ofs), Int64FromUint64(count))))
}
func Xsetfsgid(tls *TLS, gid Tgid_t) (r int32) {
@@ -30484,7 +30482,7 @@ func Xsetfsgid(tls *TLS, gid Tgid_t) (r int32) {
trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall1(tls, int64(SYS_setfsgid), int64(gid)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_setfsgid), Int64FromUint32(gid)))))
}
func Xsetfsuid(tls *TLS, uid Tuid_t) (r int32) {
@@ -30492,7 +30490,7 @@ func Xsetfsuid(tls *TLS, uid Tuid_t) (r int32) {
trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall1(tls, int64(SYS_setfsuid), int64(uid)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_setfsuid), Int64FromUint32(uid)))))
}
func Xsethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) {
@@ -30500,7 +30498,7 @@ func Xsethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) {
trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_sethostname), int64(name), int64(len1)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_sethostname), int64(name), Int64FromUint64(len1)))))
}
const CLONE_CHILD_CLEARTID = 2097152
@@ -30540,7 +30538,7 @@ func Xsetns(tls *TLS, fd int32, nstype int32) (r int32) {
trc("tls=%v fd=%v nstype=%v, (%v:)", tls, fd, nstype, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_setns), int64(fd), int64(nstype)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_setns), int64(fd), int64(nstype)))))
}
const __tm_gmtoff = 0
@@ -30570,8 +30568,8 @@ func Xsettimeofday(tls *TLS, tv uintptr, tz uintptr) (r int32) {
if !(tv != 0) {
return 0
}
- if uint64((*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec) >= uint64(1000000) {
- return int32(X__syscall_ret(tls, uint64(-Int32FromInt32(EINVAL))))
+ if Uint64FromInt64((*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec) >= uint64(1000000) {
+ return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL))))
}
*(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{
Ftv_sec: (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec,
@@ -30616,7 +30614,7 @@ func Xsignalfd(tls *TLS, fd int32, sigs uintptr, flags int32) (r int32) {
var ret int32
_ = ret
ret = int32(X__syscall4(tls, int64(SYS_signalfd4), int64(fd), int64(sigs), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), int64(flags)))
- return int32(X__syscall_ret(tls, uint64(ret)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(ret)))
}
func Xsplice(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintptr, len1 Tsize_t, flags uint32) (r Tssize_t) {
@@ -30624,7 +30622,7 @@ func Xsplice(tls *TLS, fd_in int32, off_in uintptr, fd_out int32, off_out uintpt
trc("tls=%v fd_in=%v off_in=%v fd_out=%v off_out=%v len1=%v flags=%v, (%v:)", tls, fd_in, off_in, fd_out, off_out, len1, flags, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(X__syscall6(tls, int64(SYS_splice), int64(fd_in), int64(off_in), int64(fd_out), int64(off_out), int64(len1), int64(flags))))
+ return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, int64(SYS_splice), int64(fd_in), int64(off_in), int64(fd_out), int64(off_out), Int64FromUint64(len1), Int64FromUint32(flags))))
}
func Xstatx(tls *TLS, dirfd int32, path uintptr, flags int32, mask uint32, stx uintptr) (r int32) {
@@ -30637,9 +30635,9 @@ func Xstatx(tls *TLS, dirfd int32, path uintptr, flags int32, mask uint32, stx u
var ret int32
var _ /* st at bp+0 */ Tstat
_ = ret
- ret = int32(X__syscall5(tls, int64(SYS_statx), int64(dirfd), int64(path), int64(flags), int64(mask), int64(stx)))
+ ret = int32(X__syscall5(tls, int64(SYS_statx), int64(dirfd), int64(path), int64(flags), Int64FromUint32(mask), int64(stx)))
if ret != -int32(ENOSYS) {
- return int32(X__syscall_ret(tls, uint64(ret)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(ret)))
}
ret = Xfstatat(tls, dirfd, path, bp, flags)
if ret != 0 {
@@ -30652,15 +30650,15 @@ func Xstatx(tls *TLS, dirfd int32, path uintptr, flags int32, mask uint32, stx u
(*Tstatx)(unsafe.Pointer(stx)).Fstx_nlink = (*(*Tstat)(unsafe.Pointer(bp))).Fst_nlink
(*Tstatx)(unsafe.Pointer(stx)).Fstx_uid = (*(*Tstat)(unsafe.Pointer(bp))).Fst_uid
(*Tstatx)(unsafe.Pointer(stx)).Fstx_gid = (*(*Tstat)(unsafe.Pointer(bp))).Fst_gid
- (*Tstatx)(unsafe.Pointer(stx)).Fstx_size = uint64((*(*Tstat)(unsafe.Pointer(bp))).Fst_size)
- (*Tstatx)(unsafe.Pointer(stx)).Fstx_blksize = uint32((*(*Tstat)(unsafe.Pointer(bp))).Fst_blksize)
- (*Tstatx)(unsafe.Pointer(stx)).Fstx_blocks = uint64((*(*Tstat)(unsafe.Pointer(bp))).Fst_blocks)
+ (*Tstatx)(unsafe.Pointer(stx)).Fstx_size = Uint64FromInt64((*(*Tstat)(unsafe.Pointer(bp))).Fst_size)
+ (*Tstatx)(unsafe.Pointer(stx)).Fstx_blksize = Uint32FromInt32((*(*Tstat)(unsafe.Pointer(bp))).Fst_blksize)
+ (*Tstatx)(unsafe.Pointer(stx)).Fstx_blocks = Uint64FromInt64((*(*Tstat)(unsafe.Pointer(bp))).Fst_blocks)
(*Tstatx)(unsafe.Pointer(stx)).Fstx_atime.Ftv_sec = (*(*Tstat)(unsafe.Pointer(bp))).Fst_atim.Ftv_sec
- (*Tstatx)(unsafe.Pointer(stx)).Fstx_atime.Ftv_nsec = uint32((*(*Tstat)(unsafe.Pointer(bp))).Fst_atim.Ftv_nsec)
+ (*Tstatx)(unsafe.Pointer(stx)).Fstx_atime.Ftv_nsec = Uint32FromInt64((*(*Tstat)(unsafe.Pointer(bp))).Fst_atim.Ftv_nsec)
(*Tstatx)(unsafe.Pointer(stx)).Fstx_mtime.Ftv_sec = (*(*Tstat)(unsafe.Pointer(bp))).Fst_mtim.Ftv_sec
- (*Tstatx)(unsafe.Pointer(stx)).Fstx_mtime.Ftv_nsec = uint32((*(*Tstat)(unsafe.Pointer(bp))).Fst_mtim.Ftv_nsec)
+ (*Tstatx)(unsafe.Pointer(stx)).Fstx_mtime.Ftv_nsec = Uint32FromInt64((*(*Tstat)(unsafe.Pointer(bp))).Fst_mtim.Ftv_nsec)
(*Tstatx)(unsafe.Pointer(stx)).Fstx_ctime.Ftv_sec = (*(*Tstat)(unsafe.Pointer(bp))).Fst_ctim.Ftv_sec
- (*Tstatx)(unsafe.Pointer(stx)).Fstx_ctime.Ftv_nsec = uint32((*(*Tstat)(unsafe.Pointer(bp))).Fst_ctim.Ftv_nsec)
+ (*Tstatx)(unsafe.Pointer(stx)).Fstx_ctime.Ftv_nsec = Uint32FromInt64((*(*Tstat)(unsafe.Pointer(bp))).Fst_ctim.Ftv_nsec)
(*Tstatx)(unsafe.Pointer(stx)).Fstx_btime = Tstatx_timestamp{}
(*Tstatx)(unsafe.Pointer(stx)).Fstx_mask = uint32(0x7ff)
return 0
@@ -30690,7 +30688,7 @@ func Xswapon(tls *TLS, path uintptr, flags int32) (r int32) {
trc("tls=%v path=%v flags=%v, (%v:)", tls, path, flags, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_swapon), int64(path), int64(flags)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_swapon), int64(path), int64(flags)))))
}
func Xswapoff(tls *TLS, path uintptr) (r int32) {
@@ -30698,7 +30696,7 @@ func Xswapoff(tls *TLS, path uintptr) (r int32) {
trc("tls=%v path=%v, (%v:)", tls, path, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall1(tls, int64(SYS_swapoff), int64(path)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_swapoff), int64(path)))))
}
func Xsync_file_range(tls *TLS, fd int32, pos Toff_t, len1 Toff_t, flags uint32) (r int32) {
@@ -30706,7 +30704,7 @@ func Xsync_file_range(tls *TLS, fd int32, pos Toff_t, len1 Toff_t, flags uint32)
trc("tls=%v fd=%v pos=%v len1=%v flags=%v, (%v:)", tls, fd, pos, len1, flags, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall4(tls, int64(SYS_sync_file_range), int64(fd), pos, len1, int64(flags)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_sync_file_range), int64(fd), pos, len1, Int64FromUint32(flags)))))
}
func Xsyncfs(tls *TLS, fd int32) (r int32) {
@@ -30714,7 +30712,7 @@ func Xsyncfs(tls *TLS, fd int32) (r int32) {
trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall1(tls, int64(SYS_syncfs), int64(fd)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_syncfs), int64(fd)))))
}
func X__lsysinfo(tls *TLS, info uintptr) (r int32) {
@@ -30722,7 +30720,7 @@ func X__lsysinfo(tls *TLS, info uintptr) (r int32) {
trc("tls=%v info=%v, (%v:)", tls, info, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall1(tls, int64(SYS_sysinfo), int64(info)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_sysinfo), int64(info)))))
}
func Xsysinfo(tls *TLS, info uintptr) (r int32) {
@@ -30738,7 +30736,7 @@ func Xtee(tls *TLS, src int32, dest int32, len1 Tsize_t, flags uint32) (r Tssize
trc("tls=%v src=%v dest=%v len1=%v flags=%v, (%v:)", tls, src, dest, len1, flags, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(X__syscall4(tls, int64(SYS_tee), int64(src), int64(dest), int64(len1), int64(flags))))
+ return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_tee), int64(src), int64(dest), Int64FromUint64(len1), Int64FromUint32(flags))))
}
const TFD_CLOEXEC = 524288
@@ -30751,7 +30749,7 @@ func Xtimerfd_create(tls *TLS, clockid int32, flags int32) (r int32) {
trc("tls=%v clockid=%v flags=%v, (%v:)", tls, clockid, flags, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_timerfd_create), int64(clockid), int64(flags)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_timerfd_create), int64(clockid), int64(flags)))))
}
func Xtimerfd_settime(tls *TLS, fd int32, flags int32, new1 uintptr, old uintptr) (r int32) {
@@ -30759,7 +30757,7 @@ func Xtimerfd_settime(tls *TLS, fd int32, flags int32, new1 uintptr, old uintptr
trc("tls=%v fd=%v flags=%v new1=%v old=%v, (%v:)", tls, fd, flags, new1, old, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall4(tls, int64(SYS_timerfd_settime), int64(fd), int64(flags), int64(new1), int64(old)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_timerfd_settime), int64(fd), int64(flags), int64(new1), int64(old)))))
}
func Xtimerfd_gettime(tls *TLS, fd int32, cur uintptr) (r int32) {
@@ -30767,7 +30765,7 @@ func Xtimerfd_gettime(tls *TLS, fd int32, cur uintptr) (r int32) {
trc("tls=%v fd=%v cur=%v, (%v:)", tls, fd, cur, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_timerfd_gettime), int64(fd), int64(cur)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_timerfd_gettime), int64(fd), int64(cur)))))
}
func Xunshare(tls *TLS, flags int32) (r int32) {
@@ -30775,7 +30773,7 @@ func Xunshare(tls *TLS, flags int32) (r int32) {
trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall1(tls, int64(SYS_unshare), int64(flags)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_unshare), int64(flags)))))
}
func Xutimes(tls *TLS, path uintptr, times uintptr) (r int32) {
@@ -30791,7 +30789,7 @@ func Xvhangup(tls *TLS) (r int32) {
trc("tls=%v, (%v:)", tls, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall0(tls, int64(SYS_vhangup)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_vhangup)))))
}
func Xvmsplice(tls *TLS, fd int32, iov uintptr, cnt Tsize_t, flags uint32) (r Tssize_t) {
@@ -30799,7 +30797,7 @@ func Xvmsplice(tls *TLS, fd int32, iov uintptr, cnt Tsize_t, flags uint32) (r Ts
trc("tls=%v fd=%v iov=%v cnt=%v flags=%v, (%v:)", tls, fd, iov, cnt, flags, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(X__syscall4(tls, int64(SYS_vmsplice), int64(fd), int64(iov), int64(cnt), int64(flags))))
+ return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_vmsplice), int64(fd), int64(iov), Int64FromUint64(cnt), Int64FromUint32(flags))))
}
const ESR_MAGIC = 1163088385
@@ -30826,6 +30824,14 @@ type Tgreg_t = uint64
type Tgregset_t = [34]uint64
+type Tfpregset_t = struct {
+ F__ccgo_align [0]uint64
+ Fvregs [32][2]uint64
+ Ffpsr uint32
+ Ffpcr uint32
+ F__ccgo_pad3 [8]byte
+}
+
type Tmcontext_t1 = struct {
Ffault_address uint64
Fregs [31]uint64
@@ -30842,7 +30848,13 @@ type T_aarch64_ctx = struct {
Fsize uint32
}
-type Tfpsimd_context = int32
+type Tfpsimd_context = struct {
+ F__ccgo_align [0]uint64
+ Fhead T_aarch64_ctx
+ Ffpsr uint32
+ Ffpcr uint32
+ Fvregs [32][2]uint64
+}
type Tesr_context = struct {
Fhead T_aarch64_ctx
@@ -30913,7 +30925,7 @@ func Xwait4(tls *TLS, pid Tpid_t, status uintptr, options int32, ru uintptr) (r1
Ftv_usec: (*(*[4]int64)(unsafe.Pointer(bp)))[int32(3)],
}
}
- return int32(X__syscall_ret(tls, uint64(r)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r)))
}
const XATTR_CREATE = 1
@@ -30925,7 +30937,7 @@ func Xgetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t
trc("tls=%v path=%v name=%v value=%v size=%v, (%v:)", tls, path, name, value, size, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(X__syscall4(tls, int64(SYS_getxattr), int64(path), int64(name), int64(value), int64(size))))
+ return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_getxattr), int64(path), int64(name), int64(value), Int64FromUint64(size))))
}
func Xlgetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) {
@@ -30933,7 +30945,7 @@ func Xlgetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_
trc("tls=%v path=%v name=%v value=%v size=%v, (%v:)", tls, path, name, value, size, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(X__syscall4(tls, int64(SYS_lgetxattr), int64(path), int64(name), int64(value), int64(size))))
+ return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_lgetxattr), int64(path), int64(name), int64(value), Int64FromUint64(size))))
}
func Xfgetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize_t) (r Tssize_t) {
@@ -30941,7 +30953,7 @@ func Xfgetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize
trc("tls=%v filedes=%v name=%v value=%v size=%v, (%v:)", tls, filedes, name, value, size, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(X__syscall4(tls, int64(SYS_fgetxattr), int64(filedes), int64(name), int64(value), int64(size))))
+ return X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_fgetxattr), int64(filedes), int64(name), int64(value), Int64FromUint64(size))))
}
func Xlistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t) {
@@ -30949,7 +30961,7 @@ func Xlistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t)
trc("tls=%v path=%v list=%v size=%v, (%v:)", tls, path, list, size, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_listxattr), int64(path), int64(list), int64(size))))
+ return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_listxattr), int64(path), int64(list), Int64FromUint64(size))))
}
func Xllistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t) {
@@ -30957,7 +30969,7 @@ func Xllistxattr(tls *TLS, path uintptr, list uintptr, size Tsize_t) (r Tssize_t
trc("tls=%v path=%v list=%v size=%v, (%v:)", tls, path, list, size, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_llistxattr), int64(path), int64(list), int64(size))))
+ return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_llistxattr), int64(path), int64(list), Int64FromUint64(size))))
}
func Xflistxattr(tls *TLS, filedes int32, list uintptr, size Tsize_t) (r Tssize_t) {
@@ -30965,7 +30977,7 @@ func Xflistxattr(tls *TLS, filedes int32, list uintptr, size Tsize_t) (r Tssize_
trc("tls=%v filedes=%v list=%v size=%v, (%v:)", tls, filedes, list, size, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_flistxattr), int64(filedes), int64(list), int64(size))))
+ return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_flistxattr), int64(filedes), int64(list), Int64FromUint64(size))))
}
func Xsetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) {
@@ -30973,7 +30985,7 @@ func Xsetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t
trc("tls=%v path=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, path, name, value, size, flags, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall5(tls, int64(SYS_setxattr), int64(path), int64(name), int64(value), int64(size), int64(flags)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_setxattr), int64(path), int64(name), int64(value), Int64FromUint64(size), int64(flags)))))
}
func Xlsetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) {
@@ -30981,7 +30993,7 @@ func Xlsetxattr(tls *TLS, path uintptr, name uintptr, value uintptr, size Tsize_
trc("tls=%v path=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, path, name, value, size, flags, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall5(tls, int64(SYS_lsetxattr), int64(path), int64(name), int64(value), int64(size), int64(flags)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_lsetxattr), int64(path), int64(name), int64(value), Int64FromUint64(size), int64(flags)))))
}
func Xfsetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize_t, flags int32) (r int32) {
@@ -30989,7 +31001,7 @@ func Xfsetxattr(tls *TLS, filedes int32, name uintptr, value uintptr, size Tsize
trc("tls=%v filedes=%v name=%v value=%v size=%v flags=%v, (%v:)", tls, filedes, name, value, size, flags, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall5(tls, int64(SYS_fsetxattr), int64(filedes), int64(name), int64(value), int64(size), int64(flags)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fsetxattr), int64(filedes), int64(name), int64(value), Int64FromUint64(size), int64(flags)))))
}
func Xremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) {
@@ -30997,7 +31009,7 @@ func Xremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) {
trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_removexattr), int64(path), int64(name)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_removexattr), int64(path), int64(name)))))
}
func Xlremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) {
@@ -31005,7 +31017,7 @@ func Xlremovexattr(tls *TLS, path uintptr, name uintptr) (r int32) {
trc("tls=%v path=%v name=%v, (%v:)", tls, path, name, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_lremovexattr), int64(path), int64(name)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_lremovexattr), int64(path), int64(name)))))
}
func Xfremovexattr(tls *TLS, fd int32, name uintptr) (r int32) {
@@ -31013,7 +31025,7 @@ func Xfremovexattr(tls *TLS, fd int32, name uintptr) (r int32) {
trc("tls=%v fd=%v name=%v, (%v:)", tls, fd, name, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_fremovexattr), int64(fd), int64(name)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_fremovexattr), int64(fd), int64(name)))))
}
type Tucontext_t2 = struct {
@@ -31065,7 +31077,7 @@ func X__mo_lookup(tls *TLS, p uintptr, size Tsize_t, s uintptr) (r uintptr) {
var sign, sw int32
_, _, _, _, _, _, _, _, _, _, _ = b, mo, n, o, ol, os, sign, sw, t, tl, ts
mo = p
- sw = int32(*(*Tuint32_t)(unsafe.Pointer(mo)) - uint32(0x950412de))
+ sw = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(mo)) - uint32(0x950412de))
b = uint32(0)
n = _swapc(tls, *(*Tuint32_t)(unsafe.Pointer(mo + 2*4)), sw)
o = _swapc(tls, *(*Tuint32_t)(unsafe.Pointer(mo + 3*4)), sw)
@@ -31122,9 +31134,9 @@ func Xbind_textdomain_codeset(tls *TLS, domainname uintptr, codeset uintptr) (r
var _empty_mo = [5]Tuint32_t{
0: uint32(0x950412de),
- 2: uint32(-Int32FromInt32(1)),
- 3: uint32(-Int32FromInt32(1)),
- 4: uint32(-Int32FromInt32(1)),
+ 2: Uint32FromInt32(-Int32FromInt32(1)),
+ 3: Uint32FromInt32(-Int32FromInt32(1)),
+ 4: Uint32FromInt32(-Int32FromInt32(1)),
}
const NL_CAT_LOCALE = 1
@@ -31207,12 +31219,12 @@ _6:
goto _9
_9:
strings = map1 + uintptr(20) + uintptr(v8)
- v10 = uint32(set_id)
+ v10 = Uint32FromInt32(set_id)
v11 = v10>>int32(24) | v10>>int32(8)&uint32(0xff00) | v10<<int32(8)&uint32(0xff0000) | v10<<int32(24)
goto _12
_12:
*(*Tuint32_t)(unsafe.Pointer(bp)) = v11
- v13 = uint32(msg_id)
+ v13 = Uint32FromInt32(msg_id)
v14 = v13>>int32(24) | v13>>int32(8)&uint32(0xff00) | v13<<int32(8)&uint32(0xff0000) | v13<<int32(24)
goto _15
_15:
@@ -31379,13 +31391,13 @@ func Xcatopen(tls *TLS, name uintptr, oflag int32) (r Tnl_catd) {
if !(p < z) {
break
}
- if int32(*(*uint8)(unsafe.Pointer(p))) != int32('%') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) != int32('%') {
v = p
l = Uint64FromInt32(1)
} else {
p++
v6 = p
- switch int32(*(*uint8)(unsafe.Pointer(v6))) {
+ switch Int32FromUint8(*(*uint8)(unsafe.Pointer(v6))) {
case int32('N'):
v = name
l = Xstrlen(tls, v)
@@ -31474,7 +31486,7 @@ func _gettextdir(tls *TLS, domainname uintptr, dirlen uintptr) (r uintptr) {
break
}
if !(Xstrcmp(tls, (*Tbinding)(unsafe.Pointer(p)).Fdomainname, domainname) != 0) && AtomicLoadPInt32(p+12) != 0 {
- *(*Tsize_t)(unsafe.Pointer(dirlen)) = uint64((*Tbinding)(unsafe.Pointer(p)).Fdirlen)
+ *(*Tsize_t)(unsafe.Pointer(dirlen)) = Uint64FromInt32((*Tbinding)(unsafe.Pointer(p)).Fdirlen)
return (*Tbinding)(unsafe.Pointer(p)).Fdirname
}
goto _1
@@ -31505,7 +31517,7 @@ func Xbindtextdomain(tls *TLS, domainname uintptr, dirname uintptr) (r1 uintptr)
*(*Tsize_t)(unsafe.Pointer(bp)) = uint64(0)
return _gettextdir(tls, domainname, bp)
}
- domlen = Xstrnlen(tls, domainname, uint64(Int32FromInt32(NAME_MAX)+Int32FromInt32(1)))
+ domlen = Xstrnlen(tls, domainname, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1)))
dirlen = Xstrnlen(tls, dirname, uint64(PATH_MAX))
if domlen > uint64(NAME_MAX) || dirlen >= uint64(PATH_MAX) {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EINVAL)
@@ -31532,7 +31544,7 @@ func Xbindtextdomain(tls *TLS, domainname uintptr, dirname uintptr) (r1 uintptr)
return uintptr(0)
}
(*Tbinding)(unsafe.Pointer(p4)).Fnext = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_bindings)))
- (*Tbinding)(unsafe.Pointer(p4)).Fdirlen = int32(dirlen)
+ (*Tbinding)(unsafe.Pointer(p4)).Fdirlen = Int32FromUint64(dirlen)
(*Tbinding)(unsafe.Pointer(p4)).Fdomainname = p4 + 32
(*Tbinding)(unsafe.Pointer(p4)).Fdirname = p4 + 32 + uintptr(domlen) + uintptr(1)
Xmemcpy(tls, (*Tbinding)(unsafe.Pointer(p4)).Fdomainname, domainname, domlen+uint64(1))
@@ -31648,13 +31660,13 @@ func Xdcngettext(tls *TLS, domainname uintptr, msgid1 uintptr, msgid2 uintptr, n
if !(msgid1 != 0) {
goto notrans
}
- if uint32(category) >= uint32(LC_ALL) {
+ if Uint32FromInt32(category) >= uint32(LC_ALL) {
goto notrans
}
if !(domainname != 0) {
domainname = X__gettextdomain(tls)
}
- domlen = Xstrnlen(tls, domainname, uint64(Int32FromInt32(NAME_MAX)+Int32FromInt32(1)))
+ domlen = Xstrnlen(tls, domainname, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1)))
if domlen > uint64(NAME_MAX) {
goto notrans
}
@@ -31707,7 +31719,7 @@ _2:
dirname = (*Tbinding)(unsafe.Pointer(q)).Fdirname
locname = lm + 16
catname = uintptr(unsafe.Pointer(&_catnames)) + uintptr(category)*12
- dirlen = uint64((*Tbinding)(unsafe.Pointer(q)).Fdirlen)
+ dirlen = Uint64FromInt32((*Tbinding)(unsafe.Pointer(q)).Fdirlen)
loclen = Xstrlen(tls, locname)
catlen = uint64(_catlens[category])
/* Logically split @mod suffix from locale name. */
@@ -31715,19 +31727,19 @@ _2:
if !(modname != 0) {
modname = locname + uintptr(loclen)
}
- v5 = loclen - uint64(int64(modname)-int64(locname))
+ v5 = loclen - Uint64FromInt64(int64(modname)-int64(locname))
modlen = v5
alt_modlen = v5
- loclen = uint64(int64(modname) - int64(locname))
+ loclen = Uint64FromInt64(int64(modname) - int64(locname))
/* Drop .charset identifier; it is not used. */
csp = Xmemchr(tls, locname, int32('.'), loclen)
if csp != 0 {
- loclen = uint64(int64(csp) - int64(locname))
+ loclen = Uint64FromInt64(int64(csp) - int64(locname))
}
v6 = dirlen + uint64(1) + loclen + modlen + uint64(1) + catlen + uint64(1) + domlen + uint64(3) + uint64(1)
name = Xrealloc(tls, name, v6)
for {
- Xsnprintf(tls, name, v6, __ccgo_ts+423, VaList(bp+24, dirname, int32(loclen), locname, int32(alt_modlen), modname, catname, domainname))
+ Xsnprintf(tls, name, v6, __ccgo_ts+423, VaList(bp+24, dirname, Int32FromUint64(loclen), locname, Int32FromUint64(alt_modlen), modname, catname, domainname))
v8 = X__map_file(tls, name, bp)
map1 = v8
if v8 != 0 {
@@ -31740,7 +31752,7 @@ _2:
v9 = Xmemchr(tls, locname, int32('_'), loclen)
locp = v9
if v9 != 0 {
- loclen = uint64(int64(locp) - int64(locname))
+ loclen = Uint64FromInt64(int64(locp) - int64(locname))
alt_modlen = modlen
} else {
break
@@ -31777,8 +31789,8 @@ _2:
if r1 != 0 {
r1 += uintptr(13)
for {
- v11 = int32(*(*uint8)(unsafe.Pointer(r1)))
- v12 = BoolInt32(v11 == int32(' ') || uint32(v11)-uint32('\t') < uint32(5))
+ v11 = Int32FromUint8(*(*uint8)(unsafe.Pointer(r1)))
+ v12 = BoolInt32(v11 == int32(' ') || Uint32FromInt32(v11)-uint32('\t') < uint32(5))
goto _13
_13:
if !(v12 != 0) {
@@ -31790,14 +31802,14 @@ _2:
np = Xstrtoul(tls, r1+uintptr(9), bp+8, int32(10))
r1 = *(*uintptr)(unsafe.Pointer(bp + 8))
}
- for *(*uint8)(unsafe.Pointer(r1)) != 0 && int32(*(*uint8)(unsafe.Pointer(r1))) != int32(';') {
+ for *(*uint8)(unsafe.Pointer(r1)) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(r1))) != int32(';') {
r1++
}
if *(*uint8)(unsafe.Pointer(r1)) != 0 {
r1++
for {
- v14 = int32(*(*uint8)(unsafe.Pointer(r1)))
- v15 = BoolInt32(v14 == int32(' ') || uint32(v14)-uint32('\t') < uint32(5))
+ v14 = Int32FromUint8(*(*uint8)(unsafe.Pointer(r1)))
+ v15 = BoolInt32(v14 == int32(' ') || Uint32FromInt32(v14)-uint32('\t') < uint32(5))
goto _16
_16:
if !(v15 != 0) {
@@ -31810,7 +31822,7 @@ _2:
}
}
}
- (*Tmsgcat)(unsafe.Pointer(p3)).Fnplurals = int32(np)
+ (*Tmsgcat)(unsafe.Pointer(p3)).Fnplurals = Int32FromUint64(np)
(*Tmsgcat)(unsafe.Pointer(p3)).Fplural_rule = rule
for {
old_cats = AtomicLoadPUintptr(uintptr(unsafe.Pointer(&_cats)))
@@ -31861,7 +31873,7 @@ _2:
* msgid2 to request that dcngettext suppress plural processing. */
if msgid2 != 0 && (*Tmsgcat)(unsafe.Pointer(p3)).Fnplurals != 0 {
plural = X__pleval(tls, (*Tmsgcat)(unsafe.Pointer(p3)).Fplural_rule, n)
- if plural > uint64((*Tmsgcat)(unsafe.Pointer(p3)).Fnplurals) {
+ if plural > Uint64FromInt32((*Tmsgcat)(unsafe.Pointer(p3)).Fnplurals) {
goto notrans
}
for {
@@ -31870,7 +31882,7 @@ _2:
if !(v26 != 0) {
break
}
- rem = (*Tmsgcat)(unsafe.Pointer(p3)).Fmap_size - uint64(int64(trans)-int64((*Tmsgcat)(unsafe.Pointer(p3)).Fmap1))
+ rem = (*Tmsgcat)(unsafe.Pointer(p3)).Fmap_size - Uint64FromInt64(int64(trans)-int64((*Tmsgcat)(unsafe.Pointer(p3)).Fmap1))
l = Xstrnlen(tls, trans, rem)
if l+uint64(1) >= rem {
goto notrans
@@ -98099,7 +98111,7 @@ func _fuzzycmp(tls *TLS, a uintptr, b uintptr) (r int32) {
if !(*(*uint8)(unsafe.Pointer(a)) != 0 && *(*uint8)(unsafe.Pointer(b)) != 0) {
break
}
- for *(*uint8)(unsafe.Pointer(a)) != 0 && uint32(*(*uint8)(unsafe.Pointer(a)))|uint32(32)-uint32('a') > uint32(26) && uint32(int32(*(*uint8)(unsafe.Pointer(a)))-int32('0')) > uint32(10) {
+ for *(*uint8)(unsafe.Pointer(a)) != 0 && uint32(*(*uint8)(unsafe.Pointer(a)))|uint32(32)-uint32('a') > uint32(26) && Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(a)))-int32('0')) > uint32(10) {
a++
}
if uint32(*(*uint8)(unsafe.Pointer(a)))|uint32(32) != uint32(*(*uint8)(unsafe.Pointer(b))) {
@@ -98111,7 +98123,7 @@ func _fuzzycmp(tls *TLS, a uintptr, b uintptr) (r int32) {
a++
b++
}
- return BoolInt32(int32(*(*uint8)(unsafe.Pointer(a))) != int32(*(*uint8)(unsafe.Pointer(b))))
+ return BoolInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(a))) != Int32FromUint8(*(*uint8)(unsafe.Pointer(b))))
}
func _find_charmap(tls *TLS, name uintptr) (r Tsize_t) {
@@ -98135,11 +98147,11 @@ func _find_charmap(tls *TLS, name uintptr) (r Tsize_t) {
;
s += uintptr(Xstrlen(tls, s) + uint64(1))
}
- return uint64(int64(s+uintptr(1)) - t__predefined_ptrdiff_t(uintptr(unsafe.Pointer(&_charmaps))))
+ return Uint64FromInt64(int64(s+uintptr(1)) - t__predefined_ptrdiff_t(uintptr(unsafe.Pointer(&_charmaps))))
}
s += uintptr(Xstrlen(tls, s) + uint64(1))
if !(*(*uint8)(unsafe.Pointer(s)) != 0) {
- if int32(*(*uint8)(unsafe.Pointer(s + 1))) > int32(0200) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s + 1))) > int32(0200) {
s += uintptr(2)
} else {
s += uintptr(uint32(2) + (uint32(64)-uint32(*(*uint8)(unsafe.Pointer(s + 1))))*uint32(5))
@@ -98148,7 +98160,7 @@ func _find_charmap(tls *TLS, name uintptr) (r Tsize_t) {
goto _1
_1:
}
- return uint64(-Int32FromInt32(1))
+ return Uint64FromInt32(-Int32FromInt32(1))
}
type Tstateful_cd = struct {
@@ -98180,16 +98192,16 @@ func Xiconv_open(tls *TLS, to uintptr, from uintptr) (r Ticonv_t) {
_, _, _, _, _, _, _ = cd, f, scd, t, v1, v2, v3
v1 = _find_charmap(tls, to)
t = v1
- if v3 = v1 == uint64(-Int32FromInt32(1)); !v3 {
+ if v3 = v1 == Uint64FromInt32(-Int32FromInt32(1)); !v3 {
v2 = _find_charmap(tls, from)
f = v2
}
- if v3 || v2 == uint64(-Int32FromInt32(1)) || int32(_charmaps[t]) >= int32(0330) {
+ if v3 || v2 == Uint64FromInt32(-Int32FromInt32(1)) || Int32FromUint8(_charmaps[t]) >= int32(0330) {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EINVAL)
return uintptr(-Int32FromInt32(1))
}
cd = _combine_to_from(tls, t, f)
- switch int32(_charmaps[f]) {
+ switch Int32FromUint8(_charmaps[f]) {
case int32(UTF_16):
fallthrough
case int32(UTF_32):
@@ -98210,7 +98222,7 @@ func Xiconv_open(tls *TLS, to uintptr, from uintptr) (r Ticonv_t) {
func _get_16(tls *TLS, s uintptr, e int32) (r uint32) {
e &= int32(1)
- return uint32(int32(*(*uint8)(unsafe.Pointer(s + uintptr(e))))<<int32(8) | int32(*(*uint8)(unsafe.Pointer(s + uintptr(int32(1)-e)))))
+ return Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(s + uintptr(e))))<<int32(8) | Int32FromUint8(*(*uint8)(unsafe.Pointer(s + uintptr(int32(1)-e)))))
}
func _put_16(tls *TLS, s uintptr, c uint32, e int32) {
@@ -98221,7 +98233,7 @@ func _put_16(tls *TLS, s uintptr, c uint32, e int32) {
func _get_32(tls *TLS, s uintptr, e int32) (r uint32) {
e &= int32(3)
- return (uint32(*(*uint8)(unsafe.Pointer(s + uintptr(e))))+0)<<int32(24) | uint32(int32(*(*uint8)(unsafe.Pointer(s + uintptr(e^int32(1)))))<<int32(16)) | uint32(int32(*(*uint8)(unsafe.Pointer(s + uintptr(e^int32(2)))))<<int32(8)) | uint32(*(*uint8)(unsafe.Pointer(s + uintptr(e^int32(3)))))
+ return (uint32(*(*uint8)(unsafe.Pointer(s + uintptr(e))))+0)<<int32(24) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(s + uintptr(e^int32(1)))))<<int32(16)) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(s + uintptr(e^int32(2)))))<<int32(8)) | uint32(*(*uint8)(unsafe.Pointer(s + uintptr(e^int32(3)))))
}
func _put_32(tls *TLS, s uintptr, c uint32, e int32) {
@@ -98237,11 +98249,11 @@ func _put_32(tls *TLS, s uintptr, c uint32, e int32) {
func _legacy_map(tls *TLS, map1 uintptr, c uint32) (r uint32) {
var x, v1 uint32
_, _ = x, v1
- if c < uint32(int32(4)*int32(*(*uint8)(unsafe.Pointer(map1 + uintptr(-Int32FromInt32(1)))))) {
+ if c < Uint32FromInt32(int32(4)*Int32FromUint8(*(*uint8)(unsafe.Pointer(map1 + uintptr(-Int32FromInt32(1)))))) {
return c
}
- x = c - uint32(int32(4)*int32(*(*uint8)(unsafe.Pointer(map1 + uintptr(-Int32FromInt32(1))))))
- x = uint32(int32(*(*uint8)(unsafe.Pointer(map1 + uintptr(x*uint32(5)/uint32(4)))))>>(uint32(2)*x%uint32(8)) | int32(*(*uint8)(unsafe.Pointer(map1 + uintptr(x*uint32(5)/uint32(4)+uint32(1)))))<<(uint32(8)-uint32(2)*x%uint32(8))&int32(1023))
+ x = c - Uint32FromInt32(int32(4)*Int32FromUint8(*(*uint8)(unsafe.Pointer(map1 + uintptr(-Int32FromInt32(1))))))
+ x = Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(map1 + uintptr(x*uint32(5)/uint32(4)))))>>(uint32(2)*x%uint32(8)) | Int32FromUint8(*(*uint8)(unsafe.Pointer(map1 + uintptr(x*uint32(5)/uint32(4)+uint32(1)))))<<(uint32(8)-uint32(2)*x%uint32(8))&int32(1023))
if x < uint32(256) {
v1 = x
} else {
@@ -98326,7 +98338,7 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
}
c = uint32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(in)))))
l = uint64(1)
- switch int32(type1) {
+ switch Int32FromUint8(type1) {
case int32(UTF_8):
goto _2
case int32(US_ASCII):
@@ -98377,10 +98389,10 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
goto _23
}
l = Xmbrtowc(tls, bp+32, *(*uintptr)(unsafe.Pointer(in)), *(*Tsize_t)(unsafe.Pointer(inb)), bp+24)
- if l == uint64(-Int32FromInt32(1)) {
+ if l == Uint64FromInt32(-Int32FromInt32(1)) {
goto ilseq
}
- if l == uint64(-Int32FromInt32(2)) {
+ if l == Uint64FromInt32(-Int32FromInt32(2)) {
goto starved
}
c = *(*Twchar_t)(unsafe.Pointer(bp + 32))
@@ -98409,7 +98421,7 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
if *(*Tsize_t)(unsafe.Pointer(inb)) < uint64(4) {
goto starved
}
- c = _get_32(tls, *(*uintptr)(unsafe.Pointer(in)), int32(type1))
+ c = _get_32(tls, *(*uintptr)(unsafe.Pointer(in)), Int32FromUint8(type1))
_24:
;
if c-uint32(0xd800) < uint32(0x800) || c >= uint32(0x110000) {
@@ -98428,19 +98440,19 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
if *(*Tsize_t)(unsafe.Pointer(inb)) < uint64(2) {
goto starved
}
- c = _get_16(tls, *(*uintptr)(unsafe.Pointer(in)), int32(type1))
+ c = _get_16(tls, *(*uintptr)(unsafe.Pointer(in)), Int32FromUint8(type1))
if c-Uint32FromInt32(0xdc00) < uint32(0x400) {
goto ilseq
}
if c-Uint32FromInt32(0xd800) < uint32(0x400) {
- if uint32(int32(type1)-int32(UCS2BE)) < uint32(2) {
+ if Uint32FromInt32(Int32FromUint8(type1)-int32(UCS2BE)) < uint32(2) {
goto ilseq
}
l = uint64(4)
if *(*Tsize_t)(unsafe.Pointer(inb)) < uint64(4) {
goto starved
}
- d = _get_16(tls, *(*uintptr)(unsafe.Pointer(in))+UintptrFromInt32(2), int32(type1))
+ d = _get_16(tls, *(*uintptr)(unsafe.Pointer(in))+UintptrFromInt32(2), Int32FromUint8(type1))
if d-Uint32FromInt32(0xdc00) >= uint32(0x400) {
goto ilseq
}
@@ -98457,7 +98469,7 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
goto starved
}
c = _get_16(tls, *(*uintptr)(unsafe.Pointer(in)), 0)
- if int32(type1) == int32(UCS2) {
+ if Int32FromUint8(type1) == int32(UCS2) {
if c == uint32(0xfffe) {
v26 = int32(UCS2LE)
} else {
@@ -98472,7 +98484,7 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
}
v25 = v27
}
- (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(v25)
+ (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = Uint32FromInt32(v25)
if c == uint32(0xfffe) || c == uint32(0xfeff) {
l = uint64(2)
}
@@ -98492,7 +98504,7 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
} else {
v28 = int32(UTF_32BE)
}
- (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(v28)
+ (*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = Uint32FromInt32(v28)
if c == uint32(0xfffe0000) || c == uint32(0xfeff) {
l = uint64(4)
}
@@ -98504,8 +98516,8 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
if c < uint32(128) {
goto _23
}
- if c-uint32(0xa1) <= uint32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) {
- c += uint32(Int32FromInt32(0xff61) - Int32FromInt32(0xa1))
+ if c-uint32(0xa1) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) {
+ c += Uint32FromInt32(Int32FromInt32(0xff61) - Int32FromInt32(0xa1))
goto _23
}
l = uint64(2)
@@ -98513,17 +98525,17 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
goto starved
}
d = uint32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(in)) + UintptrFromInt32(1))))
- if c-uint32(129) <= uint32(Int32FromInt32(159)-Int32FromInt32(129)) {
+ if c-uint32(129) <= Uint32FromInt32(Int32FromInt32(159)-Int32FromInt32(129)) {
c -= uint32(129)
} else {
- if c-uint32(224) <= uint32(Int32FromInt32(239)-Int32FromInt32(224)) {
+ if c-uint32(224) <= Uint32FromInt32(Int32FromInt32(239)-Int32FromInt32(224)) {
c -= uint32(193)
} else {
goto ilseq
}
}
c *= uint32(2)
- if d-uint32(64) <= uint32(Int32FromInt32(158)-Int32FromInt32(64)) {
+ if d-uint32(64) <= Uint32FromInt32(Int32FromInt32(158)-Int32FromInt32(64)) {
if d == uint32(127) {
goto ilseq
}
@@ -98532,7 +98544,7 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
}
d -= uint32(64)
} else {
- if d-uint32(159) <= uint32(Int32FromInt32(252)-Int32FromInt32(159)) {
+ if d-uint32(159) <= Uint32FromInt32(Int32FromInt32(252)-Int32FromInt32(159)) {
c++
d -= uint32(159)
}
@@ -98557,10 +98569,10 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
d = uint32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(in)) + UintptrFromInt32(1))))
if c == uint32(0x8e) {
c = d
- if c-uint32(0xa1) > uint32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) {
+ if c-uint32(0xa1) > Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) {
goto ilseq
}
- c += uint32(Int32FromInt32(0xff61) - Int32FromInt32(0xa1))
+ c += Uint32FromInt32(Int32FromInt32(0xff61) - Int32FromInt32(0xa1))
goto _23
}
c -= uint32(0xa1)
@@ -98588,7 +98600,7 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
if c != uint32('(') && c != uint32('$') {
goto ilseq
}
- switch uint32(Int32FromInt32(128)*BoolInt32(c == Uint32FromUint8('$'))) + d {
+ switch Uint32FromInt32(Int32FromInt32(128)*BoolInt32(c == Uint32FromUint8('$'))) + d {
case uint32('B'):
(*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(0)
goto _1
@@ -98598,10 +98610,10 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
case uint32('I'):
(*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(4)
goto _1
- case uint32(Int32FromInt32(128) + Int32FromUint8('@')):
+ case Uint32FromInt32(Int32FromInt32(128) + Int32FromUint8('@')):
(*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(2)
goto _1
- case uint32(Int32FromInt32(128) + Int32FromUint8('B')):
+ case Uint32FromInt32(Int32FromInt32(128) + Int32FromUint8('B')):
(*Tstateful_cd)(unsafe.Pointer(scd)).Fstate = uint32(3)
goto _1
}
@@ -98637,7 +98649,7 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
goto ilseq
}
if c-uint32(0x21) < uint32(0x5e) {
- c += uint32(Int32FromInt32(0xff61) - Int32FromInt32(0x21))
+ c += Uint32FromInt32(Int32FromInt32(0xff61) - Int32FromInt32(0x21))
}
break
}
@@ -98670,11 +98682,11 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
goto starved
}
d = uint32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(in)) + UintptrFromInt32(1))))
- if d < uint32(0xa1) && int32(type1) == int32(GB2312) {
+ if d < uint32(0xa1) && Int32FromUint8(type1) == int32(GB2312) {
goto ilseq
}
if d-uint32(0x40) >= uint32(191) || d == uint32(127) {
- if d-uint32('0') > uint32(9) || int32(type1) != int32(GB18030) {
+ if d-uint32('0') > uint32(9) || Int32FromUint8(type1) != int32(GB18030) {
goto ilseq
}
l = uint64(4)
@@ -98745,23 +98757,23 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
goto starved
}
d = uint32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(in)) + UintptrFromInt32(1))))
- if d-uint32(0x40) >= uint32(Int32FromInt32(0xff)-Int32FromInt32(0x40)) || d-uint32(0x7f) < uint32(Int32FromInt32(0xa1)-Int32FromInt32(0x7f)) {
+ if d-uint32(0x40) >= Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x40)) || d-uint32(0x7f) < Uint32FromInt32(Int32FromInt32(0xa1)-Int32FromInt32(0x7f)) {
goto ilseq
}
d -= uint32(0x40)
if d > uint32(0x3e) {
d -= uint32(0x22)
}
- if c-uint32(0xa1) >= uint32(Int32FromInt32(0xfa)-Int32FromInt32(0xa1)) {
- if c-uint32(0x87) >= uint32(Int32FromInt32(0xff)-Int32FromInt32(0x87)) {
+ if c-uint32(0xa1) >= Uint32FromInt32(Int32FromInt32(0xfa)-Int32FromInt32(0xa1)) {
+ if c-uint32(0x87) >= Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x87)) {
goto ilseq
}
if c < uint32(0xa1) {
c -= uint32(0x87)
} else {
- c -= uint32(Int32FromInt32(0x87) + (Int32FromInt32(0xfa) - Int32FromInt32(0xa1)))
+ c -= Uint32FromInt32(Int32FromInt32(0x87) + (Int32FromInt32(0xfa) - Int32FromInt32(0xa1)))
}
- c = uint32(int32(_hkscs[uint32(4867)+(c*uint32(157)+d)/uint32(16)])>>((c*uint32(157)+d)%uint32(16))%int32(2)<<int32(17) | int32(_hkscs[c*uint32(157)+d]))
+ c = Uint32FromInt32(Int32FromUint16(_hkscs[uint32(4867)+(c*uint32(157)+d)/uint32(16)])>>((c*uint32(157)+d)%uint32(16))%int32(2)<<int32(17) | Int32FromUint16(_hkscs[c*uint32(157)+d]))
/* A few HKSCS characters map to pairs of UCS
* characters. These are mapped to surrogate
* range in the hkscs table then hard-coded
@@ -98772,7 +98784,7 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
*(*Tsize_t)(unsafe.Pointer(bp + 8)) = uint64(4)
*(*Tsize_t)(unsafe.Pointer(bp + 16)) = uint64(8)
tmpx = Xiconv(tls, _combine_to_from(tls, uint64(to), _find_charmap(tls, __ccgo_ts+511)), bp, bp+8, bp+48, bp+16)
- tmplen = uint64(int64(*(*uintptr)(unsafe.Pointer(bp + 48))) - t__predefined_ptrdiff_t(bp+40))
+ tmplen = Uint64FromInt64(int64(*(*uintptr)(unsafe.Pointer(bp + 48))) - t__predefined_ptrdiff_t(bp+40))
if tmplen > *(*Tsize_t)(unsafe.Pointer(outb)) {
goto toobig
}
@@ -98790,7 +98802,7 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
goto _23
}
c -= uint32(0xa1)
- c = uint32(int32(*(*uint16)(unsafe.Pointer(uintptr(unsafe.Pointer(&_big5)) + uintptr(c)*314 + uintptr(d)*2))) | BoolInt32(c == uint32(0x27) && (d == uint32(0x3a) || d == uint32(0x3c) || d == uint32(0x42)))<<int32(17))
+ c = Uint32FromInt32(Int32FromUint16(*(*uint16)(unsafe.Pointer(uintptr(unsafe.Pointer(&_big5)) + uintptr(c)*314 + uintptr(d)*2))) | BoolInt32(c == uint32(0x27) && (d == uint32(0x3a) || d == uint32(0x3c) || d == uint32(0x42)))<<int32(17))
if !(c != 0) {
goto ilseq
}
@@ -98808,9 +98820,9 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
c -= uint32(0xa1)
d -= uint32(0xa1)
if c >= uint32(93) || d >= uint32(94) {
- c += uint32(Int32FromInt32(0xa1) - Int32FromInt32(0x81))
+ c += Uint32FromInt32(Int32FromInt32(0xa1) - Int32FromInt32(0x81))
d += uint32(0xa1)
- if c >= uint32(93) || c >= uint32(Int32FromInt32(0xc6)-Int32FromInt32(0x81)) && d > uint32(0x52) {
+ if c >= uint32(93) || c >= Uint32FromInt32(Int32FromInt32(0xc6)-Int32FromInt32(0x81)) && d > uint32(0x52) {
goto ilseq
}
if d-uint32('A') < uint32(26) {
@@ -98819,7 +98831,7 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
if d-uint32('a') < uint32(26) {
d = d - uint32('a') + uint32(26)
} else {
- if d-uint32(0x81) < uint32(Int32FromInt32(0xff)-Int32FromInt32(0x81)) {
+ if d-uint32(0x81) < Uint32FromInt32(Int32FromInt32(0xff)-Int32FromInt32(0x81)) {
d = d - uint32(0x81) + uint32(52)
} else {
goto ilseq
@@ -98829,7 +98841,7 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
if c < uint32(0x20) {
c = uint32(178)*c + d
} else {
- c = uint32(Int32FromInt32(178)*Int32FromInt32(0x20)) + uint32(84)*(c-uint32(0x20)) + d
+ c = Uint32FromInt32(Int32FromInt32(178)*Int32FromInt32(0x20)) + uint32(84)*(c-uint32(0x20)) + d
}
c += uint32(0xac00)
d = uint32(0xac00)
@@ -98884,7 +98896,7 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
}
_23:
;
- switch int32(totype) {
+ switch Int32FromUint8(totype) {
case int32(WCHAR_T):
goto _35
case int32(UTF_8):
@@ -98931,13 +98943,13 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
_36:
;
if *(*Tsize_t)(unsafe.Pointer(outb)) < uint64(4) {
- k = uint64(Xwctomb(tls, bp+56, c))
+ k = Uint64FromInt32(Xwctomb(tls, bp+56, c))
if *(*Tsize_t)(unsafe.Pointer(outb)) < k {
goto toobig
}
Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(out)), bp+56, k)
} else {
- k = uint64(Xwctomb(tls, *(*uintptr)(unsafe.Pointer(out)), c))
+ k = Uint64FromInt32(Xwctomb(tls, *(*uintptr)(unsafe.Pointer(out)), c))
}
*(*uintptr)(unsafe.Pointer(out)) += uintptr(k)
*(*Tsize_t)(unsafe.Pointer(outb)) -= k
@@ -98977,7 +98989,7 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
_53:
;
d = c
- c = uint32(int32(4) * int32(totype))
+ c = Uint32FromInt32(int32(4) * Int32FromUint8(totype))
for {
if !(c < uint32(256)) {
break
@@ -99006,8 +99018,8 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
c = uint32('~')
goto revout
}
- if c-uint32(0xff61) <= uint32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) {
- c += uint32(Int32FromInt32(0xa1) - Int32FromInt32(0xff61))
+ if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) {
+ c += Uint32FromInt32(Int32FromInt32(0xa1) - Int32FromInt32(0xff61))
goto revout
}
c = _uni_to_jis(tls, c)
@@ -99027,7 +99039,7 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
} else {
v59 = int32(176)
}
- *(*uint8)(unsafe.Pointer(v57)) = uint8((c+uint32(1))/uint32(2) + uint32(v59))
+ *(*uint8)(unsafe.Pointer(v57)) = uint8((c+uint32(1))/uint32(2) + Uint32FromInt32(v59))
v61 = out
v60 = *(*uintptr)(unsafe.Pointer(v61))
*(*uintptr)(unsafe.Pointer(v61))++
@@ -99044,8 +99056,8 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
if c < uint32(128) {
goto revout
}
- if c-uint32(0xff61) <= uint32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) {
- c += uint32(Int32FromInt32(0x0e00) + Int32FromInt32(0x21) - Int32FromInt32(0xff61))
+ if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) {
+ c += Uint32FromInt32(Int32FromInt32(0x0e00) + Int32FromInt32(0x21) - Int32FromInt32(0xff61))
} else {
c = _uni_to_jis(tls, c)
}
@@ -99070,7 +99082,7 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
if c < uint32(128) {
goto revout
}
- if c-uint32(0xff61) <= uint32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) || c == uint32(0xa5) || c == uint32(0x203e) {
+ if c-uint32(0xff61) <= Uint32FromInt32(Int32FromInt32(0xdf)-Int32FromInt32(0xa1)) || c == uint32(0xa5) || c == uint32(0x203e) {
if *(*Tsize_t)(unsafe.Pointer(outb)) < uint64(7) {
goto toobig
}
@@ -99181,14 +99193,14 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
;
_43:
;
- if c < uint32(0x10000) || uint32(int32(totype)-int32(UCS2BE)) < uint32(2) {
+ if c < uint32(0x10000) || Uint32FromInt32(Int32FromUint8(totype)-int32(UCS2BE)) < uint32(2) {
if c >= uint32(0x10000) {
c = uint32(0xFFFD)
}
if *(*Tsize_t)(unsafe.Pointer(outb)) < uint64(2) {
goto toobig
}
- _put_16(tls, *(*uintptr)(unsafe.Pointer(out)), c, int32(totype))
+ _put_16(tls, *(*uintptr)(unsafe.Pointer(out)), c, Int32FromUint8(totype))
*(*uintptr)(unsafe.Pointer(out)) += uintptr(2)
*(*Tsize_t)(unsafe.Pointer(outb)) -= uint64(2)
goto _51
@@ -99197,8 +99209,8 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
goto toobig
}
c -= uint32(0x10000)
- _put_16(tls, *(*uintptr)(unsafe.Pointer(out)), c>>int32(10)|uint32(0xd800), int32(totype))
- _put_16(tls, *(*uintptr)(unsafe.Pointer(out))+UintptrFromInt32(2), c&uint32(0x3ff)|uint32(0xdc00), int32(totype))
+ _put_16(tls, *(*uintptr)(unsafe.Pointer(out)), c>>int32(10)|uint32(0xd800), Int32FromUint8(totype))
+ _put_16(tls, *(*uintptr)(unsafe.Pointer(out))+UintptrFromInt32(2), c&uint32(0x3ff)|uint32(0xdc00), Int32FromUint8(totype))
*(*uintptr)(unsafe.Pointer(out)) += uintptr(4)
*(*Tsize_t)(unsafe.Pointer(outb)) -= uint64(4)
goto _51
@@ -99212,7 +99224,7 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
if *(*Tsize_t)(unsafe.Pointer(outb)) < uint64(4) {
goto toobig
}
- _put_32(tls, *(*uintptr)(unsafe.Pointer(out)), c, int32(totype))
+ _put_32(tls, *(*uintptr)(unsafe.Pointer(out)), c, Int32FromUint8(totype))
*(*uintptr)(unsafe.Pointer(out)) += uintptr(4)
*(*Tsize_t)(unsafe.Pointer(outb)) -= uint64(4)
goto _51
@@ -99230,19 +99242,19 @@ func Xiconv(tls *TLS, cd Ticonv_t, in uintptr, inb uintptr, out uintptr, outb ui
ilseq:
;
err = int32(EILSEQ)
- x = uint64(-Int32FromInt32(1))
+ x = Uint64FromInt32(-Int32FromInt32(1))
goto end
goto toobig
toobig:
;
err = int32(E2BIG)
- x = uint64(-Int32FromInt32(1))
+ x = Uint64FromInt32(-Int32FromInt32(1))
goto end
goto starved
starved:
;
err = int32(EINVAL)
- x = uint64(-Int32FromInt32(1))
+ x = Uint64FromInt32(-Int32FromInt32(1))
goto end
end:
;
@@ -99431,7 +99443,7 @@ func X__get_locale(tls *TLS, cat int32, val uintptr) (r uintptr) {
/* Limit name length and forbid leading dot or any slashes. */
n = uint64(0)
for {
- if !(n < uint64(LOCALE_NAME_MAX) && *(*uint8)(unsafe.Pointer(val + uintptr(n))) != 0 && int32(*(*uint8)(unsafe.Pointer(val + uintptr(n)))) != int32('/')) {
+ if !(n < uint64(LOCALE_NAME_MAX) && *(*uint8)(unsafe.Pointer(val + uintptr(n))) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(val + uintptr(n)))) != int32('/')) {
break
}
goto _8
@@ -99439,12 +99451,12 @@ func X__get_locale(tls *TLS, cat int32, val uintptr) (r uintptr) {
;
n++
}
- if int32(*(*uint8)(unsafe.Pointer(val))) == int32('.') || *(*uint8)(unsafe.Pointer(val + uintptr(n))) != 0 {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(val))) == int32('.') || *(*uint8)(unsafe.Pointer(val + uintptr(n))) != 0 {
val = __ccgo_ts + 531
}
- builtin = BoolInt32(int32(*(*uint8)(unsafe.Pointer(val))) == int32('C') && !(*(*uint8)(unsafe.Pointer(val + 1)) != 0) || !(Xstrcmp(tls, val, __ccgo_ts+531) != 0) || !(Xstrcmp(tls, val, __ccgo_ts+539) != 0))
+ builtin = BoolInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(val))) == int32('C') && !(*(*uint8)(unsafe.Pointer(val + 1)) != 0) || !(Xstrcmp(tls, val, __ccgo_ts+531) != 0) || !(Xstrcmp(tls, val, __ccgo_ts+539) != 0))
if builtin != 0 {
- if cat == LC_CTYPE && int32(*(*uint8)(unsafe.Pointer(val + 1))) == int32('.') {
+ if cat == LC_CTYPE && Int32FromUint8(*(*uint8)(unsafe.Pointer(val + 1))) == int32('.') {
return uintptr(unsafe.Pointer(&X__c_dot_utf8))
}
return uintptr(0)
@@ -99472,7 +99484,7 @@ func X__get_locale(tls *TLS, cat int32, val uintptr) (r uintptr) {
break
}
z = X__strchrnul(tls, path, int32(':'))
- l = uint64(int64(z) - int64(path))
+ l = Uint64FromInt64(int64(z) - int64(path))
if l >= uint64(256)-n-uint64(2) {
goto _10
}
@@ -99711,8 +99723,8 @@ func _skipspace(tls *TLS, s uintptr) (r uintptr) {
var v1, v2 int32
_, _ = v1, v2
for {
- v1 = int32(*(*uint8)(unsafe.Pointer(s)))
- v2 = BoolInt32(v1 == int32(' ') || uint32(v1)-uint32('\t') < uint32(5))
+ v1 = Int32FromUint8(*(*uint8)(unsafe.Pointer(s)))
+ v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5))
goto _3
_3:
if !(v2 != 0) {
@@ -99737,23 +99749,23 @@ func _evalprim(tls *TLS, st uintptr, s uintptr, d int32) (r uintptr) {
s = _skipspace(tls, s)
if BoolInt32(uint32(*(*uint8)(unsafe.Pointer(s)))-uint32('0') < uint32(10)) != 0 {
(*Tst)(unsafe.Pointer(st)).Fr = Xstrtoul(tls, s, bp, int32(10))
- if *(*uintptr)(unsafe.Pointer(bp)) == s || (*Tst)(unsafe.Pointer(st)).Fr == uint64(-Int32FromInt32(1)) {
+ if *(*uintptr)(unsafe.Pointer(bp)) == s || (*Tst)(unsafe.Pointer(st)).Fr == Uint64FromInt32(-Int32FromInt32(1)) {
return __ccgo_ts
}
return _skipspace(tls, *(*uintptr)(unsafe.Pointer(bp)))
}
- if int32(*(*uint8)(unsafe.Pointer(s))) == int32('n') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('n') {
(*Tst)(unsafe.Pointer(st)).Fr = (*Tst)(unsafe.Pointer(st)).Fn
return _skipspace(tls, s+uintptr(1))
}
- if int32(*(*uint8)(unsafe.Pointer(s))) == int32('(') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('(') {
s = _evalexpr(tls, st, s+uintptr(1), d)
- if int32(*(*uint8)(unsafe.Pointer(s))) != int32(')') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) != int32(')') {
return __ccgo_ts
}
return _skipspace(tls, s+uintptr(1))
}
- if int32(*(*uint8)(unsafe.Pointer(s))) == int32('!') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('!') {
s = _evalprim(tls, st, s+uintptr(1), d)
(*Tst)(unsafe.Pointer(st)).Fr = BoolUint64(!((*Tst)(unsafe.Pointer(st)).Fr != 0))
return s
@@ -99824,9 +99836,9 @@ func _parseop(tls *TLS, st uintptr, s uintptr) (r uintptr) {
if !(i < int32(11)) {
break
}
- if int32(*(*uint8)(unsafe.Pointer(s))) == int32(_opch[i]) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == Int32FromUint8(_opch[i]) {
/* note: >,< are accepted with or without = */
- if i < int32(6) && int32(*(*uint8)(unsafe.Pointer(s + 1))) == int32(_opch2[i]) {
+ if i < int32(6) && Int32FromUint8(*(*uint8)(unsafe.Pointer(s + 1))) == Int32FromUint8(_opch2[i]) {
(*Tst)(unsafe.Pointer(st)).Fop = i
return s + uintptr(2)
}
@@ -99863,11 +99875,11 @@ func _evalbinop(tls *TLS, st uintptr, s uintptr, minprec int32, d int32) (r uint
if op was missing then prec[op]==0
*/
op = (*Tst)(unsafe.Pointer(st)).Fop
- if int32(_prec[op]) <= minprec {
+ if Int32FromUint8(_prec[op]) <= minprec {
return s
}
left = (*Tst)(unsafe.Pointer(st)).Fr
- s = _evalbinop(tls, st, s, int32(_prec[op]), d)
+ s = _evalbinop(tls, st, s, Int32FromUint8(_prec[op]), d)
if _binop(tls, st, op, left) != 0 {
return __ccgo_ts
}
@@ -99903,12 +99915,12 @@ func _evalexpr(tls *TLS, st uintptr, s uintptr, d int32) (r uintptr) {
return __ccgo_ts
}
s = _evalbinop(tls, st, s, 0, d)
- if int32(*(*uint8)(unsafe.Pointer(s))) != int32('?') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) != int32('?') {
return s
}
a = (*Tst)(unsafe.Pointer(st)).Fr
s = _evalexpr(tls, st, s+uintptr(1), d)
- if int32(*(*uint8)(unsafe.Pointer(s))) != int32(':') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) != int32(':') {
return __ccgo_ts
}
b = (*Tst)(unsafe.Pointer(st)).Fr
@@ -99934,10 +99946,10 @@ func X__pleval(tls *TLS, s uintptr, n uint64) (r uint64) {
_ = v1
(*(*Tst)(unsafe.Pointer(bp))).Fn = n
s = _evalexpr(tls, bp, s, int32(100))
- if int32(*(*uint8)(unsafe.Pointer(s))) == int32(';') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32(';') {
v1 = (*(*Tst)(unsafe.Pointer(bp))).Fr
} else {
- v1 = uint64(-Int32FromInt32(1))
+ v1 = Uint64FromInt32(-Int32FromInt32(1))
}
return v1
}
@@ -99957,7 +99969,7 @@ func Xsetlocale(tls *TLS, cat int32, name uintptr) (r uintptr) {
var _ /* part at bp+48 */ [24]uint8
var _ /* tmp_locale at bp+0 */ t__locale_struct
_, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, l, lm, lm1, p, part1, ret, s, same, z, v3, v4, v5, v6
- if uint32(cat) > uint32(LC_ALL) {
+ if Uint32FromInt32(cat) > uint32(LC_ALL) {
return uintptr(0)
}
___lock(tls, uintptr(unsafe.Pointer(&X__locale_lock)))
@@ -99977,7 +99989,7 @@ func Xsetlocale(tls *TLS, cat int32, name uintptr) (r uintptr) {
}
z = X__strchrnul(tls, p, int32(';'))
if int64(z)-int64(p) <= int64(LOCALE_NAME_MAX) {
- Xmemcpy(tls, bp+48, p, uint64(int64(z)-int64(p)))
+ Xmemcpy(tls, bp+48, p, Uint64FromInt64(int64(z)-int64(p)))
(*(*[24]uint8)(unsafe.Pointer(bp + 48)))[int64(z)-int64(p)] = uint8(0)
if *(*uint8)(unsafe.Pointer(z)) != 0 {
p = z + uintptr(1)
@@ -100091,7 +100103,7 @@ _3:
if !(n != 0 && *(*uint8)(unsafe.Pointer(fmt)) != 0) {
goto _1
}
- if !(int32(*(*uint8)(unsafe.Pointer(fmt))) != int32('%')) {
+ if !(Int32FromUint8(*(*uint8)(unsafe.Pointer(fmt))) != int32('%')) {
goto _4
}
goto literal
@@ -100107,7 +100119,7 @@ literal:
_4:
;
fmt++
- if int32(*(*uint8)(unsafe.Pointer(fmt))) == int32('%') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(fmt))) == int32('%') {
goto literal
}
fill = int32(' ')
@@ -100116,11 +100128,11 @@ _4:
nosym = 0
left = 0
for {
- switch int32(*(*uint8)(unsafe.Pointer(fmt))) {
+ switch Int32FromUint8(*(*uint8)(unsafe.Pointer(fmt))) {
case int32('='):
fmt++
v8 = fmt
- fill = int32(*(*uint8)(unsafe.Pointer(v8)))
+ fill = Int32FromUint8(*(*uint8)(unsafe.Pointer(v8)))
goto _7
case int32('^'):
nogrp = int32(1)
@@ -100148,7 +100160,7 @@ _4:
if !(BoolInt32(uint32(*(*uint8)(unsafe.Pointer(fmt)))-uint32('0') < uint32(10)) != 0) {
break
}
- fw = int32(10)*fw + (int32(*(*uint8)(unsafe.Pointer(fmt))) - int32('0'))
+ fw = int32(10)*fw + (Int32FromUint8(*(*uint8)(unsafe.Pointer(fmt))) - int32('0'))
goto _9
_9:
;
@@ -100156,28 +100168,28 @@ _4:
}
lp = 0
rp = int32(2)
- if int32(*(*uint8)(unsafe.Pointer(fmt))) == int32('#') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(fmt))) == int32('#') {
lp = 0
fmt++
for {
if !(BoolInt32(uint32(*(*uint8)(unsafe.Pointer(fmt)))-uint32('0') < uint32(10)) != 0) {
break
}
- lp = int32(10)*lp + (int32(*(*uint8)(unsafe.Pointer(fmt))) - int32('0'))
+ lp = int32(10)*lp + (Int32FromUint8(*(*uint8)(unsafe.Pointer(fmt))) - int32('0'))
goto _10
_10:
;
fmt++
}
}
- if int32(*(*uint8)(unsafe.Pointer(fmt))) == int32('.') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(fmt))) == int32('.') {
rp = 0
fmt++
for {
if !(BoolInt32(uint32(*(*uint8)(unsafe.Pointer(fmt)))-uint32('0') < uint32(10)) != 0) {
break
}
- rp = int32(10)*rp + (int32(*(*uint8)(unsafe.Pointer(fmt))) - int32('0'))
+ rp = int32(10)*rp + (Int32FromUint8(*(*uint8)(unsafe.Pointer(fmt))) - int32('0'))
goto _11
_11:
;
@@ -100186,13 +100198,13 @@ _4:
}
v12 = fmt
fmt++
- intl = BoolInt32(int32(*(*uint8)(unsafe.Pointer(v12))) == int32('i'))
+ intl = BoolInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(v12))) == int32('i'))
w = lp + int32(1) + rp
if !(left != 0) && fw > w {
w = fw
}
x = VaFloat64(&ap)
- l = uint64(Xsnprintf(tls, s, n, __ccgo_ts+560, VaList(bp+8, w, rp, x)))
+ l = Uint64FromInt32(Xsnprintf(tls, s, n, __ccgo_ts+560, VaList(bp+8, w, rp, x)))
if l >= n {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(E2BIG)
return int64(-int32(1))
@@ -100363,7 +100375,7 @@ func Xtextdomain(tls *TLS, domainname uintptr) (r uintptr) {
return uintptr(0)
}
if !(_current_domain != 0) {
- _current_domain = Xmalloc(tls, uint64(Int32FromInt32(NAME_MAX)+Int32FromInt32(1)))
+ _current_domain = Xmalloc(tls, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1)))
if !(_current_domain != 0) {
return uintptr(0)
}
@@ -100499,7 +100511,7 @@ func Xreallocarray(tls *TLS, ptr uintptr, m Tsize_t, n Tsize_t) (r uintptr) {
trc("tls=%v ptr=%v m=%v n=%v, (%v:)", tls, ptr, m, n, origin(2))
defer func() { trc("-> %v", r) }()
}
- if n != 0 && m > uint64(-Int32FromInt32(1))/n {
+ if n != 0 && m > Uint64FromInt32(-Int32FromInt32(1))/n {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(ENOMEM)
return uintptr(0)
}
@@ -100573,7 +100585,7 @@ func X__expo2(tls *TLS, x float64, sign float64) (r float64) {
var v1 Tuint64_t
_, _ = scale, v1
/* note that k is odd and scale*scale overflows */
- v1 = uint64(uint32(Int32FromInt32(0x3ff)+_k2/Int32FromInt32(2))<<Int32FromInt32(20))<<Int32FromInt32(32) | uint64(uint32(Int32FromInt32(0)))
+ v1 = uint64(Uint32FromInt32(Int32FromInt32(0x3ff)+_k2/Int32FromInt32(2))<<Int32FromInt32(20))<<Int32FromInt32(32) | uint64(Uint32FromInt32(Int32FromInt32(0)))
scale = *(*float64)(unsafe.Pointer(&v1))
/* exp(x - k ln2) * 2**(k-1) */
/* in directed rounding correct sign before rounding or overflow is important */
@@ -100598,7 +100610,7 @@ func X__expo2f(tls *TLS, x float32, sign float32) (r float32) {
var v1 Tuint32_t
_, _ = scale, v1
/* note that k is odd and scale*scale overflows */
- v1 = uint32(Int32FromInt32(0x7f)+_k3/Int32FromInt32(2)) << int32(23)
+ v1 = Uint32FromInt32(Int32FromInt32(0x7f)+_k3/Int32FromInt32(2)) << int32(23)
scale = *(*float32)(unsafe.Pointer(&v1))
/* exp(x - k ln2) * 2**(k-1) */
/* in directed rounding correct sign before rounding or overflow is important */
@@ -100626,7 +100638,7 @@ func X__fpclassify(tls *TLS, x float64) (r int32) {
Ff float64
}{}
*(*float64)(unsafe.Pointer(bp)) = x
- e = int32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff))
+ e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff))
if !(e != 0) {
if *(*Tuint64_t)(unsafe.Pointer(bp))<<int32(1) != 0 {
v1 = int32(FP_SUBNORMAL)
@@ -100667,7 +100679,7 @@ func X__fpclassifyf(tls *TLS, x float32) (r int32) {
Ff float32
}{}
*(*float32)(unsafe.Pointer(bp)) = x
- e = int32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff))
+ e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff))
if !(e != 0) {
if *(*Tuint32_t)(unsafe.Pointer(bp))<<int32(1) != 0 {
v1 = int32(FP_SUBNORMAL)
@@ -100884,7 +100896,7 @@ func X__rem_pio2(tls *TLS, x float64, y uintptr) (r1 int32) {
Ff float64
}{}
*(*float64)(unsafe.Pointer(bp)) = x
- sign = int32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63))
+ sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63))
ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff))
if ix <= uint32(0x400f6a7a) { /* |x| ~<= 5pi/4 */
if ix&uint32(0xfffff) == uint32(0x921fb) { /* |x| ~= pi/2 or 2pi/2 */
@@ -100976,8 +100988,8 @@ medium:
}
*(*float64)(unsafe.Pointer(y)) = r - w
*(*float64)(unsafe.Pointer(bp)) = *(*float64)(unsafe.Pointer(y))
- ey = int32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff))
- ex = int32(ix >> int32(20))
+ ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff))
+ ex = Int32FromUint32(ix >> int32(20))
if ex-ey > int32(16) { /* 2nd round, good to 118 bits */
t = r
w = fn * _pio2_2
@@ -100985,7 +100997,7 @@ medium:
w = fn*_pio2_2t - (t - r - w)
*(*float64)(unsafe.Pointer(y)) = r - w
*(*float64)(unsafe.Pointer(bp)) = *(*float64)(unsafe.Pointer(y))
- ey = int32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff))
+ ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff))
if ex-ey > int32(49) { /* 3rd round, good to 151 bits, covers all cases */
t = r
w = fn * _pio2_3
@@ -101009,8 +101021,8 @@ _1:
}
/* set z = scalbn(|x|,-ilogb(x)+23) */
*(*float64)(unsafe.Pointer(bp)) = x
- *(*Tuint64_t)(unsafe.Pointer(bp)) &= uint64(-Int32FromInt32(1)) >> Int32FromInt32(12)
- *(*Tuint64_t)(unsafe.Pointer(bp)) |= uint64(Int32FromInt32(0x3ff)+Int32FromInt32(23)) << Int32FromInt32(52)
+ *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) >> Int32FromInt32(12)
+ *(*Tuint64_t)(unsafe.Pointer(bp)) |= Uint64FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(23)) << Int32FromInt32(52)
z = *(*float64)(unsafe.Pointer(bp))
i = 0
for {
@@ -101029,7 +101041,7 @@ _1:
for (*(*[3]float64)(unsafe.Pointer(bp + 8)))[i] == float64(0) {
i--
}
- n = X__rem_pio2_large(tls, bp+8, bp+32, int32(ix>>Int32FromInt32(20))-(Int32FromInt32(0x3ff)+Int32FromInt32(23)), i+int32(1), int32(1))
+ n = X__rem_pio2_large(tls, bp+8, bp+32, Int32FromUint32(ix>>Int32FromInt32(20))-(Int32FromInt32(0x3ff)+Int32FromInt32(23)), i+int32(1), int32(1))
if sign != 0 {
*(*float64)(unsafe.Pointer(y)) = -(*(*[2]float64)(unsafe.Pointer(bp + 32)))[0]
*(*float64)(unsafe.Pointer(y + 1*8)) = -(*(*[2]float64)(unsafe.Pointer(bp + 32)))[int32(1)]
@@ -101601,9 +101613,9 @@ func X__rem_pio2f(tls *TLS, x float32, y uintptr) (r int32) {
return 0
}
/* scale x into [2^23, 2^24-1] */
- sign = int32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31))
- e0 = int32(ix>>Int32FromInt32(23) - uint32(Int32FromInt32(0x7f)+Int32FromInt32(23))) /* e0 = ilogb(|x|)-23, positive */
- *(*Tuint32_t)(unsafe.Pointer(bp)) = ix - uint32(e0<<Int32FromInt32(23))
+ sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31))
+ e0 = Int32FromUint32(ix>>Int32FromInt32(23) - Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(23))) /* e0 = ilogb(|x|)-23, positive */
+ *(*Tuint32_t)(unsafe.Pointer(bp)) = ix - Uint32FromInt32(e0<<Int32FromInt32(23))
(*(*[1]float64)(unsafe.Pointer(bp + 8)))[0] = float64(*(*float32)(unsafe.Pointer(bp)))
n = X__rem_pio2_large(tls, bp+8, bp+16, e0, int32(1), 0)
if sign != 0 {
@@ -101638,7 +101650,7 @@ func X__signbit(tls *TLS, x float64) (r int32) {
Fd float64
}{}
*(*float64)(unsafe.Pointer(bp)) = x
- return int32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63))
+ return Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63))
}
// C documentation
@@ -101663,7 +101675,7 @@ func X__signbitf(tls *TLS, x float32) (r int32) {
Ff float32
}{}
*(*float32)(unsafe.Pointer(bp)) = x
- return int32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31))
+ return Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31))
}
func X__signbitl(tls *TLS, x float64) (r int32) {
@@ -101756,7 +101768,7 @@ func X__tan(tls *TLS, x float64, y float64, odd int32) (r1 float64) {
hx = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32))
big = BoolInt32(hx&uint32(0x7fffffff) >= uint32(0x3FE59428)) /* |x| >= 0.6744 */
if big != 0 {
- sign = int32(hx >> int32(31))
+ sign = Int32FromUint32(hx >> int32(31))
if sign != 0 {
x = -x
y = -y
@@ -101791,13 +101803,13 @@ func X__tan(tls *TLS, x float64, y float64, odd int32) (r1 float64) {
}
/* -1.0/(x+r) has up to 2ulp error, so compute it accurately */
w0 = w
- v2 = *(*Tuint64_t)(unsafe.Pointer(&w0))>>Int32FromInt32(32)<<Int32FromInt32(32) | uint64(uint32(Int32FromInt32(0)))
+ v2 = *(*Tuint64_t)(unsafe.Pointer(&w0))>>Int32FromInt32(32)<<Int32FromInt32(32) | uint64(Uint32FromInt32(Int32FromInt32(0)))
w0 = *(*float64)(unsafe.Pointer(&v2))
v = r - (w0 - x) /* w0+v = r+x */
v3 = -Float64FromFloat64(1) / w
a = v3
a0 = v3
- v4 = *(*Tuint64_t)(unsafe.Pointer(&a0))>>Int32FromInt32(32)<<Int32FromInt32(32) | uint64(uint32(Int32FromInt32(0)))
+ v4 = *(*Tuint64_t)(unsafe.Pointer(&a0))>>Int32FromInt32(32)<<Int32FromInt32(32) | uint64(Uint32FromInt32(Int32FromInt32(0)))
a0 = *(*float64)(unsafe.Pointer(&v4))
return a0 + a*(Float64FromFloat64(1)+a0*w0+a0*v)
}
@@ -101913,7 +101925,7 @@ func Xacos(tls *TLS, x float64) (r float64) {
z = (float64(1) - x) * float64(0.5)
s = Xsqrt(tls, z)
df = s
- v1 = *(*Tuint64_t)(unsafe.Pointer(&df))>>Int32FromInt32(32)<<Int32FromInt32(32) | uint64(uint32(Int32FromInt32(0)))
+ v1 = *(*Tuint64_t)(unsafe.Pointer(&df))>>Int32FromInt32(32)<<Int32FromInt32(32) | uint64(Uint32FromInt32(Int32FromInt32(0)))
df = *(*float64)(unsafe.Pointer(&v1))
c = (z - df*df) / (s + df)
w = _R(tls, z)*s + c
@@ -102006,11 +102018,11 @@ func Xacosh(tls *TLS, x float64) (r float64) {
*(*float64)(unsafe.Pointer(bp)) = x
e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff))
/* x < 1 domain error is handled in the called functions */
- if e < uint32(Int32FromInt32(0x3ff)+Int32FromInt32(1)) {
+ if e < Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1)) {
/* |x| < 2, up to 2ulp error in [1,1.125] */
return Xlog1p(tls, x-Float64FromInt32(1)+Xsqrt(tls, (x-Float64FromInt32(1))*(x-Float64FromInt32(1))+Float64FromInt32(2)*(x-Float64FromInt32(1))))
}
- if e < uint32(Int32FromInt32(0x3ff)+Int32FromInt32(26)) {
+ if e < Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(26)) {
/* |x| < 0x1p26 */
return Xlog(tls, Float64FromInt32(2)*x-Float64FromInt32(1)/(x+Xsqrt(tls, x*x-Float64FromInt32(1))))
}
@@ -102043,12 +102055,12 @@ func Xacoshf(tls *TLS, x float32) (r float32) {
}{}
*(*float32)(unsafe.Pointer(bp)) = x
a = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff)
- if a < uint32(Int32FromInt32(0x3f800000)+Int32FromInt32(1)<<Int32FromInt32(23)) {
+ if a < Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(1)<<Int32FromInt32(23)) {
/* |x| < 2, invalid if x < 1 */
/* up to 2ulp error in [1,1.125] */
return Xlog1pf(tls, x-Float32FromInt32(1)+Xsqrtf(tls, (x-Float32FromInt32(1))*(x-Float32FromInt32(1))+Float32FromInt32(2)*(x-Float32FromInt32(1))))
}
- if *(*Tuint32_t)(unsafe.Pointer(bp)) < uint32(Int32FromInt32(0x3f800000)+Int32FromInt32(12)<<Int32FromInt32(23)) {
+ if *(*Tuint32_t)(unsafe.Pointer(bp)) < Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(12)<<Int32FromInt32(23)) {
/* 2 <= x < 0x1p12 */
return Xlogf(tls, Float32FromInt32(2)*x-Float32FromInt32(1)/(x+Xsqrtf(tls, x*x-Float32FromInt32(1))))
}
@@ -102131,7 +102143,7 @@ func Xasin(tls *TLS, x float64) (r1 float64) {
} else {
/* f+c = sqrt(z) */
f = s
- v1 = *(*Tuint64_t)(unsafe.Pointer(&f))>>Int32FromInt32(32)<<Int32FromInt32(32) | uint64(uint32(Int32FromInt32(0)))
+ v1 = *(*Tuint64_t)(unsafe.Pointer(&f))>>Int32FromInt32(32)<<Int32FromInt32(32) | uint64(Uint32FromInt32(Int32FromInt32(0)))
f = *(*float64)(unsafe.Pointer(&v1))
c = (z - f*f) / (s + f)
x = float64(0.5)*_pio2_hi2 - (Float64FromInt32(2)*s*r - (_pio2_lo2 - Float64FromInt32(2)*c) - (float64(0.5)*_pio2_hi2 - Float64FromInt32(2)*f))
@@ -102221,17 +102233,17 @@ func Xasinh(tls *TLS, x3 float64) (r float64) {
e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff))
s = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63))
/* |x| */
- *(*Tuint64_t)(unsafe.Pointer(bp)) &= uint64(-Int32FromInt32(1)) / Uint64FromInt32(2)
+ *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2)
x3 = *(*float64)(unsafe.Pointer(bp))
- if e >= uint32(Int32FromInt32(0x3ff)+Int32FromInt32(26)) {
+ if e >= Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(26)) {
/* |x| >= 0x1p26 or inf or nan */
x3 = Xlog(tls, x3) + float64(0.6931471805599453)
} else {
- if e >= uint32(Int32FromInt32(0x3ff)+Int32FromInt32(1)) {
+ if e >= Uint32FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(1)) {
/* |x| >= 2 */
x3 = Xlog(tls, Float64FromInt32(2)*x3+Float64FromInt32(1)/(Xsqrt(tls, x3*x3+Float64FromInt32(1))+x3))
} else {
- if e >= uint32(Int32FromInt32(0x3ff)-Int32FromInt32(26)) {
+ if e >= Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(26)) {
/* |x| >= 0x1p-26, up to 1.6ulp error in [0.125,0.5] */
x3 = Xlog1p(tls, x3+x3*x3/(Xsqrt(tls, x3*x3+Float64FromInt32(1))+Float64FromInt32(1)))
} else {
@@ -102288,15 +102300,15 @@ func Xasinhf(tls *TLS, x3 float32) (r float32) {
/* |x| */
*(*Tuint32_t)(unsafe.Pointer(bp)) = i
x3 = *(*float32)(unsafe.Pointer(bp))
- if i >= uint32(Int32FromInt32(0x3f800000)+Int32FromInt32(12)<<Int32FromInt32(23)) {
+ if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(12)<<Int32FromInt32(23)) {
/* |x| >= 0x1p12 or inf or nan */
x3 = Xlogf(tls, x3) + Float32FromFloat32(0.6931471805599453)
} else {
- if i >= uint32(Int32FromInt32(0x3f800000)+Int32FromInt32(1)<<Int32FromInt32(23)) {
+ if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)+Int32FromInt32(1)<<Int32FromInt32(23)) {
/* |x| >= 2 */
x3 = Xlogf(tls, Float32FromInt32(2)*x3+Float32FromInt32(1)/(Xsqrtf(tls, x3*x3+Float32FromInt32(1))+x3))
} else {
- if i >= uint32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)<<Int32FromInt32(23)) {
+ if i >= Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)<<Int32FromInt32(23)) {
/* |x| >= 0x1p-12, up to 1.6ulp error in [0.125,0.5] */
x3 = Xlog1pf(tls, x3+x3*x3/(Xsqrtf(tls, x3*x3+Float32FromInt32(1))+Float32FromInt32(1)))
} else {
@@ -102552,7 +102564,7 @@ _2:
}
}
/* |y/x| > 0x1p64 */
- if ix+uint32(Int32FromInt32(64)<<Int32FromInt32(20)) < iy || iy == uint32(0x7ff00000) {
+ if ix+Uint32FromInt32(Int32FromInt32(64)<<Int32FromInt32(20)) < iy || iy == uint32(0x7ff00000) {
if m&uint32(1) != 0 {
v7 = -_pi / Float64FromInt32(2)
} else {
@@ -102561,7 +102573,7 @@ _2:
return v7
}
/* z = atan(|y/x|) without spurious underflow */
- if m&uint32(2) != 0 && iy+uint32(Int32FromInt32(64)<<Int32FromInt32(20)) < ix { /* |y/x| < 0x1p-64, x<0 */
+ if m&uint32(2) != 0 && iy+Uint32FromInt32(Int32FromInt32(64)<<Int32FromInt32(20)) < ix { /* |y/x| < 0x1p-64, x<0 */
z = Float64FromInt32(0)
} else {
z = Xatan(tls, Xfabs(tls, y/x))
@@ -102669,7 +102681,7 @@ _2:
}
}
/* |y/x| > 0x1p26 */
- if ix+uint32(Int32FromInt32(26)<<Int32FromInt32(23)) < iy || iy == uint32(0x7f800000) {
+ if ix+Uint32FromInt32(Int32FromInt32(26)<<Int32FromInt32(23)) < iy || iy == uint32(0x7f800000) {
if m&uint32(1) != 0 {
v7 = -_pi1 / Float32FromInt32(2)
} else {
@@ -102678,7 +102690,7 @@ _2:
return v7
}
/* z = atan(|y/x|) with correct underflow */
- if m&uint32(2) != 0 && iy+uint32(Int32FromInt32(26)<<Int32FromInt32(23)) < ix { /*|y/x| < 0x1p-26, x < 0 */
+ if m&uint32(2) != 0 && iy+Uint32FromInt32(Int32FromInt32(26)<<Int32FromInt32(23)) < ix { /*|y/x| < 0x1p-26, x < 0 */
z = float32(0)
} else {
z = Xatanf(tls, Xfabsf(tls, y/x))
@@ -102848,10 +102860,10 @@ func Xatanh(tls *TLS, x3 float64) (r float64) {
e = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff))
s = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63))
/* |x| */
- *(*Tuint64_t)(unsafe.Pointer(bp)) &= uint64(-Int32FromInt32(1)) / Uint64FromInt32(2)
+ *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2)
y3 = *(*float64)(unsafe.Pointer(bp))
- if e < uint32(Int32FromInt32(0x3ff)-Int32FromInt32(1)) {
- if e < uint32(Int32FromInt32(0x3ff)-Int32FromInt32(32)) {
+ if e < Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(1)) {
+ if e < Uint32FromInt32(Int32FromInt32(0x3ff)-Int32FromInt32(32)) {
/* handle underflow */
if e == uint32(0) {
if uint64(4) == uint64(4) {
@@ -102911,10 +102923,10 @@ func Xatanhf(tls *TLS, x3 float32) (r float32) {
/* |x| */
*(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff)
y3 = *(*float32)(unsafe.Pointer(bp))
- if *(*Tuint32_t)(unsafe.Pointer(bp)) < uint32(Int32FromInt32(0x3f800000)-Int32FromInt32(1)<<Int32FromInt32(23)) {
- if *(*Tuint32_t)(unsafe.Pointer(bp)) < uint32(Int32FromInt32(0x3f800000)-Int32FromInt32(32)<<Int32FromInt32(23)) {
+ if *(*Tuint32_t)(unsafe.Pointer(bp)) < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(1)<<Int32FromInt32(23)) {
+ if *(*Tuint32_t)(unsafe.Pointer(bp)) < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(32)<<Int32FromInt32(23)) {
/* handle underflow */
- if *(*Tuint32_t)(unsafe.Pointer(bp)) < uint32(Int32FromInt32(1)<<Int32FromInt32(23)) {
+ if *(*Tuint32_t)(unsafe.Pointer(bp)) < Uint32FromInt32(Int32FromInt32(1)<<Int32FromInt32(23)) {
if uint64(4) == uint64(4) {
y = y3 * y3
} else {
@@ -103156,7 +103168,7 @@ func Xceil(tls *TLS, x3 float64) (r float64) {
Ff float64
}{}
*(*float64)(unsafe.Pointer(bp)) = x3
- e = int32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff))
+ e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff))
if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) || x3 == Float64FromInt32(0) {
return x3
}
@@ -103216,12 +103228,12 @@ func Xceilf(tls *TLS, x3 float32) (r float32) {
Ff float32
}{}
*(*float32)(unsafe.Pointer(bp)) = x3
- e = int32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f)
+ e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f)
if e >= int32(23) {
return x3
}
if e >= 0 {
- m = uint32(int32(0x007fffff) >> e)
+ m = Uint32FromInt32(int32(0x007fffff) >> e)
if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) {
return x3
}
@@ -103388,7 +103400,7 @@ func Xcos(tls *TLS, x3 float64) (r float64) {
return x3 - x3
}
/* argument reduction */
- n = uint32(X__rem_pio2(tls, x3, bp))
+ n = Uint32FromInt32(X__rem_pio2(tls, x3, bp))
switch n & Uint32FromInt32(3) {
case uint32(0):
return X__cos(tls, (*(*[2]float64)(unsafe.Pointer(bp)))[0], (*(*[2]float64)(unsafe.Pointer(bp)))[int32(1)])
@@ -103482,7 +103494,7 @@ func Xcosf(tls *TLS, x3 float32) (r float32) {
return x3 - x3
}
/* general argument reduction needed */
- n = uint32(X__rem_pio2f(tls, x3, bp))
+ n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp))
switch n & Uint32FromInt32(3) {
case uint32(0):
return X__cosdf(tls, *(*float64)(unsafe.Pointer(bp)))
@@ -103528,12 +103540,12 @@ func Xcosh(tls *TLS, x3 float64) (r float64) {
}{}
*(*float64)(unsafe.Pointer(bp)) = x3
/* |x| */
- *(*Tuint64_t)(unsafe.Pointer(bp)) &= uint64(-Int32FromInt32(1)) / Uint64FromInt32(2)
+ *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2)
x3 = *(*float64)(unsafe.Pointer(bp))
w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32))
/* |x| < log(2) */
if w < uint32(0x3fe62e42) {
- if w < uint32(Int32FromInt32(0x3ff00000)-Int32FromInt32(26)<<Int32FromInt32(20)) {
+ if w < Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(26)<<Int32FromInt32(20)) {
/* raise inexact if x!=0 */
if uint64(8) == uint64(4) {
y = float32(x3 + Float64FromFloat32(1.329227995784916e+36))
@@ -103590,7 +103602,7 @@ func Xcoshf(tls *TLS, x3 float32) (r float32) {
w = *(*Tuint32_t)(unsafe.Pointer(bp))
/* |x| < log(2) */
if w < uint32(0x3f317217) {
- if w < uint32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)<<Int32FromInt32(23)) {
+ if w < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)<<Int32FromInt32(23)) {
if uint64(4) == uint64(4) {
y = x3 + Float32FromFloat32(1.329227995784916e+36)
} else {
@@ -103726,7 +103738,7 @@ func _erfc2(tls *TLS, ix Tuint32_t, x float64) (r float64) {
S = float64(1) + s*(_sb1+s*(_sb2+s*(_sb3+s*(_sb4+s*(_sb5+s*(_sb6+s*_sb7))))))
}
z = x
- v1 = *(*Tuint64_t)(unsafe.Pointer(&z))>>Int32FromInt32(32)<<Int32FromInt32(32) | uint64(uint32(Int32FromInt32(0)))
+ v1 = *(*Tuint64_t)(unsafe.Pointer(&z))>>Int32FromInt32(32)<<Int32FromInt32(32) | uint64(Uint32FromInt32(Int32FromInt32(0)))
z = *(*float64)(unsafe.Pointer(&v1))
return Xexp(tls, -z*z-float64(0.5625)) * Xexp(tls, (z-x)*(z+x)+R/S) / x
}
@@ -103741,7 +103753,7 @@ func Xerf(tls *TLS, x float64) (r1 float64) {
var sign int32
_, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1
ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32))
- sign = int32(ix >> int32(31))
+ sign = Int32FromUint32(ix >> int32(31))
ix &= uint32(0x7fffffff)
if ix >= uint32(0x7ff00000) {
/* erf(nan)=nan, erf(+-inf)=+-1 */
@@ -103781,7 +103793,7 @@ func Xerfc(tls *TLS, x float64) (r1 float64) {
var sign int32
_, _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1, v2
ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32))
- sign = int32(ix >> int32(31))
+ sign = Int32FromUint32(ix >> int32(31))
ix &= uint32(0x7fffffff)
if ix >= uint32(0x7ff00000) {
/* erfc(nan)=nan, erfc(+-inf)=0,2 */
@@ -103926,7 +103938,7 @@ func Xerff(tls *TLS, x float32) (r1 float32) {
var sign int32
_, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1
ix = *(*Tuint32_t)(unsafe.Pointer(&x))
- sign = int32(ix >> int32(31))
+ sign = Int32FromUint32(ix >> int32(31))
ix &= uint32(0x7fffffff)
if ix >= uint32(0x7f800000) {
/* erf(nan)=nan, erf(+-inf)=+-1 */
@@ -103966,7 +103978,7 @@ func Xerfcf(tls *TLS, x float32) (r1 float32) {
var sign int32
_, _, _, _, _, _, _, _ = ix, r, s, sign, y, z, v1, v2
ix = *(*Tuint32_t)(unsafe.Pointer(&x))
- sign = int32(ix >> int32(31))
+ sign = Int32FromUint32(ix >> int32(31))
ix &= uint32(0x7fffffff)
if ix >= uint32(0x7f800000) {
/* erfc(nan)=nan, erfc(+-inf)=0,2 */
@@ -104134,7 +104146,7 @@ _3:
kd -= X__exp_data.Fshift
r = x1 + kd*X__exp_data.Fnegln2hiN + kd*X__exp_data.Fnegln2loN
/* 2^(k/N) ~= scale * (1 + tail). */
- idx = uint64(2) * (ki % uint64(Int32FromInt32(1)<<Int32FromInt32(EXP_TABLE_BITS)))
+ idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)<<Int32FromInt32(EXP_TABLE_BITS)))
top = ki << (Int32FromInt32(52) - Int32FromInt32(EXP_TABLE_BITS))
v5 = *(*Tuint64_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__exp_data)) + 112 + uintptr(idx)*8))
tail = *(*float64)(unsafe.Pointer(&v5))
@@ -104185,7 +104197,7 @@ func Xexp10(tls *TLS, x float64) (r float64) {
}{}
*(*float64)(unsafe.Pointer(bp + 8)) = *(*float64)(unsafe.Pointer(bp))
/* fabs(n) < 16 without raising invalid on nan */
- if *(*Tuint64_t)(unsafe.Pointer(bp + 8))>>int32(52)&uint64(0x7ff) < uint64(Int32FromInt32(0x3ff)+Int32FromInt32(4)) {
+ if *(*Tuint64_t)(unsafe.Pointer(bp + 8))>>int32(52)&uint64(0x7ff) < Uint64FromInt32(Int32FromInt32(0x3ff)+Int32FromInt32(4)) {
if !(y != 0) {
return _p10[int32(*(*float64)(unsafe.Pointer(bp)))+int32(15)]
}
@@ -104261,7 +104273,7 @@ func Xexp10f(tls *TLS, x float32) (r float32) {
}{}
*(*float32)(unsafe.Pointer(bp + 4)) = *(*float32)(unsafe.Pointer(bp))
/* fabsf(n) < 8 without raising invalid on nan */
- if *(*Tuint32_t)(unsafe.Pointer(bp + 4))>>int32(23)&uint32(0xff) < uint32(Int32FromInt32(0x7f)+Int32FromInt32(3)) {
+ if *(*Tuint32_t)(unsafe.Pointer(bp + 4))>>int32(23)&uint32(0xff) < Uint32FromInt32(Int32FromInt32(0x7f)+Int32FromInt32(3)) {
if !(y != 0) {
return _p101[int32(*(*float32)(unsafe.Pointer(bp)))+int32(7)]
}
@@ -104428,7 +104440,7 @@ _5:
kd -= X__exp_data.Fexp2_shift /* k/N for int k. */
r = x1 - kd
/* 2^(k/N) ~= scale * (1 + tail). */
- idx = uint64(2) * (ki % uint64(Int32FromInt32(1)<<Int32FromInt32(EXP_TABLE_BITS)))
+ idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)<<Int32FromInt32(EXP_TABLE_BITS)))
top = ki << (Int32FromInt32(52) - Int32FromInt32(EXP_TABLE_BITS))
v7 = *(*Tuint64_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__exp_data)) + 112 + uintptr(idx)*8))
tail = *(*float64)(unsafe.Pointer(&v7))
@@ -104511,7 +104523,7 @@ _3:
kd -= X__exp2f_data.Fshift_scaled /* k/N for int k. */
r = xd - kd
/* exp2(x) = 2^(k/N) * 2^r ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */
- t = *(*Tuint64_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%uint64(Int32FromInt32(1)<<Int32FromInt32(EXP2F_TABLE_BITS)))*8))
+ t = *(*Tuint64_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)<<Int32FromInt32(EXP2F_TABLE_BITS)))*8))
t += ki << (Int32FromInt32(52) - Int32FromInt32(EXP2F_TABLE_BITS))
s = *(*float64)(unsafe.Pointer(&t))
z = *(*float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__exp2f_data)) + 264))*r + *(*float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__exp2f_data)) + 264 + 1*8))
@@ -104616,7 +104628,7 @@ _3:
kd -= X__exp2f_data.Fshift
r = z - kd
/* exp(x) = 2^(k/N) * 2^(r/N) ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */
- t = *(*Tuint64_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%uint64(Int32FromInt32(1)<<Int32FromInt32(EXP2F_TABLE_BITS)))*8))
+ t = *(*Tuint64_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)<<Int32FromInt32(EXP2F_TABLE_BITS)))*8))
t += ki << (Int32FromInt32(52) - Int32FromInt32(EXP2F_TABLE_BITS))
s = *(*float64)(unsafe.Pointer(&t))
z = *(*float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__exp2f_data)) + 304))*r + *(*float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__exp2f_data)) + 304 + 1*8))
@@ -104681,7 +104693,7 @@ func Xexpm1(tls *TLS, x3 float64) (r float64) {
}{}
*(*float64)(unsafe.Pointer(bp + 8)) = x3
hx = uint32(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(32) & uint64(0x7fffffff))
- sign = int32(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63))
+ sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63))
/* filter out huge and non-finite argument */
if hx >= uint32(0x4043687A) { /* if |x|>=56*ln2 */
*(*float64)(unsafe.Pointer(bp)) = x3
@@ -104763,7 +104775,7 @@ func Xexpm1(tls *TLS, x3 float64) (r float64) {
}
return float64(1) + float64(2)*(x3-e)
}
- *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = uint64(Int32FromInt32(0x3ff)+k) << int32(52) /* 2^k */
+ *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = Uint64FromInt32(Int32FromInt32(0x3ff)+k) << int32(52) /* 2^k */
twopk = *(*float64)(unsafe.Pointer(bp + 8))
if k < 0 || k > int32(56) { /* suffice to return exp(x)-1 */
y3 = x3 - e + float64(1)
@@ -104774,7 +104786,7 @@ func Xexpm1(tls *TLS, x3 float64) (r float64) {
}
return y3 - float64(1)
}
- *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = uint64(Int32FromInt32(0x3ff)-k) << int32(52) /* 2^-k */
+ *(*Tuint64_t)(unsafe.Pointer(bp + 8)) = Uint64FromInt32(Int32FromInt32(0x3ff)-k) << int32(52) /* 2^-k */
if k < int32(20) {
y3 = (x3 - e + (Float64FromInt32(1) - *(*float64)(unsafe.Pointer(bp + 8)))) * twopk
} else {
@@ -104820,7 +104832,7 @@ func Xexpm1f(tls *TLS, x3 float32) (r float32) {
}{}
*(*float32)(unsafe.Pointer(bp)) = x3
hx = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff)
- sign = int32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31))
+ sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31))
/* filter out huge and non-finite argument */
if hx >= uint32(0x4195b844) { /* if |x|>=27*ln2 */
if hx > uint32(0x7f800000) { /* NaN */
@@ -104898,7 +104910,7 @@ func Xexpm1f(tls *TLS, x3 float32) (r float32) {
}
return Float32FromFloat32(1) + Float32FromFloat32(2)*(x3-e)
}
- *(*Tuint32_t)(unsafe.Pointer(bp)) = uint32((int32(0x7f) + k) << int32(23)) /* 2^k */
+ *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32((int32(0x7f) + k) << int32(23)) /* 2^k */
twopk = *(*float32)(unsafe.Pointer(bp))
if k < 0 || k > int32(56) { /* suffice to return exp(x)-1 */
y3 = x3 - e + Float32FromFloat32(1)
@@ -104909,7 +104921,7 @@ func Xexpm1f(tls *TLS, x3 float32) (r float32) {
}
return y3 - Float32FromFloat32(1)
}
- *(*Tuint32_t)(unsafe.Pointer(bp)) = uint32((int32(0x7f) - k) << int32(23)) /* 2^-k */
+ *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32((int32(0x7f) - k) << int32(23)) /* 2^-k */
if k < int32(23) {
y3 = (x3 - e + (Float32FromInt32(1) - *(*float32)(unsafe.Pointer(bp)))) * twopk
} else {
@@ -105131,7 +105143,7 @@ func Xfloor(tls *TLS, x3 float64) (r float64) {
Ff float64
}{}
*(*float64)(unsafe.Pointer(bp)) = x3
- e = int32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff))
+ e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff))
if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) || x3 == Float64FromInt32(0) {
return x3
}
@@ -105191,12 +105203,12 @@ func Xfloorf(tls *TLS, x3 float32) (r float32) {
Ff float32
}{}
*(*float32)(unsafe.Pointer(bp)) = x3
- e = int32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f)
+ e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f)
if e >= int32(23) {
return x3
}
if e >= 0 {
- m = uint32(int32(0x007fffff) >> e)
+ m = Uint32FromInt32(int32(0x007fffff) >> e)
if *(*Tuint32_t)(unsafe.Pointer(bp))&m == uint32(0) {
return x3
}
@@ -105258,13 +105270,13 @@ func _normalize(tls *TLS, x float64) (r Tnum) {
var v1 float64
_, _, _, _, _ = e, ix, sign, v1, v2
ix = *(*Tuint64_t)(unsafe.Pointer(&x))
- e = int32(ix >> int32(52))
+ e = Int32FromUint64(ix >> int32(52))
sign = e & int32(0x800)
e &= int32(0x7ff)
if !(e != 0) {
v1 = x * float64(9.223372036854776e+18)
ix = *(*Tuint64_t)(unsafe.Pointer(&v1))
- e = int32(ix >> int32(52) & uint64(0x7ff))
+ e = Int32FromUint64(ix >> int32(52) & uint64(0x7ff))
if e != 0 {
v2 = e - int32(63)
} else {
@@ -105391,7 +105403,7 @@ func Xfma(tls *TLS, x1 float64, y float64, z float64) (r1 float64) {
v1 = *(*Tuint64_t)(unsafe.Pointer(bp))
// __asm__("clz %0, %1" : "=r"(x) : "r"(x));
X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 80, __ccgo_ts+566)
- v2 = int32(v1)
+ v2 = Int32FromUint64(v1)
goto _3
_3:
d = v2 - int32(1)
@@ -105402,7 +105414,7 @@ func Xfma(tls *TLS, x1 float64, y float64, z float64) (r1 float64) {
v4 = *(*Tuint64_t)(unsafe.Pointer(bp + 8))
// __asm__("clz %0, %1" : "=r"(x) : "r"(x));
X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 80, __ccgo_ts+566)
- v5 = int32(v4)
+ v5 = Int32FromUint64(v4)
goto _6
_6:
d = v5 - int32(1)
@@ -105418,7 +105430,7 @@ func Xfma(tls *TLS, x1 float64, y float64, z float64) (r1 float64) {
}
e -= d
/* convert to double */
- i = int64(*(*Tuint64_t)(unsafe.Pointer(bp))) /* i is in [1<<62,(1<<63)-1] */
+ i = Int64FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp))) /* i is in [1<<62,(1<<63)-1] */
if sign != 0 {
i = -i
}
@@ -105440,7 +105452,7 @@ func Xfma(tls *TLS, x1 float64, y float64, z float64) (r1 float64) {
/* one bit is lost when scaled, add another top bit to
only round once at conversion if it is inexact */
if *(*Tuint64_t)(unsafe.Pointer(bp))<<int32(53) != 0 {
- i = int64(*(*Tuint64_t)(unsafe.Pointer(bp))>>int32(1) | *(*Tuint64_t)(unsafe.Pointer(bp))&uint64(1) | Uint64FromUint64(1)<<Int32FromInt32(62))
+ i = Int64FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp))>>int32(1) | *(*Tuint64_t)(unsafe.Pointer(bp))&uint64(1) | Uint64FromUint64(1)<<Int32FromInt32(62))
if sign != 0 {
i = -i
}
@@ -105454,7 +105466,7 @@ func Xfma(tls *TLS, x1 float64, y float64, z float64) (r1 float64) {
} else {
/* only round once when scaled */
d = int32(10)
- i = int64((*(*Tuint64_t)(unsafe.Pointer(bp))>>d | BoolUint64(!!(*(*Tuint64_t)(unsafe.Pointer(bp))<<(Int32FromInt32(64)-d) != 0))) << d)
+ i = Int64FromUint64((*(*Tuint64_t)(unsafe.Pointer(bp))>>d | BoolUint64(!!(*(*Tuint64_t)(unsafe.Pointer(bp))<<(Int32FromInt32(64)-d) != 0))) << d)
if sign != 0 {
i = -i
}
@@ -105512,12 +105524,12 @@ _6:
v7 = *(*uint64)(unsafe.Pointer(bp))
goto _8
_8:
- if int32(v5>>Int32FromInt32(63)) != int32(v7>>Int32FromInt32(63)) {
+ if Int32FromUint64(v5>>Int32FromInt32(63)) != Int32FromUint64(v7>>Int32FromInt32(63)) {
*(*float64)(unsafe.Pointer(bp)) = x
v10 = *(*uint64)(unsafe.Pointer(bp))
goto _11
_11:
- if int32(v10>>Int32FromInt32(63)) != 0 {
+ if Int32FromUint64(v10>>Int32FromInt32(63)) != 0 {
v9 = y
} else {
v9 = x
@@ -105569,12 +105581,12 @@ _6:
v7 = *(*uint32)(unsafe.Pointer(bp))
goto _8
_8:
- if int32(v5>>Int32FromInt32(31)) != int32(v7>>Int32FromInt32(31)) {
+ if Int32FromUint32(v5>>Int32FromInt32(31)) != Int32FromUint32(v7>>Int32FromInt32(31)) {
*(*float32)(unsafe.Pointer(bp)) = x
v10 = *(*uint32)(unsafe.Pointer(bp))
goto _11
_11:
- if int32(v10>>Int32FromInt32(31)) != 0 {
+ if Int32FromUint32(v10>>Int32FromInt32(31)) != 0 {
v9 = y
} else {
v9 = x
@@ -105634,12 +105646,12 @@ _6:
v7 = *(*uint64)(unsafe.Pointer(bp))
goto _8
_8:
- if int32(v5>>Int32FromInt32(63)) != int32(v7>>Int32FromInt32(63)) {
+ if Int32FromUint64(v5>>Int32FromInt32(63)) != Int32FromUint64(v7>>Int32FromInt32(63)) {
*(*float64)(unsafe.Pointer(bp)) = x
v10 = *(*uint64)(unsafe.Pointer(bp))
goto _11
_11:
- if int32(v10>>Int32FromInt32(63)) != 0 {
+ if Int32FromUint64(v10>>Int32FromInt32(63)) != 0 {
v9 = x
} else {
v9 = y
@@ -105691,12 +105703,12 @@ _6:
v7 = *(*uint32)(unsafe.Pointer(bp))
goto _8
_8:
- if int32(v5>>Int32FromInt32(31)) != int32(v7>>Int32FromInt32(31)) {
+ if Int32FromUint32(v5>>Int32FromInt32(31)) != Int32FromUint32(v7>>Int32FromInt32(31)) {
*(*float32)(unsafe.Pointer(bp)) = x
v10 = *(*uint32)(unsafe.Pointer(bp))
goto _11
_11:
- if int32(v10>>Int32FromInt32(31)) != 0 {
+ if Int32FromUint32(v10>>Int32FromInt32(31)) != 0 {
v9 = x
} else {
v9 = y
@@ -105760,9 +105772,9 @@ func Xfmod(tls *TLS, x float64, y float64) (r float64) {
Ff float64
}{}
*(*float64)(unsafe.Pointer(bp + 16)) = y
- ex = int32(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52) & uint64(0x7ff))
- ey = int32(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(52) & uint64(0x7ff))
- sx = int32(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63))
+ ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52) & uint64(0x7ff))
+ ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(52) & uint64(0x7ff))
+ sx = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63))
/* in the followings uxi should be ux.i, but then gcc wrongly adds */
/* float load/store to inner loops ruining performance and code size */
uxi = *(*Tuint64_t)(unsafe.Pointer(bp + 8))
@@ -105794,7 +105806,7 @@ func Xfmod(tls *TLS, x float64, y float64) (r float64) {
ex--
i <<= uint64(1)
}
- uxi <<= uint64(-ex + int32(1))
+ uxi <<= Uint64FromInt32(-ex + int32(1))
} else {
uxi = uxi & (-Uint64FromUint64(1) >> Int32FromInt32(12))
uxi = uxi | Uint64FromUint64(1)<<Int32FromInt32(52)
@@ -105811,7 +105823,7 @@ func Xfmod(tls *TLS, x float64, y float64) (r float64) {
ey--
i <<= uint64(1)
}
- *(*Tuint64_t)(unsafe.Pointer(bp + 16)) <<= uint64(-ey + int32(1))
+ *(*Tuint64_t)(unsafe.Pointer(bp + 16)) <<= Uint64FromInt32(-ey + int32(1))
} else {
p6 = bp + 16
*(*Tuint64_t)(unsafe.Pointer(p6)) = *(*Tuint64_t)(unsafe.Pointer(p6)) & (-Uint64FromUint64(1) >> Int32FromInt32(12))
@@ -105856,11 +105868,11 @@ func Xfmod(tls *TLS, x float64, y float64) (r float64) {
/* scale result */
if ex > 0 {
uxi = uxi - Uint64FromUint64(1)<<Int32FromInt32(52)
- uxi |= uint64(ex) << int32(52)
+ uxi |= Uint64FromInt32(ex) << int32(52)
} else {
- uxi >>= uint64(-ex + int32(1))
+ uxi >>= Uint64FromInt32(-ex + int32(1))
}
- uxi |= uint64(sx) << int32(63)
+ uxi |= Uint64FromInt32(sx) << int32(63)
*(*Tuint64_t)(unsafe.Pointer(bp + 8)) = uxi
return *(*float64)(unsafe.Pointer(bp + 8))
}
@@ -105905,8 +105917,8 @@ func Xfmodf(tls *TLS, x float32, y float32) (r float32) {
Ff float32
}{}
*(*float32)(unsafe.Pointer(bp + 8)) = y
- ex = int32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(23) & uint32(0xff))
- ey = int32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(23) & uint32(0xff))
+ ex = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(23) & uint32(0xff))
+ ey = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(23) & uint32(0xff))
sx = *(*Tuint32_t)(unsafe.Pointer(bp + 4)) & uint32(0x80000000)
uxi = *(*Tuint32_t)(unsafe.Pointer(bp + 4))
if v3 = *(*Tuint32_t)(unsafe.Pointer(bp + 8))<<int32(1) == uint32(0); !v3 {
@@ -105937,7 +105949,7 @@ func Xfmodf(tls *TLS, x float32, y float32) (r float32) {
ex--
i <<= uint32(1)
}
- uxi <<= uint32(-ex + int32(1))
+ uxi <<= Uint32FromInt32(-ex + int32(1))
} else {
uxi &= -Uint32FromUint32(1) >> Int32FromInt32(9)
uxi |= Uint32FromUint32(1) << Int32FromInt32(23)
@@ -105954,7 +105966,7 @@ func Xfmodf(tls *TLS, x float32, y float32) (r float32) {
ey--
i <<= uint32(1)
}
- *(*Tuint32_t)(unsafe.Pointer(bp + 8)) <<= uint32(-ey + int32(1))
+ *(*Tuint32_t)(unsafe.Pointer(bp + 8)) <<= Uint32FromInt32(-ey + int32(1))
} else {
*(*Tuint32_t)(unsafe.Pointer(bp + 8)) &= -Uint32FromUint32(1) >> Int32FromInt32(9)
*(*Tuint32_t)(unsafe.Pointer(bp + 8)) |= Uint32FromUint32(1) << Int32FromInt32(23)
@@ -105997,9 +106009,9 @@ func Xfmodf(tls *TLS, x float32, y float32) (r float32) {
/* scale result up */
if ex > 0 {
uxi -= Uint32FromUint32(1) << Int32FromInt32(23)
- uxi |= uint32(ex) << int32(23)
+ uxi |= Uint32FromInt32(ex) << int32(23)
} else {
- uxi >>= uint32(-ex + int32(1))
+ uxi >>= Uint32FromInt32(-ex + int32(1))
}
uxi |= sx
*(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uxi
@@ -106036,7 +106048,7 @@ func Xfrexp(tls *TLS, x float64, e uintptr) (r float64) {
Fd float64
}{}
*(*float64)(unsafe.Pointer(bp)) = x
- ee = int32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff))
+ ee = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff))
if !(ee != 0) {
if x != 0 {
x = Xfrexp(tls, x*float64(1.8446744073709552e+19), e)
@@ -106080,7 +106092,7 @@ func Xfrexpf(tls *TLS, x float32, e uintptr) (r float32) {
Ff float32
}{}
*(*float32)(unsafe.Pointer(bp)) = x
- ee = int32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff))
+ ee = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff))
if !(ee != 0) {
if x != 0 {
x = Xfrexpf(tls, float32(float64(x)*float64(1.8446744073709552e+19)), e)
@@ -106188,8 +106200,8 @@ func Xhypot(tls *TLS, x float64, y float64) (r float64) {
})(unsafe.Pointer(bp + 8)) = ut
}
/* special cases */
- ex = int32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52))
- ey = int32(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52))
+ ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52))
+ ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52))
x = *(*float64)(unsafe.Pointer(bp))
y = *(*float64)(unsafe.Pointer(bp + 8))
/* note: hypot(inf,nan) == inf */
@@ -106281,19 +106293,19 @@ func Xhypotf(tls *TLS, x float32, y float32) (r float32) {
}
x = *(*float32)(unsafe.Pointer(bp))
y = *(*float32)(unsafe.Pointer(bp + 4))
- if *(*Tuint32_t)(unsafe.Pointer(bp + 4)) == uint32(Int32FromInt32(0xff)<<Int32FromInt32(23)) {
+ if *(*Tuint32_t)(unsafe.Pointer(bp + 4)) == Uint32FromInt32(Int32FromInt32(0xff)<<Int32FromInt32(23)) {
return y
}
- if *(*Tuint32_t)(unsafe.Pointer(bp)) >= uint32(Int32FromInt32(0xff)<<Int32FromInt32(23)) || *(*Tuint32_t)(unsafe.Pointer(bp + 4)) == uint32(0) || *(*Tuint32_t)(unsafe.Pointer(bp))-*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >= uint32(Int32FromInt32(25)<<Int32FromInt32(23)) {
+ if *(*Tuint32_t)(unsafe.Pointer(bp)) >= Uint32FromInt32(Int32FromInt32(0xff)<<Int32FromInt32(23)) || *(*Tuint32_t)(unsafe.Pointer(bp + 4)) == uint32(0) || *(*Tuint32_t)(unsafe.Pointer(bp))-*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >= Uint32FromInt32(Int32FromInt32(25)<<Int32FromInt32(23)) {
return x + y
}
z = Float32FromInt32(1)
- if *(*Tuint32_t)(unsafe.Pointer(bp)) >= uint32((Int32FromInt32(0x7f)+Int32FromInt32(60))<<Int32FromInt32(23)) {
+ if *(*Tuint32_t)(unsafe.Pointer(bp)) >= Uint32FromInt32((Int32FromInt32(0x7f)+Int32FromInt32(60))<<Int32FromInt32(23)) {
z = Float32FromFloat32(1.2379400392853803e+27)
x *= Float32FromFloat32(8.077935669463161e-28)
y *= Float32FromFloat32(8.077935669463161e-28)
} else {
- if *(*Tuint32_t)(unsafe.Pointer(bp + 4)) < uint32((Int32FromInt32(0x7f)-Int32FromInt32(60))<<Int32FromInt32(23)) {
+ if *(*Tuint32_t)(unsafe.Pointer(bp + 4)) < Uint32FromInt32((Int32FromInt32(0x7f)-Int32FromInt32(60))<<Int32FromInt32(23)) {
z = Float32FromFloat32(8.077935669463161e-28)
x *= Float32FromFloat32(1.2379400392853803e+27)
y *= Float32FromFloat32(1.2379400392853803e+27)
@@ -106335,7 +106347,7 @@ func Xilogb(tls *TLS, x3 float64) (r int32) {
}{}
*(*float64)(unsafe.Pointer(bp)) = x3
i = *(*Tuint64_t)(unsafe.Pointer(bp))
- e = int32(i >> int32(52) & uint64(0x7ff))
+ e = Int32FromUint64(i >> int32(52) & uint64(0x7ff))
if !(e != 0) {
i <<= uint64(12)
if i == uint64(0) {
@@ -106409,7 +106421,7 @@ func Xilogbf(tls *TLS, x3 float32) (r int32) {
}{}
*(*float32)(unsafe.Pointer(bp)) = x3
i = *(*Tuint32_t)(unsafe.Pointer(bp))
- e = int32(i >> int32(23) & uint32(0xff))
+ e = Int32FromUint32(i >> int32(23) & uint32(0xff))
if !(e != 0) {
i <<= uint32(9)
if i == uint32(0) {
@@ -107217,7 +107229,7 @@ func Xj1(tls *TLS, x float64) (r1 float64) {
var sign int32
_, _, _, _, _ = ix, r, s, sign, z
ix = uint32(*(*Tuint64_t)(unsafe.Pointer(&x)) >> int32(32))
- sign = int32(ix >> int32(31))
+ sign = Int32FromUint32(ix >> int32(31))
ix &= uint32(0x7fffffff)
if ix >= uint32(0x7ff00000) {
return Float64FromInt32(1) / (x * x)
@@ -107553,7 +107565,7 @@ func Xj1f(tls *TLS, x float32) (r1 float32) {
var sign int32
_, _, _, _, _ = ix, r, s, sign, z
ix = *(*Tuint32_t)(unsafe.Pointer(&x))
- sign = int32(ix >> int32(31))
+ sign = Int32FromUint32(ix >> int32(31))
ix &= uint32(0x7fffffff)
if ix >= uint32(0x7f800000) {
return Float32FromInt32(1) / (x * x)
@@ -107842,7 +107854,7 @@ func Xjn(tls *TLS, n int32, x float64) (r float64) {
__u = *(*Tuint64_t)(unsafe.Pointer(&x))
ix = uint32(__u >> int32(32))
lx = uint32(__u)
- sign = int32(ix >> int32(31))
+ sign = Int32FromUint32(ix >> int32(31))
ix &= uint32(0x7fffffff)
if ix|(lx|-lx)>>int32(31) > uint32(0x7ff00000) { /* nan */
return x
@@ -108044,7 +108056,7 @@ func Xyn(tls *TLS, n int32, x float64) (r float64) {
__u = *(*Tuint64_t)(unsafe.Pointer(&x))
ix = uint32(__u >> int32(32))
lx = uint32(__u)
- sign = int32(ix >> int32(31))
+ sign = Int32FromUint32(ix >> int32(31))
ix &= uint32(0x7fffffff)
if ix|(lx|-lx)>>int32(31) > uint32(0x7ff00000) { /* nan */
return x
@@ -108138,7 +108150,7 @@ func Xjnf(tls *TLS, n int32, x float32) (r float32) {
var ix Tuint32_t
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, b, h, i, ix, k, nf, nm1, q0, q1, sign, t, temp, tmp, w, z, v6
ix = *(*Tuint32_t)(unsafe.Pointer(&x))
- sign = int32(ix >> int32(31))
+ sign = Int32FromUint32(ix >> int32(31))
ix &= uint32(0x7fffffff)
if ix > uint32(0x7f800000) { /* nan */
return x
@@ -108303,7 +108315,7 @@ func Xynf(tls *TLS, n int32, x float32) (r float32) {
var ib, ix Tuint32_t
_, _, _, _, _, _, _, _, _, _ = a, b, i, ib, ix, nm1, sign, temp, v1, v3
ix = *(*Tuint32_t)(unsafe.Pointer(&x))
- sign = int32(ix >> int32(31))
+ sign = Int32FromUint32(ix >> int32(31))
ix &= uint32(0x7fffffff)
if ix > uint32(0x7f800000) { /* nan */
return x
@@ -108505,12 +108517,12 @@ func X__lgamma_r(tls *TLS, x float64, signgamp uintptr) (r1 float64) {
*(*float64)(unsafe.Pointer(bp)) = x
/* purge off +-inf, NaN, +-0, tiny and negative arguments */
*(*int32)(unsafe.Pointer(signgamp)) = int32(1)
- sign = int32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63))
+ sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63))
ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff))
if ix >= uint32(0x7ff00000) {
return x * x
}
- if ix < uint32((Int32FromInt32(0x3ff)-Int32FromInt32(70))<<Int32FromInt32(20)) { /* |x|<2**-70, return -log(|x|) */
+ if ix < Uint32FromInt32((Int32FromInt32(0x3ff)-Int32FromInt32(70))<<Int32FromInt32(20)) { /* |x|<2**-70, return -log(|x|) */
if sign != 0 {
x = -x
*(*int32)(unsafe.Pointer(signgamp)) = -int32(1)
@@ -108762,7 +108774,7 @@ func X__lgammaf_r(tls *TLS, x float32, signgamp uintptr) (r1 float32) {
*(*float32)(unsafe.Pointer(bp)) = x
/* purge off +-inf, NaN, +-0, tiny and negative arguments */
*(*int32)(unsafe.Pointer(signgamp)) = int32(1)
- sign = int32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31))
+ sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31))
ix = *(*Tuint32_t)(unsafe.Pointer(bp)) & uint32(0x7fffffff)
if ix >= uint32(0x7f800000) {
return x * x
@@ -109029,7 +109041,7 @@ func Xlog(tls *TLS, x1 float64) (r1 float64) {
_7:
return v6
}
- if top-uint32(0x0010) >= uint32(Int32FromInt32(0x7ff0)-Int32FromInt32(0x0010)) {
+ if top-uint32(0x0010) >= Uint32FromInt32(Int32FromInt32(0x7ff0)-Int32FromInt32(0x0010)) {
/* x < 0x1p-1022 or inf or nan. */
if ix*uint64(2) == uint64(0) {
return X__math_divzero(tls, uint32(1))
@@ -109050,8 +109062,8 @@ func Xlog(tls *TLS, x1 float64) (r1 float64) {
The range is split into N subintervals.
The ith subinterval contains z and c is near its center. */
tmp = ix - uint64(OFF)
- i = int32(tmp >> (Int32FromInt32(52) - Int32FromInt32(LOG_TABLE_BITS)) % uint64(Int32FromInt32(1)<<Int32FromInt32(LOG_TABLE_BITS)))
- k = int32(int64(tmp) >> int32(52)) /* arithmetic shift */
+ i = Int32FromUint64(tmp >> (Int32FromInt32(52) - Int32FromInt32(LOG_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<<Int32FromInt32(LOG_TABLE_BITS)))
+ k = int32(Int64FromUint64(tmp) >> int32(52)) /* arithmetic shift */
iz = ix - tmp&(Uint64FromUint64(0xfff)<<Int32FromInt32(52))
invc = (*(*struct {
Finvc float64
@@ -109144,8 +109156,8 @@ func Xlog10(tls *TLS, x float64) (r float64) {
}
}
/* reduce x into [sqrt(2)/2, sqrt(2)] */
- hx += uint32(Int32FromInt32(0x3ff00000) - Int32FromInt32(0x3fe6a09e))
- k += int32(hx>>Int32FromInt32(20)) - int32(0x3ff)
+ hx += Uint32FromInt32(Int32FromInt32(0x3ff00000) - Int32FromInt32(0x3fe6a09e))
+ k += Int32FromUint32(hx>>Int32FromInt32(20)) - int32(0x3ff)
hx = hx&uint32(0x000fffff) + uint32(0x3fe6a09e)
*(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(hx)<<int32(32) | *(*Tuint64_t)(unsafe.Pointer(bp))&uint64(0xffffffff)
x = *(*float64)(unsafe.Pointer(bp))
@@ -109161,7 +109173,7 @@ func Xlog10(tls *TLS, x float64) (r float64) {
/* hi+lo = f - hfsq + s*(hfsq+R) ~ log(1+f) */
hi = f - hfsq
*(*float64)(unsafe.Pointer(bp)) = hi
- *(*Tuint64_t)(unsafe.Pointer(bp)) &= uint64(-Int32FromInt32(1)) << Int32FromInt32(32)
+ *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) << Int32FromInt32(32)
hi = *(*float64)(unsafe.Pointer(bp))
lo = f - hi - hfsq + s*(hfsq+R)
/* val_hi+val_lo ~ log10(1+f) + k*log10(2) */
@@ -109238,8 +109250,8 @@ func Xlog10f(tls *TLS, x float32) (r float32) {
}
}
/* reduce x into [sqrt(2)/2, sqrt(2)] */
- ix += uint32(Int32FromInt32(0x3f800000) - Int32FromInt32(0x3f3504f3))
- k += int32(ix>>Int32FromInt32(23)) - int32(0x7f)
+ ix += Uint32FromInt32(Int32FromInt32(0x3f800000) - Int32FromInt32(0x3f3504f3))
+ k += Int32FromUint32(ix>>Int32FromInt32(23)) - int32(0x7f)
ix = ix&uint32(0x007fffff) + uint32(0x3f3504f3)
*(*Tuint32_t)(unsafe.Pointer(bp)) = ix
x = *(*float32)(unsafe.Pointer(bp))
@@ -109312,7 +109324,7 @@ func Xlog1p(tls *TLS, x3 float64) (r float64) {
} /* log1p(-1) = -inf */
return (x3 - x3) / float64(0) /* log1p(x<-1) = NaN */
}
- if hx<<int32(1) < uint32(Int32FromInt32(0x3ca00000)<<Int32FromInt32(1)) { /* |x| < 2**-53 */
+ if hx<<int32(1) < Uint32FromInt32(Int32FromInt32(0x3ca00000)<<Int32FromInt32(1)) { /* |x| < 2**-53 */
/* underflow if subnormal */
if hx&uint32(0x7ff00000) == uint32(0) {
if uint64(4) == uint64(4) {
@@ -109340,8 +109352,8 @@ func Xlog1p(tls *TLS, x3 float64) (r float64) {
if k != 0 {
*(*float64)(unsafe.Pointer(bp)) = Float64FromInt32(1) + x3
hu = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32))
- hu += uint32(Int32FromInt32(0x3ff00000) - Int32FromInt32(0x3fe6a09e))
- k = int32(hu>>Int32FromInt32(20)) - int32(0x3ff)
+ hu += Uint32FromInt32(Int32FromInt32(0x3ff00000) - Int32FromInt32(0x3fe6a09e))
+ k = Int32FromUint32(hu>>Int32FromInt32(20)) - int32(0x3ff)
/* correction term ~ log(1+x)-log(u), avoid underflow in c/u */
if k < int32(54) {
if k >= int32(2) {
@@ -109412,7 +109424,7 @@ func Xlog1pf(tls *TLS, x3 float32) (r float32) {
} /* log1p(-1)=+inf */
return (x3 - x3) / Float32FromFloat32(0) /* log1p(x<-1)=NaN */
}
- if ix<<int32(1) < uint32(Int32FromInt32(0x33800000)<<Int32FromInt32(1)) { /* |x| < 2**-24 */
+ if ix<<int32(1) < Uint32FromInt32(Int32FromInt32(0x33800000)<<Int32FromInt32(1)) { /* |x| < 2**-24 */
/* underflow if subnormal */
if ix&uint32(0x7f800000) == uint32(0) {
if uint64(4) == uint64(4) {
@@ -109440,8 +109452,8 @@ func Xlog1pf(tls *TLS, x3 float32) (r float32) {
if k != 0 {
*(*float32)(unsafe.Pointer(bp)) = Float32FromInt32(1) + x3
iu = *(*Tuint32_t)(unsafe.Pointer(bp))
- iu += uint32(Int32FromInt32(0x3f800000) - Int32FromInt32(0x3f3504f3))
- k = int32(iu>>Int32FromInt32(23)) - int32(0x7f)
+ iu += Uint32FromInt32(Int32FromInt32(0x3f800000) - Int32FromInt32(0x3f3504f3))
+ k = Int32FromUint32(iu>>Int32FromInt32(23)) - int32(0x7f)
/* correction term ~ log(1+x)-log(u), avoid underflow in c/u */
if k < int32(25) {
if k >= int32(2) {
@@ -109533,7 +109545,7 @@ func Xlog2(tls *TLS, x1 float64) (r1 float64) {
_7:
return v6
}
- if top-uint32(0x0010) >= uint32(Int32FromInt32(0x7ff0)-Int32FromInt32(0x0010)) {
+ if top-uint32(0x0010) >= Uint32FromInt32(Int32FromInt32(0x7ff0)-Int32FromInt32(0x0010)) {
/* x < 0x1p-1022 or inf or nan. */
if ix*uint64(2) == uint64(0) {
return X__math_divzero(tls, uint32(1))
@@ -109554,8 +109566,8 @@ func Xlog2(tls *TLS, x1 float64) (r1 float64) {
The range is split into N subintervals.
The ith subinterval contains z and c is near its center. */
tmp = ix - uint64(OFF)
- i = int32(tmp >> (Int32FromInt32(52) - Int32FromInt32(LOG2_TABLE_BITS)) % uint64(Int32FromInt32(1)<<Int32FromInt32(LOG2_TABLE_BITS)))
- k = int32(int64(tmp) >> int32(52)) /* arithmetic shift */
+ i = Int32FromUint64(tmp >> (Int32FromInt32(52) - Int32FromInt32(LOG2_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<<Int32FromInt32(LOG2_TABLE_BITS)))
+ k = int32(Int64FromUint64(tmp) >> int32(52)) /* arithmetic shift */
iz = ix - tmp&(Uint64FromUint64(0xfff)<<Int32FromInt32(52))
invc = (*(*struct {
Finvc float64
@@ -109631,7 +109643,7 @@ func Xlog2f(tls *TLS, x1 float32) (r1 float32) {
if Bool(int32(WANT_ROUNDING) != 0) && ix == uint32(0x3f800000) {
return Float32FromInt32(0)
}
- if ix-uint32(0x00800000) >= uint32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) {
+ if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) {
/* x < 0x1p-126 or inf or nan. */
if ix*uint32(2) == uint32(0) {
return X__math_divzerof(tls, uint32(1))
@@ -109645,16 +109657,16 @@ func Xlog2f(tls *TLS, x1 float32) (r1 float32) {
/* x is subnormal, normalize it. */
v1 = x1 * Float32FromFloat32(8.388608e+06)
ix = *(*Tuint32_t)(unsafe.Pointer(&v1))
- ix -= uint32(Int32FromInt32(23) << Int32FromInt32(23))
+ ix -= Uint32FromInt32(Int32FromInt32(23) << Int32FromInt32(23))
}
/* x = 2^k z; where z is in range [OFF,2*OFF] and exact.
The range is split into N subintervals.
The ith subinterval contains z and c is near its center. */
tmp = ix - uint32(OFF1)
- i = int32(tmp >> (Int32FromInt32(23) - Int32FromInt32(LOG2F_TABLE_BITS)) % uint32(Int32FromInt32(1)<<Int32FromInt32(LOG2F_TABLE_BITS)))
+ i = Int32FromUint32(tmp >> (Int32FromInt32(23) - Int32FromInt32(LOG2F_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<<Int32FromInt32(LOG2F_TABLE_BITS)))
top = tmp & uint32(0xff800000)
iz = ix - top
- k = int32(tmp) >> int32(23) /* arithmetic shift */
+ k = Int32FromUint32(tmp) >> int32(23) /* arithmetic shift */
invc = (*(*struct {
Finvc float64
Flogc float64
@@ -109821,7 +109833,7 @@ func Xlogf(tls *TLS, x1 float32) (r1 float32) {
if Bool(int32(WANT_ROUNDING) != 0) && ix == uint32(0x3f800000) {
return Float32FromInt32(0)
}
- if ix-uint32(0x00800000) >= uint32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) {
+ if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) {
/* x < 0x1p-126 or inf or nan. */
if ix*uint32(2) == uint32(0) {
return X__math_divzerof(tls, uint32(1))
@@ -109835,14 +109847,14 @@ func Xlogf(tls *TLS, x1 float32) (r1 float32) {
/* x is subnormal, normalize it. */
v1 = x1 * Float32FromFloat32(8.388608e+06)
ix = *(*Tuint32_t)(unsafe.Pointer(&v1))
- ix -= uint32(Int32FromInt32(23) << Int32FromInt32(23))
+ ix -= Uint32FromInt32(Int32FromInt32(23) << Int32FromInt32(23))
}
/* x = 2^k z; where z is in range [OFF,2*OFF] and exact.
The range is split into N subintervals.
The ith subinterval contains z and c is near its center. */
tmp = ix - uint32(OFF1)
- i = int32(tmp >> (Int32FromInt32(23) - Int32FromInt32(LOGF_TABLE_BITS)) % uint32(Int32FromInt32(1)<<Int32FromInt32(LOGF_TABLE_BITS)))
- k = int32(tmp) >> int32(23) /* arithmetic shift */
+ i = Int32FromUint32(tmp >> (Int32FromInt32(23) - Int32FromInt32(LOGF_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<<Int32FromInt32(LOGF_TABLE_BITS)))
+ k = Int32FromUint32(tmp) >> int32(23) /* arithmetic shift */
iz = ix - tmp&uint32(0xff800000)
invc = (*(*struct {
Finvc float64
@@ -109981,7 +109993,7 @@ func Xmodf(tls *TLS, x float64, iptr uintptr) (r float64) {
Ff float64
}{}
*(*float64)(unsafe.Pointer(bp)) = x
- e = int32(*(*Tuint64_t)(unsafe.Pointer(bp))>>Int32FromInt32(52)&Uint64FromInt32(0x7ff)) - int32(0x3ff)
+ e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp))>>Int32FromInt32(52)&Uint64FromInt32(0x7ff)) - int32(0x3ff)
/* no fractional part */
if e >= int32(52) {
*(*float64)(unsafe.Pointer(iptr)) = x
@@ -110033,7 +110045,7 @@ func Xmodff(tls *TLS, x float32, iptr uintptr) (r float32) {
Ff float32
}{}
*(*float32)(unsafe.Pointer(bp)) = x
- e = int32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f)
+ e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f)
/* no fractional part */
if e >= int32(23) {
*(*float32)(unsafe.Pointer(iptr)) = x
@@ -110049,7 +110061,7 @@ func Xmodff(tls *TLS, x float32, iptr uintptr) (r float32) {
*(*float32)(unsafe.Pointer(iptr)) = *(*float32)(unsafe.Pointer(bp))
return x
}
- mask = uint32(int32(0x007fffff) >> e)
+ mask = Uint32FromInt32(int32(0x007fffff) >> e)
if *(*Tuint32_t)(unsafe.Pointer(bp))&mask == uint32(0) {
*(*float32)(unsafe.Pointer(iptr)) = x
*(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x80000000)
@@ -110172,7 +110184,7 @@ _2:
*(*Tuint64_t)(unsafe.Pointer(bp + 8))++
}
}
- e = int32(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52) & uint64(0x7ff))
+ e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52) & uint64(0x7ff))
/* raise overflow if ux.f is infinite and x is finite */
if e == int32(0x7ff) {
if uint64(8) == uint64(4) {
@@ -110373,7 +110385,7 @@ _2:
v6 = *(*uint64)(unsafe.Pointer(bp + 8))
goto _7
_7:
- if int32(v6>>Int32FromInt32(63)) != 0 {
+ if Int32FromUint64(v6>>Int32FromInt32(63)) != 0 {
*(*Tuint32_t)(unsafe.Pointer(bp + 16)) |= uint32(0x80000000)
}
} else {
@@ -110382,7 +110394,7 @@ _2:
v8 = *(*uint32)(unsafe.Pointer(bp))
goto _9
_9:
- if int32(v8>>Int32FromInt32(31)) != 0 {
+ if Int32FromUint32(v8>>Int32FromInt32(31)) != 0 {
*(*Tuint32_t)(unsafe.Pointer(bp + 16))--
} else {
*(*Tuint32_t)(unsafe.Pointer(bp + 16))++
@@ -110392,7 +110404,7 @@ _2:
v10 = *(*uint32)(unsafe.Pointer(bp))
goto _11
_11:
- if int32(v10>>Int32FromInt32(31)) != 0 {
+ if Int32FromUint32(v10>>Int32FromInt32(31)) != 0 {
*(*Tuint32_t)(unsafe.Pointer(bp + 16))++
} else {
*(*Tuint32_t)(unsafe.Pointer(bp + 16))--
@@ -110467,8 +110479,8 @@ func _log_inline(tls *TLS, ix Tuint64_t, tail uintptr) (r1 Tdouble_t) {
The range is split into N subintervals.
The ith subinterval contains z and c is near its center. */
tmp = ix - uint64(OFF2)
- i = int32(tmp >> (Int32FromInt32(52) - Int32FromInt32(POW_LOG_TABLE_BITS)) % uint64(Int32FromInt32(1)<<Int32FromInt32(POW_LOG_TABLE_BITS)))
- k = int32(int64(tmp) >> int32(52)) /* arithmetic shift */
+ i = Int32FromUint64(tmp >> (Int32FromInt32(52) - Int32FromInt32(POW_LOG_TABLE_BITS)) % Uint64FromInt32(Int32FromInt32(1)<<Int32FromInt32(POW_LOG_TABLE_BITS)))
+ k = int32(Int64FromUint64(tmp) >> int32(52)) /* arithmetic shift */
iz = ix - tmp&(Uint64FromUint64(0xfff)<<Int32FromInt32(52))
z = *(*float64)(unsafe.Pointer(&iz))
kd = float64(k)
@@ -110628,7 +110640,7 @@ _4:
/* The code assumes 2^-200 < |xtail| < 2^-8/N. */
r += xtail
/* 2^(k/N) ~= scale * (1 + tail). */
- idx = uint64(2) * (ki % uint64(Int32FromInt32(1)<<Int32FromInt32(EXP_TABLE_BITS)))
+ idx = uint64(2) * (ki % Uint64FromInt32(Int32FromInt32(1)<<Int32FromInt32(EXP_TABLE_BITS)))
top = (ki + uint64(sign_bias)) << (Int32FromInt32(52) - Int32FromInt32(EXP_TABLE_BITS))
v6 = *(*Tuint64_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__exp_data)) + 112 + uintptr(idx)*8))
tail = *(*float64)(unsafe.Pointer(&v6))
@@ -110660,7 +110672,7 @@ _8:
func _checkint(tls *TLS, iy Tuint64_t) (r int32) {
var e int32
_ = e
- e = int32(iy >> int32(52) & uint64(0x7ff))
+ e = Int32FromUint64(iy >> int32(52) & uint64(0x7ff))
if e < int32(0x3ff) {
return 0
}
@@ -110706,7 +110718,7 @@ func Xpow(tls *TLS, x1 float64, y1 float64) (r float64) {
iy = *(*Tuint64_t)(unsafe.Pointer(&y1))
topx = _top124(tls, x1)
topy = _top124(tls, y1)
- if topx-uint32(0x001) >= uint32(Int32FromInt32(0x7ff)-Int32FromInt32(0x001)) || topy&uint32(0x7ff)-uint32(0x3be) >= uint32(Int32FromInt32(0x43e)-Int32FromInt32(0x3be)) {
+ if topx-uint32(0x001) >= Uint32FromInt32(Int32FromInt32(0x7ff)-Int32FromInt32(0x001)) || topy&uint32(0x7ff)-uint32(0x3be) >= Uint32FromInt32(Int32FromInt32(0x43e)-Int32FromInt32(0x3be)) {
/* Note: if |y| > 1075 * ln2 * 2^53 ~= 0x1.749p62 then pow(x,y) = inf/0
and if |y| < 2^-54 / 1075 ~= 0x1.e7b6p-65 then pow(x,y) = +-1. */
/* Special cases: (x < 0x1p-126 or inf or nan) or
@@ -110762,12 +110774,12 @@ func Xpow(tls *TLS, x1 float64, y1 float64) (r float64) {
return X__math_invalid(tls, x1)
}
if yint == int32(1) {
- sign_bias = uint32(Int32FromInt32(0x800) << Int32FromInt32(EXP_TABLE_BITS))
+ sign_bias = Uint32FromInt32(Int32FromInt32(0x800) << Int32FromInt32(EXP_TABLE_BITS))
}
ix &= uint64(0x7fffffffffffffff)
topx &= uint32(0x7ff)
}
- if topy&uint32(0x7ff)-uint32(0x3be) >= uint32(Int32FromInt32(0x43e)-Int32FromInt32(0x3be)) {
+ if topy&uint32(0x7ff)-uint32(0x3be) >= Uint32FromInt32(Int32FromInt32(0x43e)-Int32FromInt32(0x3be)) {
/* Note: sign_bias == 0 here because y is not odd. */
v10 = float64(1)
if ix == *(*Tuint64_t)(unsafe.Pointer(&v10)) {
@@ -110852,10 +110864,10 @@ func _log2_inline(tls *TLS, ix Tuint32_t) (r1 Tdouble_t) {
The range is split into N subintervals.
The ith subinterval contains z and c is near its center. */
tmp = ix - uint32(OFF3)
- i = int32(tmp >> (Int32FromInt32(23) - Int32FromInt32(POWF_LOG2_TABLE_BITS)) % uint32(Int32FromInt32(1)<<Int32FromInt32(POWF_LOG2_TABLE_BITS)))
+ i = Int32FromUint32(tmp >> (Int32FromInt32(23) - Int32FromInt32(POWF_LOG2_TABLE_BITS)) % Uint32FromInt32(Int32FromInt32(1)<<Int32FromInt32(POWF_LOG2_TABLE_BITS)))
top = tmp & uint32(0xff800000)
iz = ix - top
- k = int32(top) >> (Int32FromInt32(23) - Int32FromInt32(POWF_SCALE_BITS)) /* arithmetic shift */
+ k = Int32FromUint32(top) >> (Int32FromInt32(23) - Int32FromInt32(POWF_SCALE_BITS)) /* arithmetic shift */
invc = (*(*struct {
Finvc float64
Flogc float64
@@ -110901,7 +110913,7 @@ _2:
kd -= X__exp2f_data.Fshift_scaled /* k/N */
r = xd - kd
/* exp2(x) = 2^(k/N) * 2^r ~= s * (C0*r^3 + C1*r^2 + C2*r + 1) */
- t = *(*Tuint64_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%uint64(Int32FromInt32(1)<<Int32FromInt32(EXP2F_TABLE_BITS)))*8))
+ t = *(*Tuint64_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__exp2f_data)) + uintptr(ki%Uint64FromInt32(Int32FromInt32(1)<<Int32FromInt32(EXP2F_TABLE_BITS)))*8))
ski = ki + uint64(sign_bias)
t += ski << (Int32FromInt32(52) - Int32FromInt32(EXP2F_TABLE_BITS))
s = *(*float64)(unsafe.Pointer(&t))
@@ -110924,17 +110936,17 @@ _5:
func _checkint1(tls *TLS, iy Tuint32_t) (r int32) {
var e int32
_ = e
- e = int32(iy >> int32(23) & uint32(0xff))
+ e = Int32FromUint32(iy >> int32(23) & uint32(0xff))
if e < int32(0x7f) {
return 0
}
if e > Int32FromInt32(0x7f)+Int32FromInt32(23) {
return int32(2)
}
- if iy&uint32(Int32FromInt32(1)<<(Int32FromInt32(0x7f)+Int32FromInt32(23)-e)-Int32FromInt32(1)) != 0 {
+ if iy&Uint32FromInt32(Int32FromInt32(1)<<(Int32FromInt32(0x7f)+Int32FromInt32(23)-e)-Int32FromInt32(1)) != 0 {
return 0
}
- if iy&uint32(Int32FromInt32(1)<<(Int32FromInt32(0x7f)+Int32FromInt32(23)-e)) != 0 {
+ if iy&Uint32FromInt32(Int32FromInt32(1)<<(Int32FromInt32(0x7f)+Int32FromInt32(23)-e)) != 0 {
return int32(1)
}
return int32(2)
@@ -110959,7 +110971,7 @@ func Xpowf(tls *TLS, x1 float32, y1 float32) (r float32) {
sign_bias = uint32(0)
ix = *(*Tuint32_t)(unsafe.Pointer(&x1))
iy = *(*Tuint32_t)(unsafe.Pointer(&y1))
- if ix-uint32(0x00800000) >= uint32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) || _zeroinfnan1(tls, iy) != 0 {
+ if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) || _zeroinfnan1(tls, iy) != 0 {
/* Either (x < 0x1p-126 or inf or nan) or (y is 0 or inf or nan). */
if _zeroinfnan1(tls, iy) != 0 {
if uint32(2)*iy == uint32(0) {
@@ -110971,10 +110983,10 @@ func Xpowf(tls *TLS, x1 float32, y1 float32) (r float32) {
if uint32(2)*ix > Uint32FromUint32(2)*Uint32FromInt32(0x7f800000) || uint32(2)*iy > Uint32FromUint32(2)*Uint32FromInt32(0x7f800000) {
return x1 + y1
}
- if uint32(2)*ix == uint32(Int32FromInt32(2)*Int32FromInt32(0x3f800000)) {
+ if uint32(2)*ix == Uint32FromInt32(Int32FromInt32(2)*Int32FromInt32(0x3f800000)) {
return Float32FromFloat32(1)
}
- if BoolInt32(uint32(2)*ix < uint32(Int32FromInt32(2)*Int32FromInt32(0x3f800000))) == BoolInt32(!(iy&Uint32FromUint32(0x80000000) != 0)) {
+ if BoolInt32(uint32(2)*ix < Uint32FromInt32(Int32FromInt32(2)*Int32FromInt32(0x3f800000))) == BoolInt32(!(iy&Uint32FromUint32(0x80000000) != 0)) {
return Float32FromFloat32(0)
} /* |x|<1 && y==inf or |x|>1 && y==-inf. */
return y1 * y1
@@ -111005,7 +111017,7 @@ func Xpowf(tls *TLS, x1 float32, y1 float32) (r float32) {
return X__math_invalidf(tls, x1)
}
if yint == int32(1) {
- sign_bias = uint32(Int32FromInt32(1) << (Int32FromInt32(EXP2F_TABLE_BITS) + Int32FromInt32(11)))
+ sign_bias = Uint32FromInt32(Int32FromInt32(1) << (Int32FromInt32(EXP2F_TABLE_BITS) + Int32FromInt32(11)))
}
ix &= uint32(0x7fffffff)
}
@@ -111014,7 +111026,7 @@ func Xpowf(tls *TLS, x1 float32, y1 float32) (r float32) {
v4 = x1 * Float32FromFloat32(8.388608e+06)
ix = *(*Tuint32_t)(unsafe.Pointer(&v4))
ix &= uint32(0x7fffffff)
- ix -= uint32(Int32FromInt32(23) << Int32FromInt32(23))
+ ix -= Uint32FromInt32(Int32FromInt32(23) << Int32FromInt32(23))
}
}
logx = _log2_inline(tls, ix)
@@ -111138,10 +111150,10 @@ func Xremquo(tls *TLS, x float64, y float64, quo uintptr) (r float64) {
Ff float64
}{}
*(*float64)(unsafe.Pointer(bp + 16)) = y
- ex = int32(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52) & uint64(0x7ff))
- ey = int32(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(52) & uint64(0x7ff))
- sx = int32(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63))
- sy = int32(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(63))
+ ex = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(52) & uint64(0x7ff))
+ ey = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(52) & uint64(0x7ff))
+ sx = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 8)) >> int32(63))
+ sy = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp + 16)) >> int32(63))
uxi = *(*Tuint64_t)(unsafe.Pointer(bp + 8))
*(*int32)(unsafe.Pointer(quo)) = 0
if v3 = *(*Tuint64_t)(unsafe.Pointer(bp + 16))<<int32(1) == uint64(0); !v3 {
@@ -111169,7 +111181,7 @@ func Xremquo(tls *TLS, x float64, y float64, quo uintptr) (r float64) {
ex--
i <<= uint64(1)
}
- uxi <<= uint64(-ex + int32(1))
+ uxi <<= Uint64FromInt32(-ex + int32(1))
} else {
uxi = uxi & (-Uint64FromUint64(1) >> Int32FromInt32(12))
uxi = uxi | Uint64FromUint64(1)<<Int32FromInt32(52)
@@ -111186,7 +111198,7 @@ func Xremquo(tls *TLS, x float64, y float64, quo uintptr) (r float64) {
ey--
i <<= uint64(1)
}
- *(*Tuint64_t)(unsafe.Pointer(bp + 16)) <<= uint64(-ey + int32(1))
+ *(*Tuint64_t)(unsafe.Pointer(bp + 16)) <<= Uint64FromInt32(-ey + int32(1))
} else {
p6 = bp + 16
*(*Tuint64_t)(unsafe.Pointer(p6)) = *(*Tuint64_t)(unsafe.Pointer(p6)) & (-Uint64FromUint64(1) >> Int32FromInt32(12))
@@ -111242,9 +111254,9 @@ end:
/* scale result and decide between |x| and |x|-|y| */
if ex > 0 {
uxi = uxi - Uint64FromUint64(1)<<Int32FromInt32(52)
- uxi |= uint64(ex) << int32(52)
+ uxi |= Uint64FromInt32(ex) << int32(52)
} else {
- uxi >>= uint64(-ex + int32(1))
+ uxi >>= Uint64FromInt32(-ex + int32(1))
}
*(*Tuint64_t)(unsafe.Pointer(bp + 8)) = uxi
x = *(*float64)(unsafe.Pointer(bp + 8))
@@ -111257,9 +111269,9 @@ end:
}
q &= uint32(0x7fffffff)
if sx^sy != 0 {
- v10 = -int32(q)
+ v10 = -Int32FromUint32(q)
} else {
- v10 = int32(q)
+ v10 = Int32FromUint32(q)
}
*(*int32)(unsafe.Pointer(quo)) = v10
if sx != 0 {
@@ -111311,10 +111323,10 @@ func Xremquof(tls *TLS, x float32, y float32, quo uintptr) (r float32) {
Ff float32
}{}
*(*float32)(unsafe.Pointer(bp + 8)) = y
- ex = int32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(23) & uint32(0xff))
- ey = int32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(23) & uint32(0xff))
- sx = int32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(31))
- sy = int32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(31))
+ ex = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(23) & uint32(0xff))
+ ey = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(23) & uint32(0xff))
+ sx = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 4)) >> int32(31))
+ sy = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp + 8)) >> int32(31))
uxi = *(*Tuint32_t)(unsafe.Pointer(bp + 4))
*(*int32)(unsafe.Pointer(quo)) = 0
if v3 = *(*Tuint32_t)(unsafe.Pointer(bp + 8))<<int32(1) == uint32(0); !v3 {
@@ -111342,7 +111354,7 @@ func Xremquof(tls *TLS, x float32, y float32, quo uintptr) (r float32) {
ex--
i <<= uint32(1)
}
- uxi <<= uint32(-ex + int32(1))
+ uxi <<= Uint32FromInt32(-ex + int32(1))
} else {
uxi &= -Uint32FromUint32(1) >> Int32FromInt32(9)
uxi |= Uint32FromUint32(1) << Int32FromInt32(23)
@@ -111359,7 +111371,7 @@ func Xremquof(tls *TLS, x float32, y float32, quo uintptr) (r float32) {
ey--
i <<= uint32(1)
}
- *(*Tuint32_t)(unsafe.Pointer(bp + 8)) <<= uint32(-ey + int32(1))
+ *(*Tuint32_t)(unsafe.Pointer(bp + 8)) <<= Uint32FromInt32(-ey + int32(1))
} else {
*(*Tuint32_t)(unsafe.Pointer(bp + 8)) &= -Uint32FromUint32(1) >> Int32FromInt32(9)
*(*Tuint32_t)(unsafe.Pointer(bp + 8)) |= Uint32FromUint32(1) << Int32FromInt32(23)
@@ -111413,9 +111425,9 @@ end:
/* scale result and decide between |x| and |x|-|y| */
if ex > 0 {
uxi -= Uint32FromUint32(1) << Int32FromInt32(23)
- uxi |= uint32(ex) << int32(23)
+ uxi |= Uint32FromInt32(ex) << int32(23)
} else {
- uxi >>= uint32(-ex + int32(1))
+ uxi >>= Uint32FromInt32(-ex + int32(1))
}
*(*Tuint32_t)(unsafe.Pointer(bp + 4)) = uxi
x = *(*float32)(unsafe.Pointer(bp + 4))
@@ -111428,9 +111440,9 @@ end:
}
q &= uint32(0x7fffffff)
if sx^sy != 0 {
- v8 = -int32(q)
+ v8 = -Int32FromUint32(q)
} else {
- v8 = int32(q)
+ v8 = Int32FromUint32(q)
}
*(*int32)(unsafe.Pointer(quo)) = v8
if sx != 0 {
@@ -111476,8 +111488,8 @@ func Xrint(tls *TLS, x float64) (r float64) {
Ff float64
}{}
*(*float64)(unsafe.Pointer(bp)) = x
- e = int32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff))
- s = int32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63))
+ e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff))
+ s = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63))
if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) {
return x
}
@@ -111525,8 +111537,8 @@ func Xrintf(tls *TLS, x float32) (r float32) {
Ff float32
}{}
*(*float32)(unsafe.Pointer(bp)) = x
- e = int32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff))
- s = int32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31))
+ e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff))
+ s = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31))
if e >= Int32FromInt32(0x7f)+Int32FromInt32(23) {
return x
}
@@ -111584,7 +111596,7 @@ func Xround(tls *TLS, x3 float64) (r float64) {
Ff float64
}{}
*(*float64)(unsafe.Pointer(bp)) = x3
- e = int32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff))
+ e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(52) & uint64(0x7ff))
if e >= Int32FromInt32(0x3ff)+Int32FromInt32(52) {
return x3
}
@@ -111649,7 +111661,7 @@ func Xroundf(tls *TLS, x3 float32) (r float32) {
Ff float32
}{}
*(*float32)(unsafe.Pointer(bp)) = x3
- e = int32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff))
+ e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(23) & uint32(0xff))
if e >= Int32FromInt32(0x7f)+Int32FromInt32(23) {
return x3
}
@@ -111873,7 +111885,7 @@ func Xscalbn(tls *TLS, x float64, n int32) (r float64) {
}
}
}
- *(*Tuint64_t)(unsafe.Pointer(bp)) = uint64(Int32FromInt32(0x3ff)+n) << int32(52)
+ *(*Tuint64_t)(unsafe.Pointer(bp)) = Uint64FromInt32(Int32FromInt32(0x3ff)+n) << int32(52)
x = y * *(*float64)(unsafe.Pointer(bp))
return x
}
@@ -111915,7 +111927,7 @@ func Xscalbnf(tls *TLS, x float32, n int32) (r float32) {
}
}
}
- *(*Tuint32_t)(unsafe.Pointer(bp)) = uint32(Int32FromInt32(0x7f)+n) << int32(23)
+ *(*Tuint32_t)(unsafe.Pointer(bp)) = Uint32FromInt32(Int32FromInt32(0x7f)+n) << int32(23)
x = y * *(*float32)(unsafe.Pointer(bp))
return x
}
@@ -111997,7 +112009,7 @@ func Xsin(tls *TLS, x3 float64) (r float64) {
return x3 - x3
}
/* argument reduction needed */
- n = uint32(X__rem_pio2(tls, x3, bp))
+ n = Uint32FromInt32(X__rem_pio2(tls, x3, bp))
switch n & Uint32FromInt32(3) {
case uint32(0):
return X__sin(tls, (*(*[2]float64)(unsafe.Pointer(bp)))[0], (*(*[2]float64)(unsafe.Pointer(bp)))[int32(1)], int32(1))
@@ -112070,7 +112082,7 @@ func Xsincos(tls *TLS, x3 float64, sin uintptr, cos uintptr) {
return
}
/* argument reduction needed */
- n = uint32(X__rem_pio2(tls, x3, bp))
+ n = Uint32FromInt32(X__rem_pio2(tls, x3, bp))
s = X__sin(tls, (*(*[2]float64)(unsafe.Pointer(bp)))[0], (*(*[2]float64)(unsafe.Pointer(bp)))[int32(1)], int32(1))
c = X__cos(tls, (*(*[2]float64)(unsafe.Pointer(bp)))[0], (*(*[2]float64)(unsafe.Pointer(bp)))[int32(1)])
switch n & Uint32FromInt32(3) {
@@ -112217,7 +112229,7 @@ func Xsincosf(tls *TLS, x3 float32, sin uintptr, cos uintptr) {
return
}
/* general argument reduction needed */
- n = uint32(X__rem_pio2f(tls, x3, bp))
+ n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp))
s = X__sindf(tls, *(*float64)(unsafe.Pointer(bp)))
c = X__cosdf(tls, *(*float64)(unsafe.Pointer(bp)))
switch n & Uint32FromInt32(3) {
@@ -112279,7 +112291,7 @@ func Xsinf(tls *TLS, x3 float32) (r float32) {
var _ /* y at bp+0 */ float64
_, _, _, _, _, _, _, _, _, _, _ = ix, n, sign, y, y1, y2, v1, v2, v3, v4, v5
ix = *(*Tuint32_t)(unsafe.Pointer(&x3))
- sign = int32(ix >> int32(31))
+ sign = Int32FromUint32(ix >> int32(31))
ix &= uint32(0x7fffffff)
if ix <= uint32(0x3f490fda) { /* |x| ~<= pi/4 */
if ix < uint32(0x39800000) { /* |x| < 2**-12 */
@@ -112396,14 +112408,14 @@ func Xsinh(tls *TLS, x float64) (r float64) {
h = -h
}
/* |x| */
- *(*Tuint64_t)(unsafe.Pointer(bp)) &= uint64(-Int32FromInt32(1)) / Uint64FromInt32(2)
+ *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2)
absx = *(*float64)(unsafe.Pointer(bp))
w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32))
/* |x| < log(DBL_MAX) */
if w < uint32(0x40862e42) {
t = Xexpm1(tls, absx)
if w < uint32(0x3ff00000) {
- if w < uint32(Int32FromInt32(0x3ff00000)-Int32FromInt32(26)<<Int32FromInt32(20)) {
+ if w < Uint32FromInt32(Int32FromInt32(0x3ff00000)-Int32FromInt32(26)<<Int32FromInt32(20)) {
/* note: inexact and underflow are raised by expm1 */
/* note: this branch avoids spurious underflow */
return x
@@ -112453,7 +112465,7 @@ func Xsinhf(tls *TLS, x float32) (r float32) {
if w < uint32(0x42b17217) {
t = Xexpm1f(tls, absx)
if w < uint32(0x3f800000) {
- if w < uint32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)<<Int32FromInt32(23)) {
+ if w < Uint32FromInt32(Int32FromInt32(0x3f800000)-Int32FromInt32(12)<<Int32FromInt32(23)) {
return x
}
return h * (Float32FromInt32(2)*t - t*t/(t+Float32FromInt32(1)))
@@ -112516,7 +112528,7 @@ func Xsqrt(tls *TLS, x1 float64) (r1 float64) {
/* special case handling. */
ix = *(*Tuint64_t)(unsafe.Pointer(&x1))
top = ix >> int32(52)
- if top-uint64(0x001) >= uint64(Int32FromInt32(0x7ff)-Int32FromInt32(0x001)) {
+ if top-uint64(0x001) >= Uint64FromInt32(Int32FromInt32(0x7ff)-Int32FromInt32(0x001)) {
/* x < 0x1p-1022 or inf or nan. */
if ix*uint64(2) == uint64(0) {
return x1
@@ -112537,7 +112549,7 @@ func Xsqrt(tls *TLS, x1 float64) (r1 float64) {
x = 4^e m; with integer e, and m in [1, 4)
m: fixed point representation [2.62]
2^e is the exponent part of the result. */
- even = int32(top & uint64(1))
+ even = Int32FromUint64(top & uint64(1))
m = ix<<Int32FromInt32(11) | uint64(0x8000000000000000)
if even != 0 {
m >>= uint64(1)
@@ -112581,7 +112593,7 @@ func Xsqrt(tls *TLS, x1 float64) (r1 float64) {
/* handle rounding modes and inexact exception:
only (s+1)^2 == 2^42 m case is exact otherwise
add a tiny value to cause the fenv effects. */
- tiny = uint64(v2)
+ tiny = Uint64FromInt64(v2)
tiny |= (d1 ^ d2) & uint64(0x8000000000000000)
t = *(*float64)(unsafe.Pointer(&tiny))
y = y1 + t
@@ -112666,7 +112678,7 @@ func Xsqrtf(tls *TLS, x1 float32) (r1 float32) {
var v3 int32
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, d0, d1, d2, even, ey, i, ix, m, m0, m1, r, s, t, tiny, u, y, y1, v1, v2, v3, v4
ix = *(*Tuint32_t)(unsafe.Pointer(&x1))
- if ix-uint32(0x00800000) >= uint32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) {
+ if ix-uint32(0x00800000) >= Uint32FromInt32(Int32FromInt32(0x7f800000)-Int32FromInt32(0x00800000)) {
/* x < 0x1p-126 or inf or nan. */
if ix*uint32(2) == uint32(0) {
return x1
@@ -112680,7 +112692,7 @@ func Xsqrtf(tls *TLS, x1 float32) (r1 float32) {
/* x is subnormal, normalize it. */
v1 = x1 * Float32FromFloat32(8.388608e+06)
ix = *(*Tuint32_t)(unsafe.Pointer(&v1))
- ix -= uint32(Int32FromInt32(23) << Int32FromInt32(23))
+ ix -= Uint32FromInt32(Int32FromInt32(23) << Int32FromInt32(23))
}
/* x = 4^e m; with int e and m in [1, 4). */
even = ix & uint32(0x00800000)
@@ -112694,7 +112706,7 @@ func Xsqrtf(tls *TLS, x1 float32) (r1 float32) {
m = v2
/* 2^e is the exponent part of the return value. */
ey = ix >> int32(1)
- ey += uint32(Int32FromInt32(0x3f800000) >> Int32FromInt32(1))
+ ey += Uint32FromInt32(Int32FromInt32(0x3f800000) >> Int32FromInt32(1))
ey &= uint32(0x7f800000)
i = ix >> Int32FromInt32(17) % uint32(128)
r = uint32(X__rsqrt_tab[i]) << int32(16)
@@ -112726,7 +112738,7 @@ func Xsqrtf(tls *TLS, x1 float32) (r1 float32) {
v3 = int32(0x01000000)
}
/* handle rounding and inexact exception. */
- tiny = uint32(v3)
+ tiny = Uint32FromInt32(v3)
tiny |= (d1 ^ d2) & uint32(0x80000000)
t = *(*float32)(unsafe.Pointer(&tiny))
y = y1 + t
@@ -112801,8 +112813,8 @@ func Xtan(tls *TLS, x3 float64) (r float64) {
return x3 - x3
}
/* argument reduction */
- n = uint32(X__rem_pio2(tls, x3, bp))
- return X__tan(tls, (*(*[2]float64)(unsafe.Pointer(bp)))[0], (*(*[2]float64)(unsafe.Pointer(bp)))[int32(1)], int32(n&uint32(1)))
+ n = Uint32FromInt32(X__rem_pio2(tls, x3, bp))
+ return X__tan(tls, (*(*[2]float64)(unsafe.Pointer(bp)))[0], (*(*[2]float64)(unsafe.Pointer(bp)))[int32(1)], Int32FromUint32(n&uint32(1)))
}
const M_PI_29 = 1.5707963267948966
@@ -112902,8 +112914,8 @@ func Xtanf(tls *TLS, x3 float32) (r float32) {
return x3 - x3
}
/* argument reduction */
- n = uint32(X__rem_pio2f(tls, x3, bp))
- return X__tandf(tls, *(*float64)(unsafe.Pointer(bp)), int32(n&uint32(1)))
+ n = Uint32FromInt32(X__rem_pio2f(tls, x3, bp))
+ return X__tandf(tls, *(*float64)(unsafe.Pointer(bp)), Int32FromUint32(n&uint32(1)))
}
const M_PI_210 = 0
@@ -112940,8 +112952,8 @@ func Xtanh(tls *TLS, x3 float64) (r float64) {
}{}
*(*float64)(unsafe.Pointer(bp)) = x3
/* x = |x| */
- sign = int32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63))
- *(*Tuint64_t)(unsafe.Pointer(bp)) &= uint64(-Int32FromInt32(1)) / Uint64FromInt32(2)
+ sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63))
+ *(*Tuint64_t)(unsafe.Pointer(bp)) &= Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(2)
x3 = *(*float64)(unsafe.Pointer(bp))
w = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32))
if w > uint32(0x3fe193ea) {
@@ -113013,7 +113025,7 @@ func Xtanhf(tls *TLS, x3 float32) (r float32) {
}{}
*(*float32)(unsafe.Pointer(bp)) = x3
/* x = |x| */
- sign = int32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31))
+ sign = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp)) >> int32(31))
*(*Tuint32_t)(unsafe.Pointer(bp)) &= uint32(0x7fffffff)
x3 = *(*float32)(unsafe.Pointer(bp))
w = *(*Tuint32_t)(unsafe.Pointer(bp))
@@ -113238,13 +113250,13 @@ func Xtgamma(tls *TLS, x3 float64) (r1 float64) {
}{}
*(*float64)(unsafe.Pointer(bp)) = x3
ix = uint32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(32) & uint64(0x7fffffff))
- sign = int32(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63))
+ sign = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) >> int32(63))
/* special cases */
if ix >= uint32(0x7ff00000) {
/* tgamma(nan)=nan, tgamma(inf)=inf, tgamma(-inf)=nan with invalid */
return x3 + float64(X__builtin_inff(tls))
}
- if ix < uint32((Int32FromInt32(0x3ff)-Int32FromInt32(54))<<Int32FromInt32(20)) {
+ if ix < Uint32FromInt32((Int32FromInt32(0x3ff)-Int32FromInt32(54))<<Int32FromInt32(20)) {
/* |x| < 2^-54: tgamma(x) ~ 1/x, +-0 raises div-by-zero */
return Float64FromInt32(1) / x3
}
@@ -113349,7 +113361,7 @@ func Xtrunc(tls *TLS, x3 float64) (r float64) {
Ff float64
}{}
*(*float64)(unsafe.Pointer(bp)) = x3
- e = int32(*(*Tuint64_t)(unsafe.Pointer(bp))>>Int32FromInt32(52)&Uint64FromInt32(0x7ff)) - int32(0x3ff) + int32(12)
+ e = Int32FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp))>>Int32FromInt32(52)&Uint64FromInt32(0x7ff)) - int32(0x3ff) + int32(12)
if e >= Int32FromInt32(52)+Int32FromInt32(12) {
return x3
}
@@ -113397,7 +113409,7 @@ func Xtruncf(tls *TLS, x3 float32) (r float32) {
Ff float32
}{}
*(*float32)(unsafe.Pointer(bp)) = x3
- e = int32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + int32(9)
+ e = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(bp))>>Int32FromInt32(23)&Uint32FromInt32(0xff)) - int32(0x7f) + int32(9)
if e >= Int32FromInt32(23)+Int32FromInt32(9) {
return x3
}
@@ -113446,18 +113458,18 @@ func Xa64l(tls *TLS, s uintptr) (r int64) {
if !(e < int32(36) && *(*uint8)(unsafe.Pointer(s)) != 0) {
break
}
- d = Xstrchr(tls, uintptr(unsafe.Pointer(&_digits)), int32(*(*uint8)(unsafe.Pointer(s))))
+ d = Xstrchr(tls, uintptr(unsafe.Pointer(&_digits)), Int32FromUint8(*(*uint8)(unsafe.Pointer(s))))
if !(d != 0) {
break
}
- x |= uint32(int64(d)-t__predefined_ptrdiff_t(uintptr(unsafe.Pointer(&_digits)))) << e
+ x |= Uint32FromInt64(int64(d)-t__predefined_ptrdiff_t(uintptr(unsafe.Pointer(&_digits)))) << e
goto _1
_1:
;
e += int32(6)
s++
}
- return int64(int32(x))
+ return int64(Int32FromUint32(x))
}
func Xl64a(tls *TLS, x0 int64) (r uintptr) {
@@ -113468,7 +113480,7 @@ func Xl64a(tls *TLS, x0 int64) (r uintptr) {
var p uintptr
var x Tuint32_t
_, _ = p, x
- x = uint32(x0)
+ x = Uint32FromInt64(x0)
p = uintptr(unsafe.Pointer(&_s))
for {
if !(x != 0) {
@@ -113499,7 +113511,7 @@ func Xbasename(tls *TLS, s uintptr) (r uintptr) {
}
i = Xstrlen(tls, s) - uint64(1)
for {
- if !(i != 0 && int32(*(*uint8)(unsafe.Pointer(s + uintptr(i)))) == int32('/')) {
+ if !(i != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(s + uintptr(i)))) == int32('/')) {
break
}
*(*uint8)(unsafe.Pointer(s + uintptr(i))) = uint8(0)
@@ -113509,7 +113521,7 @@ func Xbasename(tls *TLS, s uintptr) (r uintptr) {
i--
}
for {
- if !(i != 0 && int32(*(*uint8)(unsafe.Pointer(s + uintptr(i-uint64(1))))) != int32('/')) {
+ if !(i != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(s + uintptr(i-uint64(1))))) != int32('/')) {
break
}
goto _2
@@ -113540,7 +113552,7 @@ func Xdirname(tls *TLS, s uintptr) (r uintptr) {
}
i = Xstrlen(tls, s) - uint64(1)
for {
- if !(int32(*(*uint8)(unsafe.Pointer(s + uintptr(i)))) == int32('/')) {
+ if !(Int32FromUint8(*(*uint8)(unsafe.Pointer(s + uintptr(i)))) == int32('/')) {
break
}
if !(i != 0) {
@@ -113552,7 +113564,7 @@ func Xdirname(tls *TLS, s uintptr) (r uintptr) {
i--
}
for {
- if !(int32(*(*uint8)(unsafe.Pointer(s + uintptr(i)))) != int32('/')) {
+ if !(Int32FromUint8(*(*uint8)(unsafe.Pointer(s + uintptr(i)))) != int32('/')) {
break
}
if !(i != 0) {
@@ -113564,7 +113576,7 @@ func Xdirname(tls *TLS, s uintptr) (r uintptr) {
i--
}
for {
- if !(int32(*(*uint8)(unsafe.Pointer(s + uintptr(i)))) == int32('/')) {
+ if !(Int32FromUint8(*(*uint8)(unsafe.Pointer(s + uintptr(i)))) == int32('/')) {
break
}
if !(i != 0) {
@@ -113587,7 +113599,7 @@ func Xffs(tls *TLS, i int32) (r int32) {
var v1 int32
_ = v1
if i != 0 {
- v1 = _a_ctz_l(tls, uint64(i)) + int32(1)
+ v1 = _a_ctz_l(tls, Uint64FromInt32(i)) + int32(1)
} else {
v1 = 0
}
@@ -113602,7 +113614,7 @@ func Xffsl(tls *TLS, i int64) (r int32) {
var v1 int32
_ = v1
if i != 0 {
- v1 = _a_ctz_l(tls, uint64(i)) + int32(1)
+ v1 = _a_ctz_l(tls, Uint64FromInt64(i)) + int32(1)
} else {
v1 = 0
}
@@ -113618,13 +113630,13 @@ func Xffsll(tls *TLS, i int64) (r int32) {
var v2 Tuint64_t
_, _, _ = v1, v2, v3
if i != 0 {
- v2 = uint64(i)
+ v2 = Uint64FromInt64(i)
// __asm__(
//
// " rbit %0, %1\n clz %0, %0\n"
// : "=r"(x) : "r"(x));
X__assert_fail(tls, __ccgo_ts+350, __ccgo_ts+385, 70, __ccgo_ts+572)
- v3 = int32(v2)
+ v3 = Int32FromUint64(v2)
goto _4
_4:
v1 = v3 + int32(1)
@@ -113666,10 +113678,10 @@ func __strcolcmp(tls *TLS, lstr uintptr, bstr uintptr) (r int32) {
var i Tsize_t
_ = i
i = uint64(0)
- for *(*uint8)(unsafe.Pointer(lstr + uintptr(i))) != 0 && *(*uint8)(unsafe.Pointer(bstr + uintptr(i))) != 0 && int32(*(*uint8)(unsafe.Pointer(bstr + uintptr(i)))) == int32(*(*uint8)(unsafe.Pointer(lstr + uintptr(i)))) {
+ for *(*uint8)(unsafe.Pointer(lstr + uintptr(i))) != 0 && *(*uint8)(unsafe.Pointer(bstr + uintptr(i))) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(bstr + uintptr(i)))) == Int32FromUint8(*(*uint8)(unsafe.Pointer(lstr + uintptr(i)))) {
i++
}
- if *(*uint8)(unsafe.Pointer(lstr + uintptr(i))) != 0 || *(*uint8)(unsafe.Pointer(bstr + uintptr(i))) != 0 && int32(*(*uint8)(unsafe.Pointer(bstr + uintptr(i)))) != int32(':') {
+ if *(*uint8)(unsafe.Pointer(lstr + uintptr(i))) != 0 || *(*uint8)(unsafe.Pointer(bstr + uintptr(i))) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(bstr + uintptr(i)))) != int32(':') {
return int32(1)
}
return 0
@@ -113954,7 +113966,7 @@ func Xgetentropy(tls *TLS, buffer uintptr, len1 Tsize_t) (r int32) {
}
}
pos += uintptr(ret)
- len1 -= uint64(ret)
+ len1 -= Uint64FromInt32(ret)
ret = 0
}
_pthread_setcancelstate(tls, *(*int32)(unsafe.Pointer(bp)), uintptr(0))
@@ -114022,8 +114034,8 @@ func Xgetopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) {
if Xoptind >= argc || !(*(*uintptr)(unsafe.Pointer(argv + uintptr(Xoptind)*8)) != 0) {
return -int32(1)
}
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(Xoptind)*8))))) != int32('-') {
- if int32(*(*uint8)(unsafe.Pointer(optstring))) == int32('-') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(Xoptind)*8))))) != int32('-') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(optstring))) == int32('-') {
v1 = Xoptind
Xoptind++
Xoptarg = *(*uintptr)(unsafe.Pointer(argv + uintptr(v1)*8))
@@ -114034,7 +114046,7 @@ func Xgetopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) {
if !(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(Xoptind)*8)) + 1)) != 0) {
return -int32(1)
}
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') && !(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(Xoptind)*8)) + 2)) != 0) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') && !(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(Xoptind)*8)) + 2)) != 0) {
Xoptind++
return -Int32FromInt32(1)
}
@@ -114053,7 +114065,7 @@ func Xgetopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) {
Xoptind++
X__optpos = 0
}
- if int32(*(*uint8)(unsafe.Pointer(optstring))) == int32('-') || int32(*(*uint8)(unsafe.Pointer(optstring))) == int32('+') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(optstring))) == int32('-') || Int32FromUint8(*(*uint8)(unsafe.Pointer(optstring))) == int32('+') {
optstring++
}
i = 0
@@ -114067,15 +114079,15 @@ func Xgetopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) {
}
}
if *(*Twchar_t)(unsafe.Pointer(bp + 4)) != *(*Twchar_t)(unsafe.Pointer(bp)) || *(*Twchar_t)(unsafe.Pointer(bp)) == uint32(':') {
- Xoptopt = int32(*(*Twchar_t)(unsafe.Pointer(bp)))
- if int32(*(*uint8)(unsafe.Pointer(optstring))) != int32(':') && Xopterr != 0 {
- X__getopt_msg(tls, *(*uintptr)(unsafe.Pointer(argv)), __ccgo_ts+696, optchar, uint64(k))
+ Xoptopt = Int32FromUint32(*(*Twchar_t)(unsafe.Pointer(bp)))
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(optstring))) != int32(':') && Xopterr != 0 {
+ X__getopt_msg(tls, *(*uintptr)(unsafe.Pointer(argv)), __ccgo_ts+696, optchar, Uint64FromInt32(k))
}
return int32('?')
}
- if int32(*(*uint8)(unsafe.Pointer(optstring + uintptr(i)))) == int32(':') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(optstring + uintptr(i)))) == int32(':') {
Xoptarg = uintptr(0)
- if int32(*(*uint8)(unsafe.Pointer(optstring + uintptr(i+int32(1))))) != int32(':') || X__optpos != 0 {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(optstring + uintptr(i+int32(1))))) != int32(':') || X__optpos != 0 {
v3 = Xoptind
Xoptind++
Xoptarg = *(*uintptr)(unsafe.Pointer(argv + uintptr(v3)*8))
@@ -114085,17 +114097,17 @@ func Xgetopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) {
X__optpos = 0
}
if Xoptind > argc {
- Xoptopt = int32(*(*Twchar_t)(unsafe.Pointer(bp)))
- if int32(*(*uint8)(unsafe.Pointer(optstring))) == int32(':') {
+ Xoptopt = Int32FromUint32(*(*Twchar_t)(unsafe.Pointer(bp)))
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(optstring))) == int32(':') {
return int32(':')
}
if Xopterr != 0 {
- X__getopt_msg(tls, *(*uintptr)(unsafe.Pointer(argv)), __ccgo_ts+720, optchar, uint64(k))
+ X__getopt_msg(tls, *(*uintptr)(unsafe.Pointer(argv)), __ccgo_ts+720, optchar, Uint64FromInt32(k))
}
return int32('?')
}
}
- return int32(*(*Twchar_t)(unsafe.Pointer(bp)))
+ return Int32FromUint32(*(*Twchar_t)(unsafe.Pointer(bp)))
}
func X__posix_getopt(tls *TLS, argc int32, argv uintptr, optstring uintptr) (r int32) {
@@ -114149,13 +114161,13 @@ func ___getopt_long(tls *TLS, argc int32, argv uintptr, optstring uintptr, longo
return -int32(1)
}
skipped = Xoptind
- if int32(*(*uint8)(unsafe.Pointer(optstring))) != int32('+') && int32(*(*uint8)(unsafe.Pointer(optstring))) != int32('-') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(optstring))) != int32('+') && Int32FromUint8(*(*uint8)(unsafe.Pointer(optstring))) != int32('-') {
i = Xoptind
for {
if i >= argc || !(*(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)) != 0) {
return -int32(1)
}
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))))) == int32('-') && *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)) + 1)) != 0 {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))))) == int32('-') && *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)) + 1)) != 0 {
break
}
goto _1
@@ -114190,8 +114202,8 @@ func ___getopt_long_core(tls *TLS, argc int32, argv uintptr, optstring uintptr,
var cnt, colon, i, j, l, match, v2 int32
_, _, _, _, _, _, _, _, _, _, _, _, _ = arg, cnt, colon, i, j, l, match, name, opt, start, v2, v5, v6
Xoptarg = uintptr(0)
- if longopts != 0 && int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(Xoptind)*8))))) == int32('-') && (longonly != 0 && *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(Xoptind)*8)) + 1)) != 0 && int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(Xoptind)*8)) + 1))) != int32('-') || int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') && *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(Xoptind)*8)) + 2)) != 0) {
- colon = BoolInt32(int32(*(*uint8)(unsafe.Pointer(optstring + BoolUintptr(int32(*(*uint8)(unsafe.Pointer(optstring))) == int32('+') || int32(*(*uint8)(unsafe.Pointer(optstring))) == int32('-'))))) == int32(':'))
+ if longopts != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(Xoptind)*8))))) == int32('-') && (longonly != 0 && *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(Xoptind)*8)) + 1)) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(Xoptind)*8)) + 1))) != int32('-') || Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') && *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(Xoptind)*8)) + 2)) != 0) {
+ colon = BoolInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(optstring + BoolUintptr(Int32FromUint8(*(*uint8)(unsafe.Pointer(optstring))) == int32('+') || Int32FromUint8(*(*uint8)(unsafe.Pointer(optstring))) == int32('-'))))) == int32(':'))
start = *(*uintptr)(unsafe.Pointer(argv + uintptr(Xoptind)*8)) + uintptr(1)
v2 = Int32FromInt32(0)
i = v2
@@ -114202,14 +114214,14 @@ func ___getopt_long_core(tls *TLS, argc int32, argv uintptr, optstring uintptr,
}
name = (*(*Toption)(unsafe.Pointer(longopts + uintptr(i)*32))).Fname
opt = start
- if int32(*(*uint8)(unsafe.Pointer(opt))) == int32('-') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(opt))) == int32('-') {
opt++
}
- for *(*uint8)(unsafe.Pointer(opt)) != 0 && int32(*(*uint8)(unsafe.Pointer(opt))) != int32('=') && int32(*(*uint8)(unsafe.Pointer(opt))) == int32(*(*uint8)(unsafe.Pointer(name))) {
+ for *(*uint8)(unsafe.Pointer(opt)) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(opt))) != int32('=') && Int32FromUint8(*(*uint8)(unsafe.Pointer(opt))) == Int32FromUint8(*(*uint8)(unsafe.Pointer(name))) {
name++
opt++
}
- if *(*uint8)(unsafe.Pointer(opt)) != 0 && int32(*(*uint8)(unsafe.Pointer(opt))) != int32('=') {
+ if *(*uint8)(unsafe.Pointer(opt)) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(opt))) != int32('=') {
goto _1
}
arg = opt
@@ -114233,7 +114245,7 @@ func ___getopt_long_core(tls *TLS, argc int32, argv uintptr, optstring uintptr,
}
j = 0
for {
- if !(j < l && int32(*(*uint8)(unsafe.Pointer(start + uintptr(j)))) == int32(*(*uint8)(unsafe.Pointer(optstring + uintptr(i+j))))) {
+ if !(j < l && Int32FromUint8(*(*uint8)(unsafe.Pointer(start + uintptr(j)))) == Int32FromUint8(*(*uint8)(unsafe.Pointer(optstring + uintptr(i+j))))) {
break
}
goto _4
@@ -114255,7 +114267,7 @@ func ___getopt_long_core(tls *TLS, argc int32, argv uintptr, optstring uintptr,
i = match
opt = arg
Xoptind++
- if int32(*(*uint8)(unsafe.Pointer(opt))) == int32('=') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(opt))) == int32('=') {
if !((*(*Toption)(unsafe.Pointer(longopts + uintptr(i)*32))).Fhas_arg != 0) {
Xoptopt = (*(*Toption)(unsafe.Pointer(longopts + uintptr(i)*32))).Fval
if colon != 0 || !(Xopterr != 0) {
@@ -114292,7 +114304,7 @@ func ___getopt_long_core(tls *TLS, argc int32, argv uintptr, optstring uintptr,
}
return (*(*Toption)(unsafe.Pointer(longopts + uintptr(i)*32))).Fval
}
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(Xoptind)*8)) + 1))) == int32('-') {
Xoptopt = 0
if !(colon != 0) && Xopterr != 0 {
if cnt != 0 {
@@ -114332,7 +114344,7 @@ func Xgetpriority(tls *TLS, which int32, who Tid_t) (r int32) {
}
var ret int32
_ = ret
- ret = int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_getpriority), int64(which), int64(who)))))
+ ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getpriority), int64(which), Int64FromUint32(who)))))
if ret < 0 {
return ret
}
@@ -114344,7 +114356,7 @@ func Xgetresgid(tls *TLS, rgid uintptr, egid uintptr, sgid uintptr) (r int32) {
trc("tls=%v rgid=%v egid=%v sgid=%v, (%v:)", tls, rgid, egid, sgid, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_getresgid), int64(rgid), int64(egid), int64(sgid)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_getresgid), int64(rgid), int64(egid), int64(sgid)))))
}
func Xgetresuid(tls *TLS, ruid uintptr, euid uintptr, suid uintptr) (r int32) {
@@ -114352,7 +114364,7 @@ func Xgetresuid(tls *TLS, ruid uintptr, euid uintptr, suid uintptr) (r int32) {
trc("tls=%v ruid=%v euid=%v suid=%v, (%v:)", tls, ruid, euid, suid, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_getresuid), int64(ruid), int64(euid), int64(suid)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_getresuid), int64(ruid), int64(euid), int64(suid)))))
}
func Xgetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) {
@@ -114366,7 +114378,7 @@ func Xgetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) {
var v1, v2 uint64
var _ /* k_rlim at bp+0 */ [2]uint64
_, _, _ = ret, v1, v2
- ret = int32(X__syscall_ret(tls, uint64(X__syscall4(tls, int64(SYS_prlimit64), int64(Int32FromInt32(0)), int64(resource), int64(Int32FromInt32(0)), int64(rlim)))))
+ ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_prlimit64), int64(Int32FromInt32(0)), int64(resource), int64(Int32FromInt32(0)), int64(rlim)))))
if !(ret != 0) {
if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur >= ^Uint64FromUint64(0) {
(*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur = ^Uint64FromUint64(0)
@@ -114378,7 +114390,7 @@ func Xgetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) {
if !(ret != 0) || *(*int32)(unsafe.Pointer(X__errno_location(tls))) != int32(ENOSYS) {
return ret
}
- if X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_getrlimit), int64(resource), int64(bp)))) < 0 {
+ if X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getrlimit), int64(resource), int64(bp)))) < 0 {
return -int32(1)
}
if (*(*[2]uint64)(unsafe.Pointer(bp)))[0] == -Uint64FromUint64(1) {
@@ -114426,7 +114438,7 @@ func Xgetrusage(tls *TLS, who int32, ru uintptr) (r1 int32) {
Ftv_usec: (*(*[4]int64)(unsafe.Pointer(bp)))[int32(3)],
}
}
- return int32(X__syscall_ret(tls, uint64(r)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r)))
}
func Xgetsubopt(tls *TLS, opt uintptr, keys uintptr, val uintptr) (r int32) {
@@ -114458,7 +114470,7 @@ func Xgetsubopt(tls *TLS, opt uintptr, keys uintptr, val uintptr) (r int32) {
if Xstrncmp(tls, *(*uintptr)(unsafe.Pointer(keys + uintptr(i)*8)), s, l) != 0 {
goto _3
}
- if int32(*(*uint8)(unsafe.Pointer(s + uintptr(l)))) == int32('=') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s + uintptr(l)))) == int32('=') {
*(*uintptr)(unsafe.Pointer(val)) = s + uintptr(l) + uintptr(1)
} else {
if *(*uint8)(unsafe.Pointer(s + uintptr(l))) != 0 {
@@ -114522,8 +114534,8 @@ var _compat_map = [20]Tioctl_compat_map{
},
},
2: {
- Fnew_req: int32(uint64(Uint32FromUint32(2)<<Int32FromInt32(30)|uint32(Int32FromUint8('T')<<Int32FromInt32(8))|uint32(Int32FromInt32(0x14))) | Uint64FromInt64(96)<<Int32FromInt32(16)),
- Fold_req: int32(uint64(Uint32FromUint32(2)<<Int32FromInt32(30)|uint32(Int32FromUint8('T')<<Int32FromInt32(8))|uint32(Int32FromInt32(0x14))) | Uint64FromInt64(4)<<Int32FromInt32(16)),
+ Fnew_req: Int32FromUint64(uint64(Uint32FromUint32(2)<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('T')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(0x14))) | Uint64FromInt64(96)<<Int32FromInt32(16)),
+ Fold_req: Int32FromUint64(uint64(Uint32FromUint32(2)<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('T')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(0x14))) | Uint64FromInt64(4)<<Int32FromInt32(16)),
Fold_size: uint8(88),
Fdir: uint8(R),
Fnoffs: uint8(2),
@@ -114532,8 +114544,8 @@ var _compat_map = [20]Tioctl_compat_map{
},
},
3: {
- Fnew_req: int32(uint64(Uint32FromUint32(2)<<Int32FromInt32(30)|uint32(Int32FromUint8('A')<<Int32FromInt32(8))|uint32(Int32FromInt32(0x20))) | Uint64FromInt64(128)<<Int32FromInt32(16)),
- Fold_req: int32(uint64(Uint32FromUint32(2)<<Int32FromInt32(30)|uint32(Int32FromUint8('A')<<Int32FromInt32(8))|uint32(Int32FromInt32(0x20))) | Uint64FromInt64(108)<<Int32FromInt32(16)),
+ Fnew_req: Int32FromUint64(uint64(Uint32FromUint32(2)<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('A')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(0x20))) | Uint64FromInt64(128)<<Int32FromInt32(16)),
+ Fold_req: Int32FromUint64(uint64(Uint32FromUint32(2)<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('A')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(0x20))) | Uint64FromInt64(108)<<Int32FromInt32(16)),
Fold_size: uint8(108),
Fdir: uint8(R),
Fforce_align: uint8(1),
@@ -114550,8 +114562,8 @@ var _compat_map = [20]Tioctl_compat_map{
},
},
4: {
- Fnew_req: int32(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|uint32(Int32FromUint8('A')<<Int32FromInt32(8))|uint32(Int32FromInt32(0x24))) | Uint64FromInt64(128)<<Int32FromInt32(16)),
- Fold_req: int32(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|uint32(Int32FromUint8('A')<<Int32FromInt32(8))|uint32(Int32FromInt32(0x24))) | Uint64FromInt64(108)<<Int32FromInt32(16)),
+ Fnew_req: Int32FromUint64(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('A')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(0x24))) | Uint64FromInt64(128)<<Int32FromInt32(16)),
+ Fold_req: Int32FromUint64(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('A')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(0x24))) | Uint64FromInt64(108)<<Int32FromInt32(16)),
Fold_size: uint8(108),
Fdir: uint8(WR),
Fforce_align: uint8(1),
@@ -114568,8 +114580,8 @@ var _compat_map = [20]Tioctl_compat_map{
},
},
5: {
- Fnew_req: int32(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|uint32(Int32FromUint8('W')<<Int32FromInt32(8))|uint32(Int32FromInt32(0x20))) | Uint64FromInt64(48)<<Int32FromInt32(16)),
- Fold_req: int32(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|uint32(Int32FromUint8('W')<<Int32FromInt32(8))|uint32(Int32FromInt32(0x20))) | Uint64FromInt64(36)<<Int32FromInt32(16)),
+ Fnew_req: Int32FromUint64(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('W')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(0x20))) | Uint64FromInt64(48)<<Int32FromInt32(16)),
+ Fold_req: Int32FromUint64(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('W')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(0x20))) | Uint64FromInt64(36)<<Int32FromInt32(16)),
Fold_size: uint8(36),
Fdir: uint8(WR),
Fforce_align: uint8(1),
@@ -114580,8 +114592,8 @@ var _compat_map = [20]Tioctl_compat_map{
},
},
6: {
- Fnew_req: int32(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|uint32(Int32FromUint8('A')<<Int32FromInt32(8))|uint32(Int32FromInt32(0x23))) | Uint64FromInt64(136)<<Int32FromInt32(16)),
- Fold_req: int32(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|uint32(Int32FromUint8('A')<<Int32FromInt32(8))|uint32(Int32FromInt32(0x23))) | Uint64FromInt64(132)<<Int32FromInt32(16)),
+ Fnew_req: Int32FromUint64(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('A')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(0x23))) | Uint64FromInt64(136)<<Int32FromInt32(16)),
+ Fold_req: Int32FromUint64(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('A')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(0x23))) | Uint64FromInt64(132)<<Int32FromInt32(16)),
Fdir: uint8(WR),
Fforce_align: uint8(1),
},
@@ -114609,8 +114621,8 @@ var _compat_map = [20]Tioctl_compat_map{
Fforce_align: uint8(1),
},
10: {
- Fnew_req: int32(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|uint32(Int32FromUint8('V')<<Int32FromInt32(8))|uint32(Int32FromInt32(9))) | Uint64FromInt64(80)<<Int32FromInt32(16)),
- Fold_req: int32(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|uint32(Int32FromUint8('V')<<Int32FromInt32(8))|uint32(Int32FromInt32(9))) | Uint64FromInt64(68)<<Int32FromInt32(16)),
+ Fnew_req: Int32FromUint64(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('V')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(9))) | Uint64FromInt64(80)<<Int32FromInt32(16)),
+ Fold_req: Int32FromUint64(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('V')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(9))) | Uint64FromInt64(68)<<Int32FromInt32(16)),
Fold_size: uint8(68),
Fdir: uint8(WR),
Fforce_align: uint8(1),
@@ -114621,8 +114633,8 @@ var _compat_map = [20]Tioctl_compat_map{
},
},
11: {
- Fnew_req: int32(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|uint32(Int32FromUint8('V')<<Int32FromInt32(8))|uint32(Int32FromInt32(15))) | Uint64FromInt64(80)<<Int32FromInt32(16)),
- Fold_req: int32(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|uint32(Int32FromUint8('V')<<Int32FromInt32(8))|uint32(Int32FromInt32(15))) | Uint64FromInt64(68)<<Int32FromInt32(16)),
+ Fnew_req: Int32FromUint64(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('V')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(15))) | Uint64FromInt64(80)<<Int32FromInt32(16)),
+ Fold_req: Int32FromUint64(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('V')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(15))) | Uint64FromInt64(68)<<Int32FromInt32(16)),
Fold_size: uint8(68),
Fdir: uint8(WR),
Fforce_align: uint8(1),
@@ -114633,8 +114645,8 @@ var _compat_map = [20]Tioctl_compat_map{
},
},
12: {
- Fnew_req: int32(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|uint32(Int32FromUint8('V')<<Int32FromInt32(8))|uint32(Int32FromInt32(17))) | Uint64FromInt64(80)<<Int32FromInt32(16)),
- Fold_req: int32(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|uint32(Int32FromUint8('V')<<Int32FromInt32(8))|uint32(Int32FromInt32(17))) | Uint64FromInt64(68)<<Int32FromInt32(16)),
+ Fnew_req: Int32FromUint64(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('V')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(17))) | Uint64FromInt64(80)<<Int32FromInt32(16)),
+ Fold_req: Int32FromUint64(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('V')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(17))) | Uint64FromInt64(68)<<Int32FromInt32(16)),
Fold_size: uint8(68),
Fdir: uint8(WR),
Fforce_align: uint8(1),
@@ -114645,8 +114657,8 @@ var _compat_map = [20]Tioctl_compat_map{
},
},
13: {
- Fnew_req: int32(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|uint32(Int32FromUint8('V')<<Int32FromInt32(8))|uint32(Int32FromInt32(93))) | Uint64FromInt64(80)<<Int32FromInt32(16)),
- Fold_req: int32(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|uint32(Int32FromUint8('V')<<Int32FromInt32(8))|uint32(Int32FromInt32(93))) | Uint64FromInt64(68)<<Int32FromInt32(16)),
+ Fnew_req: Int32FromUint64(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('V')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(93))) | Uint64FromInt64(80)<<Int32FromInt32(16)),
+ Fold_req: Int32FromUint64(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('V')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(93))) | Uint64FromInt64(68)<<Int32FromInt32(16)),
Fold_size: uint8(68),
Fdir: uint8(WR),
Fforce_align: uint8(1),
@@ -114657,8 +114669,8 @@ var _compat_map = [20]Tioctl_compat_map{
},
},
14: {
- Fnew_req: int32(uint64(Uint32FromUint32(2)<<Int32FromInt32(30)|uint32(Int32FromUint8('V')<<Int32FromInt32(8))|uint32(Int32FromInt32(89))) | Uint64FromInt64(136)<<Int32FromInt32(16)),
- Fold_req: int32(uint64(Uint32FromUint32(2)<<Int32FromInt32(30)|uint32(Int32FromUint8('V')<<Int32FromInt32(8))|uint32(Int32FromInt32(89))) | Uint64FromInt64(128)<<Int32FromInt32(16)),
+ Fnew_req: Int32FromUint64(uint64(Uint32FromUint32(2)<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('V')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(89))) | Uint64FromInt64(136)<<Int32FromInt32(16)),
+ Fold_req: Int32FromUint64(uint64(Uint32FromUint32(2)<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('V')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(89))) | Uint64FromInt64(128)<<Int32FromInt32(16)),
Fold_size: uint8(128),
Fdir: uint8(R),
Fnoffs: uint8(2),
@@ -114668,8 +114680,8 @@ var _compat_map = [20]Tioctl_compat_map{
},
},
15: {
- Fnew_req: int32(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|uint32(Int32FromUint8('V')<<Int32FromInt32(8))|uint32(Int32FromInt32(192)+Int32FromInt32(6))) | Uint64FromInt64(32)<<Int32FromInt32(16)),
- Fold_req: int32(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|uint32(Int32FromUint8('V')<<Int32FromInt32(8))|uint32(Int32FromInt32(192)+Int32FromInt32(6))) | Uint64FromInt64(24)<<Int32FromInt32(16)),
+ Fnew_req: Int32FromUint64(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('V')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(192)+Int32FromInt32(6))) | Uint64FromInt64(32)<<Int32FromInt32(16)),
+ Fold_req: Int32FromUint64(uint64((Uint32FromUint32(2)|Uint32FromUint32(1))<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('V')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(192)+Int32FromInt32(6))) | Uint64FromInt64(24)<<Int32FromInt32(16)),
Fold_size: uint8(22),
Fdir: uint8(WR),
Fnoffs: uint8(2),
@@ -114678,8 +114690,8 @@ var _compat_map = [20]Tioctl_compat_map{
},
},
16: {
- Fnew_req: int32(uint64(Uint32FromUint32(2)<<Int32FromInt32(30)|uint32(Int32FromUint8('t')<<Int32FromInt32(8))|uint32(Int32FromInt32(63))) | Uint64FromInt64(16)<<Int32FromInt32(16)),
- Fold_req: int32(uint64(Uint32FromUint32(2)<<Int32FromInt32(30)|uint32(Int32FromUint8('t')<<Int32FromInt32(8))|uint32(Int32FromInt32(63))) | Uint64FromInt64(8)<<Int32FromInt32(16)),
+ Fnew_req: Int32FromUint64(uint64(Uint32FromUint32(2)<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('t')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(63))) | Uint64FromInt64(16)<<Int32FromInt32(16)),
+ Fold_req: Int32FromUint64(uint64(Uint32FromUint32(2)<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('t')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(63))) | Uint64FromInt64(8)<<Int32FromInt32(16)),
Fold_size: uint8(8),
Fdir: uint8(R),
Fnoffs: uint8(2),
@@ -114688,8 +114700,8 @@ var _compat_map = [20]Tioctl_compat_map{
},
},
17: {
- Fnew_req: int32(uint64(Uint32FromUint32(2)<<Int32FromInt32(30)|uint32(Int32FromUint8('p')<<Int32FromInt32(8))|uint32(Int32FromInt32(0x95))) | Uint64FromInt64(16)<<Int32FromInt32(16)),
- Fold_req: int32(uint64(Uint32FromUint32(2)<<Int32FromInt32(30)|uint32(Int32FromUint8('p')<<Int32FromInt32(8))|uint32(Int32FromInt32(0x95))) | Uint64FromInt64(8)<<Int32FromInt32(16)),
+ Fnew_req: Int32FromUint64(uint64(Uint32FromUint32(2)<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('p')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(0x95))) | Uint64FromInt64(16)<<Int32FromInt32(16)),
+ Fold_req: Int32FromUint64(uint64(Uint32FromUint32(2)<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('p')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(0x95))) | Uint64FromInt64(8)<<Int32FromInt32(16)),
Fold_size: uint8(8),
Fdir: uint8(R),
Fnoffs: uint8(2),
@@ -114698,8 +114710,8 @@ var _compat_map = [20]Tioctl_compat_map{
},
},
18: {
- Fnew_req: int32(uint64(Uint32FromUint32(1)<<Int32FromInt32(30)|uint32(Int32FromUint8('p')<<Int32FromInt32(8))|uint32(Int32FromInt32(0x96))) | Uint64FromInt64(16)<<Int32FromInt32(16)),
- Fold_req: int32(uint64(Uint32FromUint32(1)<<Int32FromInt32(30)|uint32(Int32FromUint8('p')<<Int32FromInt32(8))|uint32(Int32FromInt32(0x96))) | Uint64FromInt64(8)<<Int32FromInt32(16)),
+ Fnew_req: Int32FromUint64(uint64(Uint32FromUint32(1)<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('p')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(0x96))) | Uint64FromInt64(16)<<Int32FromInt32(16)),
+ Fold_req: Int32FromUint64(uint64(Uint32FromUint32(1)<<Int32FromInt32(30)|Uint32FromInt32(Int32FromUint8('p')<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(0x96))) | Uint64FromInt64(8)<<Int32FromInt32(16)),
Fold_size: uint8(8),
Fdir: uint8(W),
Fnoffs: uint8(2),
@@ -114708,7 +114720,7 @@ var _compat_map = [20]Tioctl_compat_map{
},
},
19: {
- Fnew_req: int32(uint64(Uint32FromUint32(1)<<Int32FromInt32(30)|uint32(Int32FromInt32(0x6)<<Int32FromInt32(8))|uint32(Int32FromInt32(0xf))) | Uint64FromInt64(16)<<Int32FromInt32(16)),
+ Fnew_req: Int32FromUint64(uint64(Uint32FromUint32(1)<<Int32FromInt32(30)|Uint32FromInt32(Int32FromInt32(0x6)<<Int32FromInt32(8))|Uint32FromInt32(Int32FromInt32(0xf))) | Uint64FromInt64(16)<<Int32FromInt32(16)),
Fold_req: int32(0x060f),
Fold_size: uint8(8),
Fdir: uint8(W),
@@ -114729,8 +114741,8 @@ func _convert_ioctl_struct(tls *TLS, map1 uintptr, old uintptr, new1 uintptr, di
_, _, _, _, _, _, _, _, _ = adj, align, i, len1, new_offset, old_offset, old_size, ts_offset, v2
new_offset = 0
old_offset = 0
- old_size = int32((*Tioctl_compat_map)(unsafe.Pointer(map1)).Fold_size)
- if !(dir&int32((*Tioctl_compat_map)(unsafe.Pointer(map1)).Fdir) != 0) {
+ old_size = Int32FromUint8((*Tioctl_compat_map)(unsafe.Pointer(map1)).Fold_size)
+ if !(dir&Int32FromUint8((*Tioctl_compat_map)(unsafe.Pointer(map1)).Fdir) != 0) {
return
}
if !((*Tioctl_compat_map)(unsafe.Pointer(map1)).Fold_size != 0) {
@@ -114747,15 +114759,15 @@ func _convert_ioctl_struct(tls *TLS, map1 uintptr, old uintptr, new1 uintptr, di
}
i = 0
for {
- if !(i < int32((*Tioctl_compat_map)(unsafe.Pointer(map1)).Fnoffs)) {
+ if !(i < Int32FromUint8((*Tioctl_compat_map)(unsafe.Pointer(map1)).Fnoffs)) {
break
}
- ts_offset = int32(*(*uint8)(unsafe.Pointer(map1 + 12 + uintptr(i))))
+ ts_offset = Int32FromUint8(*(*uint8)(unsafe.Pointer(map1 + 12 + uintptr(i))))
len1 = ts_offset - old_offset
if dir == int32(W) {
- Xmemcpy(tls, old+uintptr(old_offset), new1+uintptr(new_offset), uint64(len1))
+ Xmemcpy(tls, old+uintptr(old_offset), new1+uintptr(new_offset), Uint64FromInt32(len1))
} else {
- Xmemcpy(tls, new1+uintptr(new_offset), old+uintptr(old_offset), uint64(len1))
+ Xmemcpy(tls, new1+uintptr(new_offset), old+uintptr(old_offset), Uint64FromInt32(len1))
}
new_offset += len1
old_offset += len1
@@ -114764,7 +114776,7 @@ func _convert_ioctl_struct(tls *TLS, map1 uintptr, old uintptr, new1 uintptr, di
} else {
v2 = uint64(UintptrFromInt32(0) + 8)
}
- align = int32(v2)
+ align = Int32FromUint64(v2)
new_offset += (align - int32(1)) & -new_offset
if dir == int32(W) {
Xmemcpy(tls, bp, new1+uintptr(new_offset), uint64(8))
@@ -114783,9 +114795,9 @@ func _convert_ioctl_struct(tls *TLS, map1 uintptr, old uintptr, new1 uintptr, di
i++
}
if dir == int32(W) {
- Xmemcpy(tls, old+uintptr(old_offset), new1+uintptr(new_offset), uint64(old_size-old_offset))
+ Xmemcpy(tls, old+uintptr(old_offset), new1+uintptr(new_offset), Uint64FromInt32(old_size-old_offset))
} else {
- Xmemcpy(tls, new1+uintptr(new_offset), old+uintptr(old_offset), uint64(old_size-old_offset))
+ Xmemcpy(tls, new1+uintptr(new_offset), old+uintptr(old_offset), Uint64FromInt32(old_size-old_offset))
}
}
@@ -114812,7 +114824,7 @@ func Xioctl(tls *TLS, fd int32, req int32, va uintptr) (r1 int32) {
if Bool(Bool(int32(SIOCGSTAMP) != int32(SIOCGSTAMP_OLD)) && req != 0) && r == -int32(ENOTTY) {
i = 0
for {
- if !(uint64(i) < Uint64FromInt64(400)/Uint64FromInt64(20)) {
+ if !(Uint64FromInt32(i) < Uint64FromInt64(400)/Uint64FromInt64(20)) {
break
}
if _compat_map[i].Fnew_req != req {
@@ -114831,7 +114843,7 @@ func Xioctl(tls *TLS, fd int32, req int32, va uintptr) (r1 int32) {
i++
}
}
- return int32(X__syscall_ret(tls, uint64(r)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r)))
}
func Xissetugid(tls *TLS) (r int32) {
@@ -114839,7 +114851,7 @@ func Xissetugid(tls *TLS) (r int32) {
trc("tls=%v, (%v:)", tls, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__libc.Fsecure)
+ return Int32FromUint8(X__libc.Fsecure)
}
func Xlockf(tls *TLS, fd int32, op int32, size Toff_t) (r int32) {
@@ -114978,7 +114990,7 @@ func _unescape_ent(tls *TLS, beg uintptr) (r uintptr) {
src = beg
for *(*uint8)(unsafe.Pointer(src)) != 0 {
cval = uint8(0)
- if int32(*(*uint8)(unsafe.Pointer(src))) != int32('\\') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(src))) != int32('\\') {
v1 = dest
dest++
v2 = src
@@ -114986,7 +114998,7 @@ func _unescape_ent(tls *TLS, beg uintptr) (r uintptr) {
*(*uint8)(unsafe.Pointer(v1)) = *(*uint8)(unsafe.Pointer(v2))
continue
}
- if int32(*(*uint8)(unsafe.Pointer(src + 1))) == int32('\\') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(src + 1))) == int32('\\') {
src++
v3 = dest
dest++
@@ -115001,11 +115013,11 @@ func _unescape_ent(tls *TLS, beg uintptr) (r uintptr) {
if !(i < int32(3)) {
break
}
- if int32(*(*uint8)(unsafe.Pointer(val))) >= int32('0') && int32(*(*uint8)(unsafe.Pointer(val))) <= int32('7') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(val))) >= int32('0') && Int32FromUint8(*(*uint8)(unsafe.Pointer(val))) <= int32('7') {
cval = uint8(int32(cval) << Int32FromInt32(3))
v6 = val
val++
- cval = uint8(int32(cval) + (int32(*(*uint8)(unsafe.Pointer(v6))) - Int32FromUint8('0')))
+ cval = uint8(int32(cval) + (Int32FromUint8(*(*uint8)(unsafe.Pointer(v6))) - Int32FromUint8('0')))
} else {
break
}
@@ -115045,7 +115057,7 @@ func Xgetmntent_r(tls *TLS, f uintptr, mnt uintptr, linebuf uintptr, buflen int3
use_internal = BoolInt32(linebuf == uintptr(unsafe.Pointer(&_internal_buf)))
(*Tmntent)(unsafe.Pointer(mnt)).Fmnt_freq = 0
(*Tmntent)(unsafe.Pointer(mnt)).Fmnt_passno = 0
- for cond := true; cond; cond = int32(*(*uint8)(unsafe.Pointer(linebuf + uintptr((*(*[8]int32)(unsafe.Pointer(bp)))[0])))) == int32('#') || uint64((*(*[8]int32)(unsafe.Pointer(bp)))[int32(1)]) == len1 {
+ for cond := true; cond; cond = Int32FromUint8(*(*uint8)(unsafe.Pointer(linebuf + uintptr((*(*[8]int32)(unsafe.Pointer(bp)))[0])))) == int32('#') || Uint64FromInt32((*(*[8]int32)(unsafe.Pointer(bp)))[int32(1)]) == len1 {
if use_internal != 0 {
Xgetline(tls, uintptr(unsafe.Pointer(&_internal_buf)), uintptr(unsafe.Pointer(&_internal_bufsize)), f)
linebuf = _internal_buf
@@ -115069,7 +115081,7 @@ func Xgetmntent_r(tls *TLS, f uintptr, mnt uintptr, linebuf uintptr, buflen int3
if !(i < Uint64FromInt64(32)/Uint64FromInt64(4)) {
break
}
- (*(*[8]int32)(unsafe.Pointer(bp)))[i] = int32(len1)
+ (*(*[8]int32)(unsafe.Pointer(bp)))[i] = Int32FromUint64(len1)
goto _1
_1:
;
@@ -115141,7 +115153,7 @@ func _do_nftw(tls *TLS, path uintptr, fn uintptr, fd_limit int32, flags int32, h
var _ /* st at bp+0 */ Tstat
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = d, de, dfd, err, j, k, l, r, type1, v1, v10, v11, v12, v13, v2, v3, v4, v7, v8
l = Xstrlen(tls, path)
- if l != 0 && int32(*(*uint8)(unsafe.Pointer(path + uintptr(l-uint64(1))))) == int32('/') {
+ if l != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(path + uintptr(l-uint64(1))))) == int32('/') {
v1 = l - uint64(1)
} else {
v1 = l
@@ -115196,14 +115208,14 @@ func _do_nftw(tls *TLS, path uintptr, fn uintptr, fd_limit int32, flags int32, h
v4 = 0
}
(*(*Thistory)(unsafe.Pointer(bp + 128))).Flevel = v4
- (*(*Thistory)(unsafe.Pointer(bp + 128))).Fbase = int32(j + uint64(1))
+ (*(*Thistory)(unsafe.Pointer(bp + 128))).Fbase = Int32FromUint64(j + uint64(1))
(*(*TFTW)(unsafe.Pointer(bp + 160))).Flevel = (*(*Thistory)(unsafe.Pointer(bp + 128))).Flevel
if h != 0 {
(*(*TFTW)(unsafe.Pointer(bp + 160))).Fbase = (*Thistory)(unsafe.Pointer(h)).Fbase
} else {
k = j
for {
- if !(k != 0 && int32(*(*uint8)(unsafe.Pointer(path + uintptr(k)))) == int32('/')) {
+ if !(k != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(path + uintptr(k)))) == int32('/')) {
break
}
goto _5
@@ -115212,7 +115224,7 @@ func _do_nftw(tls *TLS, path uintptr, fn uintptr, fd_limit int32, flags int32, h
k--
}
for {
- if !(k != 0 && int32(*(*uint8)(unsafe.Pointer(path + uintptr(k-uint64(1))))) != int32('/')) {
+ if !(k != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(path + uintptr(k-uint64(1))))) != int32('/')) {
break
}
goto _6
@@ -115220,7 +115232,7 @@ func _do_nftw(tls *TLS, path uintptr, fn uintptr, fd_limit int32, flags int32, h
;
k--
}
- (*(*TFTW)(unsafe.Pointer(bp + 160))).Fbase = int32(k)
+ (*(*TFTW)(unsafe.Pointer(bp + 160))).Fbase = Int32FromUint64(k)
}
if type1 == int32(FTW_D) || type1 == int32(FTW_DP) {
dfd = Xopen(tls, path, O_RDONLY, 0)
@@ -115264,7 +115276,7 @@ func _do_nftw(tls *TLS, path uintptr, fn uintptr, fd_limit int32, flags int32, h
if !(v10 != 0) {
break
}
- if int32(*(*uint8)(unsafe.Pointer(de + 19))) == int32('.') && (!(*(*uint8)(unsafe.Pointer(de + 19 + 1)) != 0) || int32(*(*uint8)(unsafe.Pointer(de + 19 + 1))) == int32('.') && !(*(*uint8)(unsafe.Pointer(de + 19 + 2)) != 0)) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(de + 19))) == int32('.') && (!(*(*uint8)(unsafe.Pointer(de + 19 + 1)) != 0) || Int32FromUint8(*(*uint8)(unsafe.Pointer(de + 19 + 1))) == int32('.') && !(*(*uint8)(unsafe.Pointer(de + 19 + 2)) != 0)) {
continue
}
if Xstrlen(tls, de+19) >= uint64(PATH_MAX)-l {
@@ -115439,12 +115451,12 @@ func X__ptsname_r(tls *TLS, fd int32, buf uintptr, len1 Tsize_t) (r int32) {
if !(buf != 0) {
len1 = uint64(0)
}
- v1 = int32(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Uint32FromUint32(TIOCGPTN)), int64(bp)))
+ v1 = int32(X__syscall3(tls, int64(SYS_ioctl), int64(fd), Int64FromUint32(Uint32FromUint32(TIOCGPTN)), int64(bp)))
err = v1
if v1 != 0 {
return -err
}
- if uint64(Xsnprintf(tls, buf, len1, __ccgo_ts+909, VaList(bp+16, *(*int32)(unsafe.Pointer(bp))))) >= len1 {
+ if Uint64FromInt32(Xsnprintf(tls, buf, len1, __ccgo_ts+909, VaList(bp+16, *(*int32)(unsafe.Pointer(bp))))) >= len1 {
return int32(ERANGE)
}
return 0
@@ -115462,10 +115474,10 @@ func _slash_len(tls *TLS, s uintptr) (r Tsize_t) {
var s0 uintptr
_ = s0
s0 = s
- for int32(*(*uint8)(unsafe.Pointer(s))) == int32('/') {
+ for Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('/') {
s++
}
- return uint64(int64(s) - int64(s0))
+ return Uint64FromInt64(int64(s) - int64(s0))
}
func Xrealpath(tls *TLS, filename uintptr, resolved uintptr) (r uintptr) {
@@ -115511,7 +115523,7 @@ _3:
;
/* If stack starts with /, the whole component is / or //
* and the output state must be reset. */
- if int32((*(*[4097]uint8)(unsafe.Pointer(bp)))[p]) == int32('/') {
+ if Int32FromUint8((*(*[4097]uint8)(unsafe.Pointer(bp)))[p]) == int32('/') {
check_dir = 0
nup = uint64(0)
q = uint64(0)
@@ -115520,7 +115532,7 @@ _3:
(*(*[4096]uint8)(unsafe.Pointer(bp + 4097)))[v4] = uint8('/')
p++
/* Initial // is special. */
- if int32((*(*[4097]uint8)(unsafe.Pointer(bp)))[p]) == int32('/') && int32((*(*[4097]uint8)(unsafe.Pointer(bp)))[p+uint64(1)]) != int32('/') {
+ if Int32FromUint8((*(*[4097]uint8)(unsafe.Pointer(bp)))[p]) == int32('/') && Int32FromUint8((*(*[4097]uint8)(unsafe.Pointer(bp)))[p+uint64(1)]) != int32('/') {
v5 = q
q++
(*(*[4096]uint8)(unsafe.Pointer(bp + 4097)))[v5] = uint8('/')
@@ -115528,21 +115540,21 @@ _3:
goto _2
}
z = X__strchrnul(tls, bp+uintptr(p), int32('/'))
- v6 = uint64(int64(z) - int64(bp+uintptr(p)))
+ v6 = Uint64FromInt64(int64(z) - int64(bp+uintptr(p)))
l = v6
l0 = v6
if !(l != 0) && !(check_dir != 0) {
goto _1
}
/* Skip any . component but preserve check_dir status. */
- if l == uint64(1) && int32((*(*[4097]uint8)(unsafe.Pointer(bp)))[p]) == int32('.') {
+ if l == uint64(1) && Int32FromUint8((*(*[4097]uint8)(unsafe.Pointer(bp)))[p]) == int32('.') {
p += l
goto _2
}
/* Copy next component onto output at least temporarily, to
* call readlink, but wait to advance output position until
* determining it's not a link. */
- if q != 0 && int32((*(*[4096]uint8)(unsafe.Pointer(bp + 4097)))[q-uint64(1)]) != int32('/') {
+ if q != 0 && Int32FromUint8((*(*[4096]uint8)(unsafe.Pointer(bp + 4097)))[q-uint64(1)]) != int32('/') {
if !(p != 0) {
goto toolong
}
@@ -115558,7 +115570,7 @@ _3:
(*(*[4096]uint8)(unsafe.Pointer(bp + 4097)))[q+l] = uint8(0)
p += l
up = 0
- if l0 == uint64(2) && int32((*(*[4097]uint8)(unsafe.Pointer(bp)))[p-uint64(2)]) == int32('.') && int32((*(*[4097]uint8)(unsafe.Pointer(bp)))[p-uint64(1)]) == int32('.') {
+ if l0 == uint64(2) && Int32FromUint8((*(*[4097]uint8)(unsafe.Pointer(bp)))[p-uint64(2)]) == int32('.') && Int32FromUint8((*(*[4097]uint8)(unsafe.Pointer(bp)))[p-uint64(1)]) == int32('.') {
up = int32(1)
/* Any non-.. path components we could cancel start
* after nup repetitions of the 3-byte string "../";
@@ -115576,7 +115588,7 @@ _3:
}
}
k = Xreadlink(tls, bp+4097, bp, p)
- if uint64(k) == p {
+ if Uint64FromInt64(k) == p {
goto toolong
}
if !(k != 0) {
@@ -115594,10 +115606,10 @@ skip_readlink:
;
check_dir = 0
if up != 0 {
- for q != 0 && int32((*(*[4096]uint8)(unsafe.Pointer(bp + 4097)))[q-uint64(1)]) != int32('/') {
+ for q != 0 && Int32FromUint8((*(*[4096]uint8)(unsafe.Pointer(bp + 4097)))[q-uint64(1)]) != int32('/') {
q--
}
- if q > uint64(1) && (q > uint64(2) || int32((*(*[4096]uint8)(unsafe.Pointer(bp + 4097)))[0]) != int32('/')) {
+ if q > uint64(1) && (q > uint64(2) || Int32FromUint8((*(*[4096]uint8)(unsafe.Pointer(bp + 4097)))[0]) != int32('/')) {
q--
}
goto _2
@@ -115605,7 +115617,7 @@ skip_readlink:
if l0 != 0 {
q += l
}
- check_dir = int32((*(*[4097]uint8)(unsafe.Pointer(bp)))[p])
+ check_dir = Int32FromUint8((*(*[4097]uint8)(unsafe.Pointer(bp)))[p])
goto _2
_8:
;
@@ -115617,13 +115629,13 @@ _8:
}
/* If link contents end in /, strip any slashes already on
* stack to avoid /->// or //->/// or spurious toolong. */
- if int32((*(*[4097]uint8)(unsafe.Pointer(bp)))[k-int64(1)]) == int32('/') {
- for int32((*(*[4097]uint8)(unsafe.Pointer(bp)))[p]) == int32('/') {
+ if Int32FromUint8((*(*[4097]uint8)(unsafe.Pointer(bp)))[k-int64(1)]) == int32('/') {
+ for Int32FromUint8((*(*[4097]uint8)(unsafe.Pointer(bp)))[p]) == int32('/') {
p++
}
}
- p -= uint64(k)
- Xmemmove(tls, bp+uintptr(p), bp, uint64(k))
+ p -= Uint64FromInt64(k)
+ Xmemmove(tls, bp+uintptr(p), bp, Uint64FromInt64(k))
/* Skip the stack advancement in case we have a new
* absolute base path. */
goto restart
@@ -115636,7 +115648,7 @@ _2:
_1:
;
(*(*[4096]uint8)(unsafe.Pointer(bp + 4097)))[q] = uint8(0)
- if int32((*(*[4096]uint8)(unsafe.Pointer(bp + 4097)))[0]) != int32('/') {
+ if Int32FromUint8((*(*[4096]uint8)(unsafe.Pointer(bp + 4097)))[0]) != int32('/') {
if !(Xgetcwd(tls, bp, uint64(4097)) != 0) {
return uintptr(0)
}
@@ -115649,7 +115661,7 @@ _1:
if !(v10 != 0) {
break
}
- for l > uint64(1) && int32((*(*[4097]uint8)(unsafe.Pointer(bp)))[l-uint64(1)]) != int32('/') {
+ for l > uint64(1) && Int32FromUint8((*(*[4097]uint8)(unsafe.Pointer(bp)))[l-uint64(1)]) != int32('/') {
l--
}
if l > uint64(1) {
@@ -115660,7 +115672,7 @@ _1:
p++
}
}
- if q-p != 0 && int32((*(*[4097]uint8)(unsafe.Pointer(bp)))[l-uint64(1)]) != int32('/') {
+ if q-p != 0 && Int32FromUint8((*(*[4097]uint8)(unsafe.Pointer(bp)))[l-uint64(1)]) != int32('/') {
v11 = l
l++
(*(*[4097]uint8)(unsafe.Pointer(bp)))[v11] = uint8('/')
@@ -115689,7 +115701,7 @@ func Xsetdomainname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) {
trc("tls=%v name=%v len1=%v, (%v:)", tls, name, len1, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_setdomainname), int64(name), int64(len1)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_setdomainname), int64(name), Int64FromUint64(len1)))))
}
func Xsetpriority(tls *TLS, which int32, who Tid_t, prio int32) (r int32) {
@@ -115697,7 +115709,7 @@ func Xsetpriority(tls *TLS, which int32, who Tid_t, prio int32) (r int32) {
trc("tls=%v which=%v who=%v prio=%v, (%v:)", tls, which, who, prio, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_setpriority), int64(which), int64(who), int64(prio)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_setpriority), int64(which), Int64FromUint32(who), int64(prio)))))
}
type Tctx = struct {
@@ -115740,7 +115752,7 @@ func Xsetrlimit(tls *TLS, resource int32, rlim uintptr) (r int32) {
}
ret = int32(X__syscall4(tls, int64(SYS_prlimit64), int64(Int32FromInt32(0)), int64(resource), int64(rlim), int64(Int32FromInt32(0))))
if ret != -int32(ENOSYS) {
- return int32(X__syscall_ret(tls, uint64(ret)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(ret)))
}
if (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur < ^Uint64FromUint64(0) {
v1 = (*Trlimit)(unsafe.Pointer(rlim)).Frlim_cur
@@ -115786,7 +115798,7 @@ func Xsyscall(tls *TLS, n int64, va uintptr) (r int64) {
e = VaInt64(&ap)
f = VaInt64(&ap)
_ = ap
- return X__syscall_ret(tls, uint64(X__syscall6(tls, n, a, b, c, d, e, f)))
+ return X__syscall_ret(tls, Uint64FromInt64(X__syscall6(tls, n, a, b, c, d, e, f)))
}
const AF_ALG = 38
@@ -116214,19 +116226,19 @@ func __vsyslog(tls *TLS, priority int32, message uintptr, ap Tva_list) {
pid = v1
l = Xsnprintf(tls, bp+80, uint64(1024), __ccgo_ts+930, VaList(bp+1120, priority, bp, bp+1104, uintptr(unsafe.Pointer(&_log_ident)), __ccgo_ts+952+BoolUintptr(!(pid != 0)), pid, __ccgo_ts+954+BoolUintptr(!(pid != 0))))
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = errno_save
- l2 = Xvsnprintf(tls, bp+80+uintptr(l), uint64(1024)-uint64(l), message, ap)
+ l2 = Xvsnprintf(tls, bp+80+uintptr(l), uint64(1024)-Uint64FromInt32(l), message, ap)
if l2 >= 0 {
- if uint64(l2) >= uint64(1024)-uint64(l) {
- l = int32(Uint64FromInt64(1024) - Uint64FromInt32(1))
+ if Uint64FromInt32(l2) >= uint64(1024)-Uint64FromInt32(l) {
+ l = Int32FromUint64(Uint64FromInt64(1024) - Uint64FromInt32(1))
} else {
l += l2
}
- if int32((*(*[1024]uint8)(unsafe.Pointer(bp + 80)))[l-int32(1)]) != int32('\n') {
+ if Int32FromUint8((*(*[1024]uint8)(unsafe.Pointer(bp + 80)))[l-int32(1)]) != int32('\n') {
v2 = l
l++
(*(*[1024]uint8)(unsafe.Pointer(bp + 80)))[v2] = uint8('\n')
}
- if Xsend(tls, _log_fd, bp+80, uint64(l), 0) < 0 && (!(_is_lost_conn(tls, *(*int32)(unsafe.Pointer(X__errno_location(tls)))) != 0) || Xconnect(tls, _log_fd, uintptr(unsafe.Pointer(&_log_addr)), uint32(12)) < 0 || Xsend(tls, _log_fd, bp+80, uint64(l), 0) < 0) && _log_opt&int32(LOG_CONS) != 0 {
+ if Xsend(tls, _log_fd, bp+80, Uint64FromInt32(l), 0) < 0 && (!(_is_lost_conn(tls, *(*int32)(unsafe.Pointer(X__errno_location(tls)))) != 0) || Xconnect(tls, _log_fd, uintptr(unsafe.Pointer(&_log_addr)), uint32(12)) < 0 || Xsend(tls, _log_fd, bp+80, Uint64FromInt32(l), 0) < 0) && _log_opt&int32(LOG_CONS) != 0 {
fd = Xopen(tls, __ccgo_ts+649, Int32FromInt32(O_WRONLY)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC), 0)
if fd >= 0 {
Xdprintf(tls, fd, __ccgo_ts+956, VaList(bp+1120, l-*(*int32)(unsafe.Pointer(bp + 1104)), bp+80+uintptr(*(*int32)(unsafe.Pointer(bp + 1104)))))
@@ -116278,7 +116290,7 @@ func Xuname(tls *TLS, uts uintptr) (r int32) {
trc("tls=%v uts=%v, (%v:)", tls, uts, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall1(tls, int64(SYS_uname), int64(uts)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_uname), int64(uts)))))
}
func X__madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) {
@@ -116286,7 +116298,7 @@ func X__madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) {
trc("tls=%v addr=%v len1=%v advice=%v, (%v:)", tls, addr, len1, advice, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_madvise), int64(addr), int64(len1), int64(advice)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_madvise), int64(addr), Int64FromUint64(len1), int64(advice)))))
}
func Xmadvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32) {
@@ -116302,7 +116314,7 @@ func Xmincore(tls *TLS, addr uintptr, len1 Tsize_t, vec uintptr) (r int32) {
trc("tls=%v addr=%v len1=%v vec=%v, (%v:)", tls, addr, len1, vec, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_mincore), int64(addr), int64(len1), int64(vec)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mincore), int64(addr), Int64FromUint64(len1), int64(vec)))))
}
func Xmlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) {
@@ -116310,7 +116322,7 @@ func Xmlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) {
trc("tls=%v addr=%v len1=%v, (%v:)", tls, addr, len1, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_mlock), int64(addr), int64(len1)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_mlock), int64(addr), Int64FromUint64(len1)))))
}
func Xmlockall(tls *TLS, flags int32) (r int32) {
@@ -116318,7 +116330,7 @@ func Xmlockall(tls *TLS, flags int32) (r int32) {
trc("tls=%v flags=%v, (%v:)", tls, flags, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall1(tls, int64(SYS_mlockall), int64(flags)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_mlockall), int64(flags)))))
}
const OFF_MASK = 4095
@@ -116334,23 +116346,23 @@ func X__mmap(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd
}
var ret int64
_ = ret
- if uint64(off)&(-Uint64FromUint64(0x2000)<<(Uint64FromInt32(8)*Uint64FromInt64(8)-Uint64FromInt32(1))|(Uint64FromUint64(4096)-Uint64FromInt32(1))) != 0 {
+ if Uint64FromInt64(off)&(-Uint64FromUint64(0x2000)<<(Uint64FromInt32(8)*Uint64FromInt64(8)-Uint64FromInt32(1))|(Uint64FromUint64(4096)-Uint64FromInt32(1))) != 0 {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EINVAL)
return uintptr(-Int32FromInt32(1))
}
- if len1 >= uint64(Int64FromInt64(INT64_MAX)) {
+ if len1 >= Uint64FromInt64(Int64FromInt64(INT64_MAX)) {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(ENOMEM)
return uintptr(-Int32FromInt32(1))
}
if flags&int32(MAP_FIXED) != 0 {
_dummy5(tls)
}
- ret = X__syscall6(tls, int64(SYS_mmap), int64(start), int64(len1), int64(prot), int64(flags), int64(fd), off)
+ ret = X__syscall6(tls, int64(SYS_mmap), int64(start), Int64FromUint64(len1), int64(prot), int64(flags), int64(fd), off)
/* Fixup incorrect EPERM from kernel. */
if ret == int64(-int32(EPERM)) && !(start != 0) && flags&int32(MAP_ANON) != 0 && !(flags&Int32FromInt32(MAP_FIXED) != 0) {
ret = int64(-int32(ENOMEM))
}
- return uintptr(X__syscall_ret(tls, uint64(ret)))
+ return uintptr(X__syscall_ret(tls, Uint64FromInt64(ret)))
}
func Xmmap(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) {
@@ -116370,7 +116382,7 @@ func X__mprotect(tls *TLS, addr uintptr, len1 Tsize_t, prot int32) (r int32) {
_, _ = end, start
start = uint64(addr) & -X__libc.Fpage_size
end = uint64(addr+uintptr(len1)+uintptr(X__libc.Fpage_size)-UintptrFromInt32(1)) & -X__libc.Fpage_size
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_mprotect), int64(start), int64(end-start), int64(prot)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mprotect), Int64FromUint64(start), Int64FromUint64(end-start), int64(prot)))))
}
func Xmprotect(tls *TLS, addr uintptr, len1 Tsize_t, prot int32) (r int32) {
@@ -116393,7 +116405,7 @@ func X__mremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, fla
var new_addr uintptr
_, _ = ap, new_addr
new_addr = uintptr(0)
- if new_len >= uint64(Int64FromInt64(INT64_MAX)) {
+ if new_len >= Uint64FromInt64(Int64FromInt64(INT64_MAX)) {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(ENOMEM)
return uintptr(-Int32FromInt32(1))
}
@@ -116403,7 +116415,7 @@ func X__mremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, fla
new_addr = VaUintptr(&ap)
_ = ap
}
- return uintptr(X__syscall_ret(tls, uint64(X__syscall5(tls, int64(SYS_mremap), int64(old_addr), int64(old_len), int64(new_len), int64(flags), int64(new_addr)))))
+ return uintptr(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_mremap), int64(old_addr), Int64FromUint64(old_len), Int64FromUint64(new_len), int64(flags), int64(new_addr)))))
}
func Xmremap(tls *TLS, old_addr uintptr, old_len Tsize_t, new_len Tsize_t, flags int32, va uintptr) (r uintptr) {
@@ -116419,7 +116431,7 @@ func Xmsync(tls *TLS, start uintptr, len1 Tsize_t, flags int32) (r int32) {
trc("tls=%v start=%v len1=%v flags=%v, (%v:)", tls, start, len1, flags, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_msync), int64(start), int64(len1), int64(flags), 0, 0, 0))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_msync), int64(start), Int64FromUint64(len1), int64(flags), 0, 0, 0))))
}
func Xmunlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) {
@@ -116427,7 +116439,7 @@ func Xmunlock(tls *TLS, addr uintptr, len1 Tsize_t) (r int32) {
trc("tls=%v addr=%v len1=%v, (%v:)", tls, addr, len1, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_munlock), int64(addr), int64(len1)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_munlock), int64(addr), Int64FromUint64(len1)))))
}
func Xmunlockall(tls *TLS) (r int32) {
@@ -116435,7 +116447,7 @@ func Xmunlockall(tls *TLS) (r int32) {
trc("tls=%v, (%v:)", tls, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall0(tls, int64(SYS_munlockall)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_munlockall)))))
}
func _dummy7(tls *TLS) {
@@ -116447,7 +116459,7 @@ func X__munmap(tls *TLS, start uintptr, len1 Tsize_t) (r int32) {
defer func() { trc("-> %v", r) }()
}
_dummy7(tls)
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_munmap), int64(start), int64(len1)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_munmap), int64(start), Int64FromUint64(len1)))))
}
func Xmunmap(tls *TLS, start uintptr, len1 Tsize_t) (r int32) {
@@ -116466,7 +116478,7 @@ func Xposix_madvise(tls *TLS, addr uintptr, len1 Tsize_t, advice int32) (r int32
if advice == int32(MADV_DONTNEED) {
return 0
}
- return int32(-X__syscall3(tls, int64(SYS_madvise), int64(addr), int64(len1), int64(advice)))
+ return int32(-X__syscall3(tls, int64(SYS_madvise), int64(addr), Int64FromUint64(len1), int64(advice)))
}
func X__shm_mapname(tls *TLS, name uintptr, buf uintptr) (r uintptr) {
@@ -116476,12 +116488,12 @@ func X__shm_mapname(tls *TLS, name uintptr, buf uintptr) (r uintptr) {
}
var p, v1 uintptr
_, _ = p, v1
- for int32(*(*uint8)(unsafe.Pointer(name))) == int32('/') {
+ for Int32FromUint8(*(*uint8)(unsafe.Pointer(name))) == int32('/') {
name++
}
v1 = X__strchrnul(tls, name, int32('/'))
p = v1
- if *(*uint8)(unsafe.Pointer(v1)) != 0 || p == name || int64(p)-int64(name) <= int64(2) && int32(*(*uint8)(unsafe.Pointer(name))) == int32('.') && int32(*(*uint8)(unsafe.Pointer(p + uintptr(-Int32FromInt32(1))))) == int32('.') {
+ if *(*uint8)(unsafe.Pointer(v1)) != 0 || p == name || int64(p)-int64(name) <= int64(2) && Int32FromUint8(*(*uint8)(unsafe.Pointer(name))) == int32('.') && Int32FromUint8(*(*uint8)(unsafe.Pointer(p + uintptr(-Int32FromInt32(1))))) == int32('.') {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EINVAL)
return uintptr(0)
}
@@ -116490,7 +116502,7 @@ func X__shm_mapname(tls *TLS, name uintptr, buf uintptr) (r uintptr) {
return uintptr(0)
}
Xmemcpy(tls, buf, __ccgo_ts+961, uint64(9))
- Xmemcpy(tls, buf+uintptr(9), name, uint64(int64(p)-int64(name)+int64(1)))
+ Xmemcpy(tls, buf+uintptr(9), name, Uint64FromInt64(int64(p)-int64(name)+int64(1)))
return buf
}
@@ -116555,9 +116567,9 @@ func Xbtowc(tls *TLS, c int32) (r Twint_t) {
var b, v3 int32
var v1, v2 uint32
_, _, _, _ = b, v1, v2, v3
- b = int32(uint8(c))
- if uint32(b) < uint32(128) {
- v1 = uint32(b)
+ b = Int32FromUint8(Uint8FromInt32(c))
+ if Uint32FromInt32(b) < uint32(128) {
+ v1 = Uint32FromInt32(b)
} else {
if !!(*(*uintptr)(unsafe.Pointer((*t__pthread)(unsafe.Pointer(___get_tp(tls))).Flocale)) != 0) {
v3 = int32(4)
@@ -116565,7 +116577,7 @@ func Xbtowc(tls *TLS, c int32) (r Twint_t) {
v3 = int32(1)
}
if v3 == int32(1) && c != -int32(1) {
- v2 = uint32(Int32FromInt32(0xdfff) & int32(int8(c)))
+ v2 = Uint32FromInt32(Int32FromInt32(0xdfff) & int32(int8(c)))
} else {
v2 = uint32(0xffffffff)
}
@@ -116597,7 +116609,7 @@ func Xc16rtomb(tls *TLS, s uintptr, c16 Tchar16_t, ps uintptr) (r Tsize_t) {
return uint64(1)
}
if !(*(*uint32)(unsafe.Pointer(x)) != 0) && uint32(c16)-uint32(0xd800) < uint32(0x400) {
- *(*uint32)(unsafe.Pointer(x)) = uint32((int32(c16) - int32(0xd7c0)) << int32(10))
+ *(*uint32)(unsafe.Pointer(x)) = Uint32FromInt32((Int32FromUint16(c16) - int32(0xd7c0)) << int32(10))
return uint64(0)
}
if *(*uint32)(unsafe.Pointer(x)) != 0 {
@@ -116616,7 +116628,7 @@ ilseq:
;
*(*uint32)(unsafe.Pointer(x)) = uint32(0)
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EILSEQ)
- return uint64(-Int32FromInt32(1))
+ return Uint64FromInt32(-Int32FromInt32(1))
}
var _internal_state uint32
@@ -116674,12 +116686,12 @@ func Xmbrtoc16(tls *TLS, pc16 uintptr, s uintptr, n Tsize_t, ps uintptr) (r Tsiz
}
/* mbrtowc states for partial UTF-8 characters have the high bit set;
* we use nonzero states without high bit for pending surrogates. */
- if int32(*(*uint32)(unsafe.Pointer(pending))) > 0 {
+ if Int32FromUint32(*(*uint32)(unsafe.Pointer(pending))) > 0 {
if pc16 != 0 {
*(*Tchar16_t)(unsafe.Pointer(pc16)) = uint16(*(*uint32)(unsafe.Pointer(pending)))
}
*(*uint32)(unsafe.Pointer(pending)) = uint32(0)
- return uint64(-Int32FromInt32(3))
+ return Uint64FromInt32(-Int32FromInt32(3))
}
ret = Xmbrtowc(tls, bp, s, n, ps)
if ret <= uint64(4) {
@@ -116752,10 +116764,10 @@ func Xmbrtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t, st uintptr) (r Tsize
}
}
if !(n != 0) {
- return uint64(-Int32FromInt32(2))
+ return Uint64FromInt32(-Int32FromInt32(2))
}
if !(c != 0) {
- if int32(*(*uint8)(unsafe.Pointer(s))) < int32(0x80) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) < int32(0x80) {
v1 = uint32(*(*uint8)(unsafe.Pointer(s)))
*(*Twchar_t)(unsafe.Pointer(wc)) = v1
return BoolUint64(!!(v1 != 0))
@@ -116766,7 +116778,7 @@ func Xmbrtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t, st uintptr) (r Tsize
v2 = int32(1)
}
if v2 == int32(1) {
- *(*Twchar_t)(unsafe.Pointer(wc)) = uint32(Int32FromInt32(0xdfff) & int32(int8(*(*uint8)(unsafe.Pointer(s)))))
+ *(*Twchar_t)(unsafe.Pointer(wc)) = Uint32FromInt32(Int32FromInt32(0xdfff) & int32(Int8FromUint8(*(*uint8)(unsafe.Pointer(s)))))
return Uint64FromInt32(1)
}
if uint32(*(*uint8)(unsafe.Pointer(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) {
@@ -116778,7 +116790,7 @@ func Xmbrtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t, st uintptr) (r Tsize
n--
}
if n != 0 {
- if (int32(*(*uint8)(unsafe.Pointer(s)))>>int32(3)-int32(0x10)|(int32(*(*uint8)(unsafe.Pointer(s)))>>int32(3)+int32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 {
+ if (Int32FromUint8(*(*uint8)(unsafe.Pointer(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(*(*uint8)(unsafe.Pointer(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 {
goto ilseq
}
goto loop
@@ -116786,7 +116798,7 @@ func Xmbrtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t, st uintptr) (r Tsize
;
v4 = s
s++
- c = c<<int32(6) | uint32(int32(*(*uint8)(unsafe.Pointer(v4)))-int32(0x80))
+ c = c<<int32(6) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(v4)))-int32(0x80))
n--
if !(c&(Uint32FromUint32(1)<<Int32FromInt32(31)) != 0) {
*(*uint32)(unsafe.Pointer(st)) = uint32(0)
@@ -116801,13 +116813,13 @@ func Xmbrtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t, st uintptr) (r Tsize
}
}
*(*uint32)(unsafe.Pointer(st)) = c
- return uint64(-Int32FromInt32(2))
+ return Uint64FromInt32(-Int32FromInt32(2))
goto ilseq
ilseq:
;
*(*uint32)(unsafe.Pointer(st)) = uint32(0)
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EILSEQ)
- return uint64(-Int32FromInt32(1))
+ return Uint64FromInt32(-Int32FromInt32(1))
}
var _internal_state3 uint32
@@ -116868,7 +116880,7 @@ func Xmbsnrtowcs(tls *TLS, wcs uintptr, src uintptr, n Tsize_t, wn Tsize_t, st u
wn -= l
}
if *(*uintptr)(unsafe.Pointer(bp + 1024)) != 0 {
- v3 = n - uint64(int64(*(*uintptr)(unsafe.Pointer(bp + 1024)))-int64(tmp_s))
+ v3 = n - Uint64FromInt64(int64(*(*uintptr)(unsafe.Pointer(bp + 1024)))-int64(tmp_s))
} else {
v3 = uint64(0)
}
@@ -116953,7 +116965,7 @@ func Xmbsrtowcs(tls *TLS, ws uintptr, src uintptr, wn Tsize_t, st uintptr) (r Ts
c = uint32(*(*uint8)(unsafe.Pointer(v5)))
v6 = ws
ws += 4
- *(*Twchar_t)(unsafe.Pointer(v6)) = uint32(Int32FromInt32(0xdfff) & int32(int8(c)))
+ *(*Twchar_t)(unsafe.Pointer(v6)) = Uint32FromInt32(Int32FromInt32(0xdfff) & int32(Int8FromUint32(c)))
wn--
goto _4
_4:
@@ -116987,7 +116999,7 @@ _11:
goto resume0
resume0:
;
- if (int32(*(*uint8)(unsafe.Pointer(s)))>>int32(3)-int32(0x10)|(int32(*(*uint8)(unsafe.Pointer(s)))>>int32(3)+int32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 {
+ if (Int32FromUint8(*(*uint8)(unsafe.Pointer(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(*(*uint8)(unsafe.Pointer(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 {
s--
goto _9
}
@@ -117067,13 +117079,13 @@ _15:
goto resume
resume:
;
- if (int32(*(*uint8)(unsafe.Pointer(s)))>>int32(3)-int32(0x10)|(int32(*(*uint8)(unsafe.Pointer(s)))>>int32(3)+int32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 {
+ if (Int32FromUint8(*(*uint8)(unsafe.Pointer(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(*(*uint8)(unsafe.Pointer(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 {
s--
goto _13
}
v27 = s
s++
- c = c<<int32(6) | uint32(int32(*(*uint8)(unsafe.Pointer(v27)))-int32(0x80))
+ c = c<<int32(6) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(v27)))-int32(0x80))
if c&(Uint32FromUint32(1)<<Int32FromInt32(31)) != 0 {
if uint32(*(*uint8)(unsafe.Pointer(s)))-uint32(0x80) >= uint32(0x40) {
s -= uintptr(2)
@@ -117081,7 +117093,7 @@ resume:
}
v28 = s
s++
- c = c<<int32(6) | uint32(int32(*(*uint8)(unsafe.Pointer(v28)))-int32(0x80))
+ c = c<<int32(6) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(v28)))-int32(0x80))
if c&(Uint32FromUint32(1)<<Int32FromInt32(31)) != 0 {
if uint32(*(*uint8)(unsafe.Pointer(s)))-uint32(0x80) >= uint32(0x40) {
s -= uintptr(3)
@@ -117089,7 +117101,7 @@ resume:
}
v29 = s
s++
- c = c<<int32(6) | uint32(int32(*(*uint8)(unsafe.Pointer(v29)))-int32(0x80))
+ c = c<<int32(6) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(v29)))-int32(0x80))
}
}
v30 = ws
@@ -117117,7 +117129,7 @@ _8:
if ws != 0 {
*(*uintptr)(unsafe.Pointer(src)) = s
}
- return uint64(-Int32FromInt32(1))
+ return Uint64FromInt32(-Int32FromInt32(1))
}
func Xmbstowcs(tls *TLS, ws uintptr, _s uintptr, wn Tsize_t) (r Tsize_t) {
@@ -117154,7 +117166,7 @@ func Xmbtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t) (r int32) {
if !(wc != 0) {
wc = bp
}
- if int32(*(*uint8)(unsafe.Pointer(s))) < int32(0x80) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) < int32(0x80) {
v1 = uint32(*(*uint8)(unsafe.Pointer(s)))
*(*Twchar_t)(unsafe.Pointer(wc)) = v1
return BoolInt32(!!(v1 != 0))
@@ -117165,7 +117177,7 @@ func Xmbtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t) (r int32) {
v2 = int32(1)
}
if v2 == int32(1) {
- *(*Twchar_t)(unsafe.Pointer(wc)) = uint32(Int32FromInt32(0xdfff) & int32(int8(*(*uint8)(unsafe.Pointer(s)))))
+ *(*Twchar_t)(unsafe.Pointer(wc)) = Uint32FromInt32(Int32FromInt32(0xdfff) & int32(Int8FromUint8(*(*uint8)(unsafe.Pointer(s)))))
return Int32FromInt32(1)
}
if uint32(*(*uint8)(unsafe.Pointer(s)))-uint32(0xc2) > Uint32FromUint32(0xf4)-Uint32FromUint32(0xc2) {
@@ -117180,12 +117192,12 @@ func Xmbtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t) (r int32) {
if n < uint64(4) && c<<(uint64(6)*n-uint64(6))&(Uint32FromUint32(1)<<Int32FromInt32(31)) != 0 {
goto ilseq
}
- if (int32(*(*uint8)(unsafe.Pointer(s)))>>int32(3)-int32(0x10)|(int32(*(*uint8)(unsafe.Pointer(s)))>>int32(3)+int32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 {
+ if (Int32FromUint8(*(*uint8)(unsafe.Pointer(s)))>>int32(3)-int32(0x10)|(Int32FromUint8(*(*uint8)(unsafe.Pointer(s)))>>int32(3)+Int32FromUint32(c)>>Int32FromInt32(26))) & ^Int32FromInt32(7) != 0 {
goto ilseq
}
v4 = s
s++
- c = c<<int32(6) | uint32(int32(*(*uint8)(unsafe.Pointer(v4)))-int32(0x80))
+ c = c<<int32(6) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(v4)))-int32(0x80))
if !(c&(Uint32FromUint32(1)<<Int32FromInt32(31)) != 0) {
*(*Twchar_t)(unsafe.Pointer(wc)) = c
return int32(2)
@@ -117195,7 +117207,7 @@ func Xmbtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t) (r int32) {
}
v5 = s
s++
- c = c<<int32(6) | uint32(int32(*(*uint8)(unsafe.Pointer(v5)))-int32(0x80))
+ c = c<<int32(6) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(v5)))-int32(0x80))
if !(c&(Uint32FromUint32(1)<<Int32FromInt32(31)) != 0) {
*(*Twchar_t)(unsafe.Pointer(wc)) = c
return int32(3)
@@ -117205,7 +117217,7 @@ func Xmbtowc(tls *TLS, wc uintptr, src uintptr, n Tsize_t) (r int32) {
}
v6 = s
s++
- *(*Twchar_t)(unsafe.Pointer(wc)) = c<<int32(6) | uint32(int32(*(*uint8)(unsafe.Pointer(v6)))-int32(0x80))
+ *(*Twchar_t)(unsafe.Pointer(wc)) = c<<int32(6) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(v6)))-int32(0x80))
return int32(4)
goto ilseq
ilseq:
@@ -117237,7 +117249,7 @@ func Xwcrtomb(tls *TLS, s uintptr, wc Twchar_t, st uintptr) (r Tsize_t) {
if v1 == int32(1) {
if !(wc-Uint32FromInt32(0xdf80) < Uint32FromInt32(0x80)) {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EILSEQ)
- return uint64(-Int32FromInt32(1))
+ return Uint64FromInt32(-Int32FromInt32(1))
}
*(*uint8)(unsafe.Pointer(s)) = uint8(wc)
return uint64(1)
@@ -117277,7 +117289,7 @@ func Xwcrtomb(tls *TLS, s uintptr, wc Twchar_t, st uintptr) (r Tsize_t) {
}
}
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EILSEQ)
- return uint64(-Int32FromInt32(1))
+ return Uint64FromInt32(-Int32FromInt32(1))
}
func Xwcsnrtombs(tls *TLS, dst uintptr, wcs uintptr, wn Tsize_t, n Tsize_t, st uintptr) (r Tsize_t) {
@@ -117303,8 +117315,8 @@ func Xwcsnrtombs(tls *TLS, dst uintptr, wcs uintptr, wn Tsize_t, n Tsize_t, st u
v1 = dst
}
l = Xwcrtomb(tls, v1, *(*Twchar_t)(unsafe.Pointer(ws)), uintptr(0))
- if l == uint64(-Int32FromInt32(1)) {
- cnt = uint64(-Int32FromInt32(1))
+ if l == Uint64FromInt32(-Int32FromInt32(1)) {
+ cnt = Uint64FromInt32(-Int32FromInt32(1))
break
}
if dst != 0 {
@@ -117353,7 +117365,7 @@ func Xwcsrtombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t, st uintptr) (r Tsize
if *(*Twchar_t)(unsafe.Pointer(ws2)) >= uint32(0x80) {
l = Xwcrtomb(tls, bp, *(*Twchar_t)(unsafe.Pointer(ws2)), uintptr(0))
if !(l+Uint64FromInt32(1) != 0) {
- return uint64(-Int32FromInt32(1))
+ return Uint64FromInt32(-Int32FromInt32(1))
}
n += l
} else {
@@ -117375,7 +117387,7 @@ func Xwcsrtombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t, st uintptr) (r Tsize
}
l = Xwcrtomb(tls, s, *(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(ws)))), uintptr(0))
if !(l+Uint64FromInt32(1) != 0) {
- return uint64(-Int32FromInt32(1))
+ return Uint64FromInt32(-Int32FromInt32(1))
}
s += uintptr(l)
n -= l
@@ -117396,7 +117408,7 @@ func Xwcsrtombs(tls *TLS, s uintptr, ws uintptr, n Tsize_t, st uintptr) (r Tsize
}
l = Xwcrtomb(tls, bp, *(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(ws)))), uintptr(0))
if !(l+Uint64FromInt32(1) != 0) {
- return uint64(-Int32FromInt32(1))
+ return Uint64FromInt32(-Int32FromInt32(1))
}
if l > n {
return N - n
@@ -117434,7 +117446,7 @@ func Xwctob(tls *TLS, c Twint_t) (r int32) {
var v1 int32
_ = v1
if c < uint32(128) {
- return int32(c)
+ return Int32FromUint32(c)
}
if !!(*(*uintptr)(unsafe.Pointer((*t__pthread)(unsafe.Pointer(___get_tp(tls))).Flocale)) != 0) {
v1 = int32(4)
@@ -117442,7 +117454,7 @@ func Xwctob(tls *TLS, c Twint_t) (r int32) {
v1 = int32(1)
}
if v1 == int32(1) && c-uint32(0xdf80) < uint32(0x80) {
- return int32(uint8(c))
+ return Int32FromUint8(uint8(c))
}
return -int32(1)
}
@@ -117455,7 +117467,7 @@ func Xwctomb(tls *TLS, s uintptr, wc Twchar_t) (r int32) {
if !(s != 0) {
return 0
}
- return int32(Xwcrtomb(tls, s, wc, uintptr(0)))
+ return Int32FromUint64(Xwcrtomb(tls, s, wc, uintptr(0)))
}
func Xaccept(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) {
@@ -117487,7 +117499,7 @@ func Xaccept(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) {
v8 = r
goto _9
_9:
- return int32(X__syscall_ret(tls, uint64(v8)))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(v8)))
}
type Tucred = struct {
@@ -117533,7 +117545,7 @@ func Xaccept4(tls *TLS, fd int32, addr uintptr, len1 uintptr, flg int32) (r1 int
v8 = r
goto _9
_9:
- ret = int32(X__syscall_ret(tls, uint64(v8)))
+ ret = int32(X__syscall_ret(tls, Uint64FromInt64(v8)))
if ret >= 0 || *(*int32)(unsafe.Pointer(X__errno_location(tls))) != int32(ENOSYS) && *(*int32)(unsafe.Pointer(X__errno_location(tls))) != int32(EINVAL) {
return ret
}
@@ -117567,7 +117579,7 @@ func Xbind(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) {
_ = int32(__SC_bind)
v2 = int64(fd)
v3 = int64(addr)
- v4 = int64(len1)
+ v4 = Int64FromUint32(len1)
v5 = int64(Int32FromInt32(0))
v6 = int64(Int32FromInt32(0))
v7 = int64(Int32FromInt32(0))
@@ -117583,7 +117595,7 @@ func Xbind(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) {
v8 = r
goto _9
_9:
- return int32(X__syscall_ret(tls, uint64(v8)))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(v8)))
}
func Xconnect(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) {
@@ -117599,7 +117611,7 @@ func Xconnect(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) {
_ = int32(__SC_connect)
v2 = int64(fd)
v3 = int64(addr)
- v4 = int64(len1)
+ v4 = Int64FromUint32(len1)
v5 = int64(Int32FromInt32(0))
v6 = int64(Int32FromInt32(0))
v7 = int64(Int32FromInt32(0))
@@ -117615,7 +117627,7 @@ func Xconnect(tls *TLS, fd int32, addr uintptr, len1 Tsocklen_t) (r1 int32) {
v8 = r
goto _9
_9:
- return int32(X__syscall_ret(tls, uint64(v8)))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(v8)))
}
const ADD = 0
@@ -118525,11 +118537,11 @@ func _getoffs(tls *TLS, offs uintptr, base uintptr, s uintptr) (r int32) {
_, _ = i, v2
i = 0
for {
- for int32(*(*uint8)(unsafe.Pointer(s)))&int32(0xc0) != 0 {
- if int32(*(*uint8)(unsafe.Pointer(s)))&int32(0xc0) != int32(0xc0) {
+ for Int32FromUint8(*(*uint8)(unsafe.Pointer(s)))&int32(0xc0) != 0 {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s)))&int32(0xc0) != int32(0xc0) {
return 0
}
- s = base + uintptr(int32(*(*uint8)(unsafe.Pointer(s)))&Int32FromInt32(0x3f)<<Int32FromInt32(8)|int32(*(*uint8)(unsafe.Pointer(s + 1))))
+ s = base + uintptr(Int32FromUint8(*(*uint8)(unsafe.Pointer(s)))&Int32FromInt32(0x3f)<<Int32FromInt32(8)|Int32FromUint8(*(*uint8)(unsafe.Pointer(s + 1))))
}
if !(*(*uint8)(unsafe.Pointer(s)) != 0) {
return i
@@ -118540,7 +118552,7 @@ func _getoffs(tls *TLS, offs uintptr, base uintptr, s uintptr) (r int32) {
v2 = i
i++
*(*int16)(unsafe.Pointer(offs + uintptr(v2)*2)) = int16(int64(s) - int64(base))
- s += uintptr(int32(*(*uint8)(unsafe.Pointer(s))) + int32(1))
+ s += uintptr(Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) + int32(1))
goto _1
_1:
}
@@ -118558,7 +118570,7 @@ func _getlens(tls *TLS, lens uintptr, s uintptr, l int32) (r int32) {
k = 0
for {
for {
- if !(j < l && int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != int32('.')) {
+ if !(j < l && Int32FromUint8(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != int32('.')) {
break
}
goto _2
@@ -118566,12 +118578,12 @@ func _getlens(tls *TLS, lens uintptr, s uintptr, l int32) (r int32) {
;
j++
}
- if uint32(j-k)-uint32(1) > uint32(62) {
+ if Uint32FromInt32(j-k)-uint32(1) > uint32(62) {
return 0
}
v3 = i
i++
- *(*uint8)(unsafe.Pointer(lens + uintptr(v3))) = uint8(j - k)
+ *(*uint8)(unsafe.Pointer(lens + uintptr(v3))) = Uint8FromInt32(j - k)
if j == l {
return i
}
@@ -118601,12 +118613,12 @@ func _match(tls *TLS, offset uintptr, base uintptr, dn uintptr, end uintptr, len
for {
nlen--
v2 = nlen
- l = int32(*(*uint8)(unsafe.Pointer(lens + uintptr(v2))))
+ l = Int32FromUint8(*(*uint8)(unsafe.Pointer(lens + uintptr(v2))))
noff--
v3 = noff
o = int32((*(*[128]int16)(unsafe.Pointer(bp)))[v3])
end -= uintptr(l)
- if l != int32(*(*uint8)(unsafe.Pointer(base + uintptr(o)))) || Xmemcmp(tls, base+uintptr(o)+uintptr(1), end, uint64(l)) != 0 {
+ if l != Int32FromUint8(*(*uint8)(unsafe.Pointer(base + uintptr(o)))) || Xmemcmp(tls, base+uintptr(o)+uintptr(1), end, Uint64FromInt32(l)) != 0 {
return m
}
*(*int32)(unsafe.Pointer(offset)) = o
@@ -118640,7 +118652,7 @@ func Xdn_comp(tls *TLS, src uintptr, dst uintptr, space int32, dnptrs uintptr, l
m = 0
bestlen = 0
l = Xstrnlen(tls, src, uint64(255))
- if l != 0 && int32(*(*uint8)(unsafe.Pointer(src + uintptr(l-uint64(1))))) == int32('.') {
+ if l != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(src + uintptr(l-uint64(1))))) == int32('.') {
l--
}
if l > uint64(253) || space <= 0 {
@@ -118651,7 +118663,7 @@ func Xdn_comp(tls *TLS, src uintptr, dst uintptr, space int32, dnptrs uintptr, l
return int32(1)
}
end = src + uintptr(l)
- n = _getlens(tls, bp+4, src, int32(l))
+ n = _getlens(tls, bp+4, src, Int32FromUint64(l))
if !(n != 0) {
return -int32(1)
}
@@ -118666,7 +118678,7 @@ func Xdn_comp(tls *TLS, src uintptr, dst uintptr, space int32, dnptrs uintptr, l
if m > bestlen {
bestlen = m
bestoff = *(*int32)(unsafe.Pointer(bp))
- if uint64(m) == l {
+ if Uint64FromInt32(m) == l {
break
}
}
@@ -118677,15 +118689,15 @@ func Xdn_comp(tls *TLS, src uintptr, dst uintptr, space int32, dnptrs uintptr, l
}
}
/* encode unmatched part */
- if uint64(space) < l-uint64(bestlen)+uint64(2)+BoolUint64(uint64(bestlen-Int32FromInt32(1)) < l-Uint64FromInt32(1)) {
+ if Uint64FromInt32(space) < l-Uint64FromInt32(bestlen)+uint64(2)+BoolUint64(Uint64FromInt32(bestlen-Int32FromInt32(1)) < l-Uint64FromInt32(1)) {
return -int32(1)
}
- Xmemcpy(tls, dst+uintptr(1), src, l-uint64(bestlen))
+ Xmemcpy(tls, dst+uintptr(1), src, l-Uint64FromInt32(bestlen))
v3 = Int32FromInt32(0)
j = v3
i = v3
for {
- if !(uint64(i) < l-uint64(bestlen)) {
+ if !(Uint64FromInt32(i) < l-Uint64FromInt32(bestlen)) {
break
}
*(*uint8)(unsafe.Pointer(dst + uintptr(i))) = (*(*[127]uint8)(unsafe.Pointer(bp + 4)))[j]
@@ -118694,16 +118706,16 @@ func Xdn_comp(tls *TLS, src uintptr, dst uintptr, space int32, dnptrs uintptr, l
;
v4 = j
j++
- i += int32((*(*[127]uint8)(unsafe.Pointer(bp + 4)))[v4]) + int32(1)
+ i += Int32FromUint8((*(*[127]uint8)(unsafe.Pointer(bp + 4)))[v4]) + int32(1)
}
/* add tail */
if bestlen != 0 {
v5 = i
i++
- *(*uint8)(unsafe.Pointer(dst + uintptr(v5))) = uint8(int32(0xc0) | bestoff>>int32(8))
+ *(*uint8)(unsafe.Pointer(dst + uintptr(v5))) = Uint8FromInt32(int32(0xc0) | bestoff>>int32(8))
v6 = i
i++
- *(*uint8)(unsafe.Pointer(dst + uintptr(v6))) = uint8(bestoff)
+ *(*uint8)(unsafe.Pointer(dst + uintptr(v6))) = Uint8FromInt32(bestoff)
} else {
v7 = i
i++
@@ -118751,11 +118763,11 @@ func X__dn_expand(tls *TLS, base uintptr, end uintptr, src uintptr, dest uintptr
break
}
/* loop invariants: p<end, dest<dend */
- if int32(*(*uint8)(unsafe.Pointer(p)))&int32(0xc0) != 0 {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(p)))&int32(0xc0) != 0 {
if p+uintptr(1) == end {
return -int32(1)
}
- j = int32(*(*uint8)(unsafe.Pointer(p)))&int32(0x3f)<<int32(8) | int32(*(*uint8)(unsafe.Pointer(p + 1)))
+ j = Int32FromUint8(*(*uint8)(unsafe.Pointer(p)))&int32(0x3f)<<int32(8) | Int32FromUint8(*(*uint8)(unsafe.Pointer(p + 1)))
if len1 < 0 {
len1 = int32(int64(p+uintptr(2)) - int64(src))
}
@@ -118772,7 +118784,7 @@ func X__dn_expand(tls *TLS, base uintptr, end uintptr, src uintptr, dest uintptr
}
v4 = p
p++
- j = int32(*(*uint8)(unsafe.Pointer(v4)))
+ j = Int32FromUint8(*(*uint8)(unsafe.Pointer(v4)))
if int64(j) >= int64(end)-int64(p) || int64(j) >= int64(dend)-int64(dest) {
return -int32(1)
}
@@ -118824,17 +118836,17 @@ func Xdn_skipname(tls *TLS, s uintptr, end uintptr) (r int32) {
if !(*(*uint8)(unsafe.Pointer(p)) != 0) {
return int32(int64(p) - int64(s) + int64(1))
} else {
- if int32(*(*uint8)(unsafe.Pointer(p))) >= int32(192) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) >= int32(192) {
if p+uintptr(1) < end {
return int32(int64(p) - int64(s) + int64(2))
} else {
break
}
} else {
- if int64(end)-int64(p) < int64(int32(*(*uint8)(unsafe.Pointer(p)))+int32(1)) {
+ if int64(end)-int64(p) < int64(Int32FromUint8(*(*uint8)(unsafe.Pointer(p)))+int32(1)) {
break
} else {
- p += uintptr(int32(*(*uint8)(unsafe.Pointer(p))) + int32(1))
+ p += uintptr(Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) + int32(1))
}
}
}
@@ -118948,12 +118960,12 @@ func X__dns_parse(tls *TLS, r uintptr, rlen int32, callback uintptr, ctx uintptr
if rlen < int32(12) {
return -int32(1)
}
- if int32(*(*uint8)(unsafe.Pointer(r + 3)))&int32(15) != 0 {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(r + 3)))&int32(15) != 0 {
return 0
}
p = r + uintptr(12)
- qdcount = int32(*(*uint8)(unsafe.Pointer(r + 4)))*int32(256) + int32(*(*uint8)(unsafe.Pointer(r + 5)))
- ancount = int32(*(*uint8)(unsafe.Pointer(r + 6)))*int32(256) + int32(*(*uint8)(unsafe.Pointer(r + 7)))
+ qdcount = Int32FromUint8(*(*uint8)(unsafe.Pointer(r + 4)))*int32(256) + Int32FromUint8(*(*uint8)(unsafe.Pointer(r + 5)))
+ ancount = Int32FromUint8(*(*uint8)(unsafe.Pointer(r + 6)))*int32(256) + Int32FromUint8(*(*uint8)(unsafe.Pointer(r + 7)))
for {
v1 = qdcount
qdcount--
@@ -118981,11 +118993,11 @@ func X__dns_parse(tls *TLS, r uintptr, rlen int32, callback uintptr, ctx uintptr
return -int32(1)
}
p += uintptr(int32(1) + BoolInt32(!!(*(*uint8)(unsafe.Pointer(p)) != 0)))
- len1 = int32(*(*uint8)(unsafe.Pointer(p + 8)))*int32(256) + int32(*(*uint8)(unsafe.Pointer(p + 9)))
+ len1 = Int32FromUint8(*(*uint8)(unsafe.Pointer(p + 8)))*int32(256) + Int32FromUint8(*(*uint8)(unsafe.Pointer(p + 9)))
if int64(len1+int32(10)) > int64(r+uintptr(rlen))-int64(p) {
return -int32(1)
}
- if (*(*func(*TLS, uintptr, int32, uintptr, int32, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{callback})))(tls, ctx, int32(*(*uint8)(unsafe.Pointer(p + 1))), p+uintptr(10), len1, r, rlen) < 0 {
+ if (*(*func(*TLS, uintptr, int32, uintptr, int32, uintptr, int32) int32)(unsafe.Pointer(&struct{ uintptr }{callback})))(tls, ctx, Int32FromUint8(*(*uint8)(unsafe.Pointer(p + 1))), p+uintptr(10), len1, r, rlen) < 0 {
return -int32(1)
}
p += uintptr(int32(10) + len1)
@@ -119327,7 +119339,7 @@ func Xether_aton_r(tls *TLS, x uintptr, p_a uintptr) (r uintptr) {
break
}
if ii != 0 {
- if int32(*(*uint8)(unsafe.Pointer(x))) != int32(':') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(x))) != int32(':') {
return uintptr(0)
} else {
x++
@@ -119344,7 +119356,7 @@ func Xether_aton_r(tls *TLS, x uintptr, p_a uintptr) (r uintptr) {
;
ii++
}
- if int32(*(*uint8)(unsafe.Pointer(x))) != 0 {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(x))) != 0 {
return uintptr(0)
} /* bad format */
*(*Tether_addr)(unsafe.Pointer(p_a)) = *(*Tether_addr)(unsafe.Pointer(bp))
@@ -119382,7 +119394,7 @@ func Xether_ntoa_r(tls *TLS, p_a uintptr, x uintptr) (r uintptr) {
} else {
v2 = __ccgo_ts + 976
}
- x += uintptr(Xsprintf(tls, x, v2, VaList(bp+8, int32(*(*Tuint8_t)(unsafe.Pointer(p_a + uintptr(ii)))))))
+ x += uintptr(Xsprintf(tls, x, v2, VaList(bp+8, Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(p_a + uintptr(ii)))))))
goto _1
_1:
;
@@ -119604,14 +119616,14 @@ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintpt
return -int32(5)
}
nais = nservs * naddrs
- canon_len = int32(Xstrlen(tls, bp+1352))
- out = Xcalloc(tls, uint64(1), uint64(nais)*uint64(88)+uint64(canon_len)+uint64(1))
+ canon_len = Int32FromUint64(Xstrlen(tls, bp+1352))
+ out = Xcalloc(tls, uint64(1), Uint64FromInt32(nais)*uint64(88)+Uint64FromInt32(canon_len)+uint64(1))
if !(out != 0) {
return -int32(10)
}
if canon_len != 0 {
outcanon = out + uintptr(nais)*88
- Xmemcpy(tls, outcanon, bp+1352, uint64(canon_len+int32(1)))
+ Xmemcpy(tls, outcanon, bp+1352, Uint64FromInt32(canon_len+int32(1)))
} else {
outcanon = uintptr(0)
}
@@ -119635,8 +119647,8 @@ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintpt
}
(*(*Taibuf)(unsafe.Pointer(out + uintptr(k)*88))).Fai = Taddrinfo{
Fai_family: (*(*[48]Taddress)(unsafe.Pointer(bp + 8)))[i].Ffamily,
- Fai_socktype: int32((*(*[2]Tservice)(unsafe.Pointer(bp)))[j].Fsocktype),
- Fai_protocol: int32((*(*[2]Tservice)(unsafe.Pointer(bp)))[j].Fproto),
+ Fai_socktype: Int32FromUint8((*(*[2]Tservice)(unsafe.Pointer(bp)))[j].Fsocktype),
+ Fai_protocol: Int32FromUint8((*(*[2]Tservice)(unsafe.Pointer(bp)))[j].Fproto),
Fai_addrlen: uint32(v5),
Fai_addr: out + uintptr(k)*88 + 48,
Fai_canonname: outcanon,
@@ -119834,7 +119846,7 @@ func Xgethostbyaddr_r(tls *TLS, a uintptr, l Tsocklen_t, af int32, h uintptr, bu
Fsin Tsockaddr_in
F__ccgo_pad2 [12]byte
}{}
- *(*uint16)(unsafe.Pointer(bp)) = uint16(af)
+ *(*uint16)(unsafe.Pointer(bp)) = Uint16FromInt32(af)
if af == int32(PF_INET6) {
v1 = uint64(28)
} else {
@@ -119854,15 +119866,15 @@ func Xgethostbyaddr_r(tls *TLS, a uintptr, l Tsocklen_t, af int32, h uintptr, bu
}
}
/* Align buffer and check for space for pointers and ip address */
- i = int32(uint64(buf) & (Uint64FromInt64(8) - Uint64FromInt32(1)))
+ i = Int32FromUint64(uint64(buf) & (Uint64FromInt64(8) - Uint64FromInt32(1)))
if !(i != 0) {
i = int32(8)
}
- if buflen <= Uint64FromInt32(5)*Uint64FromInt64(8)-uint64(i)+uint64(l) {
+ if buflen <= Uint64FromInt32(5)*Uint64FromInt64(8)-Uint64FromInt32(i)+uint64(l) {
return int32(ERANGE)
}
- buf += uintptr(uint64(8) - uint64(i))
- buflen -= Uint64FromInt32(5)*Uint64FromInt64(8) - uint64(i) + uint64(l)
+ buf += uintptr(uint64(8) - Uint64FromInt32(i))
+ buflen -= Uint64FromInt32(5)*Uint64FromInt64(8) - Uint64FromInt32(i) + uint64(l)
(*Thostent)(unsafe.Pointer(h)).Fh_addr_list = buf
buf += uintptr(Uint64FromInt32(2) * Uint64FromInt64(8))
(*Thostent)(unsafe.Pointer(h)).Fh_aliases = buf
@@ -119891,7 +119903,7 @@ func Xgethostbyaddr_r(tls *TLS, a uintptr, l Tsocklen_t, af int32, h uintptr, bu
break
}
(*Thostent)(unsafe.Pointer(h)).Fh_addrtype = af
- (*Thostent)(unsafe.Pointer(h)).Fh_length = int32(l)
+ (*Thostent)(unsafe.Pointer(h)).Fh_length = Int32FromUint32(l)
(*Thostent)(unsafe.Pointer(h)).Fh_name = *(*uintptr)(unsafe.Pointer((*Thostent)(unsafe.Pointer(h)).Fh_aliases))
*(*uintptr)(unsafe.Pointer(res)) = h
return 0
@@ -119978,7 +119990,7 @@ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr,
/* Align buffer */
align = -uint64(buf) & (Uint64FromInt64(8) - Uint64FromInt32(1))
need = Uint64FromInt32(4) * Uint64FromInt64(8)
- need += uint64(cnt+Int32FromInt32(1)) * (uint64(8) + uint64((*Thostent)(unsafe.Pointer(h)).Fh_length))
+ need += Uint64FromInt32(cnt+Int32FromInt32(1)) * (uint64(8) + Uint64FromInt32((*Thostent)(unsafe.Pointer(h)).Fh_length))
need += Xstrlen(tls, name) + uint64(1)
need += Xstrlen(tls, bp+1344) + uint64(1)
need += align
@@ -119989,7 +120001,7 @@ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr,
(*Thostent)(unsafe.Pointer(h)).Fh_aliases = buf
buf += uintptr(Uint64FromInt32(3) * Uint64FromInt64(8))
(*Thostent)(unsafe.Pointer(h)).Fh_addr_list = buf
- buf += uintptr(uint64(cnt+Int32FromInt32(1)) * uint64(8))
+ buf += uintptr(Uint64FromInt32(cnt+Int32FromInt32(1)) * uint64(8))
i = 0
for {
if !(i < cnt) {
@@ -119997,7 +120009,7 @@ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr,
}
*(*uintptr)(unsafe.Pointer((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)) = buf
buf += uintptr((*Thostent)(unsafe.Pointer(h)).Fh_length)
- Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)), bp+uintptr(i)*28+8, uint64((*Thostent)(unsafe.Pointer(h)).Fh_length))
+ Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((*Thostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)), bp+uintptr(i)*28+8, Uint64FromInt32((*Thostent)(unsafe.Pointer(h)).Fh_length))
goto _2
_2:
;
@@ -120246,17 +120258,17 @@ func _copy_addr(tls *TLS, r uintptr, af int32, sa uintptr, addr uintptr, addrlen
case int32(PF_INET6):
dst = sa + 8
len1 = int32(16)
- if int32(*(*Tuint8_t)(unsafe.Pointer(addr))) == int32(0xfe) && int32(*(*Tuint8_t)(unsafe.Pointer(addr + 1)))&int32(0xc0) == int32(0x80) || int32(*(*Tuint8_t)(unsafe.Pointer(addr))) == int32(0xff) && int32(*(*Tuint8_t)(unsafe.Pointer(addr + 1)))&int32(0xf) == int32(0x2) {
- (*(*Tsockaddr_in6)(unsafe.Pointer(sa))).Fsin6_scope_id = uint32(ifindex)
+ if Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(addr))) == int32(0xfe) && Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(addr + 1)))&int32(0xc0) == int32(0x80) || Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(addr))) == int32(0xff) && Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(addr + 1)))&int32(0xf) == int32(0x2) {
+ (*(*Tsockaddr_in6)(unsafe.Pointer(sa))).Fsin6_scope_id = Uint32FromInt32(ifindex)
}
default:
return
}
- if addrlen < uint64(len1) {
+ if addrlen < Uint64FromInt32(len1) {
return
}
- (*Tsockany)(unsafe.Pointer(sa)).Fsa.Fsa_family = uint16(af)
- Xmemcpy(tls, dst, addr, uint64(len1))
+ (*Tsockany)(unsafe.Pointer(sa)).Fsa.Fsa_family = Uint16FromInt32(af)
+ Xmemcpy(tls, dst, addr, Uint64FromInt32(len1))
*(*uintptr)(unsafe.Pointer(r)) = sa
}
@@ -120267,15 +120279,15 @@ func _gen_netmask(tls *TLS, r uintptr, af int32, sa uintptr, prefixlen int32) {
var _ /* addr at bp+0 */ [16]Tuint8_t
_, _ = i, v1
*(*[16]Tuint8_t)(unsafe.Pointer(bp)) = [16]Tuint8_t{}
- if uint64(prefixlen) > Uint64FromInt32(8)*Uint64FromInt64(16) {
- prefixlen = int32(Uint64FromInt32(8) * Uint64FromInt64(16))
+ if Uint64FromInt32(prefixlen) > Uint64FromInt32(8)*Uint64FromInt64(16) {
+ prefixlen = Int32FromUint64(Uint64FromInt32(8) * Uint64FromInt64(16))
}
i = prefixlen / int32(8)
- Xmemset(tls, bp, int32(0xff), uint64(i))
- if uint64(i) < uint64(16) {
+ Xmemset(tls, bp, int32(0xff), Uint64FromInt32(i))
+ if Uint64FromInt32(i) < uint64(16) {
v1 = i
i++
- (*(*[16]Tuint8_t)(unsafe.Pointer(bp)))[v1] = uint8(int32(0xff) << (int32(8) - prefixlen%int32(8)))
+ (*(*[16]Tuint8_t)(unsafe.Pointer(bp)))[v1] = Uint8FromInt32(int32(0xff) << (int32(8) - prefixlen%int32(8)))
}
_copy_addr(tls, r, af, sa, bp, uint64(16), 0)
}
@@ -120301,21 +120313,21 @@ func _netlink_msg_to_ifaddr(tls *TLS, pctx uintptr, h uintptr) (r int32) {
ifi = h + UintptrFromInt64(16)
ifa = h + UintptrFromInt64(16)
stats_len = 0
- if int32((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) {
- rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&uint64(^Int32FromInt32(3)))
+ if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) {
+ rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3)))
for {
- if !(uint64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) {
+ if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) {
break
}
- if int32((*Trtattr)(unsafe.Pointer(rta)).Frta_type) != int32(IFLA_STATS) {
+ if Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) != int32(IFLA_STATS) {
goto _1
}
- stats_len = int32(uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len) - Uint64FromInt64(4))
+ stats_len = Int32FromUint64(uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len) - Uint64FromInt64(4))
break
goto _1
_1:
;
- rta = rta + uintptr((int32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3))
+ rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3))
}
} else {
ifs0 = *(*uintptr)(unsafe.Pointer(ctx + 16 + uintptr((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index%uint32(IFADDRS_HASH_SIZE))*8))
@@ -120335,19 +120347,19 @@ func _netlink_msg_to_ifaddr(tls *TLS, pctx uintptr, h uintptr) (r int32) {
return 0
}
}
- ifs = Xcalloc(tls, uint64(1), uint64(200)+uint64(stats_len))
+ ifs = Xcalloc(tls, uint64(1), uint64(200)+Uint64FromInt32(stats_len))
if ifs == uintptr(0) {
return -int32(1)
}
- if int32((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) {
- (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Findex = uint32((*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index)
+ if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) {
+ (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Findex = Uint32FromInt32((*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index)
(*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_flags = (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_flags
- rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&uint64(^Int32FromInt32(3)))
+ rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3)))
for {
- if !(uint64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) {
+ if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) {
break
}
- switch int32((*Trtattr)(unsafe.Pointer(rta)).Frta_type) {
+ switch Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) {
case int32(IFLA_IFNAME):
if uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-uint64(4) < uint64(17) {
Xmemcpy(tls, ifs+176, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4))
@@ -120365,7 +120377,7 @@ func _netlink_msg_to_ifaddr(tls *TLS, pctx uintptr, h uintptr) (r int32) {
goto _3
_3:
;
- rta = rta + uintptr((int32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3))
+ rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3))
}
if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name != 0 {
bucket = (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Findex % uint32(IFADDRS_HASH_SIZE)
@@ -120375,22 +120387,22 @@ func _netlink_msg_to_ifaddr(tls *TLS, pctx uintptr, h uintptr) (r int32) {
} else {
(*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fifa.Fifa_name
(*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_flags = (*Tifaddrs_storage)(unsafe.Pointer(ifs0)).Fifa.Fifa_flags
- rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(8)+Uint64FromInt32(3))&uint64(^Int32FromInt32(3)))
+ rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(8)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3)))
for {
- if !(uint64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) {
+ if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) {
break
}
- switch int32((*Trtattr)(unsafe.Pointer(rta)).Frta_type) {
+ switch Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) {
case int32(IFA_ADDRESS):
/* If ifa_addr is already set we, received an IFA_LOCAL before
* so treat this as destination address */
if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 {
- _copy_addr(tls, ifs+40, int32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+136, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), int32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index))
+ _copy_addr(tls, ifs+40, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+136, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index))
} else {
- _copy_addr(tls, ifs+24, int32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+64, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), int32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index))
+ _copy_addr(tls, ifs+24, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+64, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index))
}
case int32(IFA_BROADCAST):
- _copy_addr(tls, ifs+40, int32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+136, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), int32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index))
+ _copy_addr(tls, ifs+40, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+136, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index))
case int32(IFA_LOCAL):
/* If ifa_addr is set and we get IFA_LOCAL, assume we have
* a point-to-point network. Move address to correct field. */
@@ -120399,7 +120411,7 @@ func _netlink_msg_to_ifaddr(tls *TLS, pctx uintptr, h uintptr) (r int32) {
*(*uintptr)(unsafe.Pointer(ifs + 40)) = ifs + 136
Xmemset(tls, ifs+64, 0, uint64(36))
}
- _copy_addr(tls, ifs+24, int32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+64, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), int32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index))
+ _copy_addr(tls, ifs+24, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+64, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4), Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index))
case int32(IFA_LABEL):
if uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-uint64(4) < uint64(17) {
Xmemcpy(tls, ifs+176, rta+UintptrFromInt64(4), uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len)-Uint64FromInt64(4))
@@ -120410,10 +120422,10 @@ func _netlink_msg_to_ifaddr(tls *TLS, pctx uintptr, h uintptr) (r int32) {
goto _4
_4:
;
- rta = rta + uintptr((int32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3))
+ rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3))
}
if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_addr != 0 {
- _gen_netmask(tls, ifs+32, int32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+100, int32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_prefixlen))
+ _gen_netmask(tls, ifs+32, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_family), ifs+100, Int32FromUint8((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_prefixlen))
}
}
if (*Tifaddrs_storage)(unsafe.Pointer(ifs)).Fifa.Fifa_name != 0 {
@@ -120473,7 +120485,7 @@ func _itoa(tls *TLS, p uintptr, x uint32) (r uintptr) {
func _mkptr4(tls *TLS, s uintptr, ip uintptr) {
bp := tls.Alloc(48)
defer tls.Free(48)
- Xsprintf(tls, s, __ccgo_ts+982, VaList(bp+8, int32(*(*uint8)(unsafe.Pointer(ip + 3))), int32(*(*uint8)(unsafe.Pointer(ip + 2))), int32(*(*uint8)(unsafe.Pointer(ip + 1))), int32(*(*uint8)(unsafe.Pointer(ip)))))
+ Xsprintf(tls, s, __ccgo_ts+982, VaList(bp+8, Int32FromUint8(*(*uint8)(unsafe.Pointer(ip + 3))), Int32FromUint8(*(*uint8)(unsafe.Pointer(ip + 2))), Int32FromUint8(*(*uint8)(unsafe.Pointer(ip + 1))), Int32FromUint8(*(*uint8)(unsafe.Pointer(ip)))))
}
func _mkptr6(tls *TLS, s uintptr, ip uintptr) {
@@ -120487,13 +120499,13 @@ func _mkptr6(tls *TLS, s uintptr, ip uintptr) {
}
v2 = s
s++
- *(*uint8)(unsafe.Pointer(v2)) = _xdigits[int32(*(*uint8)(unsafe.Pointer(ip + uintptr(i))))&int32(15)]
+ *(*uint8)(unsafe.Pointer(v2)) = _xdigits[Int32FromUint8(*(*uint8)(unsafe.Pointer(ip + uintptr(i))))&int32(15)]
v3 = s
s++
*(*uint8)(unsafe.Pointer(v3)) = uint8('.')
v4 = s
s++
- *(*uint8)(unsafe.Pointer(v4)) = _xdigits[int32(*(*uint8)(unsafe.Pointer(ip + uintptr(i))))>>int32(4)]
+ *(*uint8)(unsafe.Pointer(v4)) = _xdigits[Int32FromUint8(*(*uint8)(unsafe.Pointer(ip + uintptr(i))))>>int32(4)]
v5 = s
s++
*(*uint8)(unsafe.Pointer(v5)) = uint8('.')
@@ -120540,8 +120552,8 @@ func _reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int
p = bp
for {
if v7 = *(*uint8)(unsafe.Pointer(p)) != 0; v7 {
- v4 = int32(*(*uint8)(unsafe.Pointer(p)))
- v5 = BoolInt32(v4 == int32(' ') || uint32(v4)-uint32('\t') < uint32(5))
+ v4 = Int32FromUint8(*(*uint8)(unsafe.Pointer(p)))
+ v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5))
goto _6
_6:
}
@@ -120572,8 +120584,8 @@ func _reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int
}
for {
if v13 = *(*uint8)(unsafe.Pointer(p)) != 0; v13 {
- v10 = int32(*(*uint8)(unsafe.Pointer(p)))
- v11 = BoolInt32(v10 == int32(' ') || uint32(v10)-uint32('\t') < uint32(5))
+ v10 = Int32FromUint8(*(*uint8)(unsafe.Pointer(p)))
+ v11 = BoolInt32(v10 == int32(' ') || Uint32FromInt32(v10)-uint32('\t') < uint32(5))
goto _12
_12:
}
@@ -120588,8 +120600,8 @@ func _reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int
z = p
for {
if v18 = *(*uint8)(unsafe.Pointer(z)) != 0; v18 {
- v15 = int32(*(*uint8)(unsafe.Pointer(z)))
- v16 = BoolInt32(v15 == int32(' ') || uint32(v15)-uint32('\t') < uint32(5))
+ v15 = Int32FromUint8(*(*uint8)(unsafe.Pointer(z)))
+ v16 = BoolInt32(v15 == int32(' ') || Uint32FromInt32(v15)-uint32('\t') < uint32(5))
goto _17
_17:
}
@@ -120603,7 +120615,7 @@ func _reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int
}
*(*uint8)(unsafe.Pointer(z)) = uint8(0)
if int64(z)-int64(p) < int64(256) {
- Xmemcpy(tls, buf, p, uint64(int64(z)-int64(p)+int64(1)))
+ Xmemcpy(tls, buf, p, Uint64FromInt64(int64(z)-int64(p)+int64(1)))
break
}
}
@@ -120638,8 +120650,8 @@ func _reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) {
p = bp
for {
if v7 = *(*uint8)(unsafe.Pointer(p)) != 0; v7 {
- v4 = int32(*(*uint8)(unsafe.Pointer(p)))
- v5 = BoolInt32(v4 == int32(' ') || uint32(v4)-uint32('\t') < uint32(5))
+ v4 = Int32FromUint8(*(*uint8)(unsafe.Pointer(p)))
+ v5 = BoolInt32(v4 == int32(' ') || Uint32FromInt32(v4)-uint32('\t') < uint32(5))
goto _6
_6:
}
@@ -120658,7 +120670,7 @@ func _reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) {
p++
*(*uint8)(unsafe.Pointer(v8)) = uint8(0)
svport = Xstrtoul(tls, p, bp+128, int32(10))
- if svport != uint64(port) || *(*uintptr)(unsafe.Pointer(bp + 128)) == p {
+ if svport != Uint64FromInt32(port) || *(*uintptr)(unsafe.Pointer(bp + 128)) == p {
continue
}
if dgram != 0 && Xstrncmp(tls, *(*uintptr)(unsafe.Pointer(bp + 128)), __ccgo_ts+1054, uint64(4)) != 0 {
@@ -120670,7 +120682,7 @@ func _reverse_services(tls *TLS, buf uintptr, port int32, dgram int32) {
if int64(p)-t__predefined_ptrdiff_t(bp) > int64(32) {
continue
}
- Xmemcpy(tls, buf, bp, uint64(int64(p)-t__predefined_ptrdiff_t(bp)))
+ Xmemcpy(tls, buf, bp, Uint64FromInt64(int64(p)-t__predefined_ptrdiff_t(bp)))
break
}
X__fclose_ca(tls, f)
@@ -120703,7 +120715,7 @@ func Xgetnameinfo(tls *TLS, sa uintptr, sl Tsocklen_t, node uintptr, nodelen Tso
var _ /* reply at bp+443 */ [512]uint8
var _ /* tmp at bp+955 */ [17]uint8
_, _, _, _, _, _, _, _, _ = a, af, p, p1, port, qlen, rlen, scopeid, v1
- af = int32((*Tsockaddr)(unsafe.Pointer(sa)).Fsa_family)
+ af = Int32FromUint16((*Tsockaddr)(unsafe.Pointer(sa)).Fsa_family)
switch af {
case int32(PF_INET):
a = sa + 4
@@ -120737,7 +120749,7 @@ func Xgetnameinfo(tls *TLS, sa uintptr, sl Tsocklen_t, node uintptr, nodelen Tso
rlen = X__res_send(tls, bp+347, qlen, bp+443, int32(512))
(*(*[256]uint8)(unsafe.Pointer(bp + 78)))[0] = uint8(0)
if rlen > 0 {
- if uint64(rlen) > uint64(512) {
+ if Uint64FromInt32(rlen) > uint64(512) {
rlen = int32(512)
}
X__dns_parse(tls, bp+443, rlen, __ccgo_fp(_dns_parse_callback), bp+78)
@@ -120750,7 +120762,7 @@ func Xgetnameinfo(tls *TLS, sa uintptr, sl Tsocklen_t, node uintptr, nodelen Tso
Xinet_ntop(tls, af, a, bp+78, uint32(256))
if scopeid != 0 {
p = uintptr(0)
- if !(flags&Int32FromInt32(NI_NUMERICSCOPE) != 0) && (int32(*(*Tuint8_t)(unsafe.Pointer(a))) == int32(0xfe) && int32(*(*Tuint8_t)(unsafe.Pointer(a + 1)))&int32(0xc0) == int32(0x80) || int32(*(*Tuint8_t)(unsafe.Pointer(a))) == int32(0xff) && int32(*(*Tuint8_t)(unsafe.Pointer(a + 1)))&int32(0xf) == int32(0x2)) {
+ if !(flags&Int32FromInt32(NI_NUMERICSCOPE) != 0) && (Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(a))) == int32(0xfe) && Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(a + 1)))&int32(0xc0) == int32(0x80) || Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(a))) == int32(0xff) && Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(a + 1)))&int32(0xf) == int32(0x2)) {
p = Xif_indextoname(tls, scopeid, bp+955+uintptr(1))
}
if !(p != 0) {
@@ -120769,13 +120781,13 @@ func Xgetnameinfo(tls *TLS, sa uintptr, sl Tsocklen_t, node uintptr, nodelen Tso
}
if serv != 0 && servlen != 0 {
p1 = bp + 78
- port = int32(Xntohs(tls, (*Tsockaddr_in)(unsafe.Pointer(sa)).Fsin_port))
+ port = Int32FromUint16(Xntohs(tls, (*Tsockaddr_in)(unsafe.Pointer(sa)).Fsin_port))
(*(*[256]uint8)(unsafe.Pointer(bp + 78)))[0] = uint8(0)
if !(flags&Int32FromInt32(NI_NUMERICSERV) != 0) {
_reverse_services(tls, bp+78, port, flags&int32(NI_DGRAM))
}
if !(*(*uint8)(unsafe.Pointer(p1)) != 0) {
- p1 = _itoa(tls, bp+334, uint32(port))
+ p1 = _itoa(tls, bp+334, Uint32FromInt32(port))
}
if Xstrlen(tls, p1) >= uint64(servlen) {
return -int32(12)
@@ -120814,7 +120826,7 @@ func Xgetpeername(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) {
v8 = r
goto _9
_9:
- return int32(X__syscall_ret(tls, uint64(v8)))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(v8)))
}
func Xgetservbyname(tls *TLS, name uintptr, prots uintptr) (r uintptr) {
@@ -120857,8 +120869,8 @@ func Xgetservbyname_r(tls *TLS, name uintptr, prots uintptr, se uintptr, buf uin
return int32(ENOENT)
}
/* Align buffer */
- align = int32(-uint64(buf) & (Uint64FromInt64(16) - Uint64FromInt64(8) - Uint64FromInt32(1)))
- if buflen < Uint64FromInt32(2)*Uint64FromInt64(8)+uint64(align) {
+ align = Int32FromUint64(-uint64(buf) & (Uint64FromInt64(16) - Uint64FromInt64(8) - Uint64FromInt32(1)))
+ if buflen < Uint64FromInt32(2)*Uint64FromInt64(8)+Uint64FromInt32(align) {
return int32(ERANGE)
}
buf += uintptr(align)
@@ -120890,8 +120902,8 @@ func Xgetservbyname_r(tls *TLS, name uintptr, prots uintptr, se uintptr, buf uin
(*Tservent)(unsafe.Pointer(se)).Fs_aliases = buf
*(*uintptr)(unsafe.Pointer((*Tservent)(unsafe.Pointer(se)).Fs_aliases)) = (*Tservent)(unsafe.Pointer(se)).Fs_name
*(*uintptr)(unsafe.Pointer((*Tservent)(unsafe.Pointer(se)).Fs_aliases + 1*8)) = uintptr(0)
- (*Tservent)(unsafe.Pointer(se)).Fs_port = int32(Xhtons(tls, (*(*[2]Tservice)(unsafe.Pointer(bp)))[0].Fport))
- if int32((*(*[2]Tservice)(unsafe.Pointer(bp)))[0].Fproto) == int32(IPPROTO_TCP) {
+ (*Tservent)(unsafe.Pointer(se)).Fs_port = Int32FromUint16(Xhtons(tls, (*(*[2]Tservice)(unsafe.Pointer(bp)))[0].Fport))
+ if Int32FromUint8((*(*[2]Tservice)(unsafe.Pointer(bp)))[0].Fproto) == int32(IPPROTO_TCP) {
v1 = __ccgo_ts + 1064
} else {
v1 = __ccgo_ts + 1068
@@ -120930,7 +120942,7 @@ func Xgetsockname(tls *TLS, fd int32, addr uintptr, len1 uintptr) (r1 int32) {
v8 = r
goto _9
_9:
- return int32(X__syscall_ret(tls, uint64(v8)))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(v8)))
}
func Xgetsockopt(tls *TLS, fd int32, level int32, optname int32, optval uintptr, optlen uintptr) (r2 int32) {
@@ -120978,7 +120990,7 @@ _9:
break
}
if uint64(*(*Tsocklen_t)(unsafe.Pointer(optlen))) < uint64(16) {
- return int32(X__syscall_ret(tls, uint64(-Int32FromInt32(EINVAL))))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL))))
}
if optname == int32(SO_RCVTIMEO) {
optname = int32(SO_RCVTIMEO_OLD)
@@ -121054,7 +121066,7 @@ _9:
}
}
}
- return int32(X__syscall_ret(tls, uint64(r1)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r1)))
}
func X__h_errno_location(tls *TLS) (r uintptr) {
@@ -121136,6 +121148,7 @@ func Xhstrerror(tls *TLS, ecode int32) (r uintptr) {
}
return X__lctrans_cur(tls, s)
}
+
func Xhtonl(tls *TLS, n Tuint32_t) (r Tuint32_t) {
if __ccgo_strace {
trc("tls=%v n=%v, (%v:)", tls, n, origin(2))
@@ -121182,14 +121195,14 @@ func Xhtons(tls *TLS, n Tuint16_t) (r Tuint16_t) {
})(unsafe.Pointer(&struct{ f int32 }{f: int32(1)}))
if *(*uint8)(unsafe.Pointer(&u)) != 0 {
v2 = n
- v3 = uint16(int32(v2)<<int32(8) | int32(v2)>>int32(8))
+ v3 = Uint16FromInt32(Int32FromUint16(v2)<<int32(8) | Int32FromUint16(v2)>>int32(8))
goto _4
_4:
- v1 = int32(v3)
+ v1 = Int32FromUint16(v3)
} else {
- v1 = int32(n)
+ v1 = Int32FromUint16(n)
}
- return uint16(v1)
+ return Uint16FromInt32(v1)
}
func Xif_freenameindex(tls *TLS, idx uintptr) {
@@ -121214,7 +121227,7 @@ func Xif_indextoname(tls *TLS, index uint32, name uintptr) (r1 uintptr) {
if v1 < 0 {
return uintptr(0)
}
- *(*int32)(unsafe.Pointer(bp + 16)) = int32(index)
+ *(*int32)(unsafe.Pointer(bp + 16)) = Int32FromUint32(index)
r = Xioctl(tls, fd, int32(SIOCGIFNAME), VaList(bp+48, bp))
X__syscall1(tls, int64(SYS_close), int64(fd))
if r < 0 {
@@ -121248,25 +121261,25 @@ func _netlink_msg_to_nameindex(tls *TLS, pctx uintptr, h uintptr) (r int32) {
var i, v2 uint32
_, _, _, _, _, _, _, _, _, _, _, _ = a, bucket, ctx, i, ifa, ifi, index, map1, namelen, rta, type1, v2
ctx = pctx
- if int32((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) {
+ if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(RTM_NEWLINK) {
ifi = h + UintptrFromInt64(16)
index = (*Tifinfomsg)(unsafe.Pointer(ifi)).Fifi_index
type1 = int32(IFLA_IFNAME)
- rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&uint64(^Int32FromInt32(3)))
+ rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(16)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3)))
} else {
ifa = h + UintptrFromInt64(16)
- index = int32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)
+ index = Int32FromUint32((*Tifaddrmsg)(unsafe.Pointer(ifa)).Fifa_index)
type1 = int32(IFA_LABEL)
- rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(8)+Uint64FromInt32(3))&uint64(^Int32FromInt32(3)))
+ rta = h + UintptrFromInt64(16) + uintptr((Uint64FromInt64(8)+Uint64FromInt32(3))&Uint64FromInt32(^Int32FromInt32(3)))
}
for {
- if !(uint64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) {
+ if !(Uint64FromInt64(int64(h+uintptr((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len))-int64(rta)) >= uint64(4)) {
break
}
- if int32((*Trtattr)(unsafe.Pointer(rta)).Frta_type) != type1 {
+ if Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_type) != type1 {
goto _1
}
- namelen = int32(uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len) - uint64(4) - uint64(1))
+ namelen = Int32FromUint64(uint64((*Trtattr)(unsafe.Pointer(rta)).Frta_len) - uint64(4) - uint64(1))
if namelen > int32(IF_NAMESIZE) {
return 0
}
@@ -121275,7 +121288,7 @@ func _netlink_msg_to_nameindex(tls *TLS, pctx uintptr, h uintptr) (r int32) {
i = *(*uint32)(unsafe.Pointer(ctx + 24 + uintptr(bucket)*4))
for i != 0 {
map1 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + uintptr(i-uint32(1))*28
- if (*Tifnamemap)(unsafe.Pointer(map1)).Findex == uint32(index) && int32((*Tifnamemap)(unsafe.Pointer(map1)).Fnamelen) == namelen && Xmemcmp(tls, map1+9, rta+UintptrFromInt64(4), uint64(namelen)) == 0 {
+ if (*Tifnamemap)(unsafe.Pointer(map1)).Findex == Uint32FromInt32(index) && Int32FromUint8((*Tifnamemap)(unsafe.Pointer(map1)).Fnamelen) == namelen && Xmemcmp(tls, map1+9, rta+UintptrFromInt64(4), Uint64FromInt32(namelen)) == 0 {
return 0
}
i = (*Tifnamemap)(unsafe.Pointer(map1)).Fhash_next
@@ -121298,10 +121311,10 @@ func _netlink_msg_to_nameindex(tls *TLS, pctx uintptr, h uintptr) (r int32) {
(*Tifnameindexctx)(unsafe.Pointer(ctx)).Fallocated = uint32(a)
}
map1 = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist + uintptr((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum)*28
- (*Tifnamemap)(unsafe.Pointer(map1)).Findex = uint32(index)
- (*Tifnamemap)(unsafe.Pointer(map1)).Fnamelen = uint8(namelen)
- Xmemcpy(tls, map1+9, rta+UintptrFromInt64(4), uint64(namelen))
- *(*uint32)(unsafe.Pointer(ctx + 8)) += uint32(namelen + int32(1))
+ (*Tifnamemap)(unsafe.Pointer(map1)).Findex = Uint32FromInt32(index)
+ (*Tifnamemap)(unsafe.Pointer(map1)).Fnamelen = Uint8FromInt32(namelen)
+ Xmemcpy(tls, map1+9, rta+UintptrFromInt64(4), Uint64FromInt32(namelen))
+ *(*uint32)(unsafe.Pointer(ctx + 8)) += Uint32FromInt32(namelen + int32(1))
(*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum++
(*Tifnamemap)(unsafe.Pointer(map1)).Fhash_next = *(*uint32)(unsafe.Pointer(ctx + 24 + uintptr(bucket)*4))
*(*uint32)(unsafe.Pointer(ctx + 24 + uintptr(bucket)*4)) = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum
@@ -121309,7 +121322,7 @@ func _netlink_msg_to_nameindex(tls *TLS, pctx uintptr, h uintptr) (r int32) {
goto _1
_1:
;
- rta = rta + uintptr((int32((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3))
+ rta = rta + uintptr((Int32FromUint16((*Trtattr)(unsafe.Pointer(rta)).Frta_len)+Int32FromInt32(3)) & ^Int32FromInt32(3))
}
return 0
}
@@ -121338,7 +121351,7 @@ func Xif_nameindex(tls *TLS) (r uintptr) {
goto err
}
p = ifs + uintptr((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum)*16 + UintptrFromInt32(1)*16
- i = int32((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum)
+ i = Int32FromUint32((*Tifnameindexctx)(unsafe.Pointer(ctx)).Fnum)
d = ifs
s = (*Tifnameindexctx)(unsafe.Pointer(ctx)).Flist
for {
@@ -121393,7 +121406,7 @@ func Xif_nametoindex(tls *TLS, name uintptr) (r1 uint32) {
} else {
v2 = *(*int32)(unsafe.Pointer(bp + 16))
}
- return uint32(v2)
+ return Uint32FromInt32(v2)
}
func Xinet_addr(tls *TLS, p uintptr) (r Tin_addr_t) {
@@ -121405,7 +121418,7 @@ func Xinet_addr(tls *TLS, p uintptr) (r Tin_addr_t) {
defer tls.Free(16)
var _ /* a at bp+0 */ Tin_addr
if !(X__inet_aton(tls, p, bp) != 0) {
- return uint32(-Int32FromInt32(1))
+ return Uint32FromInt32(-Int32FromInt32(1))
}
return (*(*Tin_addr)(unsafe.Pointer(bp))).Fs_addr
}
@@ -121431,7 +121444,7 @@ func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) (r int32) {
break
}
(*(*[4]uint64)(unsafe.Pointer(bp)))[i] = Xstrtoul(tls, s, bp+32, 0)
- if *(*uintptr)(unsafe.Pointer(bp + 32)) == s || *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32)))) != 0 && int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32))))) != int32('.') || !(BoolInt32(uint32(*(*uint8)(unsafe.Pointer(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) {
+ if *(*uintptr)(unsafe.Pointer(bp + 32)) == s || *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32)))) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32))))) != int32('.') || !(BoolInt32(uint32(*(*uint8)(unsafe.Pointer(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) {
return 0
}
if !(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32)))) != 0) {
@@ -121556,7 +121569,7 @@ func Xinet_ntoa(tls *TLS, _in Tin_addr) (r uintptr) {
var a uintptr
_ = a
a = bp
- Xsnprintf(tls, uintptr(unsafe.Pointer(&_buf4)), uint64(16), __ccgo_ts+1080, VaList(bp+16, int32(*(*uint8)(unsafe.Pointer(a))), int32(*(*uint8)(unsafe.Pointer(a + 1))), int32(*(*uint8)(unsafe.Pointer(a + 2))), int32(*(*uint8)(unsafe.Pointer(a + 3)))))
+ Xsnprintf(tls, uintptr(unsafe.Pointer(&_buf4)), uint64(16), __ccgo_ts+1080, VaList(bp+16, Int32FromUint8(*(*uint8)(unsafe.Pointer(a))), Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 1))), Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 2))), Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 3)))))
return uintptr(unsafe.Pointer(&_buf4))
}
@@ -121577,14 +121590,14 @@ func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l Tsocklen_t) (r uint
a = a0
switch af {
case int32(PF_INET):
- if uint32(Xsnprintf(tls, s, uint64(l), __ccgo_ts+1080, VaList(bp+112, int32(*(*uint8)(unsafe.Pointer(a))), int32(*(*uint8)(unsafe.Pointer(a + 1))), int32(*(*uint8)(unsafe.Pointer(a + 2))), int32(*(*uint8)(unsafe.Pointer(a + 3)))))) < l {
+ if Uint32FromInt32(Xsnprintf(tls, s, uint64(l), __ccgo_ts+1080, VaList(bp+112, Int32FromUint8(*(*uint8)(unsafe.Pointer(a))), Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 1))), Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 2))), Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 3)))))) < l {
return s
}
case int32(PF_INET6):
if Xmemcmp(tls, a, __ccgo_ts+1027, uint64(12)) != 0 {
- Xsnprintf(tls, bp, uint64(100), __ccgo_ts+1092, VaList(bp+112, int32(256)*int32(*(*uint8)(unsafe.Pointer(a)))+int32(*(*uint8)(unsafe.Pointer(a + 1))), int32(256)*int32(*(*uint8)(unsafe.Pointer(a + 2)))+int32(*(*uint8)(unsafe.Pointer(a + 3))), int32(256)*int32(*(*uint8)(unsafe.Pointer(a + 4)))+int32(*(*uint8)(unsafe.Pointer(a + 5))), int32(256)*int32(*(*uint8)(unsafe.Pointer(a + 6)))+int32(*(*uint8)(unsafe.Pointer(a + 7))), int32(256)*int32(*(*uint8)(unsafe.Pointer(a + 8)))+int32(*(*uint8)(unsafe.Pointer(a + 9))), int32(256)*int32(*(*uint8)(unsafe.Pointer(a + 10)))+int32(*(*uint8)(unsafe.Pointer(a + 11))), int32(256)*int32(*(*uint8)(unsafe.Pointer(a + 12)))+int32(*(*uint8)(unsafe.Pointer(a + 13))), int32(256)*int32(*(*uint8)(unsafe.Pointer(a + 14)))+int32(*(*uint8)(unsafe.Pointer(a + 15)))))
+ Xsnprintf(tls, bp, uint64(100), __ccgo_ts+1092, VaList(bp+112, int32(256)*Int32FromUint8(*(*uint8)(unsafe.Pointer(a)))+Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 1))), int32(256)*Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 2)))+Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 3))), int32(256)*Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 4)))+Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 5))), int32(256)*Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 6)))+Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 7))), int32(256)*Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 8)))+Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 9))), int32(256)*Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 10)))+Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 11))), int32(256)*Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 12)))+Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 13))), int32(256)*Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 14)))+Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 15)))))
} else {
- Xsnprintf(tls, bp, uint64(100), __ccgo_ts+1116, VaList(bp+112, int32(256)*int32(*(*uint8)(unsafe.Pointer(a)))+int32(*(*uint8)(unsafe.Pointer(a + 1))), int32(256)*int32(*(*uint8)(unsafe.Pointer(a + 2)))+int32(*(*uint8)(unsafe.Pointer(a + 3))), int32(256)*int32(*(*uint8)(unsafe.Pointer(a + 4)))+int32(*(*uint8)(unsafe.Pointer(a + 5))), int32(256)*int32(*(*uint8)(unsafe.Pointer(a + 6)))+int32(*(*uint8)(unsafe.Pointer(a + 7))), int32(256)*int32(*(*uint8)(unsafe.Pointer(a + 8)))+int32(*(*uint8)(unsafe.Pointer(a + 9))), int32(256)*int32(*(*uint8)(unsafe.Pointer(a + 10)))+int32(*(*uint8)(unsafe.Pointer(a + 11))), int32(*(*uint8)(unsafe.Pointer(a + 12))), int32(*(*uint8)(unsafe.Pointer(a + 13))), int32(*(*uint8)(unsafe.Pointer(a + 14))), int32(*(*uint8)(unsafe.Pointer(a + 15)))))
+ Xsnprintf(tls, bp, uint64(100), __ccgo_ts+1116, VaList(bp+112, int32(256)*Int32FromUint8(*(*uint8)(unsafe.Pointer(a)))+Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 1))), int32(256)*Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 2)))+Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 3))), int32(256)*Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 4)))+Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 5))), int32(256)*Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 6)))+Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 7))), int32(256)*Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 8)))+Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 9))), int32(256)*Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 10)))+Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 11))), Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 12))), Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 13))), Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 14))), Int32FromUint8(*(*uint8)(unsafe.Pointer(a + 15)))))
}
/* Replace longest /(^0|:)[:0]{2,}/ with "::" */
v2 = Int32FromInt32(0)
@@ -121595,10 +121608,10 @@ func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l Tsocklen_t) (r uint
if !((*(*[100]uint8)(unsafe.Pointer(bp)))[i] != 0) {
break
}
- if i != 0 && int32((*(*[100]uint8)(unsafe.Pointer(bp)))[i]) != int32(':') {
+ if i != 0 && Int32FromUint8((*(*[100]uint8)(unsafe.Pointer(bp)))[i]) != int32(':') {
goto _1
}
- j = int32(Xstrspn(tls, bp+uintptr(i), __ccgo_ts+1146))
+ j = Int32FromUint64(Xstrspn(tls, bp+uintptr(i), __ccgo_ts+1146))
if j > max {
best = i
max = j
@@ -121612,7 +121625,7 @@ func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l Tsocklen_t) (r uint
v3 = Uint8FromUint8(':')
(*(*[100]uint8)(unsafe.Pointer(bp)))[best+int32(1)] = v3
(*(*[100]uint8)(unsafe.Pointer(bp)))[best] = v3
- Xmemmove(tls, bp+uintptr(best)+uintptr(2), bp+uintptr(best)+uintptr(max), uint64(i-best-max+int32(1)))
+ Xmemmove(tls, bp+uintptr(best)+uintptr(2), bp+uintptr(best)+uintptr(max), Uint64FromInt32(i-best-max+int32(1)))
}
if Xstrlen(tls, bp) < uint64(l) {
Xstrcpy(tls, s, bp)
@@ -121628,11 +121641,11 @@ func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l Tsocklen_t) (r uint
func _hexval(tls *TLS, c uint32) (r int32) {
if c-uint32('0') < uint32(10) {
- return int32(c - uint32('0'))
+ return Int32FromUint32(c - uint32('0'))
}
c |= uint32(32)
if c-uint32('a') < uint32(6) {
- return int32(c - uint32('a') + uint32(10))
+ return Int32FromUint32(c - uint32('a') + uint32(10))
}
return -int32(1)
}
@@ -121665,20 +121678,20 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) (r int32) {
if !(j < int32(3) && BoolInt32(uint32(*(*uint8)(unsafe.Pointer(s + uintptr(j))))-uint32('0') < uint32(10)) != 0) {
break
}
- v = int32(10)*v + int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) - int32('0')
+ v = int32(10)*v + Int32FromUint8(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) - int32('0')
goto _2
_2:
;
j++
}
- if j == 0 || j > int32(1) && int32(*(*uint8)(unsafe.Pointer(s))) == int32('0') || v > int32(255) {
+ if j == 0 || j > int32(1) && Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('0') || v > int32(255) {
return 0
}
- *(*uint8)(unsafe.Pointer(a + uintptr(i))) = uint8(v)
- if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) == 0 && i == int32(3) {
+ *(*uint8)(unsafe.Pointer(a + uintptr(i))) = Uint8FromInt32(v)
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) == 0 && i == int32(3) {
return int32(1)
}
- if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != int32('.') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != int32('.') {
return 0
}
s += uintptr(j + int32(1))
@@ -121694,16 +121707,16 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) (r int32) {
return -int32(1)
}
}
- if v5 = int32(*(*uint8)(unsafe.Pointer(s))) == int32(':'); v5 {
+ if v5 = Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32(':'); v5 {
s++
v4 = s
}
- if v5 && int32(*(*uint8)(unsafe.Pointer(v4))) != int32(':') {
+ if v5 && Int32FromUint8(*(*uint8)(unsafe.Pointer(v4))) != int32(':') {
return 0
}
i = 0
for {
- if int32(*(*uint8)(unsafe.Pointer(s))) == int32(':') && brk < 0 {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32(':') && brk < 0 {
brk = i
(*(*[8]Tuint16_t)(unsafe.Pointer(bp)))[i&int32(7)] = uint16(0)
s++
@@ -121736,15 +121749,15 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) (r int32) {
if j == 0 {
return 0
}
- (*(*[8]Tuint16_t)(unsafe.Pointer(bp)))[i&int32(7)] = uint16(v)
+ (*(*[8]Tuint16_t)(unsafe.Pointer(bp)))[i&int32(7)] = Uint16FromInt32(v)
if !(*(*uint8)(unsafe.Pointer(s + uintptr(j))) != 0) && (brk >= 0 || i == int32(7)) {
break
}
if i == int32(7) {
return 0
}
- if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != int32(':') {
- if int32(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != int32('.') || i < int32(6) && brk < 0 {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != int32(':') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s + uintptr(j)))) != int32('.') || i < int32(6) && brk < 0 {
return 0
}
need_v4 = int32(1)
@@ -121759,7 +121772,7 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) (r int32) {
i++
}
if brk >= 0 {
- Xmemmove(tls, bp+uintptr(brk)*2+uintptr(7)*2-uintptr(i)*2, bp+uintptr(brk)*2, uint64(int32(2)*(i+int32(1)-brk)))
+ Xmemmove(tls, bp+uintptr(brk)*2+uintptr(7)*2-uintptr(i)*2, bp+uintptr(brk)*2, Uint64FromInt32(int32(2)*(i+int32(1)-brk)))
j = 0
for {
if !(j < int32(7)-i) {
@@ -121779,7 +121792,7 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) (r int32) {
}
v14 = a
a++
- *(*uint8)(unsafe.Pointer(v14)) = uint8(int32((*(*[8]Tuint16_t)(unsafe.Pointer(bp)))[j]) >> int32(8))
+ *(*uint8)(unsafe.Pointer(v14)) = Uint8FromInt32(Int32FromUint16((*(*[8]Tuint16_t)(unsafe.Pointer(bp)))[j]) >> int32(8))
v15 = a
a++
*(*uint8)(unsafe.Pointer(v15)) = uint8((*(*[8]Tuint16_t)(unsafe.Pointer(bp)))[j])
@@ -121823,7 +121836,7 @@ func Xlisten(tls *TLS, fd int32, backlog int32) (r1 int32) {
v8 = r
goto _9
_9:
- return int32(X__syscall_ret(tls, uint64(v8)))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(v8)))
}
func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) (r int32) {
@@ -121852,7 +121865,7 @@ func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) (r i
p = Xstrchr(tls, name, int32('%'))
scopeid = uint64(0)
if p != 0 && int64(p)-int64(name) < int64(64) {
- Xmemcpy(tls, bp+20, name, uint64(int64(p)-int64(name)))
+ Xmemcpy(tls, bp+20, name, Uint64FromInt64(int64(p)-int64(name)))
(*(*[64]uint8)(unsafe.Pointer(bp + 20)))[int64(p)-int64(name)] = uint8(0)
name = bp + 20
}
@@ -121873,7 +121886,7 @@ func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) (r i
*(*uintptr)(unsafe.Pointer(bp + 88)) = p - uintptr(1)
}
if *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 88)))) != 0 {
- if !(int32(*(*Tuint8_t)(unsafe.Pointer(bp + 4))) == int32(0xfe) && int32(*(*Tuint8_t)(unsafe.Pointer(bp + 4 + 1)))&int32(0xc0) == int32(0x80)) && !(int32(*(*Tuint8_t)(unsafe.Pointer(bp + 4))) == int32(0xff) && int32(*(*Tuint8_t)(unsafe.Pointer(bp + 4 + 1)))&int32(0xf) == int32(0x2)) {
+ if !(Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(bp + 4))) == int32(0xfe) && Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(bp + 4 + 1)))&int32(0xc0) == int32(0x80)) && !(Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(bp + 4))) == int32(0xff) && Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(bp + 4 + 1)))&int32(0xf) == int32(0x2)) {
return -int32(2)
}
scopeid = uint64(Xif_nametoindex(tls, p))
@@ -121904,12 +121917,12 @@ const RR_CNAME = 5
func _is_valid_hostname(tls *TLS, host uintptr) (r int32) {
var s uintptr
_ = s
- if Xstrnlen(tls, host, uint64(255))-uint64(1) >= uint64(254) || Xmbstowcs(tls, uintptr(0), host, uint64(0)) == uint64(-Int32FromInt32(1)) {
+ if Xstrnlen(tls, host, uint64(255))-uint64(1) >= uint64(254) || Xmbstowcs(tls, uintptr(0), host, uint64(0)) == Uint64FromInt32(-Int32FromInt32(1)) {
return 0
}
s = host
for {
- if !(int32(*(*uint8)(unsafe.Pointer(s))) >= int32(0x80) || int32(*(*uint8)(unsafe.Pointer(s))) == int32('.') || int32(*(*uint8)(unsafe.Pointer(s))) == int32('-') || Xisalnum(tls, int32(*(*uint8)(unsafe.Pointer(s)))) != 0) {
+ if !(Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) >= int32(0x80) || Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('.') || Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('-') || Xisalnum(tls, Int32FromUint8(*(*uint8)(unsafe.Pointer(s)))) != 0) {
break
}
goto _1
@@ -122014,14 +122027,14 @@ func _name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family
v4 = Xstrstr(tls, p, name)
p = v4
if v12 = v4 != 0; v12 {
- v5 = int32(*(*uint8)(unsafe.Pointer(p + uintptr(-Int32FromInt32(1)))))
- v6 = BoolInt32(v5 == int32(' ') || uint32(v5)-uint32('\t') < uint32(5))
+ v5 = Int32FromUint8(*(*uint8)(unsafe.Pointer(p + uintptr(-Int32FromInt32(1)))))
+ v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5))
goto _7
_7:
;
if v11 = !(v6 != 0); !v11 {
- v8 = int32(*(*uint8)(unsafe.Pointer(p + uintptr(l))))
- v9 = BoolInt32(v8 == int32(' ') || uint32(v8)-uint32('\t') < uint32(5))
+ v8 = Int32FromUint8(*(*uint8)(unsafe.Pointer(p + uintptr(l))))
+ v9 = BoolInt32(v8 == int32(' ') || Uint32FromInt32(v8)-uint32('\t') < uint32(5))
goto _10
_10:
}
@@ -122041,8 +122054,8 @@ func _name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family
p = bp
for {
if v17 = *(*uint8)(unsafe.Pointer(p)) != 0; v17 {
- v14 = int32(*(*uint8)(unsafe.Pointer(p)))
- v15 = BoolInt32(v14 == int32(' ') || uint32(v14)-uint32('\t') < uint32(5))
+ v14 = Int32FromUint8(*(*uint8)(unsafe.Pointer(p)))
+ v15 = BoolInt32(v14 == int32(' ') || Uint32FromInt32(v14)-uint32('\t') < uint32(5))
goto _16
_16:
}
@@ -122072,8 +122085,8 @@ func _name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family
/* Extract first name as canonical name */
for {
if v23 = *(*uint8)(unsafe.Pointer(p)) != 0; v23 {
- v20 = int32(*(*uint8)(unsafe.Pointer(p)))
- v21 = BoolInt32(v20 == int32(' ') || uint32(v20)-uint32('\t') < uint32(5))
+ v20 = Int32FromUint8(*(*uint8)(unsafe.Pointer(p)))
+ v21 = BoolInt32(v20 == int32(' ') || Uint32FromInt32(v20)-uint32('\t') < uint32(5))
goto _22
_22:
}
@@ -122088,8 +122101,8 @@ func _name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family
z = p
for {
if v28 = *(*uint8)(unsafe.Pointer(z)) != 0; v28 {
- v25 = int32(*(*uint8)(unsafe.Pointer(z)))
- v26 = BoolInt32(v25 == int32(' ') || uint32(v25)-uint32('\t') < uint32(5))
+ v25 = Int32FromUint8(*(*uint8)(unsafe.Pointer(z)))
+ v26 = BoolInt32(v25 == int32(' ') || Uint32FromInt32(v25)-uint32('\t') < uint32(5))
goto _27
_27:
}
@@ -122104,7 +122117,7 @@ func _name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family
*(*uint8)(unsafe.Pointer(z)) = uint8(0)
if _is_valid_hostname(tls, p) != 0 {
have_canon = int32(1)
- Xmemcpy(tls, canon, p, uint64(int64(z)-int64(p)+int64(1)))
+ Xmemcpy(tls, canon, p, Uint64FromInt64(int64(z)-int64(p)+int64(1)))
}
}
X__fclose_ca(tls, f)
@@ -122161,7 +122174,7 @@ func _dns_parse_callback1(tls *TLS, c uintptr, rr int32, data uintptr, len1 int3
v2 = ctx + 16
v1 = *(*int32)(unsafe.Pointer(v2))
*(*int32)(unsafe.Pointer(v2))++
- Xmemcpy(tls, (*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs+uintptr(v1)*28+8, data, uint64(len1))
+ Xmemcpy(tls, (*Tdpc_ctx)(unsafe.Pointer(ctx)).Faddrs+uintptr(v1)*28+8, data, Uint64FromInt32(len1))
return 0
}
@@ -122204,7 +122217,7 @@ func _name_from_dns(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i
qtypes[nq] = _afrr[i].Frr
*(*uint8)(unsafe.Pointer(bp + uintptr(nq)*280 + 3)) = uint8(0) /* don't need AD flag */
/* Ensure query IDs are distinct. */
- if nq != 0 && int32(*(*uint8)(unsafe.Pointer(bp + uintptr(nq)*280))) == int32(*(*uint8)(unsafe.Pointer(bp))) {
+ if nq != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(bp + uintptr(nq)*280))) == Int32FromUint8(*(*uint8)(unsafe.Pointer(bp))) {
*(*uint8)(unsafe.Pointer(bp + uintptr(nq)*280))++
}
nq++
@@ -122222,13 +122235,13 @@ func _name_from_dns(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i
if !(i < nq) {
break
}
- if (*(*[2]int32)(unsafe.Pointer(bp + 10200)))[i] < int32(4) || int32(*(*uint8)(unsafe.Pointer(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) == int32(2) {
+ if (*(*[2]int32)(unsafe.Pointer(bp + 10200)))[i] < int32(4) || Int32FromUint8(*(*uint8)(unsafe.Pointer(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) == int32(2) {
return -int32(3)
}
- if int32(*(*uint8)(unsafe.Pointer(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) == int32(3) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) == int32(3) {
return 0
}
- if int32(*(*uint8)(unsafe.Pointer(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) != 0 {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(bp + 560 + uintptr(i)*4800 + 3)))&int32(15) != 0 {
return -int32(4)
}
goto _2
@@ -122242,7 +122255,7 @@ func _name_from_dns(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i
break
}
(*(*Tdpc_ctx)(unsafe.Pointer(bp + 10208))).Frrtype = qtypes[i]
- if uint64((*(*[2]int32)(unsafe.Pointer(bp + 10200)))[i]) > uint64(4800) {
+ if Uint64FromInt32((*(*[2]int32)(unsafe.Pointer(bp + 10200)))[i]) > uint64(4800) {
(*(*[2]int32)(unsafe.Pointer(bp + 10200)))[i] = int32(4800)
}
X__dns_parse(tls, bp+560+uintptr(i)*4800, (*(*[2]int32)(unsafe.Pointer(bp + 10200)))[i], __ccgo_fp(_dns_parse_callback1), bp+10208)
@@ -122293,7 +122306,7 @@ func _name_from_dns_search(tls *TLS, buf uintptr, canon uintptr, name uintptr, f
if !(*(*uint8)(unsafe.Pointer(name + uintptr(l))) != 0) {
break
}
- if int32(*(*uint8)(unsafe.Pointer(name + uintptr(l)))) == int32('.') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(name + uintptr(l)))) == int32('.') {
dots++
}
goto _1
@@ -122301,14 +122314,14 @@ func _name_from_dns_search(tls *TLS, buf uintptr, canon uintptr, name uintptr, f
;
l++
}
- if dots >= uint64((*(*Tresolvconf)(unsafe.Pointer(bp + 256))).Fndots) || int32(*(*uint8)(unsafe.Pointer(name + uintptr(l-uint64(1))))) == int32('.') {
+ if dots >= uint64((*(*Tresolvconf)(unsafe.Pointer(bp + 256))).Fndots) || Int32FromUint8(*(*uint8)(unsafe.Pointer(name + uintptr(l-uint64(1))))) == int32('.') {
*(*uint8)(unsafe.Pointer(bp)) = uint8(0)
}
/* Strip final dot for canon, fail if multiple trailing dots. */
- if int32(*(*uint8)(unsafe.Pointer(name + uintptr(l-uint64(1))))) == int32('.') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(name + uintptr(l-uint64(1))))) == int32('.') {
l--
}
- if !(l != 0) || int32(*(*uint8)(unsafe.Pointer(name + uintptr(l-uint64(1))))) == int32('.') {
+ if !(l != 0) || Int32FromUint8(*(*uint8)(unsafe.Pointer(name + uintptr(l-uint64(1))))) == int32('.') {
return -int32(2)
}
/* This can never happen; the caller already checked length. */
@@ -122327,8 +122340,8 @@ func _name_from_dns_search(tls *TLS, buf uintptr, canon uintptr, name uintptr, f
break
}
for {
- v5 = int32(*(*uint8)(unsafe.Pointer(p)))
- v6 = BoolInt32(v5 == int32(' ') || uint32(v5)-uint32('\t') < uint32(5))
+ v5 = Int32FromUint8(*(*uint8)(unsafe.Pointer(p)))
+ v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5))
goto _7
_7:
if !(v6 != 0) {
@@ -122342,8 +122355,8 @@ func _name_from_dns_search(tls *TLS, buf uintptr, canon uintptr, name uintptr, f
z = p
for {
if v12 = *(*uint8)(unsafe.Pointer(z)) != 0; v12 {
- v9 = int32(*(*uint8)(unsafe.Pointer(z)))
- v10 = BoolInt32(v9 == int32(' ') || uint32(v9)-uint32('\t') < uint32(5))
+ v9 = Int32FromUint8(*(*uint8)(unsafe.Pointer(z)))
+ v10 = BoolInt32(v9 == int32(' ') || Uint32FromInt32(v9)-uint32('\t') < uint32(5))
goto _11
_11:
}
@@ -122358,9 +122371,9 @@ func _name_from_dns_search(tls *TLS, buf uintptr, canon uintptr, name uintptr, f
if z == p {
break
}
- if uint64(int64(z)-int64(p)) < uint64(256)-l-uint64(1) {
- Xmemcpy(tls, canon+uintptr(l)+uintptr(1), p, uint64(int64(z)-int64(p)))
- *(*uint8)(unsafe.Pointer(canon + uintptr(uint64(int64(z)-int64(p)+int64(1))+l))) = uint8(0)
+ if Uint64FromInt64(int64(z)-int64(p)) < uint64(256)-l-uint64(1) {
+ Xmemcpy(tls, canon+uintptr(l)+uintptr(1), p, Uint64FromInt64(int64(z)-int64(p)))
+ *(*uint8)(unsafe.Pointer(canon + uintptr(Uint64FromInt64(int64(z)-int64(p)+int64(1))+l))) = uint8(0)
cnt = _name_from_dns(tls, buf, canon, canon, family, bp+256)
if cnt != 0 {
return cnt
@@ -122432,7 +122445,7 @@ func _policyof(tls *TLS, a uintptr) (r uintptr) {
if Xmemcmp(tls, a, uintptr(unsafe.Pointer(&_defpolicy))+uintptr(i)*20, uint64(_defpolicy[i].Flen1)) != 0 {
goto _1
}
- if int32(*(*Tuint8_t)(unsafe.Pointer(a + uintptr(_defpolicy[i].Flen1))))&int32(_defpolicy[i].Fmask) != int32(*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_defpolicy)) + uintptr(i)*20 + uintptr(_defpolicy[i].Flen1)))) {
+ if Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(a + uintptr(_defpolicy[i].Flen1))))&Int32FromUint8(_defpolicy[i].Fmask) != Int32FromUint8(*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_defpolicy)) + uintptr(i)*20 + uintptr(_defpolicy[i].Flen1)))) {
goto _1
}
return uintptr(unsafe.Pointer(&_defpolicy)) + uintptr(i)*20
@@ -122445,20 +122458,20 @@ func _policyof(tls *TLS, a uintptr) (r uintptr) {
}
func _labelof(tls *TLS, a uintptr) (r int32) {
- return int32((*Tpolicy)(unsafe.Pointer(_policyof(tls, a))).Flabel)
+ return Int32FromUint8((*Tpolicy)(unsafe.Pointer(_policyof(tls, a))).Flabel)
}
func _scopeof(tls *TLS, a uintptr) (r int32) {
- if int32(*(*Tuint8_t)(unsafe.Pointer(a))) == int32(0xff) {
- return int32(*(*Tuint8_t)(unsafe.Pointer(a + 1))) & int32(15)
+ if Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(a))) == int32(0xff) {
+ return Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(a + 1))) & int32(15)
}
- if int32(*(*Tuint8_t)(unsafe.Pointer(a))) == int32(0xfe) && int32(*(*Tuint8_t)(unsafe.Pointer(a + 1)))&int32(0xc0) == int32(0x80) {
+ if Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(a))) == int32(0xfe) && Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(a + 1)))&int32(0xc0) == int32(0x80) {
return int32(2)
}
- if *(*Tuint32_t)(unsafe.Pointer(a)) == uint32(0) && *(*Tuint32_t)(unsafe.Pointer(a + 1*4)) == uint32(0) && *(*Tuint32_t)(unsafe.Pointer(a + 2*4)) == uint32(0) && int32(*(*Tuint8_t)(unsafe.Pointer(a + 12))) == 0 && int32(*(*Tuint8_t)(unsafe.Pointer(a + 13))) == 0 && int32(*(*Tuint8_t)(unsafe.Pointer(a + 14))) == 0 && int32(*(*Tuint8_t)(unsafe.Pointer(a + 15))) == int32(1) {
+ if *(*Tuint32_t)(unsafe.Pointer(a)) == uint32(0) && *(*Tuint32_t)(unsafe.Pointer(a + 1*4)) == uint32(0) && *(*Tuint32_t)(unsafe.Pointer(a + 2*4)) == uint32(0) && Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(a + 12))) == 0 && Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(a + 13))) == 0 && Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(a + 14))) == 0 && Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(a + 15))) == int32(1) {
return int32(2)
}
- if int32(*(*Tuint8_t)(unsafe.Pointer(a))) == int32(0xfe) && int32(*(*Tuint8_t)(unsafe.Pointer(a + 1)))&int32(0xc0) == int32(0xc0) {
+ if Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(a))) == int32(0xfe) && Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(a + 1)))&int32(0xc0) == int32(0xc0) {
return int32(5)
}
return int32(14)
@@ -122469,7 +122482,7 @@ func _prefixmatch(tls *TLS, s uintptr, d uintptr) (r int32) {
_ = i
i = uint32(0)
for {
- if !(i < uint32(128) && !((int32(*(*Tuint8_t)(unsafe.Pointer(s + uintptr(i/uint32(8)))))^int32(*(*Tuint8_t)(unsafe.Pointer(d + uintptr(i/uint32(8))))))&(Int32FromInt32(128)>>(i%Uint32FromInt32(8))) != 0)) {
+ if !(i < uint32(128) && !((Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(s + uintptr(i/uint32(8)))))^Int32FromUint8(*(*Tuint8_t)(unsafe.Pointer(d + uintptr(i/uint32(8))))))&(Int32FromInt32(128)>>(i%Uint32FromInt32(8))) != 0)) {
break
}
goto _1
@@ -122477,7 +122490,7 @@ func _prefixmatch(tls *TLS, s uintptr, d uintptr) (r int32) {
;
i++
}
- return int32(i)
+ return Int32FromUint32(i)
}
func _addrcmp(tls *TLS, _a uintptr, _b uintptr) (r int32) {
@@ -122662,8 +122675,8 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i
}
dpolicy = _policyof(tls, bp+32+8)
dscope = _scopeof(tls, bp+32+8)
- dlabel = int32((*Tpolicy)(unsafe.Pointer(dpolicy)).Flabel)
- dprec = int32((*Tpolicy)(unsafe.Pointer(dpolicy)).Fprec)
+ dlabel = Int32FromUint8((*Tpolicy)(unsafe.Pointer(dpolicy)).Flabel)
+ dprec = Int32FromUint8((*Tpolicy)(unsafe.Pointer(dpolicy)).Fprec)
prefixlen = 0
fd = Xsocket(tls, family1, Int32FromInt32(SOCK_DGRAM)|Int32FromInt32(SOCK_CLOEXEC), int32(IPPROTO_UDP))
if fd >= 0 {
@@ -122694,7 +122707,7 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i
;
i++
}
- Xqsort(tls, buf, uint64(cnt), uint64(28), __ccgo_fp(_addrcmp))
+ Xqsort(tls, buf, Uint64FromInt32(cnt), uint64(28), __ccgo_fp(_addrcmp))
_pthread_setcancelstate(tls, *(*int32)(unsafe.Pointer(bp)), uintptr(0))
return cnt
}
@@ -122745,8 +122758,8 @@ func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype i
return -int32(8)
}
(*(*Tservice)(unsafe.Pointer(buf))).Fport = uint16(0)
- (*(*Tservice)(unsafe.Pointer(buf))).Fproto = uint8(proto)
- (*(*Tservice)(unsafe.Pointer(buf))).Fsocktype = uint8(socktype)
+ (*(*Tservice)(unsafe.Pointer(buf))).Fproto = Uint8FromInt32(proto)
+ (*(*Tservice)(unsafe.Pointer(buf))).Fsocktype = Uint8FromInt32(socktype)
return int32(1)
}
if name != 0 {
@@ -122810,8 +122823,8 @@ func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype i
break
}
if v10 = p > bp; v10 {
- v7 = int32(*(*uint8)(unsafe.Pointer(p + uintptr(-Int32FromInt32(1)))))
- v8 = BoolInt32(v7 == int32(' ') || uint32(v7)-uint32('\t') < uint32(5))
+ v7 = Int32FromUint8(*(*uint8)(unsafe.Pointer(p + uintptr(-Int32FromInt32(1)))))
+ v8 = BoolInt32(v7 == int32(' ') || Uint32FromInt32(v7)-uint32('\t') < uint32(5))
goto _9
_9:
}
@@ -122819,8 +122832,8 @@ func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype i
goto _5
}
if v14 = *(*uint8)(unsafe.Pointer(p + uintptr(l))) != 0; v14 {
- v11 = int32(*(*uint8)(unsafe.Pointer(p + uintptr(l))))
- v12 = BoolInt32(v11 == int32(' ') || uint32(v11)-uint32('\t') < uint32(5))
+ v11 = Int32FromUint8(*(*uint8)(unsafe.Pointer(p + uintptr(l))))
+ v12 = BoolInt32(v11 == int32(' ') || Uint32FromInt32(v11)-uint32('\t') < uint32(5))
goto _13
_13:
}
@@ -122840,8 +122853,8 @@ func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype i
p = bp
for {
if v19 = *(*uint8)(unsafe.Pointer(p)) != 0; v19 {
- v16 = int32(*(*uint8)(unsafe.Pointer(p)))
- v17 = BoolInt32(v16 == int32(' ') || uint32(v16)-uint32('\t') < uint32(5))
+ v16 = Int32FromUint8(*(*uint8)(unsafe.Pointer(p)))
+ v17 = BoolInt32(v16 == int32(' ') || Uint32FromInt32(v16)-uint32('\t') < uint32(5))
goto _18
_18:
}
@@ -122923,7 +122936,7 @@ func ___netlink_enumerate(tls *TLS, fd int32, seq uint32, type1 int32, af int32,
}
Freply [0]Tnlmsghdr
Fbuf [8192]Tuint8_t
- })(unsafe.Pointer(bp))))).Fnlh.Fnlmsg_type = uint16(type1)
+ })(unsafe.Pointer(bp))))).Fnlh.Fnlmsg_type = Uint16FromInt32(type1)
(*(*struct {
Fnlh Tnlmsghdr
Fg Trtgenmsg
@@ -122934,7 +122947,7 @@ func ___netlink_enumerate(tls *TLS, fd int32, seq uint32, type1 int32, af int32,
}
Freply [0]Tnlmsghdr
Fbuf [8192]Tuint8_t
- })(unsafe.Pointer(bp))))).Fnlh.Fnlmsg_flags = uint16(Int32FromInt32(NLM_F_ROOT) | Int32FromInt32(NLM_F_MATCH) | Int32FromInt32(NLM_F_REQUEST))
+ })(unsafe.Pointer(bp))))).Fnlh.Fnlmsg_flags = Uint16FromInt32(Int32FromInt32(NLM_F_ROOT) | Int32FromInt32(NLM_F_MATCH) | Int32FromInt32(NLM_F_REQUEST))
(*(*struct {
Fnlh Tnlmsghdr
Fg Trtgenmsg
@@ -122956,7 +122969,7 @@ func ___netlink_enumerate(tls *TLS, fd int32, seq uint32, type1 int32, af int32,
}
Freply [0]Tnlmsghdr
Fbuf [8192]Tuint8_t
- })(unsafe.Pointer(bp))))).Fg.Frtgen_family = uint8(af)
+ })(unsafe.Pointer(bp))))).Fg.Frtgen_family = Uint8FromInt32(af)
r = int32(Xsend(tls, fd, bp, uint64(20), 0))
if r < 0 {
return r
@@ -122968,13 +122981,13 @@ func ___netlink_enumerate(tls *TLS, fd int32, seq uint32, type1 int32, af int32,
}
h = bp
for {
- if !(uint64(int64(bp+uintptr(r))-int64(h)) >= uint64(16)) {
+ if !(Uint64FromInt64(int64(bp+uintptr(r))-int64(h)) >= uint64(16)) {
break
}
- if int32((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(NLMSG_DONE) {
+ if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(NLMSG_DONE) {
return 0
}
- if int32((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(NLMSG_ERROR) {
+ if Int32FromUint16((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_type) == int32(NLMSG_ERROR) {
return -int32(1)
}
ret = (*(*func(*TLS, uintptr, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{cb})))(tls, ctx, h)
@@ -122984,7 +122997,7 @@ func ___netlink_enumerate(tls *TLS, fd int32, seq uint32, type1 int32, af int32,
goto _1
_1:
;
- h = h + uintptr(((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len+Uint32FromInt32(3))&uint32(^Int32FromInt32(3)))
+ h = h + uintptr(((*Tnlmsghdr)(unsafe.Pointer(h)).Fnlmsg_len+Uint32FromInt32(3))&Uint32FromInt32(^Int32FromInt32(3)))
}
}
return r1
@@ -123030,7 +123043,7 @@ func Xns_get16(tls *TLS, cp uintptr) (r uint32) {
trc("tls=%v cp=%v, (%v:)", tls, cp, origin(2))
defer func() { trc("-> %v", r) }()
}
- return uint32(int32(*(*uint8)(unsafe.Pointer(cp)))<<int32(8) | int32(*(*uint8)(unsafe.Pointer(cp + 1))))
+ return Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(cp)))<<int32(8) | Int32FromUint8(*(*uint8)(unsafe.Pointer(cp + 1))))
}
func Xns_get32(tls *TLS, cp uintptr) (r uint64) {
@@ -123038,7 +123051,7 @@ func Xns_get32(tls *TLS, cp uintptr) (r uint64) {
trc("tls=%v cp=%v, (%v:)", tls, cp, origin(2))
defer func() { trc("-> %v", r) }()
}
- return uint64(uint32(*(*uint8)(unsafe.Pointer(cp)))<<int32(24) | uint32(int32(*(*uint8)(unsafe.Pointer(cp + 1)))<<int32(16)) | uint32(int32(*(*uint8)(unsafe.Pointer(cp + 2)))<<int32(8)) | uint32(*(*uint8)(unsafe.Pointer(cp + 3))))
+ return uint64(uint32(*(*uint8)(unsafe.Pointer(cp)))<<int32(24) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(cp + 1)))<<int32(16)) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(cp + 2)))<<int32(8)) | uint32(*(*uint8)(unsafe.Pointer(cp + 3))))
}
func Xns_put16(tls *TLS, s uint32, cp uintptr) {
@@ -123110,7 +123123,7 @@ func Xns_initparse(tls *TLS, msg uintptr, msglen int32, handle uintptr) (r1 int3
}
if *(*Tuint16_t)(unsafe.Pointer(handle + 20 + uintptr(i)*2)) != 0 {
*(*uintptr)(unsafe.Pointer(handle + 32 + uintptr(i)*8)) = msg
- r = Xns_skiprr(tls, msg, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, i, int32(*(*Tuint16_t)(unsafe.Pointer(handle + 20 + uintptr(i)*2))))
+ r = Xns_skiprr(tls, msg, (*Tns_msg)(unsafe.Pointer(handle)).F_eom, i, Int32FromUint16(*(*Tuint16_t)(unsafe.Pointer(handle + 20 + uintptr(i)*2))))
if r < 0 {
return -int32(1)
}
@@ -123166,7 +123179,7 @@ func Xns_skiprr(tls *TLS, ptr uintptr, eom uintptr, section Tns_sect, count int3
}
p += uintptr(NS_INT32SZ)
p += uintptr(2)
- r = int32(Xns_get16(tls, p-uintptr(2)))
+ r = Int32FromUint32(Xns_get16(tls, p-uintptr(2)))
if int64(r) > int64(eom)-int64(p) {
goto bad
}
@@ -123200,7 +123213,7 @@ func Xns_parserr(tls *TLS, handle uintptr, section Tns_sect, rrnum int32, rr uin
if rrnum == -int32(1) {
rrnum = (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum
}
- if rrnum < 0 || rrnum >= int32(*(*Tuint16_t)(unsafe.Pointer(handle + 20 + uintptr(section)*2))) {
+ if rrnum < 0 || rrnum >= Int32FromUint16(*(*Tuint16_t)(unsafe.Pointer(handle + 20 + uintptr(section)*2))) {
goto bad
}
if rrnum < (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum {
@@ -123239,7 +123252,7 @@ func Xns_parserr(tls *TLS, handle uintptr, section Tns_sect, rrnum int32, rr uin
p4 = handle + 72
*(*uintptr)(unsafe.Pointer(p4)) += uintptr(2)
(*Tns_rr)(unsafe.Pointer(rr)).Frdlength = uint16(Xns_get16(tls, *(*uintptr)(unsafe.Pointer(p4))-uintptr(2)))
- if int64((*Tns_rr)(unsafe.Pointer(rr)).Frdlength) > int64((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int64((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) {
+ if Int64FromUint16((*Tns_rr)(unsafe.Pointer(rr)).Frdlength) > int64((*Tns_msg)(unsafe.Pointer(handle)).F_eom)-int64((*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr) {
goto size
}
(*Tns_rr)(unsafe.Pointer(rr)).Frdata = (*Tns_msg)(unsafe.Pointer(handle)).F_msg_ptr
@@ -123250,7 +123263,7 @@ func Xns_parserr(tls *TLS, handle uintptr, section Tns_sect, rrnum int32, rr uin
(*Tns_rr)(unsafe.Pointer(rr)).Frdata = UintptrFromInt32(0)
}
(*Tns_msg)(unsafe.Pointer(handle)).F_rrnum++
- if (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum > int32(*(*Tuint16_t)(unsafe.Pointer(handle + 20 + uintptr(section)*2))) {
+ if (*Tns_msg)(unsafe.Pointer(handle)).F_rrnum > Int32FromUint16(*(*Tuint16_t)(unsafe.Pointer(handle + 20 + uintptr(section)*2))) {
(*Tns_msg)(unsafe.Pointer(handle)).F_sect = section + int32(1)
if (*Tns_msg)(unsafe.Pointer(handle)).F_sect == int32(_ns_s_max) {
(*Tns_msg)(unsafe.Pointer(handle)).F_rrnum = -int32(1)
@@ -123279,7 +123292,7 @@ func Xns_name_uncompress(tls *TLS, msg uintptr, eom uintptr, src uintptr, dst ui
}
var r int32
_ = r
- r = Xdn_expand(tls, msg, eom, src, dst, int32(dstsiz))
+ r = Xdn_expand(tls, msg, eom, src, dst, Int32FromUint64(dstsiz))
if r < 0 {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EMSGSIZE)
}
@@ -123332,14 +123345,14 @@ func Xntohs(tls *TLS, n Tuint16_t) (r Tuint16_t) {
})(unsafe.Pointer(&struct{ f int32 }{f: int32(1)}))
if *(*uint8)(unsafe.Pointer(&u)) != 0 {
v2 = n
- v3 = uint16(int32(v2)<<int32(8) | int32(v2)>>int32(8))
+ v3 = Uint16FromInt32(Int32FromUint16(v2)<<int32(8) | Int32FromUint16(v2)>>int32(8))
goto _4
_4:
- v1 = int32(v3)
+ v1 = Int32FromUint16(v3)
} else {
- v1 = int32(n)
+ v1 = Int32FromUint16(n)
}
- return uint16(v1)
+ return Uint16FromInt32(v1)
}
/* do we really need all these?? */
@@ -123366,10 +123379,10 @@ func Xgetprotoent(tls *TLS) (r uintptr) {
trc("tls=%v, (%v:)", tls, origin(2))
defer func() { trc("-> %v", r) }()
}
- if uint64(_idx) >= uint64(239) {
+ if Uint64FromInt32(_idx) >= uint64(239) {
return UintptrFromInt32(0)
}
- _p.Fp_proto = int32(_protos[_idx])
+ _p.Fp_proto = Int32FromUint8(_protos[_idx])
_p.Fp_name = uintptr(unsafe.Pointer(&_protos)) + uintptr(_idx+int32(1))
_p.Fp_aliases = uintptr(unsafe.Pointer(&_aliases))
_idx = int32(uint64(_idx) + (Xstrlen(tls, _p.Fp_name) + Uint64FromInt32(2)))
@@ -123429,7 +123442,7 @@ func Xrecvfrom(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr
_ = int32(__SC_recvfrom)
v2 = int64(fd)
v3 = int64(buf)
- v4 = int64(len1)
+ v4 = Int64FromUint64(len1)
v5 = int64(flags)
v6 = int64(addr)
v7 = int64(alen)
@@ -123445,7 +123458,7 @@ func Xrecvfrom(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr
v8 = r
goto _9
_9:
- return X__syscall_ret(tls, uint64(v8))
+ return X__syscall_ret(tls, Uint64FromInt64(v8))
}
func Xrecvmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32, timeout uintptr) (r int32) {
@@ -123472,7 +123485,7 @@ func Xrecvmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32, ti
i--
mh += 64
}
- return int32(X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_recvmmsg), int64(fd), int64(msgvec), int64(vlen), int64(flags), int64(timeout), 0))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_recvmmsg), int64(fd), int64(msgvec), Int64FromUint32(vlen), Int64FromUint32(flags), int64(timeout), 0))))
}
func X__convert_scm_timestamps(tls *TLS, msg uintptr, csize Tsocklen_t) {
@@ -123536,10 +123549,10 @@ func X__convert_scm_timestamps(tls *TLS, msg uintptr, csize Tsocklen_t) {
goto _1
_1:
;
- if uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len)+uint64(8)-uint64(1))&uint64(^int64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= uint64(int64((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen))-int64(cmsg)) {
+ if uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len)+uint64(8)-uint64(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen))-int64(cmsg)) {
v6 = uintptr(0)
} else {
- v6 = cmsg + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&uint64(^int64(Uint64FromInt64(8)-Uint64FromInt32(1))))
+ v6 = cmsg + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1))))
}
cmsg = v6
}
@@ -123552,10 +123565,10 @@ func X__convert_scm_timestamps(tls *TLS, msg uintptr, csize Tsocklen_t) {
}
p7 = msg + 40
*(*Tsocklen_t)(unsafe.Pointer(p7)) = Tsocklen_t(uint64(*(*Tsocklen_t)(unsafe.Pointer(p7))) + ((Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1)) + (Uint64FromInt64(16)+Uint64FromInt64(8)-Uint64FromInt32(1)) & ^(Uint64FromInt64(8)-Uint64FromInt32(1))))
- if uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len)+uint64(8)-uint64(1))&uint64(^int64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= uint64(int64((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen))-int64(last)) {
+ if uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len)+uint64(8)-uint64(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(msg)).Fmsg_controllen))-int64(last)) {
v8 = uintptr(0)
} else {
- v8 = last + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&uint64(^int64(Uint64FromInt64(8)-Uint64FromInt32(1))))
+ v8 = last + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(last)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1))))
}
cmsg = v8
(*Tcmsghdr)(unsafe.Pointer(cmsg)).Fcmsg_level = int32(SOL_SOCKET)
@@ -123608,7 +123621,7 @@ func Xrecvmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r2 Tssize_t) {
v9 = r
goto _10
_10:
- r1 = X__syscall_ret(tls, uint64(v9))
+ r1 = X__syscall_ret(tls, Uint64FromInt64(v9))
if r1 >= 0 {
X__convert_scm_timestamps(tls, msg, orig_controllen)
}
@@ -123639,19 +123652,19 @@ func X__res_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32,
var _ /* ts at bp+280 */ Ttimespec
_, _, _, _, _ = i, id, j, l, n
l = Xstrnlen(tls, dname, uint64(255))
- if l != 0 && int32(*(*uint8)(unsafe.Pointer(dname + uintptr(l-uint64(1))))) == int32('.') {
+ if l != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(dname + uintptr(l-uint64(1))))) == int32('.') {
l--
}
- if l != 0 && int32(*(*uint8)(unsafe.Pointer(dname + uintptr(l-uint64(1))))) == int32('.') {
+ if l != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(dname + uintptr(l-uint64(1))))) == int32('.') {
return -int32(1)
}
- n = int32(uint64(17) + l + BoolUint64(!!(l != 0)))
- if l > uint64(253) || buflen < n || uint32(op) > uint32(15) || uint32(class) > uint32(255) || uint32(type1) > uint32(255) {
+ n = Int32FromUint64(uint64(17) + l + BoolUint64(!!(l != 0)))
+ if l > uint64(253) || buflen < n || Uint32FromInt32(op) > uint32(15) || Uint32FromInt32(class) > uint32(255) || Uint32FromInt32(type1) > uint32(255) {
return -int32(1)
}
/* Construct query template - ID will be filled later */
- Xmemset(tls, bp, 0, uint64(n))
- (*(*[280]uint8)(unsafe.Pointer(bp)))[int32(2)] = uint8(op*int32(8) + int32(1))
+ Xmemset(tls, bp, 0, Uint64FromInt32(n))
+ (*(*[280]uint8)(unsafe.Pointer(bp)))[int32(2)] = Uint8FromInt32(op*int32(8) + int32(1))
(*(*[280]uint8)(unsafe.Pointer(bp)))[int32(3)] = uint8(32) /* AD */
(*(*[280]uint8)(unsafe.Pointer(bp)))[int32(5)] = uint8(1)
Xmemcpy(tls, bp+uintptr(13), dname, l)
@@ -123662,7 +123675,7 @@ func X__res_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32,
}
j = i
for {
- if !((*(*[280]uint8)(unsafe.Pointer(bp)))[j] != 0 && int32((*(*[280]uint8)(unsafe.Pointer(bp)))[j]) != int32('.')) {
+ if !((*(*[280]uint8)(unsafe.Pointer(bp)))[j] != 0 && Int32FromUint8((*(*[280]uint8)(unsafe.Pointer(bp)))[j]) != int32('.')) {
break
}
goto _2
@@ -123670,23 +123683,23 @@ func X__res_mkquery(tls *TLS, op int32, dname uintptr, class int32, type1 int32,
;
j++
}
- if uint32(j-i)-uint32(1) > uint32(62) {
+ if Uint32FromInt32(j-i)-uint32(1) > uint32(62) {
return -int32(1)
}
- (*(*[280]uint8)(unsafe.Pointer(bp)))[i-int32(1)] = uint8(j - i)
+ (*(*[280]uint8)(unsafe.Pointer(bp)))[i-int32(1)] = Uint8FromInt32(j - i)
goto _1
_1:
;
i = j + int32(1)
}
- (*(*[280]uint8)(unsafe.Pointer(bp)))[i+int32(1)] = uint8(type1)
- (*(*[280]uint8)(unsafe.Pointer(bp)))[i+int32(3)] = uint8(class)
+ (*(*[280]uint8)(unsafe.Pointer(bp)))[i+int32(1)] = Uint8FromInt32(type1)
+ (*(*[280]uint8)(unsafe.Pointer(bp)))[i+int32(3)] = Uint8FromInt32(class)
/* Make a reasonably unpredictable id */
Xclock_gettime(tls, CLOCK_REALTIME, bp+280)
- id = int32((uint64((*(*Ttimespec)(unsafe.Pointer(bp + 280))).Ftv_nsec) + uint64((*(*Ttimespec)(unsafe.Pointer(bp + 280))).Ftv_nsec)/uint64(65536)) & uint64(0xffff))
- (*(*[280]uint8)(unsafe.Pointer(bp)))[0] = uint8(id / int32(256))
- (*(*[280]uint8)(unsafe.Pointer(bp)))[int32(1)] = uint8(id)
- Xmemcpy(tls, buf, bp, uint64(n))
+ id = Int32FromUint64((Uint64FromInt64((*(*Ttimespec)(unsafe.Pointer(bp + 280))).Ftv_nsec) + Uint64FromInt64((*(*Ttimespec)(unsafe.Pointer(bp + 280))).Ftv_nsec)/uint64(65536)) & uint64(0xffff))
+ (*(*[280]uint8)(unsafe.Pointer(bp)))[0] = Uint8FromInt32(id / int32(256))
+ (*(*[280]uint8)(unsafe.Pointer(bp)))[int32(1)] = Uint8FromInt32(id)
+ Xmemcpy(tls, buf, bp, Uint64FromInt32(n))
return n
}
@@ -123822,7 +123835,7 @@ func _mtime(tls *TLS) (r uint64) {
if Xclock_gettime(tls, int32(CLOCK_MONOTONIC), bp) < 0 && *(*int32)(unsafe.Pointer(X__errno_location(tls))) == int32(ENOSYS) {
Xclock_gettime(tls, CLOCK_REALTIME, bp)
}
- return uint64((*(*Ttimespec)(unsafe.Pointer(bp))).Ftv_sec)*uint64(1000) + uint64((*(*Ttimespec)(unsafe.Pointer(bp))).Ftv_nsec/int64(1000000))
+ return Uint64FromInt64((*(*Ttimespec)(unsafe.Pointer(bp))).Ftv_sec)*uint64(1000) + Uint64FromInt64((*(*Ttimespec)(unsafe.Pointer(bp))).Ftv_nsec/int64(1000000))
}
func _start_tcp(tls *TLS, pfd uintptr, family int32, sa uintptr, sl Tsocklen_t, q uintptr, ql int32) (r1 int32) {
@@ -123832,8 +123845,8 @@ func _start_tcp(tls *TLS, pfd uintptr, family int32, sa uintptr, sl Tsocklen_t,
var _ /* mh at bp+40 */ Tmsghdr
_, _ = fd, r
*(*[2]Tuint8_t)(unsafe.Pointer(bp + 32)) = [2]Tuint8_t{
- 0: uint8(ql >> int32(8)),
- 1: uint8(ql),
+ 0: Uint8FromInt32(ql >> int32(8)),
+ 1: Uint8FromInt32(ql),
}
*(*[2]Tiovec)(unsafe.Pointer(bp)) = [2]Tiovec{
0: {
@@ -123842,7 +123855,7 @@ func _start_tcp(tls *TLS, pfd uintptr, family int32, sa uintptr, sl Tsocklen_t,
},
1: {
Fiov_base: q,
- Fiov_len: uint64(ql),
+ Fiov_len: Uint64FromInt32(ql),
},
}
*(*Tmsghdr)(unsafe.Pointer(bp + 40)) = Tmsghdr{
@@ -123951,20 +123964,20 @@ func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, a
sl = uint32(16)
nns = 0
family = int32(PF_INET)
- v1 = uint64(nqueries+int32(2)) * 8
+ v1 = Uint64FromInt32(nqueries+int32(2)) * 8
pfd = Xrealloc(tls, pfd, v1)
- v2 = uint64(nqueries) * 4
+ v2 = Uint64FromInt32(nqueries) * 4
qpos = Xrealloc(tls, qpos, v2)
- v3 = uint64(nqueries) * 4
+ v3 = Uint64FromInt32(nqueries) * 4
apos = Xrealloc(tls, apos, v3)
- v4 = uint64(nqueries) * 2
+ v4 = Uint64FromInt32(nqueries) * 2
alen_buf = Xrealloc(tls, alen_buf, v4)
_pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), bp+200)
- timeout = int32(uint32(1000) * (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout)
- attempts = int32((*Tresolvconf)(unsafe.Pointer(conf)).Fattempts)
+ timeout = Int32FromUint32(uint32(1000) * (*Tresolvconf)(unsafe.Pointer(conf)).Ftimeout)
+ attempts = Int32FromUint32((*Tresolvconf)(unsafe.Pointer(conf)).Fattempts)
nns = 0
for {
- if !(uint32(nns) < (*Tresolvconf)(unsafe.Pointer(conf)).Fnns) {
+ if !(Uint32FromInt32(nns) < (*Tresolvconf)(unsafe.Pointer(conf)).Fnns) {
break
}
iplit = conf + uintptr(nns)*28
@@ -123987,7 +124000,7 @@ func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, a
(*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(nns)*28))).Fsin6_scope_id = (*Taddress)(unsafe.Pointer(iplit)).Fscopeid
v6 = Int32FromInt32(PF_INET6)
family = v6
- (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(nns)*28))).Fsin6_family = uint16(v6)
+ (*(*Tsockaddr_in6)(unsafe.Pointer(bp + 116 + uintptr(nns)*28))).Fsin6_family = Uint16FromInt32(v6)
}
goto _5
_5:
@@ -124025,7 +124038,7 @@ func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, a
if !(i < nns) {
break
}
- if int32((*(*[3]struct {
+ if Int32FromUint16((*(*[3]struct {
Fsin6 [0]Tsockaddr_in6
Fsin Tsockaddr_in
F__ccgo_pad2 [12]byte
@@ -124047,7 +124060,7 @@ func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, a
Fsin6 [0]Tsockaddr_in6
Fsin Tsockaddr_in
F__ccgo_pad2 [12]byte
- })(unsafe.Pointer(bp + 88))).Fsin.Fsin_family = uint16(family)
+ })(unsafe.Pointer(bp + 88))).Fsin.Fsin_family = Uint16FromInt32(family)
if fd < 0 || Xbind(tls, fd, bp+88, sl) < 0 {
if fd >= 0 {
Xclose(tls, fd)
@@ -124074,15 +124087,15 @@ func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, a
(*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), (nqueries+int32(1))*8))).Ffd = -int32(2)
__pthread_cleanup_push(tls, bp+208, __ccgo_fp(_cleanup), pfd)
_pthread_setcancelstate(tls, *(*int32)(unsafe.Pointer(bp + 200)), uintptr(0))
- Xmemset(tls, alens, 0, uint64(4)*uint64(nqueries))
+ Xmemset(tls, alens, 0, uint64(4)*Uint64FromInt32(nqueries))
retry_interval = timeout / attempts
next = 0
v10 = _mtime(tls)
t2 = v10
t0 = v10
- t1 = t2 - uint64(retry_interval)
+ t1 = t2 - Uint64FromInt32(retry_interval)
for {
- if !(t2-t0 < uint64(timeout)) {
+ if !(t2-t0 < Uint64FromInt32(timeout)) {
break
}
/* This is the loop exit condition: that all queries
@@ -124100,7 +124113,7 @@ func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, a
if i == nqueries {
break
}
- if t2-t1 >= uint64(retry_interval) {
+ if t2-t1 >= Uint64FromInt32(retry_interval) {
/* Query all configured namservers in parallel */
i = 0
for {
@@ -124113,7 +124126,7 @@ func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, a
if !(j < nns) {
break
}
- Xsendto(tls, fd, *(*uintptr)(unsafe.Pointer(queries + uintptr(i)*8)), uint64(*(*int32)(unsafe.Pointer(qlens + uintptr(i)*4))), int32(MSG_NOSIGNAL), bp+116+uintptr(j)*28, sl)
+ Xsendto(tls, fd, *(*uintptr)(unsafe.Pointer(queries + uintptr(i)*8)), Uint64FromInt32(*(*int32)(unsafe.Pointer(qlens + uintptr(i)*4))), int32(MSG_NOSIGNAL), bp+116+uintptr(j)*28, sl)
goto _14
_14:
;
@@ -124129,14 +124142,14 @@ func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, a
servfail_retry = int32(2) * nqueries
}
/* Wait for a response, or until time to retry */
- if Xpoll(tls, pfd, uint64(nqueries+int32(1)), int32(t1+uint64(retry_interval)-t2)) <= 0 {
+ if Xpoll(tls, pfd, Uint64FromInt32(nqueries+int32(1)), Int32FromUint64(t1+Uint64FromInt32(retry_interval)-t2)) <= 0 {
goto _11
}
for next < nqueries {
*(*[1]Tiovec)(unsafe.Pointer(bp + 8)) = [1]Tiovec{
0: {
Fiov_base: *(*uintptr)(unsafe.Pointer(answers + uintptr(next)*8)),
- Fiov_len: uint64(asize),
+ Fiov_len: Uint64FromInt32(asize),
},
}
*(*Tmsghdr)(unsafe.Pointer(bp + 232)) = Tmsghdr{
@@ -124170,7 +124183,7 @@ func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, a
/* Find which query this answer goes with, if any */
i = next
for {
- if !(i < nqueries && (int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(answers + uintptr(next)*8))))) != int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(queries + uintptr(i)*8))))) || int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(answers + uintptr(next)*8)) + 1))) != int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(queries + uintptr(i)*8)) + 1))))) {
+ if !(i < nqueries && (Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(answers + uintptr(next)*8))))) != Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(queries + uintptr(i)*8))))) || Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(answers + uintptr(next)*8)) + 1))) != Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(queries + uintptr(i)*8)) + 1))))) {
break
}
goto _16
@@ -124187,7 +124200,7 @@ func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, a
/* Only accept positive or negative responses;
* retry immediately on server failure, and ignore
* all other codes such as refusal. */
- switch int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(answers + uintptr(next)*8)) + 3))) & Int32FromInt32(15) {
+ switch Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(answers + uintptr(next)*8)) + 3))) & Int32FromInt32(15) {
case 0:
fallthrough
case int32(3):
@@ -124197,7 +124210,7 @@ func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, a
servfail_retry--
}
if v18 && v17 != 0 {
- Xsendto(tls, fd, *(*uintptr)(unsafe.Pointer(queries + uintptr(i)*8)), uint64(*(*int32)(unsafe.Pointer(qlens + uintptr(i)*4))), int32(MSG_NOSIGNAL), bp+116+uintptr(j)*28, sl)
+ Xsendto(tls, fd, *(*uintptr)(unsafe.Pointer(queries + uintptr(i)*8)), Uint64FromInt32(*(*int32)(unsafe.Pointer(qlens + uintptr(i)*4))), int32(MSG_NOSIGNAL), bp+116+uintptr(j)*28, sl)
}
fallthrough
default:
@@ -124217,14 +124230,14 @@ func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, a
next++
}
} else {
- Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(answers + uintptr(i)*8)), *(*uintptr)(unsafe.Pointer(answers + uintptr(next)*8)), uint64(rlen))
+ Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(answers + uintptr(i)*8)), *(*uintptr)(unsafe.Pointer(answers + uintptr(next)*8)), Uint64FromInt32(rlen))
}
/* Ignore further UDP if all slots full or TCP-mode */
if next == nqueries {
(*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), nqueries*8))).Fevents = 0
}
/* If answer is truncated (TC bit), fallback to TCP */
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(answers + uintptr(i)*8)) + 2)))&int32(2) != 0 || (*(*Tmsghdr)(unsafe.Pointer(bp + 232))).Fmsg_flags&int32(MSG_TRUNC) != 0 {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(answers + uintptr(i)*8)) + 2)))&int32(2) != 0 || (*(*Tmsghdr)(unsafe.Pointer(bp + 232))).Fmsg_flags&int32(MSG_TRUNC) != 0 {
*(*int32)(unsafe.Pointer(alens + uintptr(i)*4)) = -int32(1)
_pthread_setcancelstate(tls, int32(PTHREAD_CANCEL_DISABLE), uintptr(0))
r = _start_tcp(tls, pfd+uintptr(i)*8, family, bp+116+uintptr(j)*28, sl, *(*uintptr)(unsafe.Pointer(queries + uintptr(i)*8)), *(*int32)(unsafe.Pointer(qlens + uintptr(i)*4)))
@@ -124243,8 +124256,8 @@ func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, a
}
if int32((*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Frevents)&int32(POLLOUT) != 0 {
*(*[2]Tuint8_t)(unsafe.Pointer(bp + 52)) = [2]Tuint8_t{
- 0: uint8(*(*int32)(unsafe.Pointer(qlens + uintptr(i)*4)) >> int32(8)),
- 1: uint8(*(*int32)(unsafe.Pointer(qlens + uintptr(i)*4))),
+ 0: Uint8FromInt32(*(*int32)(unsafe.Pointer(qlens + uintptr(i)*4)) >> int32(8)),
+ 1: Uint8FromInt32(*(*int32)(unsafe.Pointer(qlens + uintptr(i)*4))),
}
*(*[2]Tiovec)(unsafe.Pointer(bp + 24)) = [2]Tiovec{
0: {
@@ -124253,14 +124266,14 @@ func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, a
},
1: {
Fiov_base: *(*uintptr)(unsafe.Pointer(queries + uintptr(i)*8)),
- Fiov_len: uint64(*(*int32)(unsafe.Pointer(qlens + uintptr(i)*4))),
+ Fiov_len: Uint64FromInt32(*(*int32)(unsafe.Pointer(qlens + uintptr(i)*4))),
},
}
*(*Tmsghdr)(unsafe.Pointer(bp + 288)) = Tmsghdr{
Fmsg_iov: bp + 24,
Fmsg_iovlen: int32(2),
}
- _step_mh(tls, bp+288, uint64(*(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4))))
+ _step_mh(tls, bp+288, Uint64FromInt32(*(*int32)(unsafe.Add(unsafe.Pointer(qpos), i*4))))
r = int32(Xsendmsg(tls, (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd, bp+288, int32(MSG_NOSIGNAL)))
if r < 0 {
goto out
@@ -124288,14 +124301,14 @@ func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, a
},
1: {
Fiov_base: *(*uintptr)(unsafe.Pointer(answers + uintptr(i)*8)),
- Fiov_len: uint64(asize),
+ Fiov_len: Uint64FromInt32(asize),
},
}
*(*Tmsghdr)(unsafe.Pointer(bp + 344)) = Tmsghdr{
Fmsg_iov: bp + 56,
Fmsg_iovlen: int32(2),
}
- _step_mh(tls, bp+344, uint64(*(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4))))
+ _step_mh(tls, bp+344, Uint64FromInt32(*(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4))))
r = int32(Xrecvmsg(tls, (*(*Tpollfd)(unsafe.Add(unsafe.Pointer(pfd), i*8))).Ffd, bp+344, 0))
if r <= 0 {
goto out
@@ -124304,14 +124317,14 @@ func X__res_msend_rc(tls *TLS, nqueries int32, queries uintptr, qlens uintptr, a
if *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < int32(2) {
goto _21
}
- alen = int32(*(*uint8)(unsafe.Pointer(alen_buf + uintptr(i)*2)))*int32(256) + int32(*(*uint8)(unsafe.Pointer(alen_buf + uintptr(i)*2 + 1)))
+ alen = Int32FromUint8(*(*uint8)(unsafe.Pointer(alen_buf + uintptr(i)*2)))*int32(256) + Int32FromUint8(*(*uint8)(unsafe.Pointer(alen_buf + uintptr(i)*2 + 1)))
if alen < int32(13) {
goto out
}
if *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < alen+int32(2) && *(*int32)(unsafe.Add(unsafe.Pointer(apos), i*4)) < asize+int32(2) {
goto _21
}
- rcode = int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(answers + uintptr(i)*8)) + 3))) & int32(15)
+ rcode = Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(answers + uintptr(i)*8)) + 3))) & int32(15)
if rcode != 0 && rcode != int32(3) {
goto out
}
@@ -124389,7 +124402,7 @@ func X__res_send(tls *TLS, _msg uintptr, _msglen int32, _answer uintptr, _anslen
} else {
v1 = *(*int32)(unsafe.Pointer(bp + 24))
}
- Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(bp + 16)), bp+28, uint64(v1))
+ Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(bp + 16)), bp+28, Uint64FromInt32(v1))
}
return r
}
@@ -124467,8 +124480,8 @@ func X__get_resolv_conf(tls *TLS, conf uintptr, search uintptr, search_sz Tsize_
continue
}
if v4 = !(Xstrncmp(tls, bp, __ccgo_ts+1166, uint64(7)) != 0); v4 {
- v1 = int32((*(*[256]uint8)(unsafe.Pointer(bp)))[int32(7)])
- v2 = BoolInt32(v1 == int32(' ') || uint32(v1)-uint32('\t') < uint32(5))
+ v1 = Int32FromUint8((*(*[256]uint8)(unsafe.Pointer(bp)))[int32(7)])
+ v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5))
goto _3
_3:
}
@@ -124500,7 +124513,7 @@ func X__get_resolv_conf(tls *TLS, conf uintptr, search uintptr, search_sz Tsize_
}
}
p = Xstrstr(tls, bp, __ccgo_ts+1191)
- if p != 0 && (BoolInt32(uint32(*(*uint8)(unsafe.Pointer(p + 8)))-uint32('0') < uint32(10)) != 0 || int32(*(*uint8)(unsafe.Pointer(p + 8))) == int32('.')) {
+ if p != 0 && (BoolInt32(uint32(*(*uint8)(unsafe.Pointer(p + 8)))-uint32('0') < uint32(10)) != 0 || Int32FromUint8(*(*uint8)(unsafe.Pointer(p + 8))) == int32('.')) {
p += uintptr(8)
x2 = Xstrtoul(tls, p, bp+744, int32(10))
if *(*uintptr)(unsafe.Pointer(bp + 744)) != p {
@@ -124515,8 +124528,8 @@ func X__get_resolv_conf(tls *TLS, conf uintptr, search uintptr, search_sz Tsize_
continue
}
if v11 = !(Xstrncmp(tls, bp, __ccgo_ts+1200, uint64(10)) != 0); v11 {
- v8 = int32((*(*[256]uint8)(unsafe.Pointer(bp)))[int32(10)])
- v9 = BoolInt32(v8 == int32(' ') || uint32(v8)-uint32('\t') < uint32(5))
+ v8 = Int32FromUint8((*(*[256]uint8)(unsafe.Pointer(bp)))[int32(10)])
+ v9 = BoolInt32(v8 == int32(' ') || Uint32FromInt32(v8)-uint32('\t') < uint32(5))
goto _10
_10:
}
@@ -124526,8 +124539,8 @@ func X__get_resolv_conf(tls *TLS, conf uintptr, search uintptr, search_sz Tsize_
}
p = bp + uintptr(11)
for {
- v13 = int32(*(*uint8)(unsafe.Pointer(p)))
- v14 = BoolInt32(v13 == int32(' ') || uint32(v13)-uint32('\t') < uint32(5))
+ v13 = Int32FromUint8(*(*uint8)(unsafe.Pointer(p)))
+ v14 = BoolInt32(v13 == int32(' ') || Uint32FromInt32(v13)-uint32('\t') < uint32(5))
goto _15
_15:
if !(v14 != 0) {
@@ -124541,8 +124554,8 @@ func X__get_resolv_conf(tls *TLS, conf uintptr, search uintptr, search_sz Tsize_
*(*uintptr)(unsafe.Pointer(bp + 744)) = p
for {
if v20 = *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 744)))) != 0; v20 {
- v17 = int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 744)))))
- v18 = BoolInt32(v17 == int32(' ') || uint32(v17)-uint32('\t') < uint32(5))
+ v17 = Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 744)))))
+ v18 = BoolInt32(v17 == int32(' ') || Uint32FromInt32(v17)-uint32('\t') < uint32(5))
goto _19
_19:
}
@@ -124564,8 +124577,8 @@ func X__get_resolv_conf(tls *TLS, conf uintptr, search uintptr, search_sz Tsize_
continue
}
if v24 = Xstrncmp(tls, bp, __ccgo_ts+1211, uint64(6)) != 0 && Xstrncmp(tls, bp, __ccgo_ts+1218, uint64(6)) != 0; !v24 {
- v21 = int32((*(*[256]uint8)(unsafe.Pointer(bp)))[int32(6)])
- v22 = BoolInt32(v21 == int32(' ') || uint32(v21)-uint32('\t') < uint32(5))
+ v21 = Int32FromUint8((*(*[256]uint8)(unsafe.Pointer(bp)))[int32(6)])
+ v22 = BoolInt32(v21 == int32(' ') || Uint32FromInt32(v21)-uint32('\t') < uint32(5))
goto _23
_23:
}
@@ -124574,8 +124587,8 @@ func X__get_resolv_conf(tls *TLS, conf uintptr, search uintptr, search_sz Tsize_
}
p = bp + uintptr(7)
for {
- v26 = int32(*(*uint8)(unsafe.Pointer(p)))
- v27 = BoolInt32(v26 == int32(' ') || uint32(v26)-uint32('\t') < uint32(5))
+ v26 = Int32FromUint8(*(*uint8)(unsafe.Pointer(p)))
+ v27 = BoolInt32(v26 == int32(' ') || Uint32FromInt32(v26)-uint32('\t') < uint32(5))
goto _28
_28:
if !(v27 != 0) {
@@ -124601,7 +124614,7 @@ no_resolv_conf:
X__lookup_ipliteral(tls, conf, __ccgo_ts+1225, PF_UNSPEC)
nns = int32(1)
}
- (*Tresolvconf)(unsafe.Pointer(conf)).Fnns = uint32(nns)
+ (*Tresolvconf)(unsafe.Pointer(conf)).Fnns = Uint32FromInt32(nns)
return 0
}
@@ -124629,18 +124642,18 @@ func Xsendmmsg(tls *TLS, fd int32, msgvec uintptr, vlen uint32, flags uint32) (r
}
i = 0
for {
- if !(uint32(i) < vlen) {
+ if !(Uint32FromInt32(i) < vlen) {
break
}
/* As an unfortunate inconsistency, the sendmmsg API uses
* unsigned int for the resulting msg_len, despite sendmsg
* returning ssize_t. However Linux limits the total bytes
* sent by sendmsg to INT_MAX, so the assignment is safe. */
- r = Xsendmsg(tls, fd, msgvec+uintptr(i)*64, int32(flags))
+ r = Xsendmsg(tls, fd, msgvec+uintptr(i)*64, Int32FromUint32(flags))
if r < 0 {
goto error
}
- (*(*Tmmsghdr)(unsafe.Pointer(msgvec + uintptr(i)*64))).Fmsg_len = uint32(r)
+ (*(*Tmmsghdr)(unsafe.Pointer(msgvec + uintptr(i)*64))).Fmsg_len = Uint32FromInt64(r)
goto _1
_1:
;
@@ -124699,10 +124712,10 @@ func Xsendmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r1 Tssize_t) {
goto _2
_2:
;
- if uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len)+uint64(8)-uint64(1))&uint64(^int64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= uint64(int64((*Tmsghdr)(unsafe.Pointer(bp)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(bp)).Fmsg_controllen))-int64(c1)) {
+ if uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len) < uint64(16) || (uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len)+uint64(8)-uint64(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1)))+uint64(16) >= Uint64FromInt64(int64((*Tmsghdr)(unsafe.Pointer(bp)).Fmsg_control+uintptr((*Tmsghdr)(unsafe.Pointer(bp)).Fmsg_controllen))-int64(c1)) {
v4 = uintptr(0)
} else {
- v4 = c1 + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&uint64(^int64(Uint64FromInt64(8)-Uint64FromInt32(1))))
+ v4 = c1 + uintptr((uint64((*Tcmsghdr)(unsafe.Pointer(c1)).Fcmsg_len)+Uint64FromInt64(8)-Uint64FromInt32(1))&Uint64FromInt64(^Int64FromUint64(Uint64FromInt64(8)-Uint64FromInt32(1))))
}
c1 = v4
}
@@ -124728,7 +124741,7 @@ func Xsendmsg(tls *TLS, fd int32, msg uintptr, flags int32) (r1 Tssize_t) {
v12 = r
goto _13
_13:
- return X__syscall_ret(tls, uint64(v12))
+ return X__syscall_ret(tls, Uint64FromInt64(v12))
}
func Xsendto(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr uintptr, alen Tsocklen_t) (r1 Tssize_t) {
@@ -124744,10 +124757,10 @@ func Xsendto(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr ui
_ = int32(__SC_sendto)
v2 = int64(fd)
v3 = int64(buf)
- v4 = int64(len1)
+ v4 = Int64FromUint64(len1)
v5 = int64(flags)
v6 = int64(addr)
- v7 = int64(alen)
+ v7 = Int64FromUint32(alen)
if int32(1) != 0 {
r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7)
} else {
@@ -124760,7 +124773,7 @@ func Xsendto(tls *TLS, fd int32, buf uintptr, len1 Tsize_t, flags int32, addr ui
v8 = r
goto _9
_9:
- return X__syscall_ret(tls, uint64(v8))
+ return X__syscall_ret(tls, Uint64FromInt64(v8))
}
func Xendservent(tls *TLS) {
@@ -124804,7 +124817,7 @@ func Xsetsockopt(tls *TLS, fd int32, level int32, optname int32, optval uintptr,
v3 = int64(level)
v4 = int64(optname)
v5 = int64(optval)
- v6 = int64(optlen)
+ v6 = Int64FromUint32(optlen)
v7 = int64(Int32FromInt32(0))
if 0 != 0 {
r = ___syscall_cp(tls, int64(v1), v2, v3, v4, v5, v6, v7)
@@ -124830,13 +124843,13 @@ _9:
break
}
if uint64(optlen) < uint64(16) {
- return int32(X__syscall_ret(tls, uint64(-Int32FromInt32(EINVAL))))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL))))
}
tv = optval
s = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_sec
us = (*Ttimeval)(unsafe.Pointer(tv)).Ftv_usec
- if !!((uint64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) {
- return int32(X__syscall_ret(tls, uint64(-Int32FromInt32(EOPNOTSUPP))))
+ if !!((Uint64FromInt64(s)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) {
+ return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP))))
}
if optname == int32(SO_RCVTIMEO) {
optname = int32(SO_RCVTIMEO_OLD)
@@ -124844,14 +124857,14 @@ _9:
if optname == int32(SO_SNDTIMEO) {
optname = int32(SO_SNDTIMEO_OLD)
}
- if !((uint64(us)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) {
- v10 = uint64(us)
+ if !((Uint64FromInt64(us)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) {
+ v10 = Uint64FromInt64(us)
} else {
- v10 = uint64(0x7fffffff) + (0+uint64(us))>>int32(63)
+ v10 = uint64(0x7fffffff) + (0+Uint64FromInt64(us))>>int32(63)
}
*(*[2]int64)(unsafe.Pointer(bp)) = [2]int64{
0: s,
- 1: int64(int32(v10)),
+ 1: int64(Int32FromUint64(v10)),
}
v11 = int32(SYS_setsockopt)
_ = int32(__SC_setsockopt)
@@ -124859,7 +124872,7 @@ _9:
v13 = int64(level)
v14 = int64(optname)
v15 = int64(bp)
- v16 = int64(Uint64FromInt32(2) * Uint64FromInt64(8))
+ v16 = Int64FromUint64(Uint64FromInt32(2) * Uint64FromInt64(8))
v17 = int64(Int32FromInt32(0))
if 0 != 0 {
r = ___syscall_cp(tls, int64(v11), v12, v13, v14, v15, v16, v17)
@@ -124892,7 +124905,7 @@ _9:
v22 = int64(level)
v23 = int64(optname)
v24 = int64(optval)
- v25 = int64(optlen)
+ v25 = Int64FromUint32(optlen)
v26 = int64(Int32FromInt32(0))
if 0 != 0 {
r = ___syscall_cp(tls, int64(v20), v21, v22, v23, v24, v25, v26)
@@ -124911,7 +124924,7 @@ _9:
}
}
}
- return int32(X__syscall_ret(tls, uint64(r1)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r1)))
}
func Xshutdown(tls *TLS, fd int32, how int32) (r1 int32) {
@@ -124943,7 +124956,7 @@ func Xshutdown(tls *TLS, fd int32, how int32) (r1 int32) {
v8 = r
goto _9
_9:
- return int32(X__syscall_ret(tls, uint64(v8)))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(v8)))
}
func Xsockatmark(tls *TLS, s int32) (r int32) {
@@ -125013,7 +125026,7 @@ _9:
_18:
s = int32(v17)
if s < 0 {
- return int32(X__syscall_ret(tls, uint64(s)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(s)))
}
if type1&int32(SOCK_CLOEXEC) != 0 {
X__syscall3(tls, int64(SYS_fcntl), int64(s), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC)))
@@ -125022,7 +125035,7 @@ _9:
X__syscall3(tls, int64(SYS_fcntl), int64(s), int64(Int32FromInt32(F_SETFL)), int64(Int32FromInt32(O_NONBLOCK)))
}
}
- return int32(X__syscall_ret(tls, uint64(s)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(s)))
}
func Xsocketpair(tls *TLS, domain int32, type1 int32, protocol int32, fd uintptr) (r2 int32) {
@@ -125054,7 +125067,7 @@ func Xsocketpair(tls *TLS, domain int32, type1 int32, protocol int32, fd uintptr
v8 = r
goto _9
_9:
- r1 = int32(X__syscall_ret(tls, uint64(v8)))
+ r1 = int32(X__syscall_ret(tls, Uint64FromInt64(v8)))
if r1 < 0 && (*(*int32)(unsafe.Pointer(X__errno_location(tls))) == int32(EINVAL) || *(*int32)(unsafe.Pointer(X__errno_location(tls))) == int32(EPROTONOSUPPORT)) && type1&(Int32FromInt32(SOCK_CLOEXEC)|Int32FromInt32(SOCK_NONBLOCK)) != 0 {
v10 = int32(SYS_socketpair)
_ = int32(__SC_socketpair)
@@ -125076,7 +125089,7 @@ _9:
v17 = r
goto _18
_18:
- r1 = int32(X__syscall_ret(tls, uint64(v17)))
+ r1 = int32(X__syscall_ret(tls, Uint64FromInt64(v17)))
if r1 < 0 {
return r1
}
@@ -125273,11 +125286,11 @@ func X__getgr_a(tls *TLS, name uintptr, gid Tgid_t, gr uintptr, buf uintptr, siz
rv = int32(EIO)
goto cleanup_f
}
- if uint64((*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRNAMELEN)]) > uint64(0xffffffffffffffff)-uint64((*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRPASSWDLEN)]) {
+ if Uint64FromInt32((*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRNAMELEN)]) > uint64(0xffffffffffffffff)-Uint64FromInt32((*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRPASSWDLEN)]) {
rv = int32(ENOMEM)
goto cleanup_f
}
- len1 = uint64((*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRNAMELEN)] + (*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRPASSWDLEN)])
+ len1 = Uint64FromInt32((*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRNAMELEN)] + (*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRPASSWDLEN)])
i = 0
for {
if !(i < (*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRMEMCNT)]) {
@@ -125328,18 +125341,18 @@ func X__getgr_a(tls *TLS, name uintptr, gid Tgid_t, gr uintptr, buf uintptr, siz
rv = v8
goto cleanup_f
}
- if uint64((*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRMEMCNT)]+int32(1)) > *(*Tsize_t)(unsafe.Pointer(nmem)) {
- if uint64((*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRMEMCNT)]+int32(1)) > Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt64(8) {
+ if Uint64FromInt32((*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRMEMCNT)]+int32(1)) > *(*Tsize_t)(unsafe.Pointer(nmem)) {
+ if Uint64FromInt32((*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRMEMCNT)]+int32(1)) > Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt64(8) {
rv = int32(ENOMEM)
goto cleanup_f
}
- tmp1 = Xrealloc(tls, *(*uintptr)(unsafe.Pointer(mem)), uint64((*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRMEMCNT)]+Int32FromInt32(1))*uint64(8))
+ tmp1 = Xrealloc(tls, *(*uintptr)(unsafe.Pointer(mem)), Uint64FromInt32((*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRMEMCNT)]+Int32FromInt32(1))*uint64(8))
if !(tmp1 != 0) {
rv = *(*int32)(unsafe.Pointer(X__errno_location(tls)))
goto cleanup_f
}
*(*uintptr)(unsafe.Pointer(mem)) = tmp1
- *(*Tsize_t)(unsafe.Pointer(nmem)) = uint64((*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRMEMCNT)] + int32(1))
+ *(*Tsize_t)(unsafe.Pointer(nmem)) = Uint64FromInt32((*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRMEMCNT)] + int32(1))
}
if (*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRMEMCNT)] != 0 {
*(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(mem)))) = *(*uintptr)(unsafe.Pointer(buf)) + uintptr((*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRNAMELEN)]) + uintptr((*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRPASSWDLEN)])
@@ -125369,7 +125382,7 @@ func X__getgr_a(tls *TLS, name uintptr, gid Tgid_t, gr uintptr, buf uintptr, siz
}
(*Tgroup)(unsafe.Pointer(gr)).Fgr_name = *(*uintptr)(unsafe.Pointer(buf))
(*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd = (*Tgroup)(unsafe.Pointer(gr)).Fgr_name + uintptr((*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRNAMELEN)])
- (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid = uint32((*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRGID)])
+ (*Tgroup)(unsafe.Pointer(gr)).Fgr_gid = Uint32FromInt32((*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRGID)])
(*Tgroup)(unsafe.Pointer(gr)).Fgr_mem = *(*uintptr)(unsafe.Pointer(mem))
if *(*uint8)(unsafe.Pointer((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd + uintptr(-Int32FromInt32(1)))) != 0 || *(*uint8)(unsafe.Pointer((*Tgroup)(unsafe.Pointer(gr)).Fgr_passwd + uintptr((*(*[6]Tint32_t)(unsafe.Pointer(bp + 4)))[int32(GRPASSWDLEN)]-int32(1)))) != 0 {
rv = int32(EIO)
@@ -125544,10 +125557,10 @@ func _atou(tls *TLS, s uintptr) (r uint32) {
_ = x
x = uint32(0)
for {
- if !(uint32(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(s)))))-int32('0')) < uint32(10)) {
+ if !(Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(s)))))-int32('0')) < uint32(10)) {
break
}
- x = uint32(10)*x + uint32(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(s)))))-Int32FromUint8('0'))
+ x = uint32(10)*x + Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(s)))))-Int32FromUint8('0'))
goto _1
_1:
;
@@ -125610,7 +125623,7 @@ func X__getgrent_a(tls *TLS, f uintptr, gr uintptr, line uintptr, size uintptr,
*(*uintptr)(unsafe.Pointer(bp))++
*(*uint8)(unsafe.Pointer(v8)) = uint8(0)
(*Tgroup)(unsafe.Pointer(gr)).Fgr_gid = _atou(tls, bp)
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != int32(':') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != int32(':') {
goto _1
}
v9 = *(*uintptr)(unsafe.Pointer(bp))
@@ -125626,7 +125639,7 @@ func X__getgrent_a(tls *TLS, f uintptr, gr uintptr, line uintptr, size uintptr,
if !(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))) != 0) {
break
}
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) == int32(',') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) == int32(',') {
*(*Tsize_t)(unsafe.Pointer(nmem))++
}
goto _10
@@ -125651,7 +125664,7 @@ func X__getgrent_a(tls *TLS, f uintptr, gr uintptr, line uintptr, size uintptr,
if !(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))) != 0) {
break
}
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) == int32(',') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) == int32(',') {
v12 = *(*uintptr)(unsafe.Pointer(bp))
*(*uintptr)(unsafe.Pointer(bp))++
*(*uint8)(unsafe.Pointer(v12)) = uint8(0)
@@ -125722,11 +125735,11 @@ func Xgetgrouplist(tls *TLS, user uintptr, gid Tgid_t, groups uintptr, ngroups u
goto cleanup
}
if (*(*[3]Tint32_t)(unsafe.Pointer(bp + 44)))[int32(INITGRFOUND)] != 0 {
- nscdbuf = Xcalloc(tls, uint64((*(*[3]Tint32_t)(unsafe.Pointer(bp + 44)))[int32(INITGRNGRPS)]), uint64(4))
+ nscdbuf = Xcalloc(tls, Uint64FromInt32((*(*[3]Tint32_t)(unsafe.Pointer(bp + 44)))[int32(INITGRNGRPS)]), uint64(4))
if !(nscdbuf != 0) {
goto cleanup
}
- nbytes = uint64(4) * uint64((*(*[3]Tint32_t)(unsafe.Pointer(bp + 44)))[int32(INITGRNGRPS)])
+ nbytes = uint64(4) * Uint64FromInt32((*(*[3]Tint32_t)(unsafe.Pointer(bp + 44)))[int32(INITGRNGRPS)])
if nbytes != 0 && !(Xfread(tls, nscdbuf, nbytes, uint64(1), f) != 0) {
if !(Xferror(tls, f) != 0) {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EIO)
@@ -125937,11 +125950,11 @@ func X__getpw_a(tls *TLS, name uintptr, uid Tuid_t, pw uintptr, buf uintptr, siz
rv = int32(EIO)
goto cleanup_f
}
- if uint64((*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWNAMELEN)]|(*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWPASSWDLEN)]|(*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWGECOSLEN)]|(*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWDIRLEN)]|(*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWSHELLLEN)]) >= Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt32(8) {
+ if Uint64FromInt32((*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWNAMELEN)]|(*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWPASSWDLEN)]|(*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWGECOSLEN)]|(*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWDIRLEN)]|(*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWSHELLLEN)]) >= Uint64FromUint64(0xffffffffffffffff)/Uint64FromInt32(8) {
rv = int32(ENOMEM)
goto cleanup_f
}
- len1 = uint64((*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWNAMELEN)] + (*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWPASSWDLEN)] + (*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWGECOSLEN)] + (*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWDIRLEN)] + (*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWSHELLLEN)])
+ len1 = Uint64FromInt32((*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWNAMELEN)] + (*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWPASSWDLEN)] + (*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWGECOSLEN)] + (*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWDIRLEN)] + (*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWSHELLLEN)])
if len1 > *(*Tsize_t)(unsafe.Pointer(size)) || !(*(*uintptr)(unsafe.Pointer(buf)) != 0) {
tmp = Xrealloc(tls, *(*uintptr)(unsafe.Pointer(buf)), len1)
if !(tmp != 0) {
@@ -125965,8 +125978,8 @@ func X__getpw_a(tls *TLS, name uintptr, uid Tuid_t, pw uintptr, buf uintptr, siz
(*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_passwd + uintptr((*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWPASSWDLEN)])
(*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gecos + uintptr((*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWGECOSLEN)])
(*Tpasswd)(unsafe.Pointer(pw)).Fpw_shell = (*Tpasswd)(unsafe.Pointer(pw)).Fpw_dir + uintptr((*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWDIRLEN)])
- (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid = uint32((*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWUID)])
- (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid = uint32((*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWGID)])
+ (*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid = Uint32FromInt32((*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWUID)])
+ (*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid = Uint32FromInt32((*(*[9]Tint32_t)(unsafe.Pointer(bp + 8)))[int32(PWGID)])
/* Don't assume that nscd made sure to null terminate strings.
* It's supposed to, but malicious nscd should be ignored
* rather than causing a crash.
@@ -126114,10 +126127,10 @@ func _atou1(tls *TLS, s uintptr) (r uint32) {
_ = x
x = uint32(0)
for {
- if !(uint32(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(s)))))-int32('0')) < uint32(10)) {
+ if !(Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(s)))))-int32('0')) < uint32(10)) {
break
}
- x = uint32(10)*x + uint32(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(s)))))-Int32FromUint8('0'))
+ x = uint32(10)*x + Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(s)))))-Int32FromUint8('0'))
goto _1
_1:
;
@@ -126179,14 +126192,14 @@ func X__getpwent_a(tls *TLS, f uintptr, pw uintptr, line uintptr, size uintptr,
*(*uintptr)(unsafe.Pointer(bp))++
*(*uint8)(unsafe.Pointer(v8)) = uint8(0)
(*Tpasswd)(unsafe.Pointer(pw)).Fpw_uid = _atou1(tls, bp)
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != int32(':') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != int32(':') {
goto _1
}
v9 = *(*uintptr)(unsafe.Pointer(bp))
*(*uintptr)(unsafe.Pointer(bp))++
*(*uint8)(unsafe.Pointer(v9)) = uint8(0)
(*Tpasswd)(unsafe.Pointer(pw)).Fpw_gid = _atou1(tls, bp)
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != int32(':') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != int32(':') {
goto _1
}
v10 = *(*uintptr)(unsafe.Pointer(bp))
@@ -126285,7 +126298,7 @@ func X__nscd_query(tls *TLS, req Tint32_t, key uintptr, buf uintptr, len1 Tsize_
*(*[3]Tint32_t)(unsafe.Pointer(bp + 32)) = [3]Tint32_t{
0: int32(NSCDVERSION),
1: req,
- 2: int32(Xstrnlen(tls, key, uint64(LOGIN_NAME_MAX)) + uint64(1)),
+ 2: Int32FromUint64(Xstrnlen(tls, key, uint64(LOGIN_NAME_MAX)) + uint64(1)),
}
*(*[2]Tiovec)(unsafe.Pointer(bp)) = [2]Tiovec{
0: {
@@ -126358,11 +126371,11 @@ retry:
if !(i < Uint64FromInt64(12)/Uint64FromInt64(4)) {
break
}
- v3 = uint32((*(*[3]Tint32_t)(unsafe.Pointer(bp + 32)))[i])
+ v3 = Uint32FromInt32((*(*[3]Tint32_t)(unsafe.Pointer(bp + 32)))[i])
v4 = v3>>int32(24) | v3>>int32(8)&uint32(0xff00) | v3<<int32(8)&uint32(0xff0000) | v3<<int32(24)
goto _5
_5:
- (*(*[3]Tint32_t)(unsafe.Pointer(bp + 32)))[i] = int32(v4)
+ (*(*[3]Tint32_t)(unsafe.Pointer(bp + 32)))[i] = Int32FromUint32(v4)
goto _2
_2:
;
@@ -126381,11 +126394,11 @@ retry:
if !(i < len1/uint64(4)) {
break
}
- v7 = uint32(*(*Tint32_t)(unsafe.Pointer(buf + uintptr(i)*4)))
+ v7 = Uint32FromInt32(*(*Tint32_t)(unsafe.Pointer(buf + uintptr(i)*4)))
v8 = v7>>int32(24) | v7>>int32(8)&uint32(0xff00) | v7<<int32(8)&uint32(0xff0000) | v7<<int32(24)
goto _9
_9:
- *(*Tint32_t)(unsafe.Pointer(buf + uintptr(i)*4)) = int32(v8)
+ *(*Tint32_t)(unsafe.Pointer(buf + uintptr(i)*4)) = Int32FromUint32(v8)
goto _6
_6:
;
@@ -126559,12 +126572,12 @@ func Xputspent(tls *TLS, sp uintptr, f uintptr) (r int32) {
} else {
v15 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_expire
}
- if (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag == uint64(-Int32FromInt32(1)) {
+ if (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag == Uint64FromInt32(-Int32FromInt32(1)) {
v16 = 0
} else {
v16 = -int32(1)
}
- if (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag == uint64(-Int32FromInt32(1)) {
+ if (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag == Uint64FromInt32(-Int32FromInt32(1)) {
v17 = uint64(0)
} else {
v17 = (*Tspwd)(unsafe.Pointer(sp)).Fsp_flag
@@ -126635,7 +126648,7 @@ func Xnrand48(tls *TLS, s uintptr) (r int64) {
trc("tls=%v s=%v, (%v:)", tls, s, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int64(X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2) >> int32(17))
+ return Int64FromUint64(X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2) >> int32(17))
}
func Xlrand48(tls *TLS) (r int64) {
@@ -126651,7 +126664,7 @@ func Xjrand48(tls *TLS, s uintptr) (r int64) {
trc("tls=%v s=%v, (%v:)", tls, s, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int64(int32(X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2) >> Int32FromInt32(16)))
+ return int64(Int32FromUint64(X__rand48_step(tls, s, uintptr(unsafe.Pointer(&X__seed48))+uintptr(3)*2) >> Int32FromInt32(16)))
}
func Xmrand48(tls *TLS) (r int64) {
@@ -126677,7 +126690,7 @@ func Xrand(tls *TLS) (r int32) {
defer func() { trc("-> %v", r) }()
}
_seed = uint64(6364136223846793005)*_seed + uint64(1)
- return int32(_seed >> int32(33))
+ return Int32FromUint64(_seed >> int32(33))
}
func _temper(tls *TLS, x uint32) (r uint32) {
@@ -126697,7 +126710,7 @@ func Xrand_r(tls *TLS, seed uintptr) (r int32) {
_ = v1
v1 = *(*uint32)(unsafe.Pointer(seed))*Uint32FromInt32(1103515245) + Uint32FromInt32(12345)
*(*uint32)(unsafe.Pointer(seed)) = v1
- return int32(_temper(tls, v1) / uint32(2))
+ return Int32FromUint32(_temper(tls, v1) / uint32(2))
}
/*
@@ -126755,15 +126768,15 @@ func _lcg64(tls *TLS, x Tuint64_t) (r Tuint64_t) {
}
func _savestate(tls *TLS) (r uintptr) {
- *(*Tuint32_t)(unsafe.Pointer(_x1 + uintptr(-Int32FromInt32(1))*4)) = uint32(_n<<int32(16) | _i<<int32(8) | _j)
+ *(*Tuint32_t)(unsafe.Pointer(_x1 + uintptr(-Int32FromInt32(1))*4)) = Uint32FromInt32(_n<<int32(16) | _i<<int32(8) | _j)
return _x1 - uintptr(1)*4
}
func _loadstate(tls *TLS, state uintptr) {
_x1 = state + uintptr(1)*4
- _n = int32(*(*Tuint32_t)(unsafe.Pointer(_x1 + uintptr(-Int32FromInt32(1))*4)) >> int32(16))
- _i = int32(*(*Tuint32_t)(unsafe.Pointer(_x1 + uintptr(-Int32FromInt32(1))*4)) >> Int32FromInt32(8) & uint32(0xff))
- _j = int32(*(*Tuint32_t)(unsafe.Pointer(_x1 + uintptr(-Int32FromInt32(1))*4)) & uint32(0xff))
+ _n = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(_x1 + uintptr(-Int32FromInt32(1))*4)) >> int32(16))
+ _i = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(_x1 + uintptr(-Int32FromInt32(1))*4)) >> Int32FromInt32(8) & uint32(0xff))
+ _j = Int32FromUint32(*(*Tuint32_t)(unsafe.Pointer(_x1 + uintptr(-Int32FromInt32(1))*4)) & uint32(0xff))
}
func ___srandom(tls *TLS, seed uint32) {
@@ -126870,11 +126883,11 @@ func Xrandom(tls *TLS) (r int64) {
if _n == 0 {
v1 = _lcg31(tls, *(*Tuint32_t)(unsafe.Pointer(_x1)))
*(*Tuint32_t)(unsafe.Pointer(_x1)) = v1
- k = int64(v1)
+ k = Int64FromUint32(v1)
goto end
}
*(*Tuint32_t)(unsafe.Pointer(_x1 + uintptr(_i)*4)) += *(*Tuint32_t)(unsafe.Pointer(_x1 + uintptr(_j)*4))
- k = int64(*(*Tuint32_t)(unsafe.Pointer(_x1 + uintptr(_i)*4)) >> int32(1))
+ k = Int64FromUint32(*(*Tuint32_t)(unsafe.Pointer(_x1 + uintptr(_i)*4)) >> int32(1))
_i++
v2 = _i
if v2 == _n {
@@ -126912,8 +126925,8 @@ func Xsrand48(tls *TLS, seed int64) {
defer tls.Free(16)
*(*[3]uint16)(unsafe.Pointer(bp)) = [3]uint16{
0: uint16(0x330e),
- 1: uint16(seed),
- 2: uint16(seed >> int32(16)),
+ 1: Uint16FromInt64(seed),
+ 2: Uint16FromInt64(seed >> int32(16)),
}
Xseed48(tls, bp)
}
@@ -126941,7 +126954,7 @@ func Xexecl(tls *TLS, path uintptr, argv0 uintptr, va uintptr) (r int32) {
argc++
}
_ = ap
- v2 = uint64(argc+int32(1)) * 8
+ v2 = Uint64FromInt32(argc+int32(1)) * 8
argv = Xrealloc(tls, argv, v2)
ap = va
*(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*8)) = argv0
@@ -126985,7 +126998,7 @@ func Xexecle(tls *TLS, path uintptr, argv0 uintptr, va uintptr) (r int32) {
argc++
}
_ = ap
- v2 = uint64(argc+int32(1)) * 8
+ v2 = Uint64FromInt32(argc+int32(1)) * 8
argv = Xrealloc(tls, argv, v2)
ap = va
*(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*8)) = argv0
@@ -127029,7 +127042,7 @@ func Xexeclp(tls *TLS, file uintptr, argv0 uintptr, va uintptr) (r int32) {
argc++
}
_ = ap
- v2 = uint64(argc+int32(1)) * 8
+ v2 = Uint64FromInt32(argc+int32(1)) * 8
argv = Xrealloc(tls, argv, v2)
ap = va
*(*uintptr)(unsafe.Add(unsafe.Pointer(argv), 0*8)) = argv0
@@ -127064,7 +127077,7 @@ func Xexecve(tls *TLS, path uintptr, argv uintptr, envp uintptr) (r int32) {
defer func() { trc("-> %v", r) }()
}
/* do we need to use environ if envp is null? */
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_execve), int64(path), int64(argv), int64(envp)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_execve), int64(path), int64(argv), int64(envp)))))
}
func X__execvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) {
@@ -127090,18 +127103,18 @@ func X__execvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) {
if !(path != 0) {
path = __ccgo_ts + 1366
}
- k = Xstrnlen(tls, file, uint64(Int32FromInt32(NAME_MAX)+Int32FromInt32(1)))
+ k = Xstrnlen(tls, file, Uint64FromInt32(Int32FromInt32(NAME_MAX)+Int32FromInt32(1)))
if k > uint64(NAME_MAX) {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(ENAMETOOLONG)
return -int32(1)
}
- l = Xstrnlen(tls, path, uint64(Int32FromInt32(PATH_MAX)-Int32FromInt32(1))) + uint64(1)
+ l = Xstrnlen(tls, path, Uint64FromInt32(Int32FromInt32(PATH_MAX)-Int32FromInt32(1))) + uint64(1)
p = path
for {
v2 = l + k + uint64(1)
b = Xrealloc(tls, b, v2)
z = X__strchrnul(tls, p, int32(':'))
- if uint64(int64(z)-int64(p)) >= l {
+ if Uint64FromInt64(int64(z)-int64(p)) >= l {
v3 = z
z++
if !(*(*uint8)(unsafe.Pointer(v3)) != 0) {
@@ -127109,7 +127122,7 @@ func X__execvpe(tls *TLS, file uintptr, argv uintptr, envp uintptr) (r int32) {
}
goto _1
}
- Xmemcpy(tls, b, p, uint64(int64(z)-int64(p)))
+ Xmemcpy(tls, b, p, Uint64FromInt64(int64(z)-int64(p)))
*(*uint8)(unsafe.Add(unsafe.Pointer(b), int64(z)-int64(p))) = uint8('/')
Xmemcpy(tls, b+uintptr(int64(z)-int64(p))+BoolUintptr(z > p), file, k+uint64(1))
Xexecve(tls, b, argv, envp)
@@ -127167,9 +127180,9 @@ func Xfexecve(tls *TLS, fd int32, argv uintptr, envp uintptr) (r1 int32) {
_ = r
r = int32(X__syscall5(tls, int64(SYS_execveat), int64(fd), int64(__ccgo_ts), int64(argv), int64(envp), int64(Int32FromInt32(AT_EMPTY_PATH))))
if r != -int32(ENOSYS) {
- return int32(X__syscall_ret(tls, uint64(r)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r)))
}
- X__procfdname(tls, bp, uint32(fd))
+ X__procfdname(tls, bp, Uint32FromInt32(fd))
Xexecve(tls, bp, argv, envp)
if *(*int32)(unsafe.Pointer(X__errno_location(tls))) == int32(ENOENT) {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EBADF)
@@ -127488,8 +127501,8 @@ func Xposix_spawnattr_setflags(tls *TLS, attr uintptr, flags int16) (r int32) {
}
var all_flags uint32
_ = all_flags
- all_flags = uint32(Int32FromInt32(POSIX_SPAWN_RESETIDS) | Int32FromInt32(POSIX_SPAWN_SETPGROUP) | Int32FromInt32(POSIX_SPAWN_SETSIGDEF) | Int32FromInt32(POSIX_SPAWN_SETSIGMASK) | Int32FromInt32(POSIX_SPAWN_SETSCHEDPARAM) | Int32FromInt32(POSIX_SPAWN_SETSCHEDULER) | Int32FromInt32(POSIX_SPAWN_USEVFORK) | Int32FromInt32(POSIX_SPAWN_SETSID))
- if uint32(flags) & ^all_flags != 0 {
+ all_flags = Uint32FromInt32(Int32FromInt32(POSIX_SPAWN_RESETIDS) | Int32FromInt32(POSIX_SPAWN_SETPGROUP) | Int32FromInt32(POSIX_SPAWN_SETSIGDEF) | Int32FromInt32(POSIX_SPAWN_SETSIGMASK) | Int32FromInt32(POSIX_SPAWN_SETSCHEDPARAM) | Int32FromInt32(POSIX_SPAWN_SETSCHEDULER) | Int32FromInt32(POSIX_SPAWN_USEVFORK) | Int32FromInt32(POSIX_SPAWN_SETSID))
+ if Uint32FromInt16(flags) & ^all_flags != 0 {
return int32(EINVAL)
}
(*Tposix_spawnattr_t)(unsafe.Pointer(attr)).F__flags = int32(flags)
@@ -127529,8 +127542,9 @@ func Xvfork(tls *TLS) (r Tpid_t) {
defer func() { trc("-> %v", r) }()
}
/* vfork syscall cannot be made from C code */
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_clone), int64(Int32FromInt32(SIGCHLD)), int64(Int32FromInt32(0))))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clone), int64(Int32FromInt32(SIGCHLD)), int64(Int32FromInt32(0))))))
}
+
func Xwait(tls *TLS, status uintptr) (r Tpid_t) {
if __ccgo_strace {
trc("tls=%v status=%v, (%v:)", tls, status, origin(2))
@@ -127544,7 +127558,7 @@ func Xwaitid(tls *TLS, type1 Tidtype_t, id Tid_t, info uintptr, options int32) (
trc("tls=%v type1=%v id=%v info=%v options=%v, (%v:)", tls, type1, id, info, options, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_waitid), int64(type1), int64(id), int64(info), int64(options), int64(Int32FromInt32(0)), 0))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_waitid), int64(type1), Int64FromUint32(id), int64(info), int64(options), int64(Int32FromInt32(0)), 0))))
}
func Xwaitpid(tls *TLS, pid Tpid_t, status uintptr, options int32) (r Tpid_t) {
@@ -127552,7 +127566,7 @@ func Xwaitpid(tls *TLS, pid Tpid_t, status uintptr, options int32) (r Tpid_t) {
trc("tls=%v pid=%v status=%v options=%v, (%v:)", tls, pid, status, options, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_wait4), int64(pid), int64(status), int64(options), int64(Int32FromInt32(0)), 0, 0))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_wait4), int64(pid), int64(status), int64(options), int64(Int32FromInt32(0)), 0, 0))))
}
const BRACKET = -3
@@ -127585,11 +127599,11 @@ func _str_next(tls *TLS, str uintptr, n Tsize_t, step uintptr) (r int32) {
*(*Tsize_t)(unsafe.Pointer(step)) = uint64(1)
return -int32(1)
}
- *(*Tsize_t)(unsafe.Pointer(step)) = uint64(k)
- return int32(*(*Twchar_t)(unsafe.Pointer(bp)))
+ *(*Tsize_t)(unsafe.Pointer(step)) = Uint64FromInt32(k)
+ return Int32FromUint32(*(*Twchar_t)(unsafe.Pointer(bp)))
}
*(*Tsize_t)(unsafe.Pointer(step)) = uint64(1)
- return int32(*(*uint8)(unsafe.Pointer(str)))
+ return Int32FromUint8(*(*uint8)(unsafe.Pointer(str)))
}
func _pat_next(tls *TLS, pat uintptr, m Tsize_t, step uintptr, flags int32) (r int32) {
@@ -127605,35 +127619,35 @@ func _pat_next(tls *TLS, pat uintptr, m Tsize_t, step uintptr, flags int32) (r i
return END
}
*(*Tsize_t)(unsafe.Pointer(step)) = uint64(1)
- if int32(*(*uint8)(unsafe.Pointer(pat))) == int32('\\') && *(*uint8)(unsafe.Pointer(pat + 1)) != 0 && !(flags&Int32FromInt32(FNM_NOESCAPE) != 0) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(pat))) == int32('\\') && *(*uint8)(unsafe.Pointer(pat + 1)) != 0 && !(flags&Int32FromInt32(FNM_NOESCAPE) != 0) {
*(*Tsize_t)(unsafe.Pointer(step)) = uint64(2)
pat++
esc = int32(1)
goto escaped
}
- if int32(*(*uint8)(unsafe.Pointer(pat))) == int32('[') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(pat))) == int32('[') {
k = uint64(1)
if k < m {
- if int32(*(*uint8)(unsafe.Pointer(pat + uintptr(k)))) == int32('^') || int32(*(*uint8)(unsafe.Pointer(pat + uintptr(k)))) == int32('!') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(pat + uintptr(k)))) == int32('^') || Int32FromUint8(*(*uint8)(unsafe.Pointer(pat + uintptr(k)))) == int32('!') {
k++
}
}
if k < m {
- if int32(*(*uint8)(unsafe.Pointer(pat + uintptr(k)))) == int32(']') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(pat + uintptr(k)))) == int32(']') {
k++
}
}
for {
- if !(k < m && *(*uint8)(unsafe.Pointer(pat + uintptr(k))) != 0 && int32(*(*uint8)(unsafe.Pointer(pat + uintptr(k)))) != int32(']')) {
+ if !(k < m && *(*uint8)(unsafe.Pointer(pat + uintptr(k))) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(pat + uintptr(k)))) != int32(']')) {
break
}
- if k+uint64(1) < m && *(*uint8)(unsafe.Pointer(pat + uintptr(k+uint64(1)))) != 0 && int32(*(*uint8)(unsafe.Pointer(pat + uintptr(k)))) == int32('[') && (int32(*(*uint8)(unsafe.Pointer(pat + uintptr(k+uint64(1))))) == int32(':') || int32(*(*uint8)(unsafe.Pointer(pat + uintptr(k+uint64(1))))) == int32('.') || int32(*(*uint8)(unsafe.Pointer(pat + uintptr(k+uint64(1))))) == int32('=')) {
- z = int32(*(*uint8)(unsafe.Pointer(pat + uintptr(k+uint64(1)))))
+ if k+uint64(1) < m && *(*uint8)(unsafe.Pointer(pat + uintptr(k+uint64(1)))) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(pat + uintptr(k)))) == int32('[') && (Int32FromUint8(*(*uint8)(unsafe.Pointer(pat + uintptr(k+uint64(1))))) == int32(':') || Int32FromUint8(*(*uint8)(unsafe.Pointer(pat + uintptr(k+uint64(1))))) == int32('.') || Int32FromUint8(*(*uint8)(unsafe.Pointer(pat + uintptr(k+uint64(1))))) == int32('=')) {
+ z = Int32FromUint8(*(*uint8)(unsafe.Pointer(pat + uintptr(k+uint64(1)))))
k += uint64(2)
if k < m && *(*uint8)(unsafe.Pointer(pat + uintptr(k))) != 0 {
k++
}
- for k < m && *(*uint8)(unsafe.Pointer(pat + uintptr(k))) != 0 && (int32(*(*uint8)(unsafe.Pointer(pat + uintptr(k-uint64(1))))) != z || int32(*(*uint8)(unsafe.Pointer(pat + uintptr(k)))) != int32(']')) {
+ for k < m && *(*uint8)(unsafe.Pointer(pat + uintptr(k))) != 0 && (Int32FromUint8(*(*uint8)(unsafe.Pointer(pat + uintptr(k-uint64(1))))) != z || Int32FromUint8(*(*uint8)(unsafe.Pointer(pat + uintptr(k)))) != int32(']')) {
k++
}
if k == m || !(*(*uint8)(unsafe.Pointer(pat + uintptr(k))) != 0) {
@@ -127652,10 +127666,10 @@ func _pat_next(tls *TLS, pat uintptr, m Tsize_t, step uintptr, flags int32) (r i
*(*Tsize_t)(unsafe.Pointer(step)) = k + uint64(1)
return -int32(3)
}
- if int32(*(*uint8)(unsafe.Pointer(pat))) == int32('*') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(pat))) == int32('*') {
return -int32(5)
}
- if int32(*(*uint8)(unsafe.Pointer(pat))) == int32('?') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(pat))) == int32('?') {
return -int32(4)
}
goto escaped
@@ -127667,23 +127681,23 @@ escaped:
*(*Tsize_t)(unsafe.Pointer(step)) = uint64(0)
return -int32(2)
}
- *(*Tsize_t)(unsafe.Pointer(step)) = uint64(k1 + esc)
- return int32(*(*Twchar_t)(unsafe.Pointer(bp)))
+ *(*Tsize_t)(unsafe.Pointer(step)) = Uint64FromInt32(k1 + esc)
+ return Int32FromUint32(*(*Twchar_t)(unsafe.Pointer(bp)))
}
- return int32(*(*uint8)(unsafe.Pointer(pat)))
+ return Int32FromUint8(*(*uint8)(unsafe.Pointer(pat)))
}
func _casefold(tls *TLS, k int32) (r int32) {
var c int32
var v1 uint32
_, _ = c, v1
- c = int32(Xtowupper(tls, uint32(k)))
+ c = Int32FromUint32(Xtowupper(tls, Uint32FromInt32(k)))
if c == k {
- v1 = Xtowlower(tls, uint32(k))
+ v1 = Xtowlower(tls, Uint32FromInt32(k))
} else {
- v1 = uint32(c)
+ v1 = Uint32FromInt32(c)
}
- return int32(v1)
+ return Int32FromUint32(v1)
}
func _match_bracket(tls *TLS, p uintptr, k int32, kfold int32) (r int32) {
@@ -127697,17 +127711,17 @@ func _match_bracket(tls *TLS, p uintptr, k int32, kfold int32) (r int32) {
_, _, _, _, _ = inv, l, l1, p0, z
inv = 0
p++
- if int32(*(*uint8)(unsafe.Pointer(p))) == int32('^') || int32(*(*uint8)(unsafe.Pointer(p))) == int32('!') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) == int32('^') || Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) == int32('!') {
inv = int32(1)
p++
}
- if int32(*(*uint8)(unsafe.Pointer(p))) == int32(']') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) == int32(']') {
if k == int32(']') {
return BoolInt32(!(inv != 0))
}
p++
} else {
- if int32(*(*uint8)(unsafe.Pointer(p))) == int32('-') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) == int32('-') {
if k == int32('-') {
return BoolInt32(!(inv != 0))
}
@@ -127716,33 +127730,33 @@ func _match_bracket(tls *TLS, p uintptr, k int32, kfold int32) (r int32) {
}
*(*Twchar_t)(unsafe.Pointer(bp)) = uint32(*(*uint8)(unsafe.Pointer(p + uintptr(-Int32FromInt32(1)))))
for {
- if !(int32(*(*uint8)(unsafe.Pointer(p))) != int32(']')) {
+ if !(Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) != int32(']')) {
break
}
- if int32(*(*uint8)(unsafe.Pointer(p))) == int32('-') && int32(*(*uint8)(unsafe.Pointer(p + 1))) != int32(']') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) == int32('-') && Int32FromUint8(*(*uint8)(unsafe.Pointer(p + 1))) != int32(']') {
l = Xmbtowc(tls, bp+4, p+uintptr(1), uint64(4))
if l < 0 {
return 0
}
if *(*Twchar_t)(unsafe.Pointer(bp)) <= *(*Twchar_t)(unsafe.Pointer(bp + 4)) {
- if uint32(k)-*(*Twchar_t)(unsafe.Pointer(bp)) <= *(*Twchar_t)(unsafe.Pointer(bp + 4))-*(*Twchar_t)(unsafe.Pointer(bp)) || uint32(kfold)-*(*Twchar_t)(unsafe.Pointer(bp)) <= *(*Twchar_t)(unsafe.Pointer(bp + 4))-*(*Twchar_t)(unsafe.Pointer(bp)) {
+ if Uint32FromInt32(k)-*(*Twchar_t)(unsafe.Pointer(bp)) <= *(*Twchar_t)(unsafe.Pointer(bp + 4))-*(*Twchar_t)(unsafe.Pointer(bp)) || Uint32FromInt32(kfold)-*(*Twchar_t)(unsafe.Pointer(bp)) <= *(*Twchar_t)(unsafe.Pointer(bp + 4))-*(*Twchar_t)(unsafe.Pointer(bp)) {
return BoolInt32(!(inv != 0))
}
}
p += uintptr(l - int32(1))
goto _1
}
- if int32(*(*uint8)(unsafe.Pointer(p))) == int32('[') && (int32(*(*uint8)(unsafe.Pointer(p + 1))) == int32(':') || int32(*(*uint8)(unsafe.Pointer(p + 1))) == int32('.') || int32(*(*uint8)(unsafe.Pointer(p + 1))) == int32('=')) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) == int32('[') && (Int32FromUint8(*(*uint8)(unsafe.Pointer(p + 1))) == int32(':') || Int32FromUint8(*(*uint8)(unsafe.Pointer(p + 1))) == int32('.') || Int32FromUint8(*(*uint8)(unsafe.Pointer(p + 1))) == int32('=')) {
p0 = p + uintptr(2)
- z = int32(*(*uint8)(unsafe.Pointer(p + 1)))
+ z = Int32FromUint8(*(*uint8)(unsafe.Pointer(p + 1)))
p += uintptr(3)
- for int32(*(*uint8)(unsafe.Pointer(p + uintptr(-Int32FromInt32(1))))) != z || int32(*(*uint8)(unsafe.Pointer(p))) != int32(']') {
+ for Int32FromUint8(*(*uint8)(unsafe.Pointer(p + uintptr(-Int32FromInt32(1))))) != z || Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) != int32(']') {
p++
}
if z == int32(':') && int64(p-uintptr(1))-int64(p0) < int64(16) {
- Xmemcpy(tls, bp+8, p0, uint64(int64(p-uintptr(1))-int64(p0)))
+ Xmemcpy(tls, bp+8, p0, Uint64FromInt64(int64(p-uintptr(1))-int64(p0)))
(*(*[16]uint8)(unsafe.Pointer(bp + 8)))[int64(p-uintptr(1))-int64(p0)] = uint8(0)
- if Xiswctype(tls, uint32(k), Xwctype(tls, bp+8)) != 0 || Xiswctype(tls, uint32(kfold), Xwctype(tls, bp+8)) != 0 {
+ if Xiswctype(tls, Uint32FromInt32(k), Xwctype(tls, bp+8)) != 0 || Xiswctype(tls, Uint32FromInt32(kfold), Xwctype(tls, bp+8)) != 0 {
return BoolInt32(!(inv != 0))
}
}
@@ -127757,7 +127771,7 @@ func _match_bracket(tls *TLS, p uintptr, k int32, kfold int32) (r int32) {
}
p += uintptr(l1 - int32(1))
}
- if *(*Twchar_t)(unsafe.Pointer(bp)) == uint32(k) || *(*Twchar_t)(unsafe.Pointer(bp)) == uint32(kfold) {
+ if *(*Twchar_t)(unsafe.Pointer(bp)) == Uint32FromInt32(k) || *(*Twchar_t)(unsafe.Pointer(bp)) == Uint32FromInt32(kfold) {
return BoolInt32(!(inv != 0))
}
goto _1
@@ -127780,7 +127794,7 @@ func _fnmatch_internal(tls *TLS, pat uintptr, m Tsize_t, str uintptr, n Tsize_t,
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, endpat, endstr, k, kfold, p, ptail, s, stail, tailcnt, v10, v12, v13, v15, v2, v3, v4, v6, v8, v9
tailcnt = uint64(0)
if flags&int32(FNM_PERIOD) != 0 {
- if int32(*(*uint8)(unsafe.Pointer(str))) == int32('.') && int32(*(*uint8)(unsafe.Pointer(pat))) != int32('.') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(str))) == int32('.') && Int32FromUint8(*(*uint8)(unsafe.Pointer(pat))) != int32('.') {
return int32(FNM_NOMATCH)
}
}
@@ -127839,7 +127853,7 @@ func _fnmatch_internal(tls *TLS, pat uintptr, m Tsize_t, str uintptr, n Tsize_t,
if !(p < endpat) {
break
}
- switch _pat_next(tls, p, uint64(int64(endpat)-int64(p)), bp, flags) {
+ switch _pat_next(tls, p, Uint64FromInt64(int64(endpat)-int64(p)), bp, flags) {
case -int32(2):
return int32(FNM_NOMATCH)
case -int32(5):
@@ -127900,9 +127914,9 @@ func _fnmatch_internal(tls *TLS, pat uintptr, m Tsize_t, str uintptr, n Tsize_t,
/* Check that the pat and str tails match */
p = ptail
for {
- c = _pat_next(tls, p, uint64(int64(endpat)-int64(p)), bp, flags)
+ c = _pat_next(tls, p, Uint64FromInt64(int64(endpat)-int64(p)), bp, flags)
p += uintptr(*(*Tsize_t)(unsafe.Pointer(bp)))
- v12 = _str_next(tls, s, uint64(int64(endstr)-int64(s)), bp+8)
+ v12 = _str_next(tls, s, Uint64FromInt64(int64(endstr)-int64(s)), bp+8)
k = v12
if v12 <= 0 {
if c != END {
@@ -127937,7 +127951,7 @@ func _fnmatch_internal(tls *TLS, pat uintptr, m Tsize_t, str uintptr, n Tsize_t,
p = pat
s = str
for {
- c = _pat_next(tls, p, uint64(int64(endpat)-int64(p)), bp, flags)
+ c = _pat_next(tls, p, Uint64FromInt64(int64(endpat)-int64(p)), bp, flags)
p += uintptr(*(*Tsize_t)(unsafe.Pointer(bp)))
/* Encountering * completes/commits a component */
if c == -int32(5) {
@@ -127945,7 +127959,7 @@ func _fnmatch_internal(tls *TLS, pat uintptr, m Tsize_t, str uintptr, n Tsize_t,
str = s
break
}
- k = _str_next(tls, s, uint64(int64(endstr)-int64(s)), bp+8)
+ k = _str_next(tls, s, Uint64FromInt64(int64(endstr)-int64(s)), bp+8)
if !(k != 0) {
return int32(FNM_NOMATCH)
}
@@ -127973,13 +127987,13 @@ func _fnmatch_internal(tls *TLS, pat uintptr, m Tsize_t, str uintptr, n Tsize_t,
}
/* If we failed, advance str, by 1 char if it's a valid
* char, or past all invalid bytes otherwise. */
- k = _str_next(tls, str, uint64(int64(endstr)-int64(str)), bp+8)
+ k = _str_next(tls, str, Uint64FromInt64(int64(endstr)-int64(str)), bp+8)
if k > 0 {
str += uintptr(*(*Tsize_t)(unsafe.Pointer(bp + 8)))
} else {
str++
for {
- if !(_str_next(tls, str, uint64(int64(endstr)-int64(str)), bp+8) < 0) {
+ if !(_str_next(tls, str, Uint64FromInt64(int64(endstr)-int64(str)), bp+8) < 0) {
break
}
goto _16
@@ -128007,7 +128021,7 @@ func Xfnmatch(tls *TLS, pat uintptr, str uintptr, flags int32) (r int32) {
for {
s = str
for {
- if !(*(*uint8)(unsafe.Pointer(s)) != 0 && int32(*(*uint8)(unsafe.Pointer(s))) != int32('/')) {
+ if !(*(*uint8)(unsafe.Pointer(s)) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) != int32('/')) {
break
}
goto _2
@@ -128017,7 +128031,7 @@ func Xfnmatch(tls *TLS, pat uintptr, str uintptr, flags int32) (r int32) {
}
p = pat
for {
- v4 = _pat_next(tls, p, uint64(-Int32FromInt32(1)), bp, flags)
+ v4 = _pat_next(tls, p, Uint64FromInt32(-Int32FromInt32(1)), bp, flags)
c = v4
if !(v4 != END && c != int32('/')) {
break
@@ -128027,10 +128041,10 @@ func Xfnmatch(tls *TLS, pat uintptr, str uintptr, flags int32) (r int32) {
;
p += uintptr(*(*Tsize_t)(unsafe.Pointer(bp)))
}
- if c != int32(*(*uint8)(unsafe.Pointer(s))) && (!(*(*uint8)(unsafe.Pointer(s)) != 0) || !(flags&Int32FromInt32(FNM_LEADING_DIR) != 0)) {
+ if c != Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) && (!(*(*uint8)(unsafe.Pointer(s)) != 0) || !(flags&Int32FromInt32(FNM_LEADING_DIR) != 0)) {
return int32(FNM_NOMATCH)
}
- if _fnmatch_internal(tls, pat, uint64(int64(p)-int64(pat)), str, uint64(int64(s)-int64(str)), flags) != 0 {
+ if _fnmatch_internal(tls, pat, Uint64FromInt64(int64(p)-int64(pat)), str, Uint64FromInt64(int64(s)-int64(str)), flags) != 0 {
return int32(FNM_NOMATCH)
}
if !(c != 0) {
@@ -128048,10 +128062,10 @@ func Xfnmatch(tls *TLS, pat uintptr, str uintptr, flags int32) (r int32) {
if !(*(*uint8)(unsafe.Pointer(s)) != 0) {
break
}
- if int32(*(*uint8)(unsafe.Pointer(s))) != int32('/') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) != int32('/') {
goto _5
}
- if !(_fnmatch_internal(tls, pat, uint64(-Int32FromInt32(1)), str, uint64(int64(s)-int64(str)), flags) != 0) {
+ if !(_fnmatch_internal(tls, pat, Uint64FromInt32(-Int32FromInt32(1)), str, Uint64FromInt64(int64(s)-int64(str)), flags) != 0) {
return 0
}
goto _5
@@ -128061,7 +128075,7 @@ func Xfnmatch(tls *TLS, pat uintptr, str uintptr, flags int32) (r int32) {
}
}
}
- return _fnmatch_internal(tls, pat, uint64(-Int32FromInt32(1)), str, uint64(-Int32FromInt32(1)), flags)
+ return _fnmatch_internal(tls, pat, Uint64FromInt32(-Int32FromInt32(1)), str, Uint64FromInt32(-Int32FromInt32(1)), flags)
}
const GLOB_ABORTED = 2
@@ -128101,7 +128115,7 @@ func _append(tls *TLS, tail uintptr, name uintptr, len1 Tsize_t, mark int32) (r
(*Tmatch)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(tail)))).Fnext = new1
(*Tmatch)(unsafe.Pointer(new1)).Fnext = UintptrFromInt32(0)
Xmemcpy(tls, new1+8, name, len1+uint64(1))
- if mark != 0 && len1 != 0 && int32(*(*uint8)(unsafe.Pointer(name + uintptr(len1-uint64(1))))) != int32('/') {
+ if mark != 0 && len1 != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(name + uintptr(len1-uint64(1))))) != int32('/') {
*(*uint8)(unsafe.Pointer(new1 + 8 + uintptr(len1))) = uint8('/')
*(*uint8)(unsafe.Pointer(new1 + 8 + uintptr(len1+uint64(1)))) = uint8(0)
}
@@ -128128,7 +128142,7 @@ func _do_glob(tls *TLS, buf uintptr, pos Tsize_t, type1 int32, pat uintptr, flag
if *(*uint8)(unsafe.Pointer(pat)) != 0 && type1 != int32(DT_DIR) {
type1 = 0
}
- for pos+uint64(1) < uint64(PATH_MAX) && int32(*(*uint8)(unsafe.Pointer(pat))) == int32('/') {
+ for pos+uint64(1) < uint64(PATH_MAX) && Int32FromUint8(*(*uint8)(unsafe.Pointer(pat))) == int32('/') {
v1 = pos
pos++
v2 = pat
@@ -128142,7 +128156,7 @@ func _do_glob(tls *TLS, buf uintptr, pos Tsize_t, type1 int32, pat uintptr, flag
in_bracket = 0
overflow = 0
for {
- if !(int32(*(*uint8)(unsafe.Pointer(pat + uintptr(i)))) != int32('*') && int32(*(*uint8)(unsafe.Pointer(pat + uintptr(i)))) != int32('?') && (!(in_bracket != 0) || int32(*(*uint8)(unsafe.Pointer(pat + uintptr(i)))) != int32(']'))) {
+ if !(Int32FromUint8(*(*uint8)(unsafe.Pointer(pat + uintptr(i)))) != int32('*') && Int32FromUint8(*(*uint8)(unsafe.Pointer(pat + uintptr(i)))) != int32('?') && (!(in_bracket != 0) || Int32FromUint8(*(*uint8)(unsafe.Pointer(pat + uintptr(i)))) != int32(']'))) {
break
}
if !(*(*uint8)(unsafe.Pointer(pat + uintptr(i))) != 0) {
@@ -128150,20 +128164,20 @@ func _do_glob(tls *TLS, buf uintptr, pos Tsize_t, type1 int32, pat uintptr, flag
return 0
}
pat += uintptr(i)
- pos += uint64(j)
+ pos += Uint64FromInt64(j)
v4 = Int64FromInt32(0)
j = v4
i = v4
break
} else {
- if int32(*(*uint8)(unsafe.Pointer(pat + uintptr(i)))) == int32('[') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(pat + uintptr(i)))) == int32('[') {
in_bracket = int32(1)
} else {
- if int32(*(*uint8)(unsafe.Pointer(pat + uintptr(i)))) == int32('\\') && !(flags&Int32FromInt32(GLOB_NOESCAPE) != 0) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(pat + uintptr(i)))) == int32('\\') && !(flags&Int32FromInt32(GLOB_NOESCAPE) != 0) {
/* Backslashes inside a bracket are (at least by
* our interpretation) non-special, so if next
* char is ']' we have a complete expression. */
- if in_bracket != 0 && int32(*(*uint8)(unsafe.Pointer(pat + uintptr(i+int64(1))))) == int32(']') {
+ if in_bracket != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(pat + uintptr(i+int64(1))))) == int32(']') {
break
}
/* Unpaired final backslash never matches. */
@@ -128174,14 +128188,14 @@ func _do_glob(tls *TLS, buf uintptr, pos Tsize_t, type1 int32, pat uintptr, flag
}
}
}
- if int32(*(*uint8)(unsafe.Pointer(pat + uintptr(i)))) == int32('/') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(pat + uintptr(i)))) == int32('/') {
if overflow != 0 {
return 0
}
in_bracket = 0
pat += uintptr(i + int64(1))
i = int64(-int32(1))
- pos += uint64(j + int64(1))
+ pos += Uint64FromInt64(j + int64(1))
j = int64(-int32(1))
}
/* Only store a character if it fits in the buffer, but if
@@ -128189,10 +128203,10 @@ func _do_glob(tls *TLS, buf uintptr, pos Tsize_t, type1 int32, pat uintptr, flag
* must be remembered and handled later only if the bracket
* is unterminated (and thereby a literal), so as not to
* disallow long bracket expressions with short matches. */
- if pos+uint64(j+Int64FromInt32(1)) < uint64(PATH_MAX) {
+ if pos+Uint64FromInt64(j+Int64FromInt32(1)) < uint64(PATH_MAX) {
v5 = j
j++
- *(*uint8)(unsafe.Pointer(buf + uintptr(pos+uint64(v5)))) = *(*uint8)(unsafe.Pointer(pat + uintptr(i)))
+ *(*uint8)(unsafe.Pointer(buf + uintptr(pos+Uint64FromInt64(v5)))) = *(*uint8)(unsafe.Pointer(pat + uintptr(i)))
} else {
if in_bracket != 0 {
overflow = int32(1)
@@ -128235,7 +128249,7 @@ func _do_glob(tls *TLS, buf uintptr, pos Tsize_t, type1 int32, pat uintptr, flag
if p2 != 0 && !(flags&Int32FromInt32(GLOB_NOESCAPE) != 0) {
p = p2
for {
- if !(p > pat && int32(*(*uint8)(unsafe.Pointer(p + uintptr(-Int32FromInt32(1))))) == int32('\\')) {
+ if !(p > pat && Int32FromUint8(*(*uint8)(unsafe.Pointer(p + uintptr(-Int32FromInt32(1))))) == int32('\\')) {
break
}
goto _6
@@ -128269,7 +128283,7 @@ func _do_glob(tls *TLS, buf uintptr, pos Tsize_t, type1 int32, pat uintptr, flag
break
}
/* Quickly skip non-directories when there's pattern left. */
- if p2 != 0 && (*Tdirent)(unsafe.Pointer(de)).Fd_type != 0 && int32((*Tdirent)(unsafe.Pointer(de)).Fd_type) != int32(DT_DIR) && int32((*Tdirent)(unsafe.Pointer(de)).Fd_type) != int32(DT_LNK) {
+ if p2 != 0 && (*Tdirent)(unsafe.Pointer(de)).Fd_type != 0 && Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type) != int32(DT_DIR) && Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type) != int32(DT_LNK) {
continue
}
l = Xstrlen(tls, de+19)
@@ -128295,7 +128309,7 @@ func _do_glob(tls *TLS, buf uintptr, pos Tsize_t, type1 int32, pat uintptr, flag
}
/* With GLOB_PERIOD, don't allow matching . or .. unless
* fnmatch would match them with FNM_PERIOD rules in effect. */
- if p2 != 0 && flags&int32(GLOB_PERIOD) != 0 && int32(*(*uint8)(unsafe.Pointer(de + 19))) == int32('.') && (!(*(*uint8)(unsafe.Pointer(de + 19 + 1)) != 0) || int32(*(*uint8)(unsafe.Pointer(de + 19 + 1))) == int32('.') && !(*(*uint8)(unsafe.Pointer(de + 19 + 2)) != 0)) && Xfnmatch(tls, pat, de+19, fnm_flags|int32(FNM_PERIOD)) != 0 {
+ if p2 != 0 && flags&int32(GLOB_PERIOD) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(de + 19))) == int32('.') && (!(*(*uint8)(unsafe.Pointer(de + 19 + 1)) != 0) || Int32FromUint8(*(*uint8)(unsafe.Pointer(de + 19 + 1))) == int32('.') && !(*(*uint8)(unsafe.Pointer(de + 19 + 2)) != 0)) && Xfnmatch(tls, pat, de+19, fnm_flags|int32(FNM_PERIOD)) != 0 {
continue
}
Xmemcpy(tls, buf+uintptr(pos), de+19, l+uint64(1))
@@ -128307,7 +128321,7 @@ func _do_glob(tls *TLS, buf uintptr, pos Tsize_t, type1 int32, pat uintptr, flag
} else {
v11 = __ccgo_ts
}
- r = _do_glob(tls, buf, pos+l, int32((*Tdirent)(unsafe.Pointer(de)).Fd_type), v11, flags, errfunc, tail)
+ r = _do_glob(tls, buf, pos+l, Int32FromUint8((*Tdirent)(unsafe.Pointer(de)).Fd_type), v11, flags, errfunc, tail)
if r != 0 {
Xclosedir(tls, dir)
return r
@@ -128409,7 +128423,7 @@ func _expand_tilde(tls *TLS, pat uintptr, buf uintptr, pos uintptr) (r int32) {
;
home = (*(*Tpasswd)(unsafe.Pointer(bp))).Fpw_dir
}
- for i < uint64(Int32FromInt32(PATH_MAX)-Int32FromInt32(2)) && *(*uint8)(unsafe.Pointer(home)) != 0 {
+ for i < Uint64FromInt32(Int32FromInt32(PATH_MAX)-Int32FromInt32(2)) && *(*uint8)(unsafe.Pointer(home)) != 0 {
v10 = i
i++
v11 = home
@@ -128474,7 +128488,7 @@ func Xglob(tls *TLS, pat uintptr, flags int32, errfunc uintptr, g uintptr) (r in
(*(*[4096]uint8)(unsafe.Pointer(bp + 16)))[0] = uint8(0)
*(*Tsize_t)(unsafe.Pointer(bp + 4112)) = uint64(0)
*(*uintptr)(unsafe.Pointer(bp + 4120)) = p
- if flags&(Int32FromInt32(GLOB_TILDE)|Int32FromInt32(GLOB_TILDE_CHECK)) != 0 && int32(*(*uint8)(unsafe.Pointer(p))) == int32('~') {
+ if flags&(Int32FromInt32(GLOB_TILDE)|Int32FromInt32(GLOB_TILDE_CHECK)) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) == int32('~') {
error1 = _expand_tilde(tls, bp+4120, bp+16, bp+4112)
}
if !(error1 != 0) {
@@ -128872,7 +128886,7 @@ func _tre_ast_new_iter(tls *TLS, mem Ttre_mem_t, arg uintptr, min int32, max int
(*Ttre_iteration_t)(unsafe.Pointer(iter)).Farg = arg
(*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmin = min
(*Ttre_iteration_t)(unsafe.Pointer(iter)).Fmax = max
- SetBitFieldPtr8Uint32(iter+16, uint32(minimal), 0, 0x1)
+ SetBitFieldPtr8Uint32(iter+16, Uint32FromInt32(minimal), 0, 0x1)
(*Ttre_ast_node_t)(unsafe.Pointer(node)).Fnum_submatches = (*Ttre_ast_node_t)(unsafe.Pointer(arg)).Fnum_submatches
return node
}
@@ -128941,7 +128955,7 @@ func _tre_stack_new(tls *TLS, size int32, max_size int32, increment int32) (r ui
_ = s
s = Xmalloc(tls, uint64(24))
if s != UintptrFromInt32(0) {
- (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack = Xmalloc(tls, uint64(8)*uint64(size))
+ (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack = Xmalloc(tls, uint64(8)*Uint64FromInt32(size))
if (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack == UintptrFromInt32(0) {
Xfree(tls, s)
return UintptrFromInt32(0)
@@ -128978,7 +128992,7 @@ func _tre_stack_push(tls *TLS, s uintptr, value Ttre_stack_item) (r Treg_errcode
if new_size > (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size {
new_size = (*Ttre_stack_t)(unsafe.Pointer(s)).Fmax_size
}
- new_buffer = Xrealloc(tls, (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack, uint64(8)*uint64(new_size))
+ new_buffer = Xrealloc(tls, (*Ttre_stack_t)(unsafe.Pointer(s)).Fstack, uint64(8)*Uint64FromInt32(new_size))
if new_buffer == UintptrFromInt32(0) {
return int32(REG_ESPACE)
}
@@ -129112,7 +129126,7 @@ func _tre_expand_macro(tls *TLS, s uintptr) (r uintptr) {
_ = i
i = 0
for {
- if !(_tre_macros[i].Fc != 0 && int32(_tre_macros[i].Fc) != int32(*(*uint8)(unsafe.Pointer(s)))) {
+ if !(_tre_macros[i].Fc != 0 && Int32FromUint8(_tre_macros[i].Fc) != Int32FromUint8(*(*uint8)(unsafe.Pointer(s)))) {
break
}
goto _1
@@ -129148,7 +129162,7 @@ func _tre_new_lit(tls *TLS, p uintptr) (r uintptr) {
return uintptr(0)
}
*(*int32)(unsafe.Pointer(p + 20)) *= int32(2)
- a = Xrealloc(tls, (*Tliterals)(unsafe.Pointer(p)).Fa, uint64((*Tliterals)(unsafe.Pointer(p)).Fcap1)*uint64(8))
+ a = Xrealloc(tls, (*Tliterals)(unsafe.Pointer(p)).Fa, Uint64FromInt32((*Tliterals)(unsafe.Pointer(p)).Fcap1)*uint64(8))
if !(a != 0) {
return uintptr(0)
}
@@ -129174,8 +129188,8 @@ func _add_icase_literals(tls *TLS, ls uintptr, min int32, max int32) (r int32) {
/* assumes islower(c) and isupper(c) are exclusive
and toupper(c)!=c if islower(c).
multiple opposite case characters are not supported */
- if Xiswlower(tls, uint32(c)) != 0 {
- v2 = int32(Xtowupper(tls, uint32(c)))
+ if Xiswlower(tls, Uint32FromInt32(c)) != 0 {
+ v2 = Int32FromUint32(Xtowupper(tls, Uint32FromInt32(c)))
e = v2
b = v2
c++
@@ -129184,7 +129198,7 @@ func _add_icase_literals(tls *TLS, ls uintptr, min int32, max int32) (r int32) {
if !(c <= max) {
break
}
- if Xtowupper(tls, uint32(c)) != uint32(e) {
+ if Xtowupper(tls, Uint32FromInt32(c)) != Uint32FromInt32(e) {
break
}
goto _3
@@ -129194,8 +129208,8 @@ func _add_icase_literals(tls *TLS, ls uintptr, min int32, max int32) (r int32) {
e++
}
} else {
- if Xiswupper(tls, uint32(c)) != 0 {
- v4 = int32(Xtowlower(tls, uint32(c)))
+ if Xiswupper(tls, Uint32FromInt32(c)) != 0 {
+ v4 = Int32FromUint32(Xtowlower(tls, Uint32FromInt32(c)))
e = v4
b = v4
c++
@@ -129204,7 +129218,7 @@ func _add_icase_literals(tls *TLS, ls uintptr, min int32, max int32) (r int32) {
if !(c <= max) {
break
}
- if Xtowlower(tls, uint32(c)) != uint32(e) {
+ if Xtowlower(tls, Uint32FromInt32(c)) != Uint32FromInt32(e) {
break
}
goto _5
@@ -129271,7 +129285,7 @@ func _parse_bracket_terms(tls *TLS, ctx uintptr, s uintptr, ls uintptr, neg uint
start = s
for {
class = uint64(0)
- len1 = Xmbtowc(tls, bp, s, uint64(-Int32FromInt32(1)))
+ len1 = Xmbtowc(tls, bp, s, Uint64FromInt32(-Int32FromInt32(1)))
if len1 <= 0 {
if *(*uint8)(unsafe.Pointer(s)) != 0 {
v2 = int32(REG_BADPAT)
@@ -129280,26 +129294,26 @@ func _parse_bracket_terms(tls *TLS, ctx uintptr, s uintptr, ls uintptr, neg uint
}
return v2
}
- if int32(*(*uint8)(unsafe.Pointer(s))) == int32(']') && s != start {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32(']') && s != start {
(*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fs = s + uintptr(1)
return REG_OK
}
- if int32(*(*uint8)(unsafe.Pointer(s))) == int32('-') && s != start && int32(*(*uint8)(unsafe.Pointer(s + 1))) != int32(']') && (int32(*(*uint8)(unsafe.Pointer(s + 1))) != int32('-') || int32(*(*uint8)(unsafe.Pointer(s + 2))) == int32(']')) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('-') && s != start && Int32FromUint8(*(*uint8)(unsafe.Pointer(s + 1))) != int32(']') && (Int32FromUint8(*(*uint8)(unsafe.Pointer(s + 1))) != int32('-') || Int32FromUint8(*(*uint8)(unsafe.Pointer(s + 2))) == int32(']')) {
return int32(REG_ERANGE)
}
- if int32(*(*uint8)(unsafe.Pointer(s))) == int32('[') && (int32(*(*uint8)(unsafe.Pointer(s + 1))) == int32('.') || int32(*(*uint8)(unsafe.Pointer(s + 1))) == int32('=')) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('[') && (Int32FromUint8(*(*uint8)(unsafe.Pointer(s + 1))) == int32('.') || Int32FromUint8(*(*uint8)(unsafe.Pointer(s + 1))) == int32('=')) {
/* collating symbols and equivalence classes are not supported */
return int32(REG_ECOLLATE)
}
- if int32(*(*uint8)(unsafe.Pointer(s))) == int32('[') && int32(*(*uint8)(unsafe.Pointer(s + 1))) == int32(':') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('[') && Int32FromUint8(*(*uint8)(unsafe.Pointer(s + 1))) == int32(':') {
s += uintptr(2)
len1 = 0
for {
if !(len1 < int32(CHARCLASS_NAME_MAX) && *(*uint8)(unsafe.Pointer(s + uintptr(len1))) != 0) {
break
}
- if int32(*(*uint8)(unsafe.Pointer(s + uintptr(len1)))) == int32(':') {
- Xmemcpy(tls, bp+4, s, uint64(len1))
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s + uintptr(len1)))) == int32(':') {
+ Xmemcpy(tls, bp+4, s, Uint64FromInt32(len1))
(*(*[15]uint8)(unsafe.Pointer(bp + 4)))[len1] = uint8(0)
class = Xwctype(tls, bp+4)
break
@@ -129309,21 +129323,21 @@ func _parse_bracket_terms(tls *TLS, ctx uintptr, s uintptr, ls uintptr, neg uint
;
len1++
}
- if !(class != 0) || int32(*(*uint8)(unsafe.Pointer(s + uintptr(len1+int32(1))))) != int32(']') {
+ if !(class != 0) || Int32FromUint8(*(*uint8)(unsafe.Pointer(s + uintptr(len1+int32(1))))) != int32(']') {
return int32(REG_ECTYPE)
}
min = 0
max = int32(TRE_CHAR_MAX)
s += uintptr(len1 + int32(2))
} else {
- v4 = int32(*(*Twchar_t)(unsafe.Pointer(bp)))
+ v4 = Int32FromUint32(*(*Twchar_t)(unsafe.Pointer(bp)))
max = v4
min = v4
s += uintptr(len1)
- if int32(*(*uint8)(unsafe.Pointer(s))) == int32('-') && int32(*(*uint8)(unsafe.Pointer(s + 1))) != int32(']') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('-') && Int32FromUint8(*(*uint8)(unsafe.Pointer(s + 1))) != int32(']') {
s++
- len1 = Xmbtowc(tls, bp, s, uint64(-Int32FromInt32(1)))
- max = int32(*(*Twchar_t)(unsafe.Pointer(bp)))
+ len1 = Xmbtowc(tls, bp, s, Uint64FromInt32(-Int32FromInt32(1)))
+ max = Int32FromUint32(*(*Twchar_t)(unsafe.Pointer(bp)))
/* XXX - Should use collation order instead of
encoding values in character ranges. */
if len1 <= 0 || min > max {
@@ -129382,12 +129396,12 @@ func _parse_bracket(tls *TLS, ctx uintptr, s uintptr) (r Treg_errcode_t) {
(*(*Tliterals)(unsafe.Pointer(bp))).Fmem = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem
(*(*Tliterals)(unsafe.Pointer(bp))).Flen1 = 0
(*(*Tliterals)(unsafe.Pointer(bp))).Fcap1 = int32(32)
- (*(*Tliterals)(unsafe.Pointer(bp))).Fa = Xmalloc(tls, uint64((*(*Tliterals)(unsafe.Pointer(bp))).Fcap1)*uint64(8))
+ (*(*Tliterals)(unsafe.Pointer(bp))).Fa = Xmalloc(tls, Uint64FromInt32((*(*Tliterals)(unsafe.Pointer(bp))).Fcap1)*uint64(8))
if !((*(*Tliterals)(unsafe.Pointer(bp))).Fa != 0) {
return int32(REG_ESPACE)
}
(*(*Tneg)(unsafe.Pointer(bp + 24))).Flen1 = 0
- (*(*Tneg)(unsafe.Pointer(bp + 24))).Fnegate = BoolInt32(int32(*(*uint8)(unsafe.Pointer(s))) == int32('^'))
+ (*(*Tneg)(unsafe.Pointer(bp + 24))).Fnegate = BoolInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('^'))
if (*(*Tneg)(unsafe.Pointer(bp + 24))).Fnegate != 0 {
s++
}
@@ -129411,7 +129425,7 @@ func _parse_bracket(tls *TLS, ctx uintptr, s uintptr) (r Treg_errcode_t) {
(*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1)
}
/* Sort the array if we need to negate it. */
- Xqsort(tls, (*(*Tliterals)(unsafe.Pointer(bp))).Fa, uint64((*(*Tliterals)(unsafe.Pointer(bp))).Flen1), uint64(8), __ccgo_fp(_tre_compare_lit))
+ Xqsort(tls, (*(*Tliterals)(unsafe.Pointer(bp))).Fa, Uint64FromInt32((*(*Tliterals)(unsafe.Pointer(bp))).Flen1), uint64(8), __ccgo_fp(_tre_compare_lit))
/* extra lit for the last negated range */
lit = _tre_new_lit(tls, bp)
if !(lit != 0) {
@@ -129423,12 +129437,12 @@ func _parse_bracket(tls *TLS, ctx uintptr, s uintptr) (r Treg_errcode_t) {
(*Ttre_literal_t)(unsafe.Pointer(lit)).Fposition = -int32(1)
/* negated classes */
if (*(*Tneg)(unsafe.Pointer(bp + 24))).Flen1 != 0 {
- nc = X__tre_mem_alloc_impl(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, UintptrFromInt32(0), 0, uint64((*(*Tneg)(unsafe.Pointer(bp + 24))).Flen1+Int32FromInt32(1))*uint64(8))
+ nc = X__tre_mem_alloc_impl(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, 0, UintptrFromInt32(0), 0, Uint64FromInt32((*(*Tneg)(unsafe.Pointer(bp + 24))).Flen1+Int32FromInt32(1))*uint64(8))
if !(nc != 0) {
err = int32(REG_ESPACE)
goto parse_bracket_done
}
- Xmemcpy(tls, nc, bp+24+8, uint64((*(*Tneg)(unsafe.Pointer(bp + 24))).Flen1)*uint64(8))
+ Xmemcpy(tls, nc, bp+24+8, Uint64FromInt32((*(*Tneg)(unsafe.Pointer(bp + 24))).Flen1)*uint64(8))
*(*Ttre_ctype_t)(unsafe.Pointer(nc + uintptr((*(*Tneg)(unsafe.Pointer(bp + 24))).Flen1)*8)) = uint64(0)
}
}
@@ -129489,7 +129503,7 @@ func _parse_dup_count(tls *TLS, s uintptr, n uintptr) (r uintptr) {
}
*(*int32)(unsafe.Pointer(n)) = 0
for {
- *(*int32)(unsafe.Pointer(n)) = int32(10)**(*int32)(unsafe.Pointer(n)) + (int32(*(*uint8)(unsafe.Pointer(s))) - int32('0'))
+ *(*int32)(unsafe.Pointer(n)) = int32(10)**(*int32)(unsafe.Pointer(n)) + (Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) - int32('0'))
s++
if !(BoolInt32(uint32(*(*uint8)(unsafe.Pointer(s)))-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) || *(*int32)(unsafe.Pointer(n)) > int32(RE_DUP_MAX) {
break
@@ -129509,7 +129523,7 @@ func _parse_dup(tls *TLS, s uintptr, ere int32, pmin uintptr, pmax uintptr) (r u
var _ /* min at bp+0 */ int32
_, _, _, _, _ = v1, v2, v3, v4, v5
s = _parse_dup_count(tls, s, bp)
- if int32(*(*uint8)(unsafe.Pointer(s))) == int32(',') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32(',') {
s = _parse_dup_count(tls, s+uintptr(1), bp+4)
} else {
*(*int32)(unsafe.Pointer(bp + 4)) = *(*int32)(unsafe.Pointer(bp))
@@ -129520,11 +129534,11 @@ func _parse_dup(tls *TLS, s uintptr, ere int32, pmin uintptr, pmax uintptr) (r u
s++
}
}
- if v5 = v3 || v2 && int32(*(*uint8)(unsafe.Pointer(v1))) != int32('\\'); !v5 {
+ if v5 = v3 || v2 && Int32FromUint8(*(*uint8)(unsafe.Pointer(v1))) != int32('\\'); !v5 {
v4 = s
s++
}
- if v5 || int32(*(*uint8)(unsafe.Pointer(v4))) != int32('}') {
+ if v5 || Int32FromUint8(*(*uint8)(unsafe.Pointer(v4))) != int32('}') {
return uintptr(0)
}
*(*int32)(unsafe.Pointer(pmin)) = *(*int32)(unsafe.Pointer(bp))
@@ -129534,11 +129548,11 @@ func _parse_dup(tls *TLS, s uintptr, ere int32, pmin uintptr, pmax uintptr) (r u
func _hexval1(tls *TLS, c uint32) (r int32) {
if c-uint32('0') < uint32(10) {
- return int32(c - uint32('0'))
+ return Int32FromUint32(c - uint32('0'))
}
c |= uint32(32)
if c-uint32('a') < uint32(6) {
- return int32(c - uint32('a') + uint32(10))
+ return Int32FromUint32(c - uint32('a') + uint32(10))
}
return -int32(1)
}
@@ -129591,7 +129605,7 @@ func _parse_atom(tls *TLS, ctx uintptr, s uintptr) (r Treg_errcode_t) {
var _ /* wc at bp+0 */ Twchar_t
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, ere, err, i, len1, node, p, tmp1, tmp11, tmp2, tmp21, v, val, v14, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26
ere = (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags & int32(REG_EXTENDED)
- switch int32(*(*uint8)(unsafe.Pointer(s))) {
+ switch Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) {
case int32('['):
goto _1
case int32('\\'):
@@ -129633,7 +129647,7 @@ _2:
/* extensions: \b, \B, \<, \>, \xHH \x{HHHH} */
s++
v14 = s
- switch int32(*(*uint8)(unsafe.Pointer(v14))) {
+ switch Int32FromUint8(*(*uint8)(unsafe.Pointer(v14))) {
case 0:
return int32(REG_EESCAPE)
case int32('b'):
@@ -129648,7 +129662,7 @@ _2:
s++
v = 0
len1 = int32(2)
- if int32(*(*uint8)(unsafe.Pointer(s))) == int32('{') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('{') {
len1 = int32(8)
s++
}
@@ -129669,7 +129683,7 @@ _2:
}
s += uintptr(i)
if len1 == int32(8) {
- if int32(*(*uint8)(unsafe.Pointer(s))) != int32('}') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) != int32('}') {
return int32(REG_EBRACE)
}
s++
@@ -129702,7 +129716,7 @@ _2:
default:
if !(ere != 0) && uint32(*(*uint8)(unsafe.Pointer(s)))-uint32('1') < uint32(9) {
/* back reference */
- val = int32(*(*uint8)(unsafe.Pointer(s))) - int32('0')
+ val = Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) - int32('0')
v19 = ctx + 44
v18 = *(*int32)(unsafe.Pointer(v19))
*(*int32)(unsafe.Pointer(v19))++
@@ -129757,7 +129771,7 @@ _4:
_5:
;
/* '$' is special everywhere in EREs, and at the end of a BRE subexpression. */
- if !(ere != 0) && *(*uint8)(unsafe.Pointer(s + 1)) != 0 && (int32(*(*uint8)(unsafe.Pointer(s + 1))) != int32('\\') || int32(*(*uint8)(unsafe.Pointer(s + 2))) != int32(')') && int32(*(*uint8)(unsafe.Pointer(s + 2))) != int32('|')) {
+ if !(ere != 0) && *(*uint8)(unsafe.Pointer(s + 1)) != 0 && (Int32FromUint8(*(*uint8)(unsafe.Pointer(s + 1))) != int32('\\') || Int32FromUint8(*(*uint8)(unsafe.Pointer(s + 2))) != int32(')') && Int32FromUint8(*(*uint8)(unsafe.Pointer(s + 2))) != int32('|')) {
goto parse_literal
}
node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(2), int32(ASSERT_AT_EOL), -int32(1))
@@ -129789,21 +129803,21 @@ _12:
goto parse_literal
parse_literal:
;
- len1 = Xmbtowc(tls, bp, s, uint64(-Int32FromInt32(1)))
+ len1 = Xmbtowc(tls, bp, s, Uint64FromInt32(-Int32FromInt32(1)))
if len1 < 0 {
return int32(REG_BADPAT)
}
if (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fcflags&int32(REG_ICASE) != 0 && (Xiswupper(tls, *(*Twchar_t)(unsafe.Pointer(bp))) != 0 || Xiswlower(tls, *(*Twchar_t)(unsafe.Pointer(bp))) != 0) {
/* multiple opposite case characters are not supported */
- tmp11 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, int32(Xtowupper(tls, *(*Twchar_t)(unsafe.Pointer(bp)))), int32(Xtowupper(tls, *(*Twchar_t)(unsafe.Pointer(bp)))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition)
- tmp21 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, int32(Xtowlower(tls, *(*Twchar_t)(unsafe.Pointer(bp)))), int32(Xtowlower(tls, *(*Twchar_t)(unsafe.Pointer(bp)))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition)
+ tmp11 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint32(Xtowupper(tls, *(*Twchar_t)(unsafe.Pointer(bp)))), Int32FromUint32(Xtowupper(tls, *(*Twchar_t)(unsafe.Pointer(bp)))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition)
+ tmp21 = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint32(Xtowlower(tls, *(*Twchar_t)(unsafe.Pointer(bp)))), Int32FromUint32(Xtowlower(tls, *(*Twchar_t)(unsafe.Pointer(bp)))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition)
if tmp11 != 0 && tmp21 != 0 {
node = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, tmp11, tmp21)
} else {
node = uintptr(0)
}
} else {
- node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, int32(*(*Twchar_t)(unsafe.Pointer(bp))), int32(*(*Twchar_t)(unsafe.Pointer(bp))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition)
+ node = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, Int32FromUint32(*(*Twchar_t)(unsafe.Pointer(bp))), Int32FromUint32(*(*Twchar_t)(unsafe.Pointer(bp))), (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition)
}
(*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fposition++
s += uintptr(len1)
@@ -129845,7 +129859,7 @@ func _tre_parse(tls *TLS, ctx uintptr) (r Treg_errcode_t) {
return err
}
for {
- if !(ere != 0) && int32(*(*uint8)(unsafe.Pointer(s))) == int32('\\') && int32(*(*uint8)(unsafe.Pointer(s + 1))) == int32('(') || ere != 0 && int32(*(*uint8)(unsafe.Pointer(s))) == int32('(') {
+ if !(ere != 0) && Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('\\') && Int32FromUint8(*(*uint8)(unsafe.Pointer(s + 1))) == int32('(') || ere != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('(') {
v4 = _tre_stack_push_voidptr(tls, stack, nunion)
err = v4
if v4 != REG_OK {
@@ -129874,7 +129888,7 @@ func _tre_parse(tls *TLS, ctx uintptr) (r Treg_errcode_t) {
(*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s
goto _3
}
- if !(ere != 0) && int32(*(*uint8)(unsafe.Pointer(s))) == int32('\\') && int32(*(*uint8)(unsafe.Pointer(s + 1))) == int32(')') || ere != 0 && int32(*(*uint8)(unsafe.Pointer(s))) == int32(')') && depth != 0 {
+ if !(ere != 0) && Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('\\') && Int32FromUint8(*(*uint8)(unsafe.Pointer(s + 1))) == int32(')') || ere != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32(')') && depth != 0 {
(*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn = _tre_ast_new_literal(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, -int32(1), -int32(1), -int32(1))
if !((*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn != 0) {
return int32(REG_ESPACE)
@@ -129890,33 +129904,33 @@ func _tre_parse(tls *TLS, ctx uintptr) (r Treg_errcode_t) {
parse_iter:
;
for {
- if int32(*(*uint8)(unsafe.Pointer(s))) != int32('\\') && int32(*(*uint8)(unsafe.Pointer(s))) != int32('*') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) != int32('\\') && Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) != int32('*') {
if !(ere != 0) {
break
}
- if int32(*(*uint8)(unsafe.Pointer(s))) != int32('+') && int32(*(*uint8)(unsafe.Pointer(s))) != int32('?') && int32(*(*uint8)(unsafe.Pointer(s))) != int32('{') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) != int32('+') && Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) != int32('?') && Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) != int32('{') {
break
}
}
- if int32(*(*uint8)(unsafe.Pointer(s))) == int32('\\') && ere != 0 {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('\\') && ere != 0 {
break
}
/* extension: treat \+, \? as repetitions in BRE */
- if int32(*(*uint8)(unsafe.Pointer(s))) == int32('\\') && int32(*(*uint8)(unsafe.Pointer(s + 1))) != int32('+') && int32(*(*uint8)(unsafe.Pointer(s + 1))) != int32('?') && int32(*(*uint8)(unsafe.Pointer(s + 1))) != int32('{') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('\\') && Int32FromUint8(*(*uint8)(unsafe.Pointer(s + 1))) != int32('+') && Int32FromUint8(*(*uint8)(unsafe.Pointer(s + 1))) != int32('?') && Int32FromUint8(*(*uint8)(unsafe.Pointer(s + 1))) != int32('{') {
break
}
- if int32(*(*uint8)(unsafe.Pointer(s))) == int32('\\') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('\\') {
s++
}
/* handle ^* at the start of a BRE. */
- if !(ere != 0) && s == (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart+uintptr(1) && int32(*(*uint8)(unsafe.Pointer(s + uintptr(-Int32FromInt32(1))))) == int32('^') {
+ if !(ere != 0) && s == (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart+uintptr(1) && Int32FromUint8(*(*uint8)(unsafe.Pointer(s + uintptr(-Int32FromInt32(1))))) == int32('^') {
break
}
/* extension: multiple consecutive *+?{,} is unspecified,
but (a+)+ has to be supported so accepting a++ makes
sense, note however that the RE_DUP_MAX limit can be
circumvented: (a{255}){255} uses a lot of memory.. */
- if int32(*(*uint8)(unsafe.Pointer(s))) == int32('{') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('{') {
s = _parse_dup(tls, s+uintptr(1), ere, bp, bp+4)
if !(s != 0) {
return int32(REG_BADBR)
@@ -129924,10 +129938,10 @@ func _tre_parse(tls *TLS, ctx uintptr) (r Treg_errcode_t) {
} else {
*(*int32)(unsafe.Pointer(bp)) = 0
*(*int32)(unsafe.Pointer(bp + 4)) = -int32(1)
- if int32(*(*uint8)(unsafe.Pointer(s))) == int32('+') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('+') {
*(*int32)(unsafe.Pointer(bp)) = int32(1)
}
- if int32(*(*uint8)(unsafe.Pointer(s))) == int32('?') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('?') {
*(*int32)(unsafe.Pointer(bp + 4)) = int32(1)
}
s++
@@ -129944,13 +129958,13 @@ func _tre_parse(tls *TLS, ctx uintptr) (r Treg_errcode_t) {
_9:
}
nbranch = _tre_ast_new_catenation(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, nbranch, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fn)
- if ere != 0 && int32(*(*uint8)(unsafe.Pointer(s))) == int32('|') || ere != 0 && int32(*(*uint8)(unsafe.Pointer(s))) == int32(')') && depth != 0 || !(ere != 0) && int32(*(*uint8)(unsafe.Pointer(s))) == int32('\\') && int32(*(*uint8)(unsafe.Pointer(s + 1))) == int32(')') || !(ere != 0) && int32(*(*uint8)(unsafe.Pointer(s))) == int32('\\') && int32(*(*uint8)(unsafe.Pointer(s + 1))) == int32('|') || !(*(*uint8)(unsafe.Pointer(s)) != 0) {
+ if ere != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('|') || ere != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32(')') && depth != 0 || !(ere != 0) && Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('\\') && Int32FromUint8(*(*uint8)(unsafe.Pointer(s + 1))) == int32(')') || !(ere != 0) && Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('\\') && Int32FromUint8(*(*uint8)(unsafe.Pointer(s + 1))) == int32('|') || !(*(*uint8)(unsafe.Pointer(s)) != 0) {
/* extension: empty branch is unspecified (), (|a), (a|)
here they are not rejected but match on empty string */
- c = int32(*(*uint8)(unsafe.Pointer(s)))
+ c = Int32FromUint8(*(*uint8)(unsafe.Pointer(s)))
nunion = _tre_ast_new_union(tls, (*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fmem, nunion, nbranch)
nbranch = uintptr(0)
- if c == int32('\\') && int32(*(*uint8)(unsafe.Pointer(s + 1))) == int32('|') {
+ if c == int32('\\') && Int32FromUint8(*(*uint8)(unsafe.Pointer(s + 1))) == int32('|') {
s += uintptr(2)
(*Ttre_parse_ctx_t)(unsafe.Pointer(ctx)).Fstart = s
} else {
@@ -130258,7 +130272,7 @@ func _tre_add_tags(tls *TLS, mem Ttre_mem_t, stack uintptr, tree uintptr, tnfa u
}
(*(*Ttre_submatch_data_t)(unsafe.Pointer((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fsubmatch_data + uintptr(id1)*16))).Fparents = UintptrFromInt32(0)
if i2 > 0 {
- p = Xmalloc(tls, uint64(4)*uint64(i2+Int32FromInt32(1)))
+ p = Xmalloc(tls, uint64(4)*Uint64FromInt32(i2+Int32FromInt32(1)))
if p == UintptrFromInt32(0) {
status = int32(REG_ESPACE)
goto _10
@@ -131162,7 +131176,7 @@ func _tre_set_union(tls *TLS, mem Ttre_mem_t, set1 uintptr, set2 uintptr, tags u
;
s2++
}
- new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(56)*uint64(s1+s2+Int32FromInt32(1)))
+ new_set = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), int32(1), uint64(56)*Uint64FromInt32(s1+s2+Int32FromInt32(1)))
if !(new_set != 0) {
return UintptrFromInt32(0)
}
@@ -131191,7 +131205,7 @@ func _tre_set_union(tls *TLS, mem Ttre_mem_t, set1 uintptr, set2 uintptr, tags u
;
i++
}
- new_tags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, Uint64FromInt64(4)*uint64(i+num_tags+Int32FromInt32(1)))
+ new_tags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, Uint64FromInt64(4)*Uint64FromInt32(i+num_tags+Int32FromInt32(1)))
if new_tags == UintptrFromInt32(0) {
return UintptrFromInt32(0)
}
@@ -131251,7 +131265,7 @@ func _tre_set_union(tls *TLS, mem Ttre_mem_t, set1 uintptr, set2 uintptr, tags u
;
i++
}
- new_tags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(4)*uint64(i+Int32FromInt32(1)))
+ new_tags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(4)*Uint64FromInt32(i+Int32FromInt32(1)))
if new_tags == UintptrFromInt32(0) {
return UintptrFromInt32(0)
}
@@ -131569,7 +131583,7 @@ func _tre_compute_nfl(tls *TLS, mem Ttre_mem_t, stack uintptr, tree uintptr) (r
return status
}
/* Allocate arrays for the tags and parameters. */
- tags = Xmalloc(tls, uint64(4)*uint64(*(*int32)(unsafe.Pointer(bp))+Int32FromInt32(1)))
+ tags = Xmalloc(tls, uint64(4)*Uint64FromInt32(*(*int32)(unsafe.Pointer(bp))+Int32FromInt32(1)))
if !(tags != 0) {
return int32(REG_ESPACE)
}
@@ -131600,7 +131614,7 @@ func _tre_compute_nfl(tls *TLS, mem Ttre_mem_t, stack uintptr, tree uintptr) (r
return status
}
/* Allocate arrays for the tags and parameters. */
- tags = Xmalloc(tls, uint64(4)*uint64(*(*int32)(unsafe.Pointer(bp))+Int32FromInt32(1)))
+ tags = Xmalloc(tls, uint64(4)*Uint64FromInt32(*(*int32)(unsafe.Pointer(bp))+Int32FromInt32(1)))
if !(tags != 0) {
return int32(REG_ESPACE)
}
@@ -131658,8 +131672,8 @@ func _tre_make_trans(tls *TLS, p1 uintptr, p2 uintptr, transitions uintptr, coun
}
/* Use the character ranges, assertions, etc. from `p1' for
the transition from `p1' to `p2'. */
- (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fcode_min = uint32((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fcode_min)
- (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fcode_max = uint32((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fcode_max)
+ (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fcode_min = Uint32FromInt32((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fcode_min)
+ (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fcode_max = Uint32FromInt32((*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fcode_max)
(*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate = transitions + uintptr(*(*int32)(unsafe.Pointer(offs + uintptr((*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition)*4)))*56
(*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fstate_id = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p2)).Fposition
if (*Ttre_pos_and_tags_t)(unsafe.Pointer(p1)).Fclass != 0 {
@@ -131690,7 +131704,7 @@ func _tre_make_trans(tls *TLS, p1 uintptr, p2 uintptr, transitions uintptr, coun
;
i++
}
- (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes = Xmalloc(tls, uint64(8)*uint64(i+Int32FromInt32(1)))
+ (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes = Xmalloc(tls, uint64(8)*Uint64FromInt32(i+Int32FromInt32(1)))
if (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Fneg_classes == UintptrFromInt32(0) {
return int32(REG_ESPACE)
}
@@ -131729,7 +131743,7 @@ func _tre_make_trans(tls *TLS, p1 uintptr, p2 uintptr, transitions uintptr, coun
(*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags = UintptrFromInt32(0)
/* If there were any tags, allocate an array and fill it. */
if i+j > 0 {
- (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags = Xmalloc(tls, uint64(4)*uint64(i+j+Int32FromInt32(1)))
+ (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags = Xmalloc(tls, uint64(4)*Uint64FromInt32(i+j+Int32FromInt32(1)))
if !((*Ttre_tnfa_transition_t)(unsafe.Pointer(trans)).Ftags != 0) {
return int32(REG_ESPACE)
}
@@ -131883,10 +131897,10 @@ func Xregcomp(tls *TLS, preg uintptr, regex uintptr, cflags int32) (r int32) {
goto error_exit
}
}
- (*Tregex_t)(unsafe.Pointer(preg)).Fre_nsub = uint64((*(*Ttre_parse_ctx_t)(unsafe.Pointer(bp))).Fsubmatch_id - int32(1))
+ (*Tregex_t)(unsafe.Pointer(preg)).Fre_nsub = Uint64FromInt32((*(*Ttre_parse_ctx_t)(unsafe.Pointer(bp))).Fsubmatch_id - int32(1))
tree = (*(*Ttre_parse_ctx_t)(unsafe.Pointer(bp))).Fn
/* Referring to nonexistent subexpressions is illegal. */
- if (*(*Ttre_parse_ctx_t)(unsafe.Pointer(bp))).Fmax_backref > int32((*Tregex_t)(unsafe.Pointer(preg)).Fre_nsub) {
+ if (*(*Ttre_parse_ctx_t)(unsafe.Pointer(bp))).Fmax_backref > Int32FromUint64((*Tregex_t)(unsafe.Pointer(preg)).Fre_nsub) {
errcode = int32(REG_ESUBREG)
if int32(1) != 0 {
goto error_exit
@@ -131902,7 +131916,7 @@ func Xregcomp(tls *TLS, preg uintptr, regex uintptr, cflags int32) (r int32) {
}
(*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs = BoolInt32((*(*Ttre_parse_ctx_t)(unsafe.Pointer(bp))).Fmax_backref >= 0)
(*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_approx = 0
- (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches = uint32((*(*Ttre_parse_ctx_t)(unsafe.Pointer(bp))).Fsubmatch_id)
+ (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_submatches = Uint32FromInt32((*(*Ttre_parse_ctx_t)(unsafe.Pointer(bp))).Fsubmatch_id)
/* Set up tags for submatch addressing. If REG_NOSUB is set and the
regexp does not have back references, this can be skipped. */
if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fhave_backrefs != 0 || !(cflags&Int32FromInt32(REG_NOSUB) != 0) {
@@ -131915,7 +131929,7 @@ func Xregcomp(tls *TLS, preg uintptr, regex uintptr, cflags int32) (r int32) {
}
}
if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags > 0 {
- tag_directions = Xmalloc(tls, uint64(4)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags+Int32FromInt32(1)))
+ tag_directions = Xmalloc(tls, uint64(4)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags+Int32FromInt32(1)))
if tag_directions == UintptrFromInt32(0) {
errcode = int32(REG_ESPACE)
if int32(1) != 0 {
@@ -131923,16 +131937,16 @@ func Xregcomp(tls *TLS, preg uintptr, regex uintptr, cflags int32) (r int32) {
}
}
(*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftag_directions = tag_directions
- Xmemset(tls, tag_directions, -int32(1), uint64(4)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags+Int32FromInt32(1)))
+ Xmemset(tls, tag_directions, -int32(1), uint64(4)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags+Int32FromInt32(1)))
}
- (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags = Xcalloc(tls, uint64(uint32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)*uint32(2)+uint32(1)), uint64(4))
+ (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags = Xcalloc(tls, uint64(Uint32FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags)*uint32(2)+uint32(1)), uint64(4))
if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fminimal_tags == UintptrFromInt32(0) {
errcode = int32(REG_ESPACE)
if int32(1) != 0 {
goto error_exit
}
}
- submatch_data = Xcalloc(tls, uint64(uint32((*(*Ttre_parse_ctx_t)(unsafe.Pointer(bp))).Fsubmatch_id)), uint64(16))
+ submatch_data = Xcalloc(tls, uint64(Uint32FromInt32((*(*Ttre_parse_ctx_t)(unsafe.Pointer(bp))).Fsubmatch_id)), uint64(16))
if submatch_data == UintptrFromInt32(0) {
errcode = int32(REG_ESPACE)
if int32(1) != 0 {
@@ -131985,14 +131999,14 @@ func Xregcomp(tls *TLS, preg uintptr, regex uintptr, cflags int32) (r int32) {
goto error_exit
}
}
- counts = Xmalloc(tls, uint64(4)*uint64((*(*Ttre_parse_ctx_t)(unsafe.Pointer(bp))).Fposition))
+ counts = Xmalloc(tls, uint64(4)*Uint64FromInt32((*(*Ttre_parse_ctx_t)(unsafe.Pointer(bp))).Fposition))
if counts == UintptrFromInt32(0) {
errcode = int32(REG_ESPACE)
if int32(1) != 0 {
goto error_exit
}
}
- offs = Xmalloc(tls, uint64(4)*uint64((*(*Ttre_parse_ctx_t)(unsafe.Pointer(bp))).Fposition))
+ offs = Xmalloc(tls, uint64(4)*Uint64FromInt32((*(*Ttre_parse_ctx_t)(unsafe.Pointer(bp))).Fposition))
if offs == UintptrFromInt32(0) {
errcode = int32(REG_ESPACE)
if int32(1) != 0 {
@@ -132025,7 +132039,7 @@ func Xregcomp(tls *TLS, preg uintptr, regex uintptr, cflags int32) (r int32) {
;
i++
}
- transitions = Xcalloc(tls, uint64(uint32(add)+uint32(1)), uint64(56))
+ transitions = Xcalloc(tls, uint64(Uint32FromInt32(add)+uint32(1)), uint64(56))
if transitions == UintptrFromInt32(0) {
errcode = int32(REG_ESPACE)
if int32(1) != 0 {
@@ -132033,7 +132047,7 @@ func Xregcomp(tls *TLS, preg uintptr, regex uintptr, cflags int32) (r int32) {
}
}
(*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ftransitions = transitions
- (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions = uint32(add)
+ (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions = Uint32FromInt32(add)
errcode = _tre_ast_to_tnfa(tls, tree, transitions, counts, offs)
if errcode != REG_OK {
errcode = errcode
@@ -132048,7 +132062,7 @@ func Xregcomp(tls *TLS, preg uintptr, regex uintptr, cflags int32) (r int32) {
i++
p += 56
}
- initial = Xcalloc(tls, uint64(uint32(i)+uint32(1)), uint64(56))
+ initial = Xcalloc(tls, uint64(Uint32FromInt32(i)+uint32(1)), uint64(56))
if initial == UintptrFromInt32(0) {
errcode = int32(REG_ESPACE)
if int32(1) != 0 {
@@ -132078,14 +132092,14 @@ func Xregcomp(tls *TLS, preg uintptr, regex uintptr, cflags int32) (r int32) {
;
j++
}
- (*(*Ttre_tnfa_transition_t)(unsafe.Pointer(initial + uintptr(i)*56))).Ftags = Xmalloc(tls, uint64(4)*uint64(j+Int32FromInt32(1)))
+ (*(*Ttre_tnfa_transition_t)(unsafe.Pointer(initial + uintptr(i)*56))).Ftags = Xmalloc(tls, uint64(4)*Uint64FromInt32(j+Int32FromInt32(1)))
if !((*(*Ttre_tnfa_transition_t)(unsafe.Pointer(initial + uintptr(i)*56))).Ftags != 0) {
errcode = int32(REG_ESPACE)
if int32(1) != 0 {
goto error_exit
}
}
- Xmemcpy(tls, (*(*Ttre_tnfa_transition_t)(unsafe.Pointer(initial + uintptr(i)*56))).Ftags, (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags, uint64(4)*uint64(j+Int32FromInt32(1)))
+ Xmemcpy(tls, (*(*Ttre_tnfa_transition_t)(unsafe.Pointer(initial + uintptr(i)*56))).Ftags, (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Ftags, uint64(4)*Uint64FromInt32(j+Int32FromInt32(1)))
}
(*(*Ttre_tnfa_transition_t)(unsafe.Pointer(initial + uintptr(i)*56))).Fassertions = (*Ttre_pos_and_tags_t)(unsafe.Pointer(p)).Fassertions
i++
@@ -132095,7 +132109,7 @@ func Xregcomp(tls *TLS, preg uintptr, regex uintptr, cflags int32) (r int32) {
p += 56
}
(*(*Ttre_tnfa_transition_t)(unsafe.Pointer(initial + uintptr(i)*56))).Fstate = UintptrFromInt32(0)
- (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions = uint32(add)
+ (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_transitions = Uint32FromInt32(add)
(*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Ffinal = transitions + uintptr(*(*int32)(unsafe.Pointer(offs + uintptr((*(*Ttre_pos_and_tags_t)(unsafe.Pointer((*Ttre_ast_node_t)(unsafe.Pointer(tree)).Flastpos))).Fposition)*4)))*56
(*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states = (*(*Ttre_parse_ctx_t)(unsafe.Pointer(bp))).Fposition
(*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags = cflags
@@ -132232,7 +132246,7 @@ func Xregerror(tls *TLS, e int32, preg uintptr, buf uintptr, size Tsize_t) (r Ts
s++
}
s = X__lctrans_cur(tls, s)
- return uint64(int32(1) + Xsnprintf(tls, buf, size, __ccgo_ts+15, VaList(bp+8, s)))
+ return Uint64FromInt32(int32(1) + Xsnprintf(tls, buf, size, __ccgo_ts+15, VaList(bp+8, s)))
}
const tre_bt_mem_alloc = 0
@@ -132353,23 +132367,23 @@ func _tre_tnfa_run_parallel(tls *TLS, tnfa uintptr, string1 uintptr, match_tags
everything in a single large block with calloc(). */
/* Ensure that tbytes and xbytes*num_states cannot overflow, and that
* they don't contribute more than 1/8 of SIZE_MAX to total_bytes. */
- if uint64(num_tags) > uint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(8)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states)) {
+ if Uint64FromInt32(num_tags) > uint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states)) {
return int32(REG_ESPACE)
}
/* Likewise check rbytes. */
- if uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states+int32(1)) > Uint64FromUint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(16)) {
+ if Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states+int32(1)) > Uint64FromUint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(16)) {
return int32(REG_ESPACE)
}
/* Likewise check pbytes. */
- if uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) > Uint64FromUint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(16)) {
+ if Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states) > Uint64FromUint64(0xffffffffffffffff)/(Uint64FromInt32(8)*Uint64FromInt64(16)) {
return int32(REG_ESPACE)
}
/* Compute the length of the block we need. */
- tbytes = uint64(8) * uint64(num_tags)
- rbytes = uint64(16) * uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states+Int32FromInt32(1))
- pbytes = uint64(16) * uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states)
- xbytes = uint64(8) * uint64(num_tags)
- total_bytes = (Uint64FromInt64(8)-Uint64FromInt32(1))*Uint64FromInt32(4) + (rbytes+xbytes*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states))*uint64(2) + tbytes + pbytes
+ tbytes = uint64(8) * Uint64FromInt32(num_tags)
+ rbytes = uint64(16) * Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states+Int32FromInt32(1))
+ pbytes = uint64(16) * Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states)
+ xbytes = uint64(8) * Uint64FromInt32(num_tags)
+ total_bytes = (Uint64FromInt64(8)-Uint64FromInt32(1))*Uint64FromInt32(4) + (rbytes+xbytes*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states))*uint64(2) + tbytes + pbytes
/* Allocate the memory. */
buf = Xcalloc(tls, total_bytes, uint64(1))
if buf == UintptrFromInt32(0) {
@@ -132378,32 +132392,32 @@ func _tre_tnfa_run_parallel(tls *TLS, tnfa uintptr, string1 uintptr, match_tags
/* Get the various pointers within tmp_buf (properly aligned). */
tmp_tags = buf
tmp_buf = buf + uintptr(tbytes)
- if uint64(int64(tmp_buf))%uint64(8) != 0 {
- v1 = uint64(8) - uint64(int64(tmp_buf))%uint64(8)
+ if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 {
+ v1 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8)
} else {
v1 = uint64(0)
}
tmp_buf += uintptr(v1)
reach_next = tmp_buf
tmp_buf += uintptr(rbytes)
- if uint64(int64(tmp_buf))%uint64(8) != 0 {
- v2 = uint64(8) - uint64(int64(tmp_buf))%uint64(8)
+ if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 {
+ v2 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8)
} else {
v2 = uint64(0)
}
tmp_buf += uintptr(v2)
reach = tmp_buf
tmp_buf += uintptr(rbytes)
- if uint64(int64(tmp_buf))%uint64(8) != 0 {
- v3 = uint64(8) - uint64(int64(tmp_buf))%uint64(8)
+ if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 {
+ v3 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8)
} else {
v3 = uint64(0)
}
tmp_buf += uintptr(v3)
reach_pos = tmp_buf
tmp_buf += uintptr(pbytes)
- if uint64(int64(tmp_buf))%uint64(8) != 0 {
- v4 = uint64(8) - uint64(int64(tmp_buf))%uint64(8)
+ if Uint64FromInt64(int64(tmp_buf))%uint64(8) != 0 {
+ v4 = uint64(8) - Uint64FromInt64(int64(tmp_buf))%uint64(8)
} else {
v4 = uint64(0)
}
@@ -132778,7 +132792,7 @@ func _tre_tnfa_run_backtrack(tls *TLS, tnfa uintptr, string1 uintptr, match_tags
(*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fprev = UintptrFromInt32(0)
(*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fnext = UintptrFromInt32(0)
if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags != 0 {
- tags = Xmalloc(tls, uint64(8)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags))
+ tags = Xmalloc(tls, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags))
if !(tags != 0) {
ret = int32(REG_ESPACE)
goto error_exit
@@ -132792,7 +132806,7 @@ func _tre_tnfa_run_backtrack(tls *TLS, tnfa uintptr, string1 uintptr, match_tags
}
}
if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states != 0 {
- states_seen = Xmalloc(tls, uint64(4)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states))
+ states_seen = Xmalloc(tls, uint64(4)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_states))
if !(states_seen != 0) {
ret = int32(REG_ESPACE)
goto error_exit
@@ -132842,7 +132856,7 @@ retry:
}
str_byte += uintptr(pos_add_next)
pos_start = pos
- next_c_start = int32(*(*Ttre_char_t)(unsafe.Pointer(bp)))
+ next_c_start = Int32FromUint32(*(*Ttre_char_t)(unsafe.Pointer(bp)))
str_byte_start = str_byte
/* Handle initial states. */
next_tags = UintptrFromInt32(0)
@@ -132877,7 +132891,7 @@ retry:
}
(*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fprev = stack
(*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fnext = UintptrFromInt32(0)
- (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fitem.Ftags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(8)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags))
+ (*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fitem.Ftags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags))
if !((*Ttre_backtrack_struct)(unsafe.Pointer(s)).Fitem.Ftags != 0) {
X__tre_mem_destroy(tls, mem)
if tags != 0 {
@@ -132900,7 +132914,7 @@ retry:
(*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte = str_byte
(*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate
(*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id
- (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c = int32(*(*Ttre_char_t)(unsafe.Pointer(bp)))
+ (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c = Int32FromUint32(*(*Ttre_char_t)(unsafe.Pointer(bp)))
i1 = 0
for {
if !(i1 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) {
@@ -132975,11 +132989,11 @@ _9:
bt = *(*int32)(unsafe.Pointer(&(*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fu))
/* Get the substring we need to match against. Remember to
turn off REG_NOSUB temporarily. */
- _tre_fill_pmatch(tls, uint64(bt+int32(1)), pmatch, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & ^Int32FromInt32(REG_NOSUB), tnfa, tags, pos)
+ _tre_fill_pmatch(tls, Uint64FromInt32(bt+int32(1)), pmatch, (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fcflags & ^Int32FromInt32(REG_NOSUB), tnfa, tags, pos)
so = (*(*Tregmatch_t)(unsafe.Pointer(pmatch + uintptr(bt)*16))).Frm_so
eo = (*(*Tregmatch_t)(unsafe.Pointer(pmatch + uintptr(bt)*16))).Frm_eo
bt_len = eo - so
- result = Xstrncmp(tls, string1+uintptr(so), str_byte-uintptr(1), uint64(bt_len))
+ result = Xstrncmp(tls, string1+uintptr(so), str_byte-uintptr(1), Uint64FromInt64(bt_len))
if result == 0 {
/* Back reference matched. Check for infinite loop. */
if bt_len == 0 {
@@ -133065,7 +133079,7 @@ _9:
}
(*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fprev = stack
(*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fnext = UintptrFromInt32(0)
- (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fitem.Ftags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(8)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags))
+ (*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fitem.Ftags = X__tre_mem_alloc_impl(tls, mem, 0, UintptrFromInt32(0), 0, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags))
if !((*Ttre_backtrack_struct)(unsafe.Pointer(s1)).Fitem.Ftags != 0) {
X__tre_mem_destroy(tls, mem)
if tags != 0 {
@@ -133088,7 +133102,7 @@ _9:
(*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte = str_byte
(*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate
(*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate_id = (*Ttre_tnfa_transition_t)(unsafe.Pointer(trans_i)).Fstate_id
- (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c = int32(*(*Ttre_char_t)(unsafe.Pointer(bp)))
+ (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c = Int32FromUint32(*(*Ttre_char_t)(unsafe.Pointer(bp)))
i3 = 0
for {
if !(i3 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) {
@@ -133145,7 +133159,7 @@ backtrack:
pos = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fpos
str_byte = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstr_byte
state = (*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fstate
- *(*Ttre_char_t)(unsafe.Pointer(bp)) = uint32((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c)
+ *(*Ttre_char_t)(unsafe.Pointer(bp)) = Uint32FromInt32((*Ttre_backtrack_struct)(unsafe.Pointer(stack)).Fitem.Fnext_c)
i4 = 0
for {
if !(i4 < (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags) {
@@ -133165,7 +133179,7 @@ backtrack:
if *(*Ttre_char_t)(unsafe.Pointer(bp)) == uint32('\000') {
goto _8
}
- *(*Ttre_char_t)(unsafe.Pointer(bp)) = uint32(next_c_start)
+ *(*Ttre_char_t)(unsafe.Pointer(bp)) = Uint32FromInt32(next_c_start)
str_byte = str_byte_start
goto retry
} else {
@@ -133292,7 +133306,7 @@ func Xregexec(tls *TLS, preg uintptr, string1 uintptr, nmatch Tsize_t, pmatch ui
nmatch = uint64(0)
}
if (*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags > 0 && nmatch > uint64(0) {
- tags = Xmalloc(tls, uint64(8)*uint64((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags))
+ tags = Xmalloc(tls, uint64(8)*Uint64FromInt32((*Ttre_tnfa_t)(unsafe.Pointer(tnfa)).Fnum_tags))
if tags == UintptrFromInt32(0) {
return int32(REG_ESPACE)
}
@@ -133389,7 +133403,7 @@ func X__tre_mem_alloc_impl(tls *TLS, mem Ttre_mem_t, provided int32, provided_bl
(*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn = uint64(TRE_MEM_BLOCK_SIZE)
} else {
if size*uint64(8) > uint64(TRE_MEM_BLOCK_SIZE) {
- block_size = int32(size * uint64(8))
+ block_size = Int32FromUint64(size * uint64(8))
} else {
block_size = int32(TRE_MEM_BLOCK_SIZE)
}
@@ -133398,7 +133412,7 @@ func X__tre_mem_alloc_impl(tls *TLS, mem Ttre_mem_t, provided int32, provided_bl
(*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1)
return UintptrFromInt32(0)
}
- (*Ttre_list_t)(unsafe.Pointer(l)).Fdata = Xmalloc(tls, uint64(block_size))
+ (*Ttre_list_t)(unsafe.Pointer(l)).Fdata = Xmalloc(tls, Uint64FromInt32(block_size))
if (*Ttre_list_t)(unsafe.Pointer(l)).Fdata == UintptrFromInt32(0) {
Xfree(tls, l)
(*Ttre_mem_struct)(unsafe.Pointer(mem)).Ffailed = int32(1)
@@ -133413,12 +133427,12 @@ func X__tre_mem_alloc_impl(tls *TLS, mem Ttre_mem_t, provided int32, provided_bl
}
(*Ttre_mem_struct)(unsafe.Pointer(mem)).Fcurrent = l
(*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr = (*Ttre_list_t)(unsafe.Pointer(l)).Fdata
- (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn = uint64(block_size)
+ (*Ttre_mem_struct)(unsafe.Pointer(mem)).Fn = Uint64FromInt32(block_size)
}
}
/* Make sure the next pointer will be aligned. */
- if (uint64(int64((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr))+size)%uint64(8) != 0 {
- v1 = uint64(8) - (uint64(int64((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr))+size)%uint64(8)
+ if (Uint64FromInt64(int64((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr))+size)%uint64(8) != 0 {
+ v1 = uint64(8) - (Uint64FromInt64(int64((*Ttre_mem_struct)(unsafe.Pointer(mem)).Fptr))+size)%uint64(8)
} else {
v1 = uint64(0)
}
@@ -133505,8 +133519,8 @@ func _resize(tls *TLS, nel Tsize_t, htab uintptr) (r int32) {
_, _, _, _, _, _, _, _ = e, i, j, newe, newsize, oldsize, oldtab, v4
oldsize = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fmask + uint64(1)
oldtab = (*t__tab)(unsafe.Pointer((*Thsearch_data)(unsafe.Pointer(htab)).F__tab)).Fentries
- if nel > uint64(-Int32FromInt32(1))/Uint64FromInt32(2)+Uint64FromInt32(1) {
- nel = uint64(-Int32FromInt32(1))/Uint64FromInt32(2) + Uint64FromInt32(1)
+ if nel > Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(2)+Uint64FromInt32(1) {
+ nel = Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(2) + Uint64FromInt32(1)
}
newsize = uint64(MINSIZE)
for {
@@ -133949,7 +133963,7 @@ func X__tsearch_balance(tls *TLS, p uintptr) (r int32) {
n = *(*uintptr)(unsafe.Pointer(p))
h0 = _height(tls, *(*uintptr)(unsafe.Pointer(n + 8)))
h1 = _height(tls, *(*uintptr)(unsafe.Pointer(n + 8 + 1*8)))
- if uint32(h0-h1)+uint32(1) < uint32(3) {
+ if Uint32FromInt32(h0-h1)+uint32(1) < uint32(3) {
old = (*Tnode1)(unsafe.Pointer(n)).Fh
if h0 < h1 {
v1 = h1 + int32(1)
@@ -134025,13 +134039,13 @@ func _walk(tls *TLS, r uintptr, action uintptr, d int32) {
return
}
if (*Tnode1)(unsafe.Pointer(r)).Fh == int32(1) {
- (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{action})))(tls, r, _leaf, d)
+ (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{action})))(tls, r, int32(_leaf), d)
} else {
- (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{action})))(tls, r, _preorder, d)
+ (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{action})))(tls, r, int32(_preorder), d)
_walk(tls, *(*uintptr)(unsafe.Pointer(r + 8)), action, d+int32(1))
- (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{action})))(tls, r, _postorder, d)
+ (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{action})))(tls, r, int32(_postorder), d)
_walk(tls, *(*uintptr)(unsafe.Pointer(r + 8 + 1*8)), action, d+int32(1))
- (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{action})))(tls, r, _endorder, d)
+ (*(*func(*TLS, uintptr, TVISIT, int32))(unsafe.Pointer(&struct{ uintptr }{action})))(tls, r, int32(_endorder), d)
}
}
@@ -134060,7 +134074,7 @@ func Xpoll(tls *TLS, fds uintptr, n Tnfds_t, timeout int32) (r int32) {
} else {
v1 = uintptr(0)
}
- return int32(X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_ppoll), int64(fds), int64(n), int64(v1), int64(Int32FromInt32(0)), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ppoll), int64(fds), Int64FromUint64(n), int64(v1), int64(Int32FromInt32(0)), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0))))
}
type t__ucontext3 = Tucontext_t5
@@ -134097,7 +134111,7 @@ func Xppoll(tls *TLS, fds uintptr, n Tnfds_t, to uintptr, mask uintptr) (r int32
} else {
v3 = uintptr(0)
}
- return int32(X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_ppoll), int64(fds), int64(n), int64(v3), int64(mask), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ppoll), int64(fds), Int64FromUint64(n), int64(v3), int64(mask), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0))))
}
type t__ucontext4 = Tucontext_t4
@@ -134115,7 +134129,7 @@ func Xpselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, ts ui
var _ /* data at bp+16 */ [2]Tsyscall_arg_t
_, _, _, _, _ = ns, s, v1, v2, v3
*(*[2]Tsyscall_arg_t)(unsafe.Pointer(bp + 16)) = [2]Tsyscall_arg_t{
- 0: int64(uint64(mask)),
+ 0: Int64FromUint64(uint64(mask)),
1: int64(Int32FromInt32(_NSIG) / Int32FromInt32(8)),
}
if ts != 0 {
@@ -134139,7 +134153,7 @@ func Xpselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, ts ui
} else {
v3 = uintptr(0)
}
- return int32(X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_pselect6), int64(n), int64(rfds), int64(wfds), int64(efds), int64(v3), int64(bp+16)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pselect6), int64(n), int64(rfds), int64(wfds), int64(efds), int64(v3), int64(bp+16)))))
}
type Tucontext_t6 = struct {
@@ -134174,9 +134188,9 @@ func Xselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, tv uin
v2 = 0
}
us = v2
- max_time = int64(Uint64FromUint64(1)<<(Uint64FromInt32(8)*Uint64FromInt64(8)-Uint64FromInt32(1)) - Uint64FromInt32(1))
+ max_time = Int64FromUint64(Uint64FromUint64(1)<<(Uint64FromInt32(8)*Uint64FromInt64(8)-Uint64FromInt32(1)) - Uint64FromInt32(1))
if s < 0 || us < 0 {
- return int32(X__syscall_ret(tls, uint64(-Int32FromInt32(EINVAL))))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL))))
}
if us/int64(1000000) > max_time-s {
s = max_time
@@ -134199,7 +134213,7 @@ func Xselect(tls *TLS, n int32, rfds uintptr, wfds uintptr, efds uintptr, tv uin
*(*[2]Tsyscall_arg_t)(unsafe.Pointer(bp + 16)) = [2]Tsyscall_arg_t{
1: int64(Int32FromInt32(_NSIG) / Int32FromInt32(8)),
}
- return int32(X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_pselect6), int64(n), int64(rfds), int64(wfds), int64(efds), int64(v3), int64(bp+16)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pselect6), int64(n), int64(rfds), int64(wfds), int64(efds), int64(v3), int64(bp+16)))))
}
var _all_mask = [1]uint64{
@@ -134249,9 +134263,9 @@ func Xgetitimer(tls *TLS, which int32, old uintptr) (r1 int32) {
(*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_sec = (*(*[4]int64)(unsafe.Pointer(bp)))[int32(2)]
(*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_usec = (*(*[4]int64)(unsafe.Pointer(bp)))[int32(3)]
}
- return int32(X__syscall_ret(tls, uint64(r)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r)))
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_getitimer), int64(which), int64(old)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getitimer), int64(which), int64(old)))))
}
func Xkill(tls *TLS, pid Tpid_t, sig int32) (r int32) {
@@ -134259,7 +134273,7 @@ func Xkill(tls *TLS, pid Tpid_t, sig int32) (r int32) {
trc("tls=%v pid=%v sig=%v, (%v:)", tls, pid, sig, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_kill), int64(pid), int64(sig)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_kill), int64(pid), int64(sig)))))
}
func Xkillpg(tls *TLS, pgid Tpid_t, sig int32) (r int32) {
@@ -134336,7 +134350,7 @@ func Xraise(tls *TLS, sig int32) (r int32) {
var _ /* set at bp+0 */ Tsigset_t
_ = ret
X__block_app_sigs(tls, bp)
- ret = int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_tkill), int64((*t__pthread)(unsafe.Pointer(___get_tp(tls))).Ftid), int64(sig)))))
+ ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_tkill), int64((*t__pthread)(unsafe.Pointer(___get_tp(tls))).Ftid), int64(sig)))))
X__restore_sigs(tls, bp)
return ret
}
@@ -134372,8 +134386,8 @@ func Xsetitimer(tls *TLS, which int32, new1 uintptr, old uintptr) (r1 int32) {
vs = (*Titimerval)(unsafe.Pointer(new1)).Fit_value.Ftv_sec
ius = (*Titimerval)(unsafe.Pointer(new1)).Fit_interval.Ftv_usec
vus = (*Titimerval)(unsafe.Pointer(new1)).Fit_value.Ftv_usec
- if !!((uint64(is)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || !!((uint64(vs)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) {
- return int32(X__syscall_ret(tls, uint64(-Int32FromInt32(EOPNOTSUPP))))
+ if !!((Uint64FromInt64(is)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) || !!((Uint64FromInt64(vs)+Uint64FromUint64(0x80000000))>>Int32FromInt32(32) != 0) {
+ return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP))))
}
*(*[4]int64)(unsafe.Pointer(bp)) = [4]int64{
0: is,
@@ -134388,9 +134402,9 @@ func Xsetitimer(tls *TLS, which int32, new1 uintptr, old uintptr) (r1 int32) {
(*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_sec = (*(*[4]int64)(unsafe.Pointer(bp + 32)))[int32(2)]
(*Titimerval)(unsafe.Pointer(old)).Fit_value.Ftv_usec = (*(*[4]int64)(unsafe.Pointer(bp + 32)))[int32(3)]
}
- return int32(X__syscall_ret(tls, uint64(r)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r)))
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_setitimer), int64(which), int64(new1), int64(old)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_setitimer), int64(which), int64(new1), int64(old)))))
}
type Tk_sigaction = struct {
@@ -134429,8 +134443,8 @@ func X__libc_sigaction(tls *TLS, sig int32, sa uintptr, old1 uintptr) (r2 int32)
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = old, r, r1, v, v1, v10, v11, v12, v15, v18, v19, v2, v22, v25, v26, v27, v3, v4, v7
if sa != 0 {
if uint64(*(*uintptr)(unsafe.Pointer(sa))) > uint64(1) {
- v1 = uintptr(unsafe.Pointer(&_handler_set)) + uintptr(uint64(sig-Int32FromInt32(1))/(Uint64FromInt32(8)*Uint64FromInt64(8)))*8
- v2 = int64(uint64(1) << (uint64(sig-Int32FromInt32(1)) % (Uint64FromInt32(8) * Uint64FromInt64(8))))
+ v1 = uintptr(unsafe.Pointer(&_handler_set)) + uintptr(Uint64FromInt32(sig-Int32FromInt32(1))/(Uint64FromInt32(8)*Uint64FromInt64(8)))*8
+ v2 = Int64FromUint64(uint64(1) << (Uint64FromInt32(sig-Int32FromInt32(1)) % (Uint64FromInt32(8) * Uint64FromInt64(8))))
if Uint64FromInt64(8) == Uint64FromInt64(4) {
v3 = v1
for {
@@ -134465,7 +134479,7 @@ func X__libc_sigaction(tls *TLS, sig int32, sa uintptr, old1 uintptr) (r2 int32)
Fr [0][2]Tuint32_t
Fv Tuint64_t
}{}
- *(*uint64)(unsafe.Pointer(bp + 8)) = uint64(v2)
+ *(*uint64)(unsafe.Pointer(bp + 8)) = Uint64FromInt64(v2)
if *(*Tuint32_t)(unsafe.Pointer(bp + 8)) != 0 {
v11 = v10
for {
@@ -134543,7 +134557,7 @@ func X__libc_sigaction(tls *TLS, sig int32, sa uintptr, old1 uintptr) (r2 int32)
}
}
(*(*Tk_sigaction)(unsafe.Pointer(bp + 16))).Fhandler = *(*uintptr)(unsafe.Pointer(sa))
- (*(*Tk_sigaction)(unsafe.Pointer(bp + 16))).Fflags = uint64((*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags)
+ (*(*Tk_sigaction)(unsafe.Pointer(bp + 16))).Fflags = Uint64FromInt32((*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags)
(*(*Tk_sigaction)(unsafe.Pointer(bp + 16))).Fflags |= uint64(SA_RESTORER)
if (*Tsigaction)(unsafe.Pointer(sa)).Fsa_flags&int32(SA_SIGINFO) != 0 {
v25 = __ccgo_fp(X__restore_rt)
@@ -134551,7 +134565,7 @@ func X__libc_sigaction(tls *TLS, sig int32, sa uintptr, old1 uintptr) (r2 int32)
v25 = __ccgo_fp(X__restore)
}
(*(*Tk_sigaction)(unsafe.Pointer(bp + 16))).Frestorer = v25
- Xmemcpy(tls, bp+16+24, sa+8, uint64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))
+ Xmemcpy(tls, bp+16+24, sa+8, Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8)))
}
if sa != 0 {
v26 = bp + 16
@@ -134566,10 +134580,10 @@ func X__libc_sigaction(tls *TLS, sig int32, sa uintptr, old1 uintptr) (r2 int32)
r1 = int32(X__syscall4(tls, int64(SYS_rt_sigaction), int64(sig), int64(v26), int64(v27), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))))
if old1 != 0 && !(r1 != 0) {
*(*uintptr)(unsafe.Pointer(old1)) = (*(*Tk_sigaction)(unsafe.Pointer(bp + 48))).Fhandler
- (*Tsigaction)(unsafe.Pointer(old1)).Fsa_flags = int32((*(*Tk_sigaction)(unsafe.Pointer(bp + 48))).Fflags)
- Xmemcpy(tls, old1+8, bp+48+24, uint64(Int32FromInt32(_NSIG)/Int32FromInt32(8)))
+ (*Tsigaction)(unsafe.Pointer(old1)).Fsa_flags = Int32FromUint64((*(*Tk_sigaction)(unsafe.Pointer(bp + 48))).Fflags)
+ Xmemcpy(tls, old1+8, bp+48+24, Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8)))
}
- return int32(X__syscall_ret(tls, uint64(r1)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r1)))
}
func X__sigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r1 int32) {
@@ -134582,7 +134596,7 @@ func X__sigaction(tls *TLS, sig int32, sa uintptr, old uintptr) (r1 int32) {
var r int32
var _ /* set at bp+0 */ [1]uint64
_ = r
- if uint32(sig)-uint32(32) < uint32(3) || uint32(sig)-uint32(1) >= uint32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) {
+ if Uint32FromInt32(sig)-uint32(32) < uint32(3) || Uint32FromInt32(sig)-uint32(1) >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EINVAL)
return -int32(1)
}
@@ -134616,8 +134630,8 @@ func Xsigaddset(tls *TLS, set uintptr, sig int32) (r int32) {
}
var s uint32
_ = s
- s = uint32(sig - int32(1))
- if s >= uint32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) || uint32(sig)-uint32(32) < uint32(3) {
+ s = Uint32FromInt32(sig - int32(1))
+ if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) || Uint32FromInt32(sig)-uint32(32) < uint32(3) {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EINVAL)
return -int32(1)
}
@@ -134640,7 +134654,7 @@ func Xsigaltstack(tls *TLS, ss uintptr, old uintptr) (r int32) {
return -int32(1)
}
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_sigaltstack), int64(ss), int64(old)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_sigaltstack), int64(ss), int64(old)))))
}
const SST_SIZE = 8
@@ -134666,7 +134680,7 @@ func Xsigandset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32)
l = left
r = right
for {
- if !(i < uint64(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) {
+ if !(i < Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) {
break
}
*(*uint64)(unsafe.Pointer(d + uintptr(i)*8)) = *(*uint64)(unsafe.Pointer(l + uintptr(i)*8)) & *(*uint64)(unsafe.Pointer(r + uintptr(i)*8))
@@ -134677,6 +134691,7 @@ func Xsigandset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32)
}
return 0
}
+
func Xsigdelset(tls *TLS, set uintptr, sig int32) (r int32) {
if __ccgo_strace {
trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2))
@@ -134684,8 +134699,8 @@ func Xsigdelset(tls *TLS, set uintptr, sig int32) (r int32) {
}
var s uint32
_ = s
- s = uint32(sig - int32(1))
- if s >= uint32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) || uint32(sig)-uint32(32) < uint32(3) {
+ s = Uint32FromInt32(sig - int32(1))
+ if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) || Uint32FromInt32(sig)-uint32(32) < uint32(3) {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EINVAL)
return -int32(1)
}
@@ -134739,7 +134754,7 @@ func Xsigisemptyset(tls *TLS, set uintptr) (r int32) {
_ = i
i = uint64(0)
for {
- if !(i < uint64(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) {
+ if !(i < Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) {
break
}
if *(*uint64)(unsafe.Pointer(set + uintptr(i)*8)) != 0 {
@@ -134752,6 +134767,7 @@ func Xsigisemptyset(tls *TLS, set uintptr) (r int32) {
}
return int32(1)
}
+
func Xsigismember(tls *TLS, set uintptr, sig int32) (r int32) {
if __ccgo_strace {
trc("tls=%v set=%v sig=%v, (%v:)", tls, set, sig, origin(2))
@@ -134759,8 +134775,8 @@ func Xsigismember(tls *TLS, set uintptr, sig int32) (r int32) {
}
var s uint32
_ = s
- s = uint32(sig - int32(1))
- if s >= uint32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) {
+ s = Uint32FromInt32(sig - int32(1))
+ if s >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) {
return 0
}
return BoolInt32(!!(*(*uint64)(unsafe.Pointer(set + uintptr(uint64(s/uint32(8))/uint64(8))*8))&(Uint64FromUint64(1)<<(uint64(s)&(Uint64FromInt32(8)*Uint64FromInt64(8)-Uint64FromInt32(1)))) != 0))
@@ -134779,7 +134795,7 @@ func Xsigorset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32) {
l = left
r = right
for {
- if !(i < uint64(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) {
+ if !(i < Uint64FromInt32(Int32FromInt32(_NSIG)/Int32FromInt32(8))/Uint64FromInt64(8)) {
break
}
*(*uint64)(unsafe.Pointer(d + uintptr(i)*8)) = *(*uint64)(unsafe.Pointer(l + uintptr(i)*8)) | *(*uint64)(unsafe.Pointer(r + uintptr(i)*8))
@@ -134790,12 +134806,13 @@ func Xsigorset(tls *TLS, dest uintptr, left uintptr, right uintptr) (r1 int32) {
}
return 0
}
+
func Xsigpending(tls *TLS, set uintptr) (r int32) {
if __ccgo_strace {
trc("tls=%v set=%v, (%v:)", tls, set, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_rt_sigpending), int64(set), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_rt_sigpending), int64(set), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8))))))
}
func Xsigprocmask(tls *TLS, how int32, set uintptr, old uintptr) (r1 int32) {
@@ -134831,7 +134848,7 @@ func Xsigqueue(tls *TLS, pid Tpid_t, sig int32, value Tsigval) (r1 int32) {
*(*Tuid_t)(unsafe.Pointer(bp + 16 + 4)) = Xgetuid(tls)
X__block_app_sigs(tls, bp+128)
*(*Tpid_t)(unsafe.Pointer(bp + 16)) = Xgetpid(tls)
- r = int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_rt_sigqueueinfo), int64(pid), int64(sig), int64(bp)))))
+ r = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_rt_sigqueueinfo), int64(pid), int64(sig), int64(bp)))))
X__restore_sigs(tls, bp+128)
return r
}
@@ -134891,7 +134908,7 @@ func Xsigsuspend(tls *TLS, mask uintptr) (r int32) {
trc("tls=%v mask=%v, (%v:)", tls, mask, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_rt_sigsuspend), int64(mask), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0, 0, 0, 0))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_rt_sigsuspend), int64(mask), int64(Int32FromInt32(_NSIG)/Int32FromInt32(8)), 0, 0, 0, 0))))
}
func _do_sigtimedwait(tls *TLS, mask uintptr, si uintptr, ts uintptr) (r int32) {
@@ -134908,7 +134925,7 @@ func Xsigtimedwait(tls *TLS, mask uintptr, si uintptr, timeout uintptr) (r int32
for cond := true; cond; cond = ret == -int32(EINTR) {
ret = _do_sigtimedwait(tls, mask, si, timeout)
}
- return int32(X__syscall_ret(tls, uint64(ret)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(ret)))
}
func Xsigwait(tls *TLS, mask uintptr, sig uintptr) (r int32) {
@@ -134987,7 +135004,7 @@ func Xchmod(tls *TLS, path uintptr, mode Tmode_t) (r int32) {
trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_fchmodat), int64(-Int32FromInt32(100)), int64(path), int64(mode)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fchmodat), int64(-Int32FromInt32(100)), int64(path), Int64FromUint32(mode)))))
}
func Xfchmod(tls *TLS, fd int32, mode Tmode_t) (r int32) {
@@ -135000,12 +135017,12 @@ func Xfchmod(tls *TLS, fd int32, mode Tmode_t) (r int32) {
var ret int32
var _ /* buf at bp+0 */ [27]uint8
_ = ret
- ret = int32(X__syscall2(tls, int64(SYS_fchmod), int64(fd), int64(mode)))
+ ret = int32(X__syscall2(tls, int64(SYS_fchmod), int64(fd), Int64FromUint32(mode)))
if ret != -int32(EBADF) || X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) < 0 {
- return int32(X__syscall_ret(tls, uint64(ret)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(ret)))
}
- X__procfdname(tls, bp, uint32(fd))
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_fchmodat), int64(-Int32FromInt32(100)), int64(bp), int64(mode)))))
+ X__procfdname(tls, bp, Uint32FromInt32(fd))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fchmodat), int64(-Int32FromInt32(100)), int64(bp), Int64FromUint32(mode)))))
}
func Xfchmodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, flag int32) (r int32) {
@@ -135020,36 +135037,36 @@ func Xfchmodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, flag int32) (r in
var _ /* st at bp+0 */ Tstat
_, _, _ = fd2, ret, v1
if !(flag != 0) {
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_fchmodat), int64(fd), int64(path), int64(mode)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fchmodat), int64(fd), int64(path), Int64FromUint32(mode)))))
}
- ret = int32(X__syscall4(tls, int64(SYS_fchmodat2), int64(fd), int64(path), int64(mode), int64(flag)))
+ ret = int32(X__syscall4(tls, int64(SYS_fchmodat2), int64(fd), int64(path), Int64FromUint32(mode), int64(flag)))
if ret != -int32(ENOSYS) {
- return int32(X__syscall_ret(tls, uint64(ret)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(ret)))
}
if flag != int32(AT_SYMLINK_NOFOLLOW) {
- return int32(X__syscall_ret(tls, uint64(-Int32FromInt32(EINVAL))))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL))))
}
if Xfstatat(tls, fd, path, bp, flag) != 0 {
return -int32(1)
}
if (*(*Tstat)(unsafe.Pointer(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) {
- return int32(X__syscall_ret(tls, uint64(-Int32FromInt32(EOPNOTSUPP))))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP))))
}
v1 = int32(X__syscall3(tls, int64(SYS_openat), int64(fd), int64(path), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_PATH)|Int32FromInt32(O_NOFOLLOW)|Int32FromInt32(O_NOCTTY)|Int32FromInt32(O_CLOEXEC))))
fd2 = v1
if v1 < 0 {
if fd2 == -int32(ELOOP) {
- return int32(X__syscall_ret(tls, uint64(-Int32FromInt32(EOPNOTSUPP))))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP))))
}
- return int32(X__syscall_ret(tls, uint64(fd2)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(fd2)))
}
- X__procfdname(tls, bp+128, uint32(fd2))
+ X__procfdname(tls, bp+128, Uint32FromInt32(fd2))
ret = Xstat(tls, bp+128, bp)
if !(ret != 0) {
if (*(*Tstat)(unsafe.Pointer(bp))).Fst_mode&uint32(S_IFMT) == uint32(S_IFLNK) {
- ret = int32(X__syscall_ret(tls, uint64(-Int32FromInt32(EOPNOTSUPP))))
+ ret = int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EOPNOTSUPP))))
} else {
- ret = int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_fchmodat), int64(-Int32FromInt32(100)), int64(bp+128), int64(mode)))))
+ ret = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fchmodat), int64(-Int32FromInt32(100)), int64(bp+128), Int64FromUint32(mode)))))
}
}
X__syscall1(tls, int64(SYS_close), int64(fd2))
@@ -135062,7 +135079,7 @@ func X__fstat(tls *TLS, fd int32, st uintptr) (r int32) {
defer func() { trc("-> %v", r) }()
}
if fd < 0 {
- return int32(X__syscall_ret(tls, uint64(-Int32FromInt32(EBADF))))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EBADF))))
}
return X__fstatat(tls, fd, __ccgo_ts, st, int32(AT_EMPTY_PATH))
}
@@ -135134,20 +135151,20 @@ func _fstatat_statx(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r
Fst_uid: (*(*Tstatx1)(unsafe.Pointer(bp))).Fstx_uid,
Fst_gid: (*(*Tstatx1)(unsafe.Pointer(bp))).Fstx_gid,
Fst_rdev: uint64((*(*Tstatx1)(unsafe.Pointer(bp))).Fstx_rdev_major)&Uint64FromUint64(0xfffff000)<<Int32FromInt32(32) | uint64((*(*Tstatx1)(unsafe.Pointer(bp))).Fstx_rdev_major)&Uint64FromUint64(0x00000fff)<<Int32FromInt32(8) | uint64((*(*Tstatx1)(unsafe.Pointer(bp))).Fstx_rdev_minor)&Uint64FromUint64(0xffffff00)<<Int32FromInt32(12) | uint64((*(*Tstatx1)(unsafe.Pointer(bp))).Fstx_rdev_minor)&Uint64FromUint64(0x000000ff),
- Fst_size: int64((*(*Tstatx1)(unsafe.Pointer(bp))).Fstx_size),
- Fst_blksize: int32((*(*Tstatx1)(unsafe.Pointer(bp))).Fstx_blksize),
- Fst_blocks: int64((*(*Tstatx1)(unsafe.Pointer(bp))).Fstx_blocks),
+ Fst_size: Int64FromUint64((*(*Tstatx1)(unsafe.Pointer(bp))).Fstx_size),
+ Fst_blksize: Int32FromUint32((*(*Tstatx1)(unsafe.Pointer(bp))).Fstx_blksize),
+ Fst_blocks: Int64FromUint64((*(*Tstatx1)(unsafe.Pointer(bp))).Fstx_blocks),
Fst_atim: Ttimespec{
Ftv_sec: (*(*Tstatx1)(unsafe.Pointer(bp))).Fstx_atime.Ftv_sec,
- Ftv_nsec: int64((*(*Tstatx1)(unsafe.Pointer(bp))).Fstx_atime.Ftv_nsec),
+ Ftv_nsec: Int64FromUint32((*(*Tstatx1)(unsafe.Pointer(bp))).Fstx_atime.Ftv_nsec),
},
Fst_mtim: Ttimespec{
Ftv_sec: (*(*Tstatx1)(unsafe.Pointer(bp))).Fstx_mtime.Ftv_sec,
- Ftv_nsec: int64((*(*Tstatx1)(unsafe.Pointer(bp))).Fstx_mtime.Ftv_nsec),
+ Ftv_nsec: Int64FromUint32((*(*Tstatx1)(unsafe.Pointer(bp))).Fstx_mtime.Ftv_nsec),
},
Fst_ctim: Ttimespec{
Ftv_sec: (*(*Tstatx1)(unsafe.Pointer(bp))).Fstx_ctime.Ftv_sec,
- Ftv_nsec: int64((*(*Tstatx1)(unsafe.Pointer(bp))).Fstx_ctime.Ftv_nsec),
+ Ftv_nsec: Int64FromUint32((*(*Tstatx1)(unsafe.Pointer(bp))).Fstx_ctime.Ftv_nsec),
},
}
return 0
@@ -135187,7 +135204,7 @@ func _fstatat_kstat(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r
if ret == -int32(EBADF) && X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) >= 0 {
ret = int32(X__syscall4(tls, int64(SYS_newfstatat), int64(fd), int64(path), int64(bp), int64(flag)))
if ret == -int32(EINVAL) {
- X__procfdname(tls, bp+128, uint32(fd))
+ X__procfdname(tls, bp+128, Uint32FromInt32(fd))
ret = int32(X__syscall4(tls, int64(SYS_newfstatat), int64(-Int32FromInt32(100)), int64(bp+128), int64(bp), int64(Int32FromInt32(0))))
}
}
@@ -135234,11 +135251,11 @@ func X__fstatat(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int
if uint64(8) < uint64(8) {
ret = _fstatat_statx(tls, fd, path, st, flag)
if ret != -int32(ENOSYS) {
- return int32(X__syscall_ret(tls, uint64(ret)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(ret)))
}
}
ret = _fstatat_kstat(tls, fd, path, st, flag)
- return int32(X__syscall_ret(tls, uint64(ret)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(ret)))
}
func Xfstatat(tls *TLS, fd int32, path uintptr, st uintptr, flag int32) (r int32) {
@@ -135274,8 +135291,8 @@ func X__futimesat(tls *TLS, dirfd int32, pathname uintptr, times uintptr) (r int
if !(i < int32(2)) {
break
}
- if uint64((*(*Ttimeval)(unsafe.Pointer(times + uintptr(i)*16))).Ftv_usec) >= uint64(1000000) {
- return int32(X__syscall_ret(tls, uint64(-Int32FromInt32(EINVAL))))
+ if Uint64FromInt64((*(*Ttimeval)(unsafe.Pointer(times + uintptr(i)*16))).Ftv_usec) >= uint64(1000000) {
+ return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL))))
}
(*(*[2]Ttimespec)(unsafe.Pointer(bp)))[i].Ftv_sec = (*(*Ttimeval)(unsafe.Pointer(times + uintptr(i)*16))).Ftv_sec
(*(*[2]Ttimespec)(unsafe.Pointer(bp)))[i].Ftv_nsec = (*(*Ttimeval)(unsafe.Pointer(times + uintptr(i)*16))).Ftv_usec * int64(1000)
@@ -135322,7 +135339,7 @@ func Xmkdir(tls *TLS, path uintptr, mode Tmode_t) (r int32) {
trc("tls=%v path=%v mode=%v, (%v:)", tls, path, mode, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_mkdirat), int64(-Int32FromInt32(100)), int64(path), int64(mode)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mkdirat), int64(-Int32FromInt32(100)), int64(path), Int64FromUint32(mode)))))
}
func Xmkdirat(tls *TLS, fd int32, path uintptr, mode Tmode_t) (r int32) {
@@ -135330,7 +135347,7 @@ func Xmkdirat(tls *TLS, fd int32, path uintptr, mode Tmode_t) (r int32) {
trc("tls=%v fd=%v path=%v mode=%v, (%v:)", tls, fd, path, mode, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_mkdirat), int64(fd), int64(path), int64(mode)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_mkdirat), int64(fd), int64(path), Int64FromUint32(mode)))))
}
func Xmkfifo(tls *TLS, path uintptr, mode Tmode_t) (r int32) {
@@ -135354,7 +135371,7 @@ func Xmknod(tls *TLS, path uintptr, mode Tmode_t, dev Tdev_t) (r int32) {
trc("tls=%v path=%v mode=%v dev=%v, (%v:)", tls, path, mode, dev, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall4(tls, int64(SYS_mknodat), int64(-Int32FromInt32(100)), int64(path), int64(mode), int64(dev)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_mknodat), int64(-Int32FromInt32(100)), int64(path), Int64FromUint32(mode), Int64FromUint64(dev)))))
}
func Xmknodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, dev Tdev_t) (r int32) {
@@ -135362,7 +135379,7 @@ func Xmknodat(tls *TLS, fd int32, path uintptr, mode Tmode_t, dev Tdev_t) (r int
trc("tls=%v fd=%v path=%v mode=%v dev=%v, (%v:)", tls, fd, path, mode, dev, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall4(tls, int64(SYS_mknodat), int64(fd), int64(path), int64(mode), int64(dev)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_mknodat), int64(fd), int64(path), Int64FromUint32(mode), Int64FromUint64(dev)))))
}
func Xstat(tls *TLS, path uintptr, buf uintptr) (r int32) {
@@ -135375,7 +135392,7 @@ func Xstat(tls *TLS, path uintptr, buf uintptr) (r int32) {
func ___statfs(tls *TLS, path uintptr, buf uintptr) (r int32) {
*(*Tstatfs)(unsafe.Pointer(buf)) = Tstatfs{}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_statfs), int64(path), int64(buf)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_statfs), int64(path), int64(buf)))))
}
func Xfstatfs(tls *TLS, fd int32, buf uintptr) (r int32) {
@@ -135384,7 +135401,7 @@ func Xfstatfs(tls *TLS, fd int32, buf uintptr) (r int32) {
defer func() { trc("-> %v", r) }()
}
*(*Tstatfs)(unsafe.Pointer(buf)) = Tstatfs{}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_fstatfs), int64(fd), int64(buf)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_fstatfs), int64(fd), int64(buf)))))
}
func _fixup(tls *TLS, out uintptr, in uintptr) {
@@ -135404,7 +135421,7 @@ func _fixup(tls *TLS, out uintptr, in uintptr) {
(*Tstatvfs)(unsafe.Pointer(out)).Ff_files = (*Tstatfs)(unsafe.Pointer(in)).Ff_files
(*Tstatvfs)(unsafe.Pointer(out)).Ff_ffree = (*Tstatfs)(unsafe.Pointer(in)).Ff_ffree
(*Tstatvfs)(unsafe.Pointer(out)).Ff_favail = (*Tstatfs)(unsafe.Pointer(in)).Ff_ffree
- (*Tstatvfs)(unsafe.Pointer(out)).Ff_fsid = uint64(*(*int32)(unsafe.Pointer(in + 56)))
+ (*Tstatvfs)(unsafe.Pointer(out)).Ff_fsid = Uint64FromInt32(*(*int32)(unsafe.Pointer(in + 56)))
(*Tstatvfs)(unsafe.Pointer(out)).Ff_flag = (*Tstatfs)(unsafe.Pointer(in)).Ff_flags
(*Tstatvfs)(unsafe.Pointer(out)).Ff_namemax = (*Tstatfs)(unsafe.Pointer(in)).Ff_namelen
(*Tstatvfs)(unsafe.Pointer(out)).Ff_type = uint32((*Tstatfs)(unsafe.Pointer(in)).Ff_type)
@@ -135445,7 +135462,7 @@ func Xumask(tls *TLS, mode Tmode_t) (r Tmode_t) {
trc("tls=%v mode=%v, (%v:)", tls, mode, origin(2))
defer func() { trc("-> %v", r) }()
}
- return uint32(X__syscall_ret(tls, uint64(X__syscall1(tls, int64(SYS_umask), int64(mode)))))
+ return Uint32FromInt64(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_umask), Int64FromUint32(mode)))))
}
func Xutimensat(tls *TLS, fd int32, path uintptr, times uintptr, flags int32) (r1 int32) {
@@ -135459,7 +135476,7 @@ func Xutimensat(tls *TLS, fd int32, path uintptr, times uintptr, flags int32) (r
times = uintptr(0)
}
r = int32(X__syscall4(tls, int64(SYS_utimensat), int64(fd), int64(path), int64(times), int64(flags)))
- return int32(X__syscall_ret(tls, uint64(r)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r)))
}
func X__fclose_ca(tls *TLS, f uintptr) (r int32) {
@@ -135482,7 +135499,7 @@ func X__fdopen(tls *TLS, fd int32, mode uintptr) (r uintptr) {
var _ /* wsz at bp+0 */ Twinsize
_, _, _, _ = f, flags, v1, v2
/* Check for valid initial mode character */
- if !(Xstrchr(tls, __ccgo_ts+1504, int32(*(*uint8)(unsafe.Pointer(mode)))) != 0) {
+ if !(Xstrchr(tls, __ccgo_ts+1504, Int32FromUint8(*(*uint8)(unsafe.Pointer(mode)))) != 0) {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EINVAL)
return uintptr(0)
}
@@ -135496,19 +135513,19 @@ func X__fdopen(tls *TLS, fd int32, mode uintptr) (r uintptr) {
Xmemset(tls, f, 0, uint64(232))
/* Impose mode restrictions */
if !(Xstrchr(tls, mode, int32('+')) != 0) {
- if int32(*(*uint8)(unsafe.Pointer(mode))) == int32('r') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(mode))) == int32('r') {
v2 = int32(F_NOWR)
} else {
v2 = int32(F_NORD)
}
- (*TFILE)(unsafe.Pointer(f)).Fflags = uint32(v2)
+ (*TFILE)(unsafe.Pointer(f)).Fflags = Uint32FromInt32(v2)
}
/* Apply close-on-exec flag */
if Xstrchr(tls, mode, int32('e')) != 0 {
X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC)))
}
/* Set append mode on fd if opened for append */
- if int32(*(*uint8)(unsafe.Pointer(mode))) == int32('a') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(mode))) == int32('a') {
flags = int32(X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFL))))
if !(flags&Int32FromInt32(O_APPEND) != 0) {
X__syscall3(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_SETFL)), int64(flags|Int32FromInt32(O_APPEND)))
@@ -135553,7 +135570,7 @@ func X__fmodeflags(tls *TLS, mode uintptr) (r int32) {
if Xstrchr(tls, mode, int32('+')) != 0 {
flags = int32(O_RDWR)
} else {
- if int32(*(*uint8)(unsafe.Pointer(mode))) == int32('r') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(mode))) == int32('r') {
flags = O_RDONLY
} else {
flags = int32(O_WRONLY)
@@ -135565,13 +135582,13 @@ func X__fmodeflags(tls *TLS, mode uintptr) (r int32) {
if Xstrchr(tls, mode, int32('e')) != 0 {
flags |= int32(O_CLOEXEC)
}
- if int32(*(*uint8)(unsafe.Pointer(mode))) != int32('r') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(mode))) != int32('r') {
flags |= int32(O_CREAT)
}
- if int32(*(*uint8)(unsafe.Pointer(mode))) == int32('w') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(mode))) == int32('w') {
flags |= int32(O_TRUNC)
}
- if int32(*(*uint8)(unsafe.Pointer(mode))) == int32('a') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(mode))) == int32('a') {
flags |= int32(O_APPEND)
}
return flags
@@ -135583,12 +135600,12 @@ func X__fopen_rb_ca(tls *TLS, filename uintptr, f uintptr, buf uintptr, len1 Tsi
defer func() { trc("-> %v", r) }()
}
Xmemset(tls, f, 0, uint64(232))
- (*TFILE)(unsafe.Pointer(f)).Ffd = int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(filename), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_LARGEFILE))))))
+ (*TFILE)(unsafe.Pointer(f)).Ffd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(filename), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_LARGEFILE))))))
if (*TFILE)(unsafe.Pointer(f)).Ffd < 0 {
return uintptr(0)
}
X__syscall3(tls, int64(SYS_fcntl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC)))
- (*TFILE)(unsafe.Pointer(f)).Fflags = uint32(Int32FromInt32(F_NOWR) | Int32FromInt32(F_PERM))
+ (*TFILE)(unsafe.Pointer(f)).Fflags = Uint32FromInt32(Int32FromInt32(F_NOWR) | Int32FromInt32(F_PERM))
(*TFILE)(unsafe.Pointer(f)).Fbuf = buf + uintptr(UNGET)
(*TFILE)(unsafe.Pointer(f)).Fbuf_size = len1 - uint64(UNGET)
(*TFILE)(unsafe.Pointer(f)).Fread = __ccgo_fp(X__stdio_read)
@@ -135609,22 +135626,22 @@ func X__overflow(tls *TLS, f uintptr, _c int32) (r int32) {
var v2, v3 uintptr
var _ /* c at bp+0 */ uint8
_, _, _ = v1, v2, v3
- *(*uint8)(unsafe.Pointer(bp)) = uint8(_c)
+ *(*uint8)(unsafe.Pointer(bp)) = Uint8FromInt32(_c)
if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 {
return -int32(1)
}
- if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend && int32(*(*uint8)(unsafe.Pointer(bp))) != (*TFILE)(unsafe.Pointer(f)).Flbf {
+ if (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend && Int32FromUint8(*(*uint8)(unsafe.Pointer(bp))) != (*TFILE)(unsafe.Pointer(f)).Flbf {
v1 = *(*uint8)(unsafe.Pointer(bp))
v3 = f + 40
v2 = *(*uintptr)(unsafe.Pointer(v3))
*(*uintptr)(unsafe.Pointer(v3))++
*(*uint8)(unsafe.Pointer(v2)) = v1
- return int32(v1)
+ return Int32FromUint8(v1)
}
if (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, bp, uint64(1)) != uint64(1) {
return -int32(1)
}
- return int32(*(*uint8)(unsafe.Pointer(bp)))
+ return Int32FromUint8(*(*uint8)(unsafe.Pointer(bp)))
}
func _dummy9(tls *TLS, fd int32) (r int32) {
@@ -135636,7 +135653,7 @@ func X__stdio_close(tls *TLS, f uintptr) (r int32) {
trc("tls=%v f=%v, (%v:)", tls, f, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall1(tls, int64(SYS_close), int64(_dummy9(tls, (*TFILE)(unsafe.Pointer(f)).Ffd))))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_close), int64(_dummy9(tls, (*TFILE)(unsafe.Pointer(f)).Ffd))))))
}
var _dummy_file = uintptr(0)
@@ -135709,9 +135726,9 @@ func X__stdio_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) {
},
}
if (*(*[2]Tiovec)(unsafe.Pointer(bp)))[0].Fiov_len != 0 {
- v1 = X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_readv), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(bp), int64(Int32FromInt32(2)))))
+ v1 = X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_readv), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(bp), int64(Int32FromInt32(2)))))
} else {
- v1 = X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_read), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64((*(*[2]Tiovec)(unsafe.Pointer(bp)))[int32(1)].Fiov_base), int64((*(*[2]Tiovec)(unsafe.Pointer(bp)))[int32(1)].Fiov_len))))
+ v1 = X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_read), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64((*(*[2]Tiovec)(unsafe.Pointer(bp)))[int32(1)].Fiov_base), Int64FromUint64((*(*[2]Tiovec)(unsafe.Pointer(bp)))[int32(1)].Fiov_len))))
}
cnt = v1
if cnt <= 0 {
@@ -135720,11 +135737,11 @@ func X__stdio_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) {
} else {
v2 = int32(F_EOF)
}
- *(*uint32)(unsafe.Pointer(f)) |= uint32(v2)
+ *(*uint32)(unsafe.Pointer(f)) |= Uint32FromInt32(v2)
return uint64(0)
}
- if uint64(cnt) <= (*(*[2]Tiovec)(unsafe.Pointer(bp)))[0].Fiov_len {
- return uint64(cnt)
+ if Uint64FromInt64(cnt) <= (*(*[2]Tiovec)(unsafe.Pointer(bp)))[0].Fiov_len {
+ return Uint64FromInt64(cnt)
}
cnt = Tssize_t(uint64(cnt) - (*(*[2]Tiovec)(unsafe.Pointer(bp)))[0].Fiov_len)
(*TFILE)(unsafe.Pointer(f)).Frpos = (*TFILE)(unsafe.Pointer(f)).Fbuf
@@ -135763,7 +135780,7 @@ func X__stdio_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t)
*(*[2]Tiovec)(unsafe.Pointer(bp)) = [2]Tiovec{
0: {
Fiov_base: (*TFILE)(unsafe.Pointer(f)).Fwbase,
- Fiov_len: uint64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)),
+ Fiov_len: Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase)),
},
1: {
Fiov_base: buf,
@@ -135774,8 +135791,8 @@ func X__stdio_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t)
rem = (*(*Tiovec)(unsafe.Pointer(iov))).Fiov_len + (*(*Tiovec)(unsafe.Pointer(iov + 1*16))).Fiov_len
iovcnt = int32(2)
for {
- cnt = X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_writev), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(iov), int64(iovcnt))))
- if uint64(cnt) == rem {
+ cnt = X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_writev), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(iov), int64(iovcnt))))
+ if Uint64FromInt64(cnt) == rem {
(*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size)
v2 = (*TFILE)(unsafe.Pointer(f)).Fbuf
(*TFILE)(unsafe.Pointer(f)).Fwbase = v2
@@ -135796,14 +135813,14 @@ func X__stdio_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t)
}
return v5
}
- rem -= uint64(cnt)
- if uint64(cnt) > (*(*Tiovec)(unsafe.Pointer(iov))).Fiov_len {
+ rem -= Uint64FromInt64(cnt)
+ if Uint64FromInt64(cnt) > (*(*Tiovec)(unsafe.Pointer(iov))).Fiov_len {
cnt = Tssize_t(uint64(cnt) - (*(*Tiovec)(unsafe.Pointer(iov))).Fiov_len)
iov += 16
iovcnt--
}
(*(*Tiovec)(unsafe.Pointer(iov))).Fiov_base = (*(*Tiovec)(unsafe.Pointer(iov))).Fiov_base + uintptr(cnt)
- (*(*Tiovec)(unsafe.Pointer(iov))).Fiov_len -= uint64(cnt)
+ (*(*Tiovec)(unsafe.Pointer(iov))).Fiov_len -= Uint64FromInt64(cnt)
goto _1
_1:
}
@@ -135907,7 +135924,7 @@ func X__uflow(tls *TLS, f uintptr) (r int32) {
defer tls.Free(16)
var _ /* c at bp+0 */ uint8
if !(X__toread(tls, f) != 0) && (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fread})))(tls, f, bp, uint64(1)) == uint64(1) {
- return int32(*(*uint8)(unsafe.Pointer(bp)))
+ return Int32FromUint8(*(*uint8)(unsafe.Pointer(bp)))
}
return -int32(1)
}
@@ -135938,7 +135955,7 @@ func Xclearerr(tls *TLS, f uintptr) {
v1 = 0
}
__need_unlock = v1
- *(*uint32)(unsafe.Pointer(f)) &= uint32(^(Int32FromInt32(F_EOF) | Int32FromInt32(F_ERR)))
+ *(*uint32)(unsafe.Pointer(f)) &= Uint32FromInt32(^(Int32FromInt32(F_EOF) | Int32FromInt32(F_ERR)))
if __need_unlock != 0 {
___unlockfile(tls, f)
}
@@ -136044,7 +136061,7 @@ func X__fpending(tls *TLS, f uintptr) (r Tsize_t) {
} else {
v1 = 0
}
- return uint64(v1)
+ return Uint64FromInt64(v1)
}
func X__fpurge(tls *TLS, f uintptr) (r int32) {
@@ -136088,7 +136105,7 @@ func X__freadahead(tls *TLS, f uintptr) (r Tsize_t) {
} else {
v1 = 0
}
- return uint64(v1)
+ return Uint64FromInt64(v1)
}
func X__freadptr(tls *TLS, f uintptr, sizep uintptr) (r uintptr) {
@@ -136099,7 +136116,7 @@ func X__freadptr(tls *TLS, f uintptr, sizep uintptr) (r uintptr) {
if (*TFILE)(unsafe.Pointer(f)).Frpos == (*TFILE)(unsafe.Pointer(f)).Frend {
return uintptr(0)
}
- *(*Tsize_t)(unsafe.Pointer(sizep)) = uint64(int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos))
+ *(*Tsize_t)(unsafe.Pointer(sizep)) = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos))
return (*TFILE)(unsafe.Pointer(f)).Frpos
}
@@ -136367,7 +136384,7 @@ _8:
v11 = f + 8
v10 = *(*uintptr)(unsafe.Pointer(v11))
*(*uintptr)(unsafe.Pointer(v11))++
- v9 = int32(*(*uint8)(unsafe.Pointer(v10)))
+ v9 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v10)))
} else {
v9 = X__uflow(tls, f)
}
@@ -136426,7 +136443,7 @@ func Xfgetc(tls *TLS, f1 uintptr) (r int32) {
v6 = v1 + 8
v5 = *(*uintptr)(unsafe.Pointer(v6))
*(*uintptr)(unsafe.Pointer(v6))++
- v4 = int32(*(*uint8)(unsafe.Pointer(v5)))
+ v4 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v5)))
} else {
v4 = X__uflow(tls, v1)
}
@@ -136462,27 +136479,27 @@ func Xfgetln(tls *TLS, f uintptr, plen uintptr) (r uintptr) {
v4 = f + 8
v3 = *(*uintptr)(unsafe.Pointer(v4))
*(*uintptr)(unsafe.Pointer(v4))++
- v2 = int32(*(*uint8)(unsafe.Pointer(v3)))
+ v2 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v3)))
} else {
v2 = X__uflow(tls, f)
}
Xungetc(tls, v2, f)
if v6 = (*TFILE)(unsafe.Pointer(f)).Frend != 0; v6 {
- v5 = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, int32('\n'), uint64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos)))
+ v5 = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, int32('\n'), Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos)))
z = v5
}
if v6 && v5 != 0 {
ret = (*TFILE)(unsafe.Pointer(f)).Frpos
z++
v7 = z
- *(*Tsize_t)(unsafe.Pointer(plen)) = uint64(int64(v7) - int64(ret))
+ *(*Tsize_t)(unsafe.Pointer(plen)) = Uint64FromInt64(int64(v7) - int64(ret))
(*TFILE)(unsafe.Pointer(f)).Frpos = z
} else {
*(*[1]Tsize_t)(unsafe.Pointer(bp)) = [1]Tsize_t{}
v8 = Xgetline(tls, f+168, bp, f)
l = v8
if v8 > 0 {
- *(*Tsize_t)(unsafe.Pointer(plen)) = uint64(l)
+ *(*Tsize_t)(unsafe.Pointer(plen)) = Uint64FromInt64(l)
ret = (*TFILE)(unsafe.Pointer(f)).Fgetln_buf
}
}
@@ -136540,17 +136557,17 @@ func Xfgets(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) {
n--
for n != 0 {
if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend {
- z = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, int32('\n'), uint64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos)))
+ z = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, int32('\n'), Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos)))
if z != 0 {
v2 = int64(z) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + int64(1)
} else {
v2 = int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos)
}
- k = uint64(v2)
- if k < uint64(n) {
+ k = Uint64FromInt64(v2)
+ if k < Uint64FromInt32(n) {
v3 = k
} else {
- v3 = uint64(n)
+ v3 = Uint64FromInt32(n)
}
k = v3
Xmemcpy(tls, p, (*TFILE)(unsafe.Pointer(f)).Frpos, k)
@@ -136565,7 +136582,7 @@ func Xfgets(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) {
v7 = f + 8
v6 = *(*uintptr)(unsafe.Pointer(v7))
*(*uintptr)(unsafe.Pointer(v7))++
- v5 = int32(*(*uint8)(unsafe.Pointer(v6)))
+ v5 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v6)))
} else {
v5 = X__uflow(tls, f)
}
@@ -136578,11 +136595,11 @@ func Xfgets(tls *TLS, s uintptr, n int32, f uintptr) (r uintptr) {
break
}
n--
- v8 = uint8(c)
+ v8 = Uint8FromInt32(c)
v9 = p
p++
*(*uint8)(unsafe.Pointer(v9)) = v8
- if int32(v8) == int32('\n') {
+ if Int32FromUint8(v8) == int32('\n') {
break
}
}
@@ -136615,7 +136632,7 @@ func ___fgetwc_unlocked_internal(tls *TLS, f uintptr) (r Twint_t) {
_, _, _, _, _, _, _ = c, first, l, v1, v2, v3, v4
/* Convert character from buffer if possible */
if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend {
- l = uint64(Xmbtowc(tls, bp, (*TFILE)(unsafe.Pointer(f)).Frpos, uint64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos))))
+ l = Uint64FromInt32(Xmbtowc(tls, bp, (*TFILE)(unsafe.Pointer(f)).Frpos, Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos))))
if l+uint64(1) >= uint64(1) {
*(*uintptr)(unsafe.Pointer(f + 8)) += uintptr(l + BoolUint64(!(l != 0))) /* l==0 means 1 byte, null */
return *(*Twchar_t)(unsafe.Pointer(bp))
@@ -136624,18 +136641,18 @@ func ___fgetwc_unlocked_internal(tls *TLS, f uintptr) (r Twint_t) {
/* Convert character byte-by-byte */
*(*Tmbstate_t)(unsafe.Pointer(bp + 8)) = Tmbstate_t{}
first = int32(1)
- for cond := true; cond; cond = l == uint64(-Int32FromInt32(2)) {
+ for cond := true; cond; cond = l == Uint64FromInt32(-Int32FromInt32(2)) {
if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend {
v4 = f + 8
v3 = *(*uintptr)(unsafe.Pointer(v4))
*(*uintptr)(unsafe.Pointer(v4))++
- v2 = int32(*(*uint8)(unsafe.Pointer(v3)))
+ v2 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v3)))
} else {
v2 = X__uflow(tls, f)
}
v1 = v2
c = v1
- *(*uint8)(unsafe.Pointer(bp + 16)) = uint8(v1)
+ *(*uint8)(unsafe.Pointer(bp + 16)) = Uint8FromInt32(v1)
if c < 0 {
if !(first != 0) {
*(*uint32)(unsafe.Pointer(f)) |= uint32(F_ERR)
@@ -136644,10 +136661,10 @@ func ___fgetwc_unlocked_internal(tls *TLS, f uintptr) (r Twint_t) {
return uint32(0xffffffff)
}
l = Xmbrtowc(tls, bp, bp+16, uint64(1), bp+8)
- if l == uint64(-Int32FromInt32(1)) {
+ if l == Uint64FromInt32(-Int32FromInt32(1)) {
if !(first != 0) {
*(*uint32)(unsafe.Pointer(f)) |= uint32(F_ERR)
- Xungetc(tls, int32(*(*uint8)(unsafe.Pointer(bp + 16))), f)
+ Xungetc(tls, Int32FromUint8(*(*uint8)(unsafe.Pointer(bp + 16))), f)
}
return uint32(0xffffffff)
}
@@ -136841,7 +136858,7 @@ func _mseek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) {
var v2 Tsize_t
_, _, _ = base, c, v2
c = (*TFILE)(unsafe.Pointer(f)).Fcookie
- if !(uint32(whence) > uint32(2)) {
+ if !(Uint32FromInt32(whence) > uint32(2)) {
goto _1
}
goto fail
@@ -136855,13 +136872,13 @@ _1:
1: (*Tcookie)(unsafe.Pointer(c)).Fpos,
2: (*Tcookie)(unsafe.Pointer(c)).Flen1,
}
- base = int64(*(*Tsize_t)(unsafe.Pointer(bp + uintptr(whence)*8)))
- if off < -base || off > int64((*Tcookie)(unsafe.Pointer(c)).Fsize)-base {
+ base = Int64FromUint64(*(*Tsize_t)(unsafe.Pointer(bp + uintptr(whence)*8)))
+ if off < -base || off > Int64FromUint64((*Tcookie)(unsafe.Pointer(c)).Fsize)-base {
goto fail
}
- v2 = uint64(base + off)
+ v2 = Uint64FromInt64(base + off)
(*Tcookie)(unsafe.Pointer(c)).Fpos = v2
- return int64(v2)
+ return Int64FromUint64(v2)
}
func _mread(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) {
@@ -136895,7 +136912,7 @@ func _mwrite(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) {
var len2, rem Tsize_t
_, _, _ = c, len2, rem
c = (*TFILE)(unsafe.Pointer(f)).Fcookie
- len2 = uint64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase))
+ len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase))
if len2 != 0 {
(*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase
if _mwrite(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwpos, len2) < len2 {
@@ -136939,11 +136956,11 @@ func Xfmemopen(tls *TLS, buf uintptr, size Tsize_t, mode uintptr) (r uintptr) {
var v3 Tsize_t
_, _, _, _, _ = f, plus, v1, v2, v3
plus = BoolInt32(!!(Xstrchr(tls, mode, int32('+')) != 0))
- if !(Xstrchr(tls, __ccgo_ts+1504, int32(*(*uint8)(unsafe.Pointer(mode)))) != 0) {
+ if !(Xstrchr(tls, __ccgo_ts+1504, Int32FromUint8(*(*uint8)(unsafe.Pointer(mode)))) != 0) {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EINVAL)
return uintptr(0)
}
- if !(buf != 0) && size > uint64(Int64FromInt64(INT64_MAX)) {
+ if !(buf != 0) && size > Uint64FromInt64(Int64FromInt64(INT64_MAX)) {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(ENOMEM)
return uintptr(0)
}
@@ -136968,19 +136985,19 @@ func Xfmemopen(tls *TLS, buf uintptr, size Tsize_t, mode uintptr) (r uintptr) {
}
(*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fbuf = buf
(*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fsize = size
- (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fmode = int32(*(*uint8)(unsafe.Pointer(mode)))
+ (*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fmode = Int32FromUint8(*(*uint8)(unsafe.Pointer(mode)))
if !(plus != 0) {
- if int32(*(*uint8)(unsafe.Pointer(mode))) == int32('r') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(mode))) == int32('r') {
v2 = int32(F_NOWR)
} else {
v2 = int32(F_NORD)
}
- (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fflags = uint32(v2)
+ (*Tmem_FILE)(unsafe.Pointer(f)).Ff.Fflags = Uint32FromInt32(v2)
}
- if int32(*(*uint8)(unsafe.Pointer(mode))) == int32('r') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(mode))) == int32('r') {
(*Tmem_FILE)(unsafe.Pointer(f)).Fc.Flen1 = size
} else {
- if int32(*(*uint8)(unsafe.Pointer(mode))) == int32('a') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(mode))) == int32('a') {
v3 = Xstrnlen(tls, buf, size)
(*Tmem_FILE)(unsafe.Pointer(f)).Fc.Fpos = v3
(*Tmem_FILE)(unsafe.Pointer(f)).Fc.Flen1 = v3
@@ -137009,13 +137026,13 @@ func Xfopen(tls *TLS, filename uintptr, mode uintptr) (r uintptr) {
var fd, flags int32
_, _, _ = f, fd, flags
/* Check for valid initial mode character */
- if !(Xstrchr(tls, __ccgo_ts+1504, int32(*(*uint8)(unsafe.Pointer(mode)))) != 0) {
+ if !(Xstrchr(tls, __ccgo_ts+1504, Int32FromUint8(*(*uint8)(unsafe.Pointer(mode)))) != 0) {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EINVAL)
return uintptr(0)
}
/* Compute the flags to pass to open() */
flags = X__fmodeflags(tls, mode)
- fd = int32(X__syscall_ret(tls, uint64(X__syscall4(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), int64(Int32FromInt32(0666))))))
+ fd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(filename), int64(flags|Int32FromInt32(O_LARGEFILE)), int64(Int32FromInt32(0666))))))
if fd < 0 {
return uintptr(0)
}
@@ -137060,8 +137077,8 @@ func _cookieread(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) {
if ret <= 0 {
goto bail
}
- readlen += uint64(ret)
- remain -= uint64(ret)
+ readlen += Uint64FromInt64(ret)
+ remain -= Uint64FromInt64(ret)
}
if !((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0) || remain > BoolUint64(!!((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0)) {
return readlen
@@ -137087,7 +137104,7 @@ bail:
} else {
v4 = int32(F_ERR)
}
- *(*uint32)(unsafe.Pointer(f)) |= uint32(v4)
+ *(*uint32)(unsafe.Pointer(f)) |= Uint32FromInt32(v4)
v5 = (*TFILE)(unsafe.Pointer(f)).Fbuf
(*TFILE)(unsafe.Pointer(f)).Frend = v5
(*TFILE)(unsafe.Pointer(f)).Frpos = v5
@@ -137100,7 +137117,7 @@ func _cookiewrite(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) {
var ret Tssize_t
_, _, _, _, _ = fc, len2, ret, v1, v2
fc = (*TFILE)(unsafe.Pointer(f)).Fcookie
- len2 = uint64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase))
+ len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase))
if !((*Tfcookie)(unsafe.Pointer(fc)).Fiofuncs.Fwrite != 0) {
return len1
}
@@ -137120,7 +137137,7 @@ func _cookiewrite(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) {
*(*uint32)(unsafe.Pointer(f)) |= uint32(F_ERR)
return uint64(0)
}
- return uint64(ret)
+ return Uint64FromInt64(ret)
}
func _cookieseek(tls *TLS, f uintptr, _off Toff_t, whence int32) (r Toff_t) {
@@ -137131,7 +137148,7 @@ func _cookieseek(tls *TLS, f uintptr, _off Toff_t, whence int32) (r Toff_t) {
var res int32
_, _ = fc, res
fc = (*TFILE)(unsafe.Pointer(f)).Fcookie
- if uint32(whence) > uint32(2) {
+ if Uint32FromInt32(whence) > uint32(2) {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EINVAL)
return int64(-int32(1))
}
@@ -137165,7 +137182,7 @@ func Xfopencookie(tls *TLS, cookie uintptr, mode uintptr, iofuncs Tcookie_io_fun
var v2 int32
_, _, _ = f, v1, v2
/* Check for valid initial mode character */
- if !(Xstrchr(tls, __ccgo_ts+1504, int32(*(*uint8)(unsafe.Pointer(mode)))) != 0) {
+ if !(Xstrchr(tls, __ccgo_ts+1504, Int32FromUint8(*(*uint8)(unsafe.Pointer(mode)))) != 0) {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EINVAL)
return uintptr(0)
}
@@ -137179,12 +137196,12 @@ func Xfopencookie(tls *TLS, cookie uintptr, mode uintptr, iofuncs Tcookie_io_fun
Xmemset(tls, f, 0, uint64(232))
/* Impose mode restrictions */
if !(Xstrchr(tls, mode, int32('+')) != 0) {
- if int32(*(*uint8)(unsafe.Pointer(mode))) == int32('r') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(mode))) == int32('r') {
v2 = int32(F_NOWR)
} else {
v2 = int32(F_NORD)
}
- (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fflags = uint32(v2)
+ (*Tcookie_FILE)(unsafe.Pointer(f)).Ff.Fflags = Uint32FromInt32(v2)
}
/* Set up our fcookie */
(*Tcookie_FILE)(unsafe.Pointer(f)).Ffc.Fcookie = cookie
@@ -137254,15 +137271,15 @@ _8:
if v7 != 0 {
___lockfile(tls, f)
}
- if int32(uint8(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend {
- v10 = uint8(c)
+ if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend {
+ v10 = Uint8FromInt32(c)
v12 = f + 40
v11 = *(*uintptr)(unsafe.Pointer(v12))
*(*uintptr)(unsafe.Pointer(v12))++
*(*uint8)(unsafe.Pointer(v11)) = v10
- v9 = int32(v10)
+ v9 = Int32FromUint8(v10)
} else {
- v9 = X__overflow(tls, f, int32(uint8(c)))
+ v9 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c)))
}
c = v9
v13 = f + 140
@@ -137317,15 +137334,15 @@ func Xfputc(tls *TLS, c1 int32, f1 uintptr) (r int32) {
v2 = f1
l = AtomicLoadPInt32(v2 + 140)
if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(___get_tp(tls))).Ftid {
- if int32(uint8(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend {
- v6 = uint8(v1)
+ if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend {
+ v6 = Uint8FromInt32(v1)
v8 = v2 + 40
v7 = *(*uintptr)(unsafe.Pointer(v8))
*(*uintptr)(unsafe.Pointer(v8))++
*(*uint8)(unsafe.Pointer(v7)) = v6
- v5 = int32(v6)
+ v5 = Int32FromUint8(v6)
} else {
- v5 = X__overflow(tls, v2, int32(uint8(v1)))
+ v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1)))
}
v3 = v5
goto _4
@@ -137375,17 +137392,17 @@ func X__fputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) {
}
*(*Tlocale_t)(unsafe.Pointer(ploc)) = (*TFILE)(unsafe.Pointer(f)).Flocale
if BoolInt32(c < uint32(128)) != 0 {
- if int32(uint8(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend {
+ if Int32FromUint8(uint8(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend {
v2 = uint8(c)
v4 = f + 40
v3 = *(*uintptr)(unsafe.Pointer(v4))
*(*uintptr)(unsafe.Pointer(v4))++
*(*uint8)(unsafe.Pointer(v3)) = v2
- v1 = int32(v2)
+ v1 = Int32FromUint8(v2)
} else {
- v1 = X__overflow(tls, f, int32(uint8(c)))
+ v1 = X__overflow(tls, f, Int32FromUint8(uint8(c)))
}
- c = uint32(v1)
+ c = Uint32FromInt32(v1)
} else {
if (*TFILE)(unsafe.Pointer(f)).Fwpos+uintptr(MB_LEN_MAX) < (*TFILE)(unsafe.Pointer(f)).Fwend {
l = Xwctomb(tls, (*TFILE)(unsafe.Pointer(f)).Fwpos, c)
@@ -137396,7 +137413,7 @@ func X__fputwc_unlocked(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) {
}
} else {
l = Xwctomb(tls, bp, c)
- if l < 0 || X__fwritex(tls, bp, uint64(l), f) < uint64(l) {
+ if l < 0 || X__fwritex(tls, bp, Uint64FromInt32(l), f) < Uint64FromInt32(l) {
c = uint32(0xffffffff)
}
}
@@ -137490,7 +137507,7 @@ func Xfputws(tls *TLS, _ws uintptr, f uintptr) (r int32) {
___unlockfile(tls, f)
}
*(*Tlocale_t)(unsafe.Pointer(ploc)) = loc
- return int32(l) /* 0 or -1 */
+ return Int32FromUint64(l) /* 0 or -1 */
}
func Xfputws_unlocked(tls *TLS, _ws uintptr, f uintptr) (r int32) {
@@ -137526,8 +137543,8 @@ func Xfread(tls *TLS, destv uintptr, size Tsize_t, nmemb Tsize_t, f uintptr) (r
*(*int32)(unsafe.Pointer(f + 136)) |= (*TFILE)(unsafe.Pointer(f)).Fmode - int32(1)
if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend {
/* First exhaust the buffer. */
- if uint64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos)) < l {
- v2 = uint64(int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos))
+ if Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos)) < l {
+ v2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos))
} else {
v2 = l
}
@@ -137603,7 +137620,7 @@ func Xfreopen(tls *TLS, filename uintptr, mode uintptr, f uintptr) (r uintptr) {
X__syscall3(tls, int64(SYS_fcntl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(F_SETFD)), int64(Int32FromInt32(FD_CLOEXEC)))
}
fl &= ^(Int32FromInt32(O_CREAT) | Int32FromInt32(O_EXCL) | Int32FromInt32(O_CLOEXEC))
- if X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_fcntl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(F_SETFL)), int64(fl)))) < 0 {
+ if X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_fcntl), int64((*TFILE)(unsafe.Pointer(f)).Ffd), int64(Int32FromInt32(F_SETFL)), int64(fl)))) < 0 {
goto fail
}
} else {
@@ -137701,7 +137718,7 @@ func X__fseeko_unlocked(tls *TLS, f uintptr, off Toff_t, whence int32) (r int32)
v3 = UintptrFromInt32(0)
(*TFILE)(unsafe.Pointer(f)).Frend = v3
(*TFILE)(unsafe.Pointer(f)).Frpos = v3
- *(*uint32)(unsafe.Pointer(f)) &= uint32(^Int32FromInt32(F_EOF))
+ *(*uint32)(unsafe.Pointer(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF))
return 0
}
@@ -138027,14 +138044,14 @@ func X__fwritex(tls *TLS, s uintptr, l Tsize_t, f uintptr) (r Tsize_t) {
if !((*TFILE)(unsafe.Pointer(f)).Fwend != 0) && X__towrite(tls, f) != 0 {
return uint64(0)
}
- if l > uint64(int64((*TFILE)(unsafe.Pointer(f)).Fwend)-int64((*TFILE)(unsafe.Pointer(f)).Fwpos)) {
+ if l > Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwend)-int64((*TFILE)(unsafe.Pointer(f)).Fwpos)) {
return (*(*func(*TLS, uintptr, uintptr, Tsize_t) Tsize_t)(unsafe.Pointer(&struct{ uintptr }{(*TFILE)(unsafe.Pointer(f)).Fwrite})))(tls, f, s, l)
}
if (*TFILE)(unsafe.Pointer(f)).Flbf >= 0 {
/* Match /^(.*\n|)/ */
i = l
for {
- if !(i != 0 && int32(*(*uint8)(unsafe.Pointer(s + uintptr(i-uint64(1))))) != int32('\n')) {
+ if !(i != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(s + uintptr(i-uint64(1))))) != int32('\n')) {
break
}
goto _1
@@ -138157,7 +138174,7 @@ _8:
v11 = f + 8
v10 = *(*uintptr)(unsafe.Pointer(v11))
*(*uintptr)(unsafe.Pointer(v11))++
- v9 = int32(*(*uint8)(unsafe.Pointer(v10)))
+ v9 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v10)))
} else {
v9 = X__uflow(tls, f)
}
@@ -138216,7 +138233,7 @@ func Xgetc(tls *TLS, f1 uintptr) (r int32) {
v6 = v1 + 8
v5 = *(*uintptr)(unsafe.Pointer(v6))
*(*uintptr)(unsafe.Pointer(v6))++
- v4 = int32(*(*uint8)(unsafe.Pointer(v5)))
+ v4 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v5)))
} else {
v4 = X__uflow(tls, v1)
}
@@ -138249,7 +138266,7 @@ func Xgetc_unlocked(tls *TLS, f uintptr) (r int32) {
v3 = f + 8
v2 = *(*uintptr)(unsafe.Pointer(v3))
*(*uintptr)(unsafe.Pointer(v3))++
- v1 = int32(*(*uint8)(unsafe.Pointer(v2)))
+ v1 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v2)))
} else {
v1 = X__uflow(tls, f)
}
@@ -138312,7 +138329,7 @@ _8:
v11 = f + 8
v10 = *(*uintptr)(unsafe.Pointer(v11))
*(*uintptr)(unsafe.Pointer(v11))++
- v9 = int32(*(*uint8)(unsafe.Pointer(v10)))
+ v9 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v10)))
} else {
v9 = X__uflow(tls, f)
}
@@ -138371,7 +138388,7 @@ func Xgetchar(tls *TLS) (r int32) {
v6 = v1 + 8
v5 = *(*uintptr)(unsafe.Pointer(v6))
*(*uintptr)(unsafe.Pointer(v6))++
- v4 = int32(*(*uint8)(unsafe.Pointer(v5)))
+ v4 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v5)))
} else {
v4 = X__uflow(tls, v1)
}
@@ -138396,7 +138413,7 @@ func Xgetchar_unlocked(tls *TLS) (r int32) {
v3 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + 8
v2 = *(*uintptr)(unsafe.Pointer(v3))
*(*uintptr)(unsafe.Pointer(v3))++
- v1 = int32(*(*uint8)(unsafe.Pointer(v2)))
+ v1 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v2)))
} else {
v1 = X__uflow(tls, uintptr(unsafe.Pointer(&X__stdin_FILE)))
}
@@ -138435,13 +138452,13 @@ func Xgetdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize
}
for {
if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend {
- z = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, delim, uint64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos)))
+ z = Xmemchr(tls, (*TFILE)(unsafe.Pointer(f)).Frpos, delim, Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Frend)-int64((*TFILE)(unsafe.Pointer(f)).Frpos)))
if z != 0 {
v3 = int64(z) - int64((*TFILE)(unsafe.Pointer(f)).Frpos) + int64(1)
} else {
v3 = int64((*TFILE)(unsafe.Pointer(f)).Frend) - int64((*TFILE)(unsafe.Pointer(f)).Frpos)
}
- k = uint64(v3)
+ k = Uint64FromInt64(v3)
} else {
z = uintptr(0)
k = uint64(0)
@@ -138485,7 +138502,7 @@ func Xgetdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize
v7 = f + 8
v6 = *(*uintptr)(unsafe.Pointer(v7))
*(*uintptr)(unsafe.Pointer(v7))++
- v5 = int32(*(*uint8)(unsafe.Pointer(v6)))
+ v5 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v6)))
} else {
v5 = X__uflow(tls, f)
}
@@ -138506,13 +138523,13 @@ func Xgetdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize
v9 = f + 8
*(*uintptr)(unsafe.Pointer(v9))--
v8 = *(*uintptr)(unsafe.Pointer(v9))
- *(*uint8)(unsafe.Pointer(v8)) = uint8(c)
+ *(*uint8)(unsafe.Pointer(v8)) = Uint8FromInt32(c)
} else {
- v10 = uint8(c)
+ v10 = Uint8FromInt32(c)
v11 = i
i++
*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(s)) + uintptr(v11))) = v10
- if int32(v10) == delim {
+ if Int32FromUint8(v10) == delim {
break
}
}
@@ -138523,7 +138540,7 @@ func Xgetdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize
if __need_unlock != 0 {
___unlockfile(tls, f)
}
- return int64(i)
+ return Int64FromUint64(i)
}
func X__getdelim(tls *TLS, s uintptr, n uintptr, delim int32, f uintptr) (r Tssize_t) {
@@ -138563,7 +138580,7 @@ func Xgets(tls *TLS, s uintptr) (r uintptr) {
v5 = uintptr(unsafe.Pointer(&X__stdin_FILE)) + 8
v4 = *(*uintptr)(unsafe.Pointer(v5))
*(*uintptr)(unsafe.Pointer(v5))++
- v3 = int32(*(*uint8)(unsafe.Pointer(v4)))
+ v3 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v4)))
} else {
v3 = X__uflow(tls, uintptr(unsafe.Pointer(&X__stdin_FILE)))
}
@@ -138574,7 +138591,7 @@ func Xgets(tls *TLS, s uintptr) (r uintptr) {
}
v6 = i
i++
- *(*uint8)(unsafe.Pointer(s + uintptr(v6))) = uint8(c)
+ *(*uint8)(unsafe.Pointer(s + uintptr(v6))) = Uint8FromInt32(c)
}
*(*uint8)(unsafe.Pointer(s + uintptr(i))) = uint8(0)
if c != int32('\n') && (!((*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdin_FILE)))).Fflags&Uint32FromInt32(F_EOF) != 0) || !(i != 0)) {
@@ -138687,7 +138704,7 @@ func _ms_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) {
var v2 Tsize_t
_, _, _ = base, c, v2
c = (*TFILE)(unsafe.Pointer(f)).Fcookie
- if !(uint32(whence) > uint32(2)) {
+ if !(Uint32FromInt32(whence) > uint32(2)) {
goto _1
}
goto fail
@@ -138701,13 +138718,13 @@ _1:
1: (*Tcookie1)(unsafe.Pointer(c)).Fpos,
2: (*Tcookie1)(unsafe.Pointer(c)).Flen1,
}
- base = int64(*(*Tsize_t)(unsafe.Pointer(bp + uintptr(whence)*8)))
+ base = Int64FromUint64(*(*Tsize_t)(unsafe.Pointer(bp + uintptr(whence)*8)))
if off < -base || off > int64(0x7fffffffffffffff)-base {
goto fail
}
- v2 = uint64(base + off)
+ v2 = Uint64FromInt64(base + off)
(*Tcookie1)(unsafe.Pointer(c)).Fpos = v2
- return int64(v2)
+ return Int64FromUint64(v2)
}
func _ms_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) {
@@ -138715,7 +138732,7 @@ func _ms_write(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) {
var len2 Tsize_t
_, _, _, _ = c, len2, newbuf, v1
c = (*TFILE)(unsafe.Pointer(f)).Fcookie
- len2 = uint64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase))
+ len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase))
if len2 != 0 {
(*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase
if _ms_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, len2) < len2 {
@@ -138821,7 +138838,7 @@ func _wms_seek(tls *TLS, f uintptr, off Toff_t, whence int32) (r Toff_t) {
var v2 Tsize_t
_, _, _ = base, c, v2
c = (*TFILE)(unsafe.Pointer(f)).Fcookie
- if !(uint32(whence) > uint32(2)) {
+ if !(Uint32FromInt32(whence) > uint32(2)) {
goto _1
}
goto fail
@@ -138835,14 +138852,14 @@ _1:
1: (*Tcookie2)(unsafe.Pointer(c)).Fpos,
2: (*Tcookie2)(unsafe.Pointer(c)).Flen1,
}
- base = int64(*(*Tsize_t)(unsafe.Pointer(bp + uintptr(whence)*8)))
+ base = Int64FromUint64(*(*Tsize_t)(unsafe.Pointer(bp + uintptr(whence)*8)))
if off < -base || off > Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(4)-base {
goto fail
}
Xmemset(tls, c+48, 0, uint64(8))
- v2 = uint64(base + off)
+ v2 = Uint64FromInt64(base + off)
(*Tcookie2)(unsafe.Pointer(c)).Fpos = v2
- return int64(v2)
+ return Int64FromUint64(v2)
}
func _wms_write(tls *TLS, f uintptr, _buf uintptr, len1 Tsize_t) (r Tsize_t) {
@@ -138853,7 +138870,7 @@ func _wms_write(tls *TLS, f uintptr, _buf uintptr, len1 Tsize_t) (r Tsize_t) {
var len2 Tsize_t
_, _, _, _ = c, len2, newbuf, v1
c = (*TFILE)(unsafe.Pointer(f)).Fcookie
- len2 = uint64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase))
+ len2 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase))
if len2 != 0 {
(*TFILE)(unsafe.Pointer(f)).Fwpos = (*TFILE)(unsafe.Pointer(f)).Fwbase
if _wms_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, len2) < len2 {
@@ -138862,7 +138879,7 @@ func _wms_write(tls *TLS, f uintptr, _buf uintptr, len1 Tsize_t) (r Tsize_t) {
}
if len1+(*Tcookie2)(unsafe.Pointer(c)).Fpos >= (*Tcookie2)(unsafe.Pointer(c)).Fspace {
len2 = uint64(2)*(*Tcookie2)(unsafe.Pointer(c)).Fspace + uint64(1) | ((*Tcookie2)(unsafe.Pointer(c)).Fpos + len1 + uint64(1))
- if len2 > uint64(Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(4)) {
+ if len2 > Uint64FromInt64(Int64FromInt64(0x7fffffffffffffff)/Int64FromInt32(4)) {
return uint64(0)
}
newbuf = Xrealloc(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf, len2*uint64(4))
@@ -138876,7 +138893,7 @@ func _wms_write(tls *TLS, f uintptr, _buf uintptr, len1 Tsize_t) (r Tsize_t) {
(*Tcookie2)(unsafe.Pointer(c)).Fspace = len2
}
len2 = Xmbsnrtowcs(tls, (*Tcookie2)(unsafe.Pointer(c)).Fbuf+uintptr((*Tcookie2)(unsafe.Pointer(c)).Fpos)*4, bp, len1, (*Tcookie2)(unsafe.Pointer(c)).Fspace-(*Tcookie2)(unsafe.Pointer(c)).Fpos, c+48)
- if len2 == uint64(-Int32FromInt32(1)) {
+ if len2 == Uint64FromInt32(-Int32FromInt32(1)) {
return uint64(0)
}
*(*Tsize_t)(unsafe.Pointer(c + 16)) += len2
@@ -138962,7 +138979,7 @@ func Xpclose(tls *TLS, f uintptr) (r1 int32) {
}
}
if r < 0 {
- return int32(X__syscall_ret(tls, uint64(r)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r)))
}
return *(*int32)(unsafe.Pointer(bp))
}
@@ -139051,15 +139068,15 @@ _8:
if v7 != 0 {
___lockfile(tls, f)
}
- if int32(uint8(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend {
- v10 = uint8(c)
+ if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend {
+ v10 = Uint8FromInt32(c)
v12 = f + 40
v11 = *(*uintptr)(unsafe.Pointer(v12))
*(*uintptr)(unsafe.Pointer(v12))++
*(*uint8)(unsafe.Pointer(v11)) = v10
- v9 = int32(v10)
+ v9 = Int32FromUint8(v10)
} else {
- v9 = X__overflow(tls, f, int32(uint8(c)))
+ v9 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c)))
}
c = v9
v13 = f + 140
@@ -139114,15 +139131,15 @@ func Xputc(tls *TLS, c1 int32, f1 uintptr) (r int32) {
v2 = f1
l = AtomicLoadPInt32(v2 + 140)
if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(___get_tp(tls))).Ftid {
- if int32(uint8(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend {
- v6 = uint8(v1)
+ if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend {
+ v6 = Uint8FromInt32(v1)
v8 = v2 + 40
v7 = *(*uintptr)(unsafe.Pointer(v8))
*(*uintptr)(unsafe.Pointer(v8))++
*(*uint8)(unsafe.Pointer(v7)) = v6
- v5 = int32(v6)
+ v5 = Int32FromUint8(v6)
} else {
- v5 = X__overflow(tls, v2, int32(uint8(v1)))
+ v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1)))
}
v3 = v5
goto _4
@@ -139150,15 +139167,15 @@ func Xputc_unlocked(tls *TLS, c int32, f uintptr) (r int32) {
var v2 uint8
var v3, v4 uintptr
_, _, _, _ = v1, v2, v3, v4
- if int32(uint8(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend {
- v2 = uint8(c)
+ if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend {
+ v2 = Uint8FromInt32(c)
v4 = f + 40
v3 = *(*uintptr)(unsafe.Pointer(v4))
*(*uintptr)(unsafe.Pointer(v4))++
*(*uint8)(unsafe.Pointer(v3)) = v2
- v1 = int32(v2)
+ v1 = Int32FromUint8(v2)
} else {
- v1 = X__overflow(tls, f, int32(uint8(c)))
+ v1 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c)))
}
return v1
}
@@ -139216,15 +139233,15 @@ _8:
if v7 != 0 {
___lockfile(tls, f)
}
- if int32(uint8(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend {
- v10 = uint8(c)
+ if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(f)).Flbf && (*TFILE)(unsafe.Pointer(f)).Fwpos != (*TFILE)(unsafe.Pointer(f)).Fwend {
+ v10 = Uint8FromInt32(c)
v12 = f + 40
v11 = *(*uintptr)(unsafe.Pointer(v12))
*(*uintptr)(unsafe.Pointer(v12))++
*(*uint8)(unsafe.Pointer(v11)) = v10
- v9 = int32(v10)
+ v9 = Int32FromUint8(v10)
} else {
- v9 = X__overflow(tls, f, int32(uint8(c)))
+ v9 = X__overflow(tls, f, Int32FromUint8(Uint8FromInt32(c)))
}
c = v9
v13 = f + 140
@@ -139279,15 +139296,15 @@ func Xputchar(tls *TLS, c1 int32) (r int32) {
v2 = uintptr(unsafe.Pointer(&X__stdout_FILE))
l = AtomicLoadPInt32(v2 + 140)
if l < 0 || l != 0 && l & ^Int32FromInt32(MAYBE_WAITERS) == (*t__pthread)(unsafe.Pointer(___get_tp(tls))).Ftid {
- if int32(uint8(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend {
- v6 = uint8(v1)
+ if Int32FromUint8(Uint8FromInt32(v1)) != (*TFILE)(unsafe.Pointer(v2)).Flbf && (*TFILE)(unsafe.Pointer(v2)).Fwpos != (*TFILE)(unsafe.Pointer(v2)).Fwend {
+ v6 = Uint8FromInt32(v1)
v8 = v2 + 40
v7 = *(*uintptr)(unsafe.Pointer(v8))
*(*uintptr)(unsafe.Pointer(v8))++
*(*uint8)(unsafe.Pointer(v7)) = v6
- v5 = int32(v6)
+ v5 = Int32FromUint8(v6)
} else {
- v5 = X__overflow(tls, v2, int32(uint8(v1)))
+ v5 = X__overflow(tls, v2, Int32FromUint8(Uint8FromInt32(v1)))
}
v3 = v5
goto _4
@@ -139307,15 +139324,15 @@ func Xputchar_unlocked(tls *TLS, c int32) (r int32) {
var v2 uint8
var v3, v4 uintptr
_, _, _, _ = v1, v2, v3, v4
- if int32(uint8(c)) != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Flbf && (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwend {
- v2 = uint8(c)
+ if Int32FromUint8(Uint8FromInt32(c)) != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Flbf && (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwend {
+ v2 = Uint8FromInt32(c)
v4 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + 40
v3 = *(*uintptr)(unsafe.Pointer(v4))
*(*uintptr)(unsafe.Pointer(v4))++
*(*uint8)(unsafe.Pointer(v3)) = v2
- v1 = int32(v2)
+ v1 = Int32FromUint8(v2)
} else {
- v1 = X__overflow(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), int32(uint8(c)))
+ v1 = X__overflow(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), Int32FromUint8(Uint8FromInt32(c)))
}
return v1
}
@@ -139337,15 +139354,15 @@ func Xputs(tls *TLS, s uintptr) (r1 int32) {
}
__need_unlock = v1
if v6 = Xfputs(tls, s, uintptr(unsafe.Pointer(&X__stdout_FILE))) < 0; !v6 {
- if int32(uint8(Int32FromUint8('\n'))) != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Flbf && (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwend {
- v3 = uint8(Int32FromUint8('\n'))
+ if Int32FromUint8(Uint8FromInt32(Int32FromUint8('\n'))) != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Flbf && (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwpos != (*TFILE)(unsafe.Pointer(uintptr(unsafe.Pointer(&X__stdout_FILE)))).Fwend {
+ v3 = Uint8FromInt32(Int32FromUint8('\n'))
v5 = uintptr(unsafe.Pointer(&X__stdout_FILE)) + 40
v4 = *(*uintptr)(unsafe.Pointer(v5))
*(*uintptr)(unsafe.Pointer(v5))++
*(*uint8)(unsafe.Pointer(v4)) = v3
- v2 = int32(v3)
+ v2 = Int32FromUint8(v3)
} else {
- v2 = X__overflow(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), int32(uint8(Int32FromUint8('\n'))))
+ v2 = X__overflow(tls, uintptr(unsafe.Pointer(&X__stdout_FILE)), Int32FromUint8(Uint8FromInt32(Int32FromUint8('\n'))))
}
}
r = -BoolInt32(v6 || v2 < 0)
@@ -139363,7 +139380,7 @@ func Xputw(tls *TLS, _x int32, f uintptr) (r int32) {
bp := tls.Alloc(16)
defer tls.Free(16)
*(*int32)(unsafe.Pointer(bp)) = _x
- return int32(Xfwrite(tls, bp, uint64(4), uint64(1), f)) - int32(1)
+ return Int32FromUint64(Xfwrite(tls, bp, uint64(4), uint64(1), f)) - int32(1)
}
func Xputwc(tls *TLS, c Twchar_t, f uintptr) (r Twint_t) {
@@ -139401,7 +139418,7 @@ func Xremove(tls *TLS, path uintptr) (r1 int32) {
if r == -int32(EISDIR) {
r = int32(X__syscall3(tls, int64(SYS_unlinkat), int64(-Int32FromInt32(100)), int64(path), int64(Int32FromInt32(AT_REMOVEDIR))))
}
- return int32(X__syscall_ret(tls, uint64(r)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r)))
}
func Xrename(tls *TLS, old uintptr, new1 uintptr) (r int32) {
@@ -139409,7 +139426,7 @@ func Xrename(tls *TLS, old uintptr, new1 uintptr) (r int32) {
trc("tls=%v old=%v new1=%v, (%v:)", tls, old, new1, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall4(tls, int64(SYS_renameat), int64(-Int32FromInt32(100)), int64(old), int64(-Int32FromInt32(100)), int64(new1)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_renameat), int64(-Int32FromInt32(100)), int64(old), int64(-Int32FromInt32(100)), int64(new1)))))
}
func Xrewind(tls *TLS, f uintptr) {
@@ -139425,7 +139442,7 @@ func Xrewind(tls *TLS, f uintptr) {
}
__need_unlock = v1
X__fseeko_unlocked(tls, f, 0, 0)
- *(*uint32)(unsafe.Pointer(f)) &= uint32(^Int32FromInt32(F_ERR))
+ *(*uint32)(unsafe.Pointer(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR))
if __need_unlock != 0 {
___unlockfile(tls, f)
}
@@ -139700,7 +139717,7 @@ func Xtmpfile(tls *TLS) (r uintptr) {
break
}
___randname(tls, bp+uintptr(13))
- fd = int32(X__syscall_ret(tls, uint64(X__syscall4(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(bp), int64(Int32FromInt32(O_RDWR)|Int32FromInt32(O_CREAT)|Int32FromInt32(O_EXCL)|Int32FromInt32(O_LARGEFILE)), int64(Int32FromInt32(0600))))))
+ fd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(bp), int64(Int32FromInt32(O_RDWR)|Int32FromInt32(O_CREAT)|Int32FromInt32(O_EXCL)|Int32FromInt32(O_LARGEFILE)), int64(Int32FromInt32(0600))))))
if fd >= 0 {
X__syscall3(tls, int64(SYS_unlinkat), int64(-Int32FromInt32(100)), int64(bp), int64(Int32FromInt32(0)))
f = X__fdopen(tls, fd, __ccgo_ts+1583)
@@ -139784,12 +139801,12 @@ func Xungetc(tls *TLS, c int32, f uintptr) (r int32) {
v3 = f + 8
*(*uintptr)(unsafe.Pointer(v3))--
v2 = *(*uintptr)(unsafe.Pointer(v3))
- *(*uint8)(unsafe.Pointer(v2)) = uint8(c)
- *(*uint32)(unsafe.Pointer(f)) &= uint32(^Int32FromInt32(F_EOF))
+ *(*uint8)(unsafe.Pointer(v2)) = Uint8FromInt32(c)
+ *(*uint32)(unsafe.Pointer(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF))
if __need_unlock != 0 {
___unlockfile(tls, f)
}
- return int32(uint8(c))
+ return Int32FromUint8(Uint8FromInt32(c))
}
func Xungetwc(tls *TLS, c Twint_t, f uintptr) (r Twint_t) {
@@ -139821,7 +139838,7 @@ func Xungetwc(tls *TLS, c Twint_t, f uintptr) (r Twint_t) {
X__toread(tls, f)
}
if v3 = !((*TFILE)(unsafe.Pointer(f)).Frpos != 0) || c == uint32(0xffffffff); !v3 {
- v2 = int32(Xwcrtomb(tls, bp, c, uintptr(0)))
+ v2 = Int32FromUint64(Xwcrtomb(tls, bp, c, uintptr(0)))
l = v2
}
if v3 || v2 < 0 || (*TFILE)(unsafe.Pointer(f)).Frpos < (*TFILE)(unsafe.Pointer(f)).Fbuf-uintptr(UNGET)+uintptr(l) {
@@ -139839,9 +139856,9 @@ func Xungetwc(tls *TLS, c Twint_t, f uintptr) (r Twint_t) {
} else {
p6 = f + 8
*(*uintptr)(unsafe.Pointer(p6)) -= uintptr(l)
- Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(p6)), bp, uint64(l))
+ Xmemcpy(tls, *(*uintptr)(unsafe.Pointer(p6)), bp, Uint64FromInt32(l))
}
- *(*uint32)(unsafe.Pointer(f)) &= uint32(^Int32FromInt32(F_EOF))
+ *(*uint32)(unsafe.Pointer(f)) &= Uint32FromInt32(^Int32FromInt32(F_EOF))
if __need_unlock != 0 {
___unlockfile(tls, f)
}
@@ -139863,13 +139880,13 @@ func Xvasprintf(tls *TLS, s uintptr, fmt uintptr, ap Tva_list) (r int32) {
l = Xvsnprintf(tls, uintptr(0), uint64(0), fmt, ap2)
_ = ap2
if v2 = l < 0; !v2 {
- v1 = Xmalloc(tls, uint64(uint32(l)+uint32(1)))
+ v1 = Xmalloc(tls, uint64(Uint32FromInt32(l)+uint32(1)))
*(*uintptr)(unsafe.Pointer(s)) = v1
}
if v2 || !(v1 != 0) {
return -int32(1)
}
- return Xvsnprintf(tls, *(*uintptr)(unsafe.Pointer(s)), uint64(uint32(l)+uint32(1)), fmt, ap)
+ return Xvsnprintf(tls, *(*uintptr)(unsafe.Pointer(s)), uint64(Uint32FromInt32(l)+uint32(1)), fmt, ap)
}
func Xvdprintf(tls *TLS, fd int32, fmt uintptr, ap Tva_list) (r int32) {
@@ -140049,33 +140066,33 @@ func _pop_arg(tls *TLS, arg uintptr, type1 int32, ap uintptr) {
case int32(_PTR):
*(*uintptr)(unsafe.Pointer(arg)) = VaUintptr(&*(*Tva_list)(unsafe.Pointer(ap)))
case int32(_INT):
- (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaInt32(&*(*Tva_list)(unsafe.Pointer(ap))))
+ (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&*(*Tva_list)(unsafe.Pointer(ap))))
case int32(_UINT):
(*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&*(*Tva_list)(unsafe.Pointer(ap))))
case int32(_LONG):
- (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaInt64(&*(*Tva_list)(unsafe.Pointer(ap))))
+ (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&*(*Tva_list)(unsafe.Pointer(ap))))
case int32(_ULONG):
(*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&*(*Tva_list)(unsafe.Pointer(ap)))
case int32(_ULLONG):
(*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&*(*Tva_list)(unsafe.Pointer(ap)))
case int32(_SHORT):
- (*Targ)(unsafe.Pointer(arg)).Fi = uint64(int16(VaInt32(&*(*Tva_list)(unsafe.Pointer(ap)))))
+ (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt16(int16(VaInt32(&*(*Tva_list)(unsafe.Pointer(ap)))))
case int32(_USHORT):
- (*Targ)(unsafe.Pointer(arg)).Fi = uint64(uint16(VaInt32(&*(*Tva_list)(unsafe.Pointer(ap)))))
+ (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint16FromInt32(VaInt32(&*(*Tva_list)(unsafe.Pointer(ap)))))
case int32(_CHAR):
- (*Targ)(unsafe.Pointer(arg)).Fi = uint64(int8(VaInt32(&*(*Tva_list)(unsafe.Pointer(ap)))))
+ (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt8(int8(VaInt32(&*(*Tva_list)(unsafe.Pointer(ap)))))
case int32(_UCHAR):
- (*Targ)(unsafe.Pointer(arg)).Fi = uint64(uint8(VaInt32(&*(*Tva_list)(unsafe.Pointer(ap)))))
+ (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint8FromInt32(VaInt32(&*(*Tva_list)(unsafe.Pointer(ap)))))
case int32(_LLONG):
- (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaInt64(&*(*Tva_list)(unsafe.Pointer(ap))))
+ (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&*(*Tva_list)(unsafe.Pointer(ap))))
case int32(_SIZET):
(*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&*(*Tva_list)(unsafe.Pointer(ap)))
case int32(_IMAX):
- (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaInt64(&*(*Tva_list)(unsafe.Pointer(ap))))
+ (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&*(*Tva_list)(unsafe.Pointer(ap))))
case int32(_UMAX):
(*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&*(*Tva_list)(unsafe.Pointer(ap)))
case int32(_PDIFF):
- (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaInt64(&*(*Tva_list)(unsafe.Pointer(ap))))
+ (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&*(*Tva_list)(unsafe.Pointer(ap))))
case int32(_UIPTR):
(*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUintptr(&*(*Tva_list)(unsafe.Pointer(ap))))
case int32(_DBL):
@@ -140097,18 +140114,18 @@ func _pad3(tls *TLS, f uintptr, c uint8, w int32, l int32, fl int32) {
var v1 uint64
var _ /* pad at bp+0 */ [256]uint8
_ = v1
- if uint32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))) != 0 || l >= w {
+ if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))) != 0 || l >= w {
return
}
l = w - l
- if uint64(l) > uint64(256) {
+ if Uint64FromInt32(l) > uint64(256) {
v1 = uint64(256)
} else {
- v1 = uint64(l)
+ v1 = Uint64FromInt32(l)
}
- Xmemset(tls, bp, int32(c), v1)
+ Xmemset(tls, bp, Int32FromUint8(c), v1)
for {
- if !(uint64(l) >= uint64(256)) {
+ if !(Uint64FromInt32(l) >= uint64(256)) {
break
}
_out(tls, f, bp, uint64(256))
@@ -140117,7 +140134,7 @@ func _pad3(tls *TLS, f uintptr, c uint8, w int32, l int32, fl int32) {
;
l = int32(uint64(l) - Uint64FromInt64(256))
}
- _out(tls, f, bp, uint64(l))
+ _out(tls, f, bp, Uint64FromInt32(l))
}
var _xdigits1 = [16]uint8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'}
@@ -140131,7 +140148,7 @@ func _fmt_x(tls *TLS, x Tuintmax_t, s uintptr, lower int32) (r uintptr) {
}
s--
v2 = s
- *(*uint8)(unsafe.Pointer(v2)) = uint8(int32(_xdigits1[x&uint64(15)]) | lower)
+ *(*uint8)(unsafe.Pointer(v2)) = Uint8FromInt32(Int32FromUint8(_xdigits1[x&uint64(15)]) | lower)
goto _1
_1:
;
@@ -140224,13 +140241,13 @@ func _fmt_fp(tls *TLS, f uintptr, y float64, w int32, p int32, fl int32, t int32
v1 = *(*uint64)(unsafe.Pointer(bp))
goto _2
_2:
- if int32(v1>>Int32FromInt32(63)) != 0 {
+ if Int32FromUint64(v1>>Int32FromInt32(63)) != 0 {
y = -y
} else {
- if uint32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0 {
+ if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0 {
prefix += uintptr(3)
} else {
- if uint32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0 {
+ if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0 {
prefix += uintptr(6)
} else {
prefix++
@@ -140257,10 +140274,10 @@ _4:
}
s1 = v6
}
- _pad3(tls, f, uint8(' '), w, int32(3)+pl, int32(uint32(fl) & ^(Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))))
- _out(tls, f, prefix, uint64(pl))
+ _pad3(tls, f, uint8(' '), w, int32(3)+pl, Int32FromUint32(Uint32FromInt32(fl) & ^(Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' ')))))
+ _out(tls, f, prefix, Uint64FromInt32(pl))
_out(tls, f, s1, uint64(3))
- _pad3(tls, f, uint8(' '), w, int32(3)+pl, int32(uint32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))))
+ _pad3(tls, f, uint8(' '), w, int32(3)+pl, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))))
if w > int32(3)+pl {
v7 = w
} else {
@@ -140293,7 +140310,7 @@ _4:
}
round *= Float64FromInt32(16)
}
- if int32(*(*uint8)(unsafe.Pointer(prefix))) == int32('-') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(prefix))) == int32('-') {
y = -y
y -= round
y += round
@@ -140308,7 +140325,7 @@ _4:
} else {
v9 = *(*int32)(unsafe.Pointer(bp + 512))
}
- estr = _fmt_u(tls, uint64(v9), ebuf)
+ estr = _fmt_u(tls, Uint64FromInt32(v9), ebuf)
if estr == ebuf {
estr--
v10 = estr
@@ -140321,18 +140338,18 @@ _4:
} else {
v12 = int32('+')
}
- *(*uint8)(unsafe.Pointer(v11)) = uint8(v12)
+ *(*uint8)(unsafe.Pointer(v11)) = Uint8FromInt32(v12)
estr--
v13 = estr
- *(*uint8)(unsafe.Pointer(v13)) = uint8(t + (Int32FromUint8('p') - Int32FromUint8('a')))
+ *(*uint8)(unsafe.Pointer(v13)) = Uint8FromInt32(t + (Int32FromUint8('p') - Int32FromUint8('a')))
s = bp + 516
for cond := true; cond; cond = y != 0 {
x = int32(y)
v14 = s
s++
- *(*uint8)(unsafe.Pointer(v14)) = uint8(int32(_xdigits1[x]) | t&int32(32))
+ *(*uint8)(unsafe.Pointer(v14)) = Uint8FromInt32(Int32FromUint8(_xdigits1[x]) | t&int32(32))
y = Float64FromInt32(16) * (y - float64(x))
- if int64(s)-t__predefined_ptrdiff_t(bp+516) == int64(1) && (y != 0 || p > 0 || uint32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) {
+ if int64(s)-t__predefined_ptrdiff_t(bp+516) == int64(1) && (y != 0 || p > 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) {
v15 = s
s++
*(*uint8)(unsafe.Pointer(v15)) = uint8('.')
@@ -140347,12 +140364,12 @@ _4:
l = int32(int64(s) - t__predefined_ptrdiff_t(bp+516) + (int64(ebuf) - int64(estr)))
}
_pad3(tls, f, uint8(' '), w, pl+l, fl)
- _out(tls, f, prefix, uint64(pl))
- _pad3(tls, f, uint8('0'), w, pl+l, int32(uint32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))))
- _out(tls, f, bp+516, uint64(int64(s)-t__predefined_ptrdiff_t(bp+516)))
+ _out(tls, f, prefix, Uint64FromInt32(pl))
+ _pad3(tls, f, uint8('0'), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))))
+ _out(tls, f, bp+516, Uint64FromInt64(int64(s)-t__predefined_ptrdiff_t(bp+516)))
_pad3(tls, f, uint8('0'), int32(int64(l)-(int64(ebuf)-int64(estr))-(int64(s)-t__predefined_ptrdiff_t(bp+516))), 0, 0)
- _out(tls, f, estr, uint64(int64(ebuf)-int64(estr)))
- _pad3(tls, f, uint8(' '), w, pl+l, int32(uint32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))))
+ _out(tls, f, estr, Uint64FromInt64(int64(ebuf)-int64(estr)))
+ _pad3(tls, f, uint8(' '), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))))
if w > pl+l {
v16 = w
} else {
@@ -140425,15 +140442,15 @@ _4:
v25 = -*(*int32)(unsafe.Pointer(bp + 512))
}
sh1 = v25
- need = int32(uint32(1) + (uint32(p)+Uint32FromInt32(LDBL_MANT_DIG)/Uint32FromUint32(3)+uint32(8))/uint32(9))
+ need = Int32FromUint32(uint32(1) + (Uint32FromInt32(p)+Uint32FromInt32(LDBL_MANT_DIG)/Uint32FromUint32(3)+uint32(8))/uint32(9))
d = a
for {
if !(d < z) {
break
}
- rm = *(*Tuint32_t)(unsafe.Pointer(d)) & uint32(int32(1)<<sh1-int32(1))
+ rm = *(*Tuint32_t)(unsafe.Pointer(d)) & Uint32FromInt32(int32(1)<<sh1-int32(1))
*(*Tuint32_t)(unsafe.Pointer(d)) = *(*Tuint32_t)(unsafe.Pointer(d))>>sh1 + carry1
- carry1 = uint32(Int32FromInt32(1000000000)>>sh1) * rm
+ carry1 = Uint32FromInt32(Int32FromInt32(1000000000)>>sh1) * rm
goto _26
_26:
;
@@ -140463,7 +140480,7 @@ _4:
i = int32(10)
e = int32(Int64FromInt32(9) * ((int64(r) - int64(a)) / 4))
for {
- if !(*(*Tuint32_t)(unsafe.Pointer(a)) >= uint32(i)) {
+ if !(*(*Tuint32_t)(unsafe.Pointer(a)) >= Uint32FromInt32(i)) {
break
}
goto _29
@@ -140494,30 +140511,30 @@ _4:
i *= int32(10)
j++
}
- x2 = *(*Tuint32_t)(unsafe.Pointer(d)) % uint32(i)
+ x2 = *(*Tuint32_t)(unsafe.Pointer(d)) % Uint32FromInt32(i)
/* Are there any significant digits past j? */
if x2 != 0 || d+uintptr(1)*4 != z {
round1 = Float64FromInt32(2) / Float64FromFloat64(2.22044604925031308085e-16)
- if *(*Tuint32_t)(unsafe.Pointer(d))/uint32(i)&uint32(1) != 0 || i == int32(1000000000) && d > a && *(*Tuint32_t)(unsafe.Pointer(d + uintptr(-Int32FromInt32(1))*4))&uint32(1) != 0 {
+ if *(*Tuint32_t)(unsafe.Pointer(d))/Uint32FromInt32(i)&uint32(1) != 0 || i == int32(1000000000) && d > a && *(*Tuint32_t)(unsafe.Pointer(d + uintptr(-Int32FromInt32(1))*4))&uint32(1) != 0 {
round1 += Float64FromInt32(2)
}
- if x2 < uint32(i/int32(2)) {
+ if x2 < Uint32FromInt32(i/int32(2)) {
small = Float64FromFloat64(0.5)
} else {
- if x2 == uint32(i/int32(2)) && d+uintptr(1)*4 == z {
+ if x2 == Uint32FromInt32(i/int32(2)) && d+uintptr(1)*4 == z {
small = Float64FromFloat64(1)
} else {
small = Float64FromFloat64(1.5)
}
}
- if pl != 0 && int32(*(*uint8)(unsafe.Pointer(prefix))) == int32('-') {
+ if pl != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(prefix))) == int32('-') {
round1 *= float64(-Int32FromInt32(1))
small *= float64(-Int32FromInt32(1))
}
*(*Tuint32_t)(unsafe.Pointer(d)) -= x2
/* Decide whether to round by probing round+small */
if round1+small != round1 {
- *(*Tuint32_t)(unsafe.Pointer(d)) = *(*Tuint32_t)(unsafe.Pointer(d)) + uint32(i)
+ *(*Tuint32_t)(unsafe.Pointer(d)) = *(*Tuint32_t)(unsafe.Pointer(d)) + Uint32FromInt32(i)
for *(*Tuint32_t)(unsafe.Pointer(d)) > uint32(999999999) {
v31 = d
d -= 4
@@ -140532,7 +140549,7 @@ _4:
i = int32(10)
e = int32(Int64FromInt32(9) * ((int64(r) - int64(a)) / 4))
for {
- if !(*(*Tuint32_t)(unsafe.Pointer(a)) >= uint32(i)) {
+ if !(*(*Tuint32_t)(unsafe.Pointer(a)) >= Uint32FromInt32(i)) {
break
}
goto _33
@@ -140567,13 +140584,13 @@ _4:
t -= int32(2)
p--
}
- if !(uint32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) {
+ if !(Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) {
/* Count trailing zeros in last place */
if z > a && *(*Tuint32_t)(unsafe.Pointer(z + uintptr(-Int32FromInt32(1))*4)) != 0 {
i = int32(10)
j = Int32FromInt32(0)
for {
- if !(*(*Tuint32_t)(unsafe.Pointer(z + uintptr(-Int32FromInt32(1))*4))%uint32(i) == uint32(0)) {
+ if !(*(*Tuint32_t)(unsafe.Pointer(z + uintptr(-Int32FromInt32(1))*4))%Uint32FromInt32(i) == uint32(0)) {
break
}
goto _35
@@ -140622,10 +140639,10 @@ _4:
}
}
}
- if p > Int32FromInt32(INT_MAX)-Int32FromInt32(1)-BoolInt32(p != 0 || uint32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) {
+ if p > Int32FromInt32(INT_MAX)-Int32FromInt32(1)-BoolInt32(p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0) {
return -int32(1)
}
- l = int32(1) + p + BoolInt32(p != 0 || uint32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0)
+ l = int32(1) + p + BoolInt32(p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0)
if t|int32(32) == int32('f') {
if e > int32(INT_MAX)-l {
return -int32(1)
@@ -140639,7 +140656,7 @@ _4:
} else {
v42 = e
}
- estr = _fmt_u(tls, uint64(v42), ebuf)
+ estr = _fmt_u(tls, Uint64FromInt32(v42), ebuf)
for int64(ebuf)-int64(estr) < int64(2) {
estr--
v43 = estr
@@ -140652,10 +140669,10 @@ _4:
} else {
v45 = int32('+')
}
- *(*uint8)(unsafe.Pointer(v44)) = uint8(v45)
+ *(*uint8)(unsafe.Pointer(v44)) = Uint8FromInt32(v45)
estr--
v46 = estr
- *(*uint8)(unsafe.Pointer(v46)) = uint8(t)
+ *(*uint8)(unsafe.Pointer(v46)) = Uint8FromInt32(t)
if int64(ebuf)-int64(estr) > int64(int32(INT_MAX)-l) {
return -int32(1)
}
@@ -140665,8 +140682,8 @@ _4:
return -int32(1)
}
_pad3(tls, f, uint8(' '), w, pl+l, fl)
- _out(tls, f, prefix, uint64(pl))
- _pad3(tls, f, uint8('0'), w, pl+l, int32(uint32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))))
+ _out(tls, f, prefix, Uint64FromInt32(pl))
+ _pad3(tls, f, uint8('0'), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))))
if t|int32(32) == int32('f') {
if a > r {
a = r
@@ -140690,13 +140707,13 @@ _4:
*(*uint8)(unsafe.Pointer(v49)) = uint8('0')
}
}
- _out(tls, f, s2, uint64(int64(bp+516+uintptr(9))-int64(s2)))
+ _out(tls, f, s2, Uint64FromInt64(int64(bp+516+uintptr(9))-int64(s2)))
goto _47
_47:
;
d += 4
}
- if p != 0 || uint32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 {
+ if p != 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 {
_out(tls, f, __ccgo_ts+558, uint64(1))
}
for {
@@ -140714,7 +140731,7 @@ _4:
} else {
v52 = p
}
- _out(tls, f, s3, uint64(v52))
+ _out(tls, f, s3, Uint64FromInt32(v52))
goto _50
_50:
;
@@ -140747,7 +140764,7 @@ _4:
v56 = s4
s4++
_out(tls, f, v56, uint64(1))
- if p > 0 || uint32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 {
+ if p > 0 || Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0 {
_out(tls, f, __ccgo_ts+558, uint64(1))
}
}
@@ -140756,7 +140773,7 @@ _4:
} else {
v57 = int64(p)
}
- _out(tls, f, s4, uint64(v57))
+ _out(tls, f, s4, Uint64FromInt64(v57))
p = int32(int64(p) - (int64(bp+516+UintptrFromInt32(9)) - int64(s4)))
goto _53
_53:
@@ -140764,9 +140781,9 @@ _4:
d += 4
}
_pad3(tls, f, uint8('0'), p+int32(18), int32(18), 0)
- _out(tls, f, estr, uint64(int64(ebuf)-int64(estr)))
+ _out(tls, f, estr, Uint64FromInt64(int64(ebuf)-int64(estr)))
}
- _pad3(tls, f, uint8(' '), w, pl+l, int32(uint32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))))
+ _pad3(tls, f, uint8(' '), w, pl+l, Int32FromUint32(Uint32FromInt32(fl)^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))))
if w > pl+l {
v58 = w
} else {
@@ -140783,10 +140800,10 @@ func _getint(tls *TLS, s uintptr) (r int32) {
if !(BoolInt32(uint32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(s)))))-uint32('0') < uint32(10)) != 0) {
break
}
- if uint32(i) > Uint32FromInt32(INT_MAX)/Uint32FromUint32(10) || int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(s)))))-int32('0') > int32(INT_MAX)-int32(10)*i {
+ if Uint32FromInt32(i) > Uint32FromInt32(INT_MAX)/Uint32FromUint32(10) || Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(s)))))-int32('0') > int32(INT_MAX)-int32(10)*i {
i = -int32(1)
} else {
- i = int32(10)*i + (int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(s))))) - int32('0'))
+ i = int32(10)*i + (Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(s))))) - int32('0'))
}
goto _1
_1:
@@ -140831,7 +140848,7 @@ func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
/* Handle literal text and %% format specifiers */
a = *(*uintptr)(unsafe.Pointer(bp))
for {
- if !(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))) != 0 && int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != int32('%')) {
+ if !(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != int32('%')) {
break
}
goto _2
@@ -140841,7 +140858,7 @@ func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
}
z = *(*uintptr)(unsafe.Pointer(bp))
for {
- if !(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) == int32('%') && int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 1))) == int32('%')) {
+ if !(Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) == int32('%') && Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 1))) == int32('%')) {
break
}
goto _3
@@ -140855,14 +140872,14 @@ func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
}
l = int32(int64(z) - int64(a))
if f != 0 {
- _out(tls, f, a, uint64(l))
+ _out(tls, f, a, Uint64FromInt32(l))
}
if l != 0 {
goto _1
}
- if BoolInt32(uint32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 1)))-uint32('0') < uint32(10)) != 0 && int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 2))) == int32('$') {
+ if BoolInt32(uint32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 1)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 2))) == int32('$') {
l10n = uint32(1)
- argpos = int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 1))) - int32('0')
+ argpos = Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 1))) - int32('0')
*(*uintptr)(unsafe.Pointer(bp)) += uintptr(3)
} else {
argpos = -int32(1)
@@ -140871,24 +140888,24 @@ func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
/* Read modifier flags */
fl = uint32(0)
for {
- if !(uint32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))))-uint32(' ') < uint32(32) && (Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('\'')-Int32FromUint8(' ')))&(uint32(1)<<(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))))-int32(' '))) != 0) {
+ if !(uint32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))))-uint32(' ') < uint32(32) && (Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))|Uint32FromUint32(1)<<(Int32FromUint8('\'')-Int32FromUint8(' ')))&(uint32(1)<<(Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))))-int32(' '))) != 0) {
break
}
- fl |= uint32(1) << (int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) - int32(' '))
+ fl |= uint32(1) << (Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) - int32(' '))
goto _4
_4:
;
*(*uintptr)(unsafe.Pointer(bp))++
}
/* Read field width */
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) == int32('*') {
- if BoolInt32(uint32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 1)))-uint32('0') < uint32(10)) != 0 && int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 2))) == int32('$') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) == int32('*') {
+ if BoolInt32(uint32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 1)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 2))) == int32('$') {
l10n = uint32(1)
if !(f != 0) {
- *(*int32)(unsafe.Pointer(nl_type + uintptr(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 1)))-int32('0'))*4)) = int32(_INT)
+ *(*int32)(unsafe.Pointer(nl_type + uintptr(Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 1)))-int32('0'))*4)) = int32(_INT)
w = Int32FromInt32(0)
} else {
- w = int32(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 1)))-int32('0'))*8)))
+ w = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 1)))-int32('0'))*8)))
}
*(*uintptr)(unsafe.Pointer(bp)) += uintptr(3)
} else {
@@ -140916,13 +140933,13 @@ func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
}
}
/* Read precision */
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) == int32('.') && int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 1))) == int32('*') {
- if BoolInt32(uint32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 2)))-uint32('0') < uint32(10)) != 0 && int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 3))) == int32('$') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) == int32('.') && Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 1))) == int32('*') {
+ if BoolInt32(uint32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 2)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 3))) == int32('$') {
if !(f != 0) {
- *(*int32)(unsafe.Pointer(nl_type + uintptr(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 2)))-int32('0'))*4)) = int32(_INT)
+ *(*int32)(unsafe.Pointer(nl_type + uintptr(Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 2)))-int32('0'))*4)) = int32(_INT)
p = Int32FromInt32(0)
} else {
- p = int32(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 2)))-int32('0'))*8)))
+ p = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 2)))-int32('0'))*8)))
}
*(*uintptr)(unsafe.Pointer(bp)) += uintptr(4)
} else {
@@ -140940,7 +140957,7 @@ func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
}
xp = BoolInt32(p >= 0)
} else {
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) == int32('.') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) == int32('.') {
*(*uintptr)(unsafe.Pointer(bp))++
p = _getint(tls, bp)
xp = int32(1)
@@ -140952,13 +140969,13 @@ func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
/* Format specifier state machine */
st = uint32(0)
for cond := true; cond; cond = st-uint32(1) < uint32(_STOP) {
- if uint32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))))-uint32('A') > uint32(Int32FromUint8('z')-Int32FromUint8('A')) {
+ if uint32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))))-uint32('A') > Uint32FromInt32(Int32FromUint8('z')-Int32FromUint8('A')) {
goto inval
}
ps = st
v8 = *(*uintptr)(unsafe.Pointer(bp))
*(*uintptr)(unsafe.Pointer(bp))++
- st = uint32(*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_states)) + uintptr(st)*58 + uintptr(int32(*(*uint8)(unsafe.Pointer(v8)))-int32('A')))))
+ st = uint32(*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&_states)) + uintptr(st)*58 + uintptr(Int32FromUint8(*(*uint8)(unsafe.Pointer(v8)))-int32('A')))))
}
if !(st != 0) {
goto inval
@@ -140971,13 +140988,13 @@ func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
} else {
if argpos >= 0 {
if !(f != 0) {
- *(*int32)(unsafe.Pointer(nl_type + uintptr(argpos)*4)) = int32(st)
+ *(*int32)(unsafe.Pointer(nl_type + uintptr(argpos)*4)) = Int32FromUint32(st)
} else {
*(*Targ)(unsafe.Pointer(bp + 8)) = *(*Targ)(unsafe.Pointer(nl_arg + uintptr(argpos)*8))
}
} else {
if f != 0 {
- _pop_arg(tls, bp+8, int32(st), ap)
+ _pop_arg(tls, bp+8, Int32FromUint32(st), ap)
} else {
return 0
}
@@ -140993,7 +141010,7 @@ func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
z = bp + 16 + uintptr(24)
prefix = __ccgo_ts + 1617
pl = 0
- t = int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + uintptr(-Int32FromInt32(1)))))
+ t = Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + uintptr(-Int32FromInt32(1)))))
/* Transform ls,lc -> S,C */
if ps != 0 && t&int32(15) == int32(3) {
t &= ^Int32FromInt32(32)
@@ -141057,24 +141074,24 @@ func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
case uint32(_LLPRE):
*(*int64)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)))) = int64(cnt)
case uint32(_HPRE):
- *(*uint16)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)))) = uint16(cnt)
+ *(*uint16)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint16FromInt32(cnt)
case uint32(_HHPRE):
- *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)))) = uint8(cnt)
+ *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint8FromInt32(cnt)
case uint32(_ZTPRE):
- *(*Tsize_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)))) = uint64(cnt)
+ *(*Tsize_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint64FromInt32(cnt)
case uint32(_JPRE):
- *(*Tuintmax_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)))) = uint64(cnt)
+ *(*Tuintmax_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)))) = Uint64FromInt32(cnt)
break
}
goto _1
_10:
;
- if uint64(p) > Uint64FromInt32(2)*Uint64FromInt64(8) {
- v31 = uint64(p)
+ if Uint64FromInt32(p) > Uint64FromInt32(2)*Uint64FromInt64(8) {
+ v31 = Uint64FromInt32(p)
} else {
v31 = Uint64FromInt32(2) * Uint64FromInt64(8)
}
- p = int32(v31)
+ p = Int32FromUint64(v31)
t = int32('x')
fl |= Uint32FromUint32(1) << (Int32FromUint8('#') - Int32FromUint8(' '))
_12:
@@ -141105,7 +141122,7 @@ func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
_14:
;
pl = int32(1)
- if *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) > uint64(Int64FromInt64(INT64_MAX)) {
+ if *(*Tuintmax_t)(unsafe.Pointer(bp + 8)) > Uint64FromInt64(Int64FromInt64(INT64_MAX)) {
*(*Tuintmax_t)(unsafe.Pointer(bp + 8)) = -*(*Tuintmax_t)(unsafe.Pointer(bp + 8))
} else {
if fl&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0 {
@@ -141176,7 +141193,7 @@ func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
} else {
v40 = p
}
- z = a + uintptr(Xstrnlen(tls, a, uint64(v40)))
+ z = a + uintptr(Xstrnlen(tls, a, Uint64FromInt32(v40)))
if p < 0 && *(*uint8)(unsafe.Pointer(z)) != 0 {
goto overflow
}
@@ -141197,21 +141214,21 @@ func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
ws = *(*uintptr)(unsafe.Pointer(bp + 8))
v42 = Int32FromInt32(0)
l = v42
- i = uint64(v42)
+ i = Uint64FromInt32(v42)
for {
- if v45 = i < uint64(p) && *(*Twchar_t)(unsafe.Pointer(ws)) != 0; v45 {
+ if v45 = i < Uint64FromInt32(p) && *(*Twchar_t)(unsafe.Pointer(ws)) != 0; v45 {
v44 = ws
ws += 4
v43 = Xwctomb(tls, bp+48, *(*Twchar_t)(unsafe.Pointer(v44)))
l = v43
}
- if !(v45 && v43 >= 0 && uint64(l) <= uint64(p)-i) {
+ if !(v45 && v43 >= 0 && Uint64FromInt32(l) <= Uint64FromInt32(p)-i) {
break
}
goto _41
_41:
;
- i += uint64(l)
+ i += Uint64FromInt32(l)
}
if l < 0 {
return -int32(1)
@@ -141219,27 +141236,27 @@ func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
if i > uint64(INT_MAX) {
goto overflow
}
- p = int32(i)
- _pad3(tls, f, uint8(' '), w, p, int32(fl))
+ p = Int32FromUint64(i)
+ _pad3(tls, f, uint8(' '), w, p, Int32FromUint32(fl))
ws = *(*uintptr)(unsafe.Pointer(bp + 8))
i = uint64(0)
for {
- if v49 = i < uint64(0+uint32(p)) && *(*Twchar_t)(unsafe.Pointer(ws)) != 0; v49 {
+ if v49 = i < uint64(0+Uint32FromInt32(p)) && *(*Twchar_t)(unsafe.Pointer(ws)) != 0; v49 {
v48 = ws
ws += 4
v47 = Xwctomb(tls, bp+48, *(*Twchar_t)(unsafe.Pointer(v48)))
l = v47
}
- if !(v49 && i+uint64(v47) <= uint64(p)) {
+ if !(v49 && i+Uint64FromInt32(v47) <= Uint64FromInt32(p)) {
break
}
- _out(tls, f, bp+48, uint64(l))
+ _out(tls, f, bp+48, Uint64FromInt32(l))
goto _46
_46:
;
- i += uint64(l)
+ i += Uint64FromInt32(l)
}
- _pad3(tls, f, uint8(' '), w, p, int32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))))
+ _pad3(tls, f, uint8(' '), w, p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))))
if w > p {
v50 = w
} else {
@@ -141266,7 +141283,7 @@ func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
if xp != 0 && p < 0 {
goto overflow
}
- l = _fmt_fp(tls, f, *(*float64)(unsafe.Pointer(bp + 8)), w, p, int32(fl), t)
+ l = _fmt_fp(tls, f, *(*float64)(unsafe.Pointer(bp + 8)), w, p, Int32FromUint32(fl), t)
if l < 0 {
goto overflow
}
@@ -141285,12 +141302,12 @@ func _printf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
if w > int32(INT_MAX)-cnt {
goto overflow
}
- _pad3(tls, f, uint8(' '), w, pl+p, int32(fl))
- _out(tls, f, prefix, uint64(pl))
- _pad3(tls, f, uint8('0'), w, pl+p, int32(fl^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))))
+ _pad3(tls, f, uint8(' '), w, pl+p, Int32FromUint32(fl))
+ _out(tls, f, prefix, Uint64FromInt32(pl))
+ _pad3(tls, f, uint8('0'), w, pl+p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))))
_pad3(tls, f, uint8('0'), p, int32(int64(z)-int64(a)), 0)
- _out(tls, f, a, uint64(int64(z)-int64(a)))
- _pad3(tls, f, uint8(' '), w, pl+p, int32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))))
+ _out(tls, f, a, Uint64FromInt64(int64(z)-int64(a)))
+ _pad3(tls, f, uint8(' '), w, pl+p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))))
l = w
goto _1
_1:
@@ -141365,8 +141382,8 @@ func Xvfprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
v1 = 0
}
__need_unlock = v1
- olderr = int32((*TFILE)(unsafe.Pointer(f)).Fflags & uint32(F_ERR))
- *(*uint32)(unsafe.Pointer(f)) &= uint32(^Int32FromInt32(F_ERR))
+ olderr = Int32FromUint32((*TFILE)(unsafe.Pointer(f)).Fflags & uint32(F_ERR))
+ *(*uint32)(unsafe.Pointer(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR))
if !((*TFILE)(unsafe.Pointer(f)).Fbuf_size != 0) {
saved_buf = (*TFILE)(unsafe.Pointer(f)).Fbuf
(*TFILE)(unsafe.Pointer(f)).Fbuf = bp + 128
@@ -141398,7 +141415,7 @@ func Xvfprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 {
ret = -int32(1)
}
- *(*uint32)(unsafe.Pointer(f)) |= uint32(olderr)
+ *(*uint32)(unsafe.Pointer(f)) |= Uint32FromInt32(olderr)
if __need_unlock != 0 {
___unlockfile(tls, f)
}
@@ -141421,13 +141438,13 @@ func _store_int(tls *TLS, dest uintptr, size int32, i uint64) {
case -int32(2):
*(*uint8)(unsafe.Pointer(dest)) = uint8(i)
case -int32(1):
- *(*int16)(unsafe.Pointer(dest)) = int16(i)
+ *(*int16)(unsafe.Pointer(dest)) = Int16FromUint64(i)
case SIZE_def:
- *(*int32)(unsafe.Pointer(dest)) = int32(i)
+ *(*int32)(unsafe.Pointer(dest)) = Int32FromUint64(i)
case int32(SIZE_l):
- *(*int64)(unsafe.Pointer(dest)) = int64(i)
+ *(*int64)(unsafe.Pointer(dest)) = Int64FromUint64(i)
case int32(SIZE_ll):
- *(*int64)(unsafe.Pointer(dest)) = int64(i)
+ *(*int64)(unsafe.Pointer(dest)) = Int64FromUint64(i)
break
}
}
@@ -141494,14 +141511,14 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
break
}
alloc = 0
- v3 = int32(*(*uint8)(unsafe.Pointer(p)))
- v4 = BoolInt32(v3 == int32(' ') || uint32(v3)-uint32('\t') < uint32(5))
+ v3 = Int32FromUint8(*(*uint8)(unsafe.Pointer(p)))
+ v4 = BoolInt32(v3 == int32(' ') || Uint32FromInt32(v3)-uint32('\t') < uint32(5))
goto _5
_5:
if v4 != 0 {
for {
- v6 = int32(*(*uint8)(unsafe.Pointer(p + 1)))
- v7 = BoolInt32(v6 == int32(' ') || uint32(v6)-uint32('\t') < uint32(5))
+ v6 = Int32FromUint8(*(*uint8)(unsafe.Pointer(p + 1)))
+ v7 = BoolInt32(v6 == int32(' ') || Uint32FromInt32(v6)-uint32('\t') < uint32(5))
goto _8
_8:
if !(v7 != 0) {
@@ -141515,12 +141532,12 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
v11 = f + 8
v10 = *(*uintptr)(unsafe.Pointer(v11))
*(*uintptr)(unsafe.Pointer(v11))++
- v9 = int32(*(*uint8)(unsafe.Pointer(v10)))
+ v9 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v10)))
} else {
v9 = X__shgetc(tls, f)
}
v12 = v9
- v13 = BoolInt32(v12 == int32(' ') || uint32(v12)-uint32('\t') < uint32(5))
+ v13 = BoolInt32(v12 == int32(' ') || Uint32FromInt32(v12)-uint32('\t') < uint32(5))
goto _14
_14:
if !(v13 != 0) {
@@ -141533,23 +141550,23 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
pos += (*TFILE)(unsafe.Pointer(f)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(f)).Frpos) - int64((*TFILE)(unsafe.Pointer(f)).Fbuf))
goto _2
}
- if int32(*(*uint8)(unsafe.Pointer(p))) != int32('%') || int32(*(*uint8)(unsafe.Pointer(p + 1))) == int32('%') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) != int32('%') || Int32FromUint8(*(*uint8)(unsafe.Pointer(p + 1))) == int32('%') {
X__shlim(tls, f, int64(Int32FromInt32(0)))
- if int32(*(*uint8)(unsafe.Pointer(p))) == int32('%') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) == int32('%') {
p++
for {
if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Fshend {
v19 = f + 8
v18 = *(*uintptr)(unsafe.Pointer(v19))
*(*uintptr)(unsafe.Pointer(v19))++
- v17 = int32(*(*uint8)(unsafe.Pointer(v18)))
+ v17 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v18)))
} else {
v17 = X__shgetc(tls, f)
}
v16 = v17
c = v16
v20 = v16
- v21 = BoolInt32(v20 == int32(' ') || uint32(v20)-uint32('\t') < uint32(5))
+ v21 = BoolInt32(v20 == int32(' ') || Uint32FromInt32(v20)-uint32('\t') < uint32(5))
goto _22
_22:
if !(v21 != 0) {
@@ -141561,13 +141578,13 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
v25 = f + 8
v24 = *(*uintptr)(unsafe.Pointer(v25))
*(*uintptr)(unsafe.Pointer(v25))++
- v23 = int32(*(*uint8)(unsafe.Pointer(v24)))
+ v23 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v24)))
} else {
v23 = X__shgetc(tls, f)
}
c = v23
}
- if c != int32(*(*uint8)(unsafe.Pointer(p))) {
+ if c != Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) {
if (*TFILE)(unsafe.Pointer(f)).Fshlim >= 0 {
(*TFILE)(unsafe.Pointer(f)).Frpos--
}
@@ -141580,12 +141597,12 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
goto _2
}
p++
- if int32(*(*uint8)(unsafe.Pointer(p))) == int32('*') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) == int32('*') {
dest = uintptr(0)
p++
} else {
- if BoolInt32(uint32(*(*uint8)(unsafe.Pointer(p)))-uint32('0') < uint32(10)) != 0 && int32(*(*uint8)(unsafe.Pointer(p + 1))) == int32('$') {
- dest = _arg_n(tls, ap, uint32(int32(*(*uint8)(unsafe.Pointer(p)))-int32('0')))
+ if BoolInt32(uint32(*(*uint8)(unsafe.Pointer(p)))-uint32('0') < uint32(10)) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(p + 1))) == int32('$') {
+ dest = _arg_n(tls, ap, Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(p)))-int32('0')))
p += uintptr(2)
} else {
dest = VaUintptr(&ap)
@@ -141596,13 +141613,13 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
if !(BoolInt32(uint32(*(*uint8)(unsafe.Pointer(p)))-uint32('0') < uint32(10)) != 0) {
break
}
- width = int32(10)*width + int32(*(*uint8)(unsafe.Pointer(p))) - int32('0')
+ width = int32(10)*width + Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) - int32('0')
goto _27
_27:
;
p++
}
- if int32(*(*uint8)(unsafe.Pointer(p))) == int32('m') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) == int32('m') {
wcs = uintptr(0)
s = uintptr(0)
alloc = BoolInt32(!!(dest != 0))
@@ -141613,16 +141630,16 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
size = SIZE_def
v28 = p
p++
- switch int32(*(*uint8)(unsafe.Pointer(v28))) {
+ switch Int32FromUint8(*(*uint8)(unsafe.Pointer(v28))) {
case int32('h'):
- if int32(*(*uint8)(unsafe.Pointer(p))) == int32('h') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) == int32('h') {
p++
size = -Int32FromInt32(2)
} else {
size = -int32(1)
}
case int32('l'):
- if int32(*(*uint8)(unsafe.Pointer(p))) == int32('l') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) == int32('l') {
p++
size = Int32FromInt32(SIZE_ll)
} else {
@@ -141681,7 +141698,7 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
default:
goto fmt_fail
}
- t = int32(*(*uint8)(unsafe.Pointer(p)))
+ t = Int32FromUint8(*(*uint8)(unsafe.Pointer(p)))
/* C or S */
if t&int32(0x2f) == int32(3) {
t |= int32(32)
@@ -141695,7 +141712,7 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
fallthrough
case int32('['):
case int32('n'):
- _store_int(tls, dest, size, uint64(pos))
+ _store_int(tls, dest, size, Uint64FromInt64(pos))
/* do not increment match count, etc! */
goto _2
default:
@@ -141705,12 +141722,12 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
v31 = f + 8
v30 = *(*uintptr)(unsafe.Pointer(v31))
*(*uintptr)(unsafe.Pointer(v31))++
- v29 = int32(*(*uint8)(unsafe.Pointer(v30)))
+ v29 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v30)))
} else {
v29 = X__shgetc(tls, f)
}
v32 = v29
- v33 = BoolInt32(v32 == int32(' ') || uint32(v32)-uint32('\t') < uint32(5))
+ v33 = BoolInt32(v32 == int32(' ') || Uint32FromInt32(v32)-uint32('\t') < uint32(5))
goto _34
_34:
if !(v33 != 0) {
@@ -141727,7 +141744,7 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
v38 = f + 8
v37 = *(*uintptr)(unsafe.Pointer(v38))
*(*uintptr)(unsafe.Pointer(v38))++
- v36 = int32(*(*uint8)(unsafe.Pointer(v37)))
+ v36 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v37)))
} else {
v36 = X__shgetc(tls, f)
}
@@ -141796,7 +141813,7 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
} else {
p++
v59 = p
- if int32(*(*uint8)(unsafe.Pointer(v59))) == int32('^') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(v59))) == int32('^') {
p++
invert = Int32FromInt32(1)
} else {
@@ -141804,38 +141821,38 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
}
Xmemset(tls, bp+16, invert, uint64(257))
(*(*[257]uint8)(unsafe.Pointer(bp + 16)))[0] = uint8(0)
- if int32(*(*uint8)(unsafe.Pointer(p))) == int32('-') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) == int32('-') {
p++
- (*(*[257]uint8)(unsafe.Pointer(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('-')] = uint8(Int32FromInt32(1) - invert)
+ (*(*[257]uint8)(unsafe.Pointer(bp + 16)))[Int32FromInt32(1)+Int32FromUint8('-')] = Uint8FromInt32(Int32FromInt32(1) - invert)
} else {
- if int32(*(*uint8)(unsafe.Pointer(p))) == int32(']') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) == int32(']') {
p++
- (*(*[257]uint8)(unsafe.Pointer(bp + 16)))[Int32FromInt32(1)+Int32FromUint8(']')] = uint8(Int32FromInt32(1) - invert)
+ (*(*[257]uint8)(unsafe.Pointer(bp + 16)))[Int32FromInt32(1)+Int32FromUint8(']')] = Uint8FromInt32(Int32FromInt32(1) - invert)
}
}
for {
- if !(int32(*(*uint8)(unsafe.Pointer(p))) != int32(']')) {
+ if !(Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) != int32(']')) {
break
}
if !(*(*uint8)(unsafe.Pointer(p)) != 0) {
goto fmt_fail
}
- if int32(*(*uint8)(unsafe.Pointer(p))) == int32('-') && *(*uint8)(unsafe.Pointer(p + 1)) != 0 && int32(*(*uint8)(unsafe.Pointer(p + 1))) != int32(']') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(p))) == int32('-') && *(*uint8)(unsafe.Pointer(p + 1)) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(p + 1))) != int32(']') {
v62 = p
p++
- c = int32(*(*uint8)(unsafe.Pointer(v62 + uintptr(-Int32FromInt32(1)))))
+ c = Int32FromUint8(*(*uint8)(unsafe.Pointer(v62 + uintptr(-Int32FromInt32(1)))))
for {
- if !(c < int32(*(*uint8)(unsafe.Pointer(p)))) {
+ if !(c < Int32FromUint8(*(*uint8)(unsafe.Pointer(p)))) {
break
}
- (*(*[257]uint8)(unsafe.Pointer(bp + 16)))[int32(1)+c] = uint8(int32(1) - invert)
+ (*(*[257]uint8)(unsafe.Pointer(bp + 16)))[int32(1)+c] = Uint8FromInt32(int32(1) - invert)
goto _61
_61:
;
c++
}
}
- (*(*[257]uint8)(unsafe.Pointer(bp + 16)))[int32(1)+int32(*(*uint8)(unsafe.Pointer(p)))] = uint8(int32(1) - invert)
+ (*(*[257]uint8)(unsafe.Pointer(bp + 16)))[int32(1)+Int32FromUint8(*(*uint8)(unsafe.Pointer(p)))] = Uint8FromInt32(int32(1) - invert)
goto _60
_60:
;
@@ -141846,7 +141863,7 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
s = uintptr(0)
i = uint64(0)
if t == int32('c') {
- v63 = uint32(width) + uint32(1)
+ v63 = Uint32FromInt32(width) + uint32(1)
} else {
v63 = uint32(31)
}
@@ -141866,7 +141883,7 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
v67 = f + 8
v66 = *(*uintptr)(unsafe.Pointer(v67))
*(*uintptr)(unsafe.Pointer(v67))++
- v65 = int32(*(*uint8)(unsafe.Pointer(v66)))
+ v65 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v66)))
} else {
v65 = X__shgetc(tls, f)
}
@@ -141875,11 +141892,11 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
if !((*(*[257]uint8)(unsafe.Pointer(bp + 16)))[v64+int32(1)] != 0) {
break
}
- *(*uint8)(unsafe.Pointer(bp)) = uint8(c)
+ *(*uint8)(unsafe.Pointer(bp)) = Uint8FromInt32(c)
switch Xmbrtowc(tls, bp+276, bp, uint64(1), bp+8) {
- case uint64(-Int32FromInt32(1)):
+ case Uint64FromInt32(-Int32FromInt32(1)):
goto input_fail
- case uint64(-Int32FromInt32(2)):
+ case Uint64FromInt32(-Int32FromInt32(2)):
continue
}
if wcs != 0 {
@@ -141910,7 +141927,7 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
v72 = f + 8
v71 = *(*uintptr)(unsafe.Pointer(v72))
*(*uintptr)(unsafe.Pointer(v72))++
- v70 = int32(*(*uint8)(unsafe.Pointer(v71)))
+ v70 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v71)))
} else {
v70 = X__shgetc(tls, f)
}
@@ -141921,7 +141938,7 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
}
v73 = i
i++
- *(*uint8)(unsafe.Pointer(s + uintptr(v73))) = uint8(c)
+ *(*uint8)(unsafe.Pointer(s + uintptr(v73))) = Uint8FromInt32(c)
if i == k {
k += k + uint64(1)
tmp1 = Xrealloc(tls, s, k)
@@ -141940,7 +141957,7 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
v78 = f + 8
v77 = *(*uintptr)(unsafe.Pointer(v78))
*(*uintptr)(unsafe.Pointer(v78))++
- v76 = int32(*(*uint8)(unsafe.Pointer(v77)))
+ v76 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v77)))
} else {
v76 = X__shgetc(tls, f)
}
@@ -141951,7 +141968,7 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
}
v79 = i
i++
- *(*uint8)(unsafe.Pointer(s + uintptr(v79))) = uint8(c)
+ *(*uint8)(unsafe.Pointer(s + uintptr(v79))) = Uint8FromInt32(c)
}
} else {
for {
@@ -141959,7 +141976,7 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
v83 = f + 8
v82 = *(*uintptr)(unsafe.Pointer(v83))
*(*uintptr)(unsafe.Pointer(v83))++
- v81 = int32(*(*uint8)(unsafe.Pointer(v82)))
+ v81 = Int32FromUint8(*(*uint8)(unsafe.Pointer(v82)))
} else {
v81 = X__shgetc(tls, f)
}
@@ -142021,7 +142038,7 @@ func Xvfscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
goto int_common
int_common:
;
- x = X__intscan(tls, f, uint32(base), 0, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))
+ x = X__intscan(tls, f, Uint32FromInt32(base), 0, Uint64FromUint64(2)*Uint64FromInt64(0x7fffffffffffffff)+Uint64FromInt32(1))
if !((*TFILE)(unsafe.Pointer(f)).Fshcnt+(int64((*TFILE)(unsafe.Pointer(f)).Frpos)-int64((*TFILE)(unsafe.Pointer(f)).Fbuf)) != 0) {
goto match_fail
}
@@ -142226,33 +142243,33 @@ func _pop_arg1(tls *TLS, arg uintptr, type1 int32, ap uintptr) {
case int32(_PTR):
*(*uintptr)(unsafe.Pointer(arg)) = VaUintptr(&*(*Tva_list)(unsafe.Pointer(ap)))
case int32(_INT):
- (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaInt32(&*(*Tva_list)(unsafe.Pointer(ap))))
+ (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt32(VaInt32(&*(*Tva_list)(unsafe.Pointer(ap))))
case int32(_UINT):
(*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUint32(&*(*Tva_list)(unsafe.Pointer(ap))))
case int32(_LONG):
- (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaInt64(&*(*Tva_list)(unsafe.Pointer(ap))))
+ (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&*(*Tva_list)(unsafe.Pointer(ap))))
case int32(_ULONG):
(*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&*(*Tva_list)(unsafe.Pointer(ap)))
case int32(_ULLONG):
(*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&*(*Tva_list)(unsafe.Pointer(ap)))
case int32(_SHORT):
- (*Targ)(unsafe.Pointer(arg)).Fi = uint64(int16(VaInt32(&*(*Tva_list)(unsafe.Pointer(ap)))))
+ (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt16(int16(VaInt32(&*(*Tva_list)(unsafe.Pointer(ap)))))
case int32(_USHORT):
- (*Targ)(unsafe.Pointer(arg)).Fi = uint64(uint16(VaInt32(&*(*Tva_list)(unsafe.Pointer(ap)))))
+ (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint16FromInt32(VaInt32(&*(*Tva_list)(unsafe.Pointer(ap)))))
case int32(_CHAR):
- (*Targ)(unsafe.Pointer(arg)).Fi = uint64(int8(VaInt32(&*(*Tva_list)(unsafe.Pointer(ap)))))
+ (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt8(int8(VaInt32(&*(*Tva_list)(unsafe.Pointer(ap)))))
case int32(_UCHAR):
- (*Targ)(unsafe.Pointer(arg)).Fi = uint64(uint8(VaInt32(&*(*Tva_list)(unsafe.Pointer(ap)))))
+ (*Targ)(unsafe.Pointer(arg)).Fi = uint64(Uint8FromInt32(VaInt32(&*(*Tva_list)(unsafe.Pointer(ap)))))
case int32(_LLONG):
- (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaInt64(&*(*Tva_list)(unsafe.Pointer(ap))))
+ (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&*(*Tva_list)(unsafe.Pointer(ap))))
case int32(_SIZET):
(*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&*(*Tva_list)(unsafe.Pointer(ap)))
case int32(_IMAX):
- (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaInt64(&*(*Tva_list)(unsafe.Pointer(ap))))
+ (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&*(*Tva_list)(unsafe.Pointer(ap))))
case int32(_UMAX):
(*Targ)(unsafe.Pointer(arg)).Fi = VaUint64(&*(*Tva_list)(unsafe.Pointer(ap)))
case int32(_PDIFF):
- (*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaInt64(&*(*Tva_list)(unsafe.Pointer(ap))))
+ (*Targ)(unsafe.Pointer(arg)).Fi = Uint64FromInt64(VaInt64(&*(*Tva_list)(unsafe.Pointer(ap))))
case int32(_UIPTR):
(*Targ)(unsafe.Pointer(arg)).Fi = uint64(VaUintptr(&*(*Tva_list)(unsafe.Pointer(ap))))
case int32(_DBL):
@@ -142281,7 +142298,7 @@ func _out1(tls *TLS, f uintptr, s uintptr, l Tsize_t) {
func _pad4(tls *TLS, f uintptr, n int32, fl int32) {
bp := tls.Alloc(32)
defer tls.Free(32)
- if uint32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0 || !(n != 0) || (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 {
+ if Uint32FromInt32(fl)&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0 || !(n != 0) || (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 {
return
}
Xfprintf(tls, f, __ccgo_ts+1634, VaList(bp+8, n, __ccgo_ts))
@@ -142295,10 +142312,10 @@ func _getint1(tls *TLS, s uintptr) (r int32) {
if !(BoolInt32(*(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(s))))-uint32('0') < uint32(10)) != 0) {
break
}
- if uint32(i) > Uint32FromInt32(INT_MAX)/Uint32FromUint32(10) || *(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(s))))-uint32('0') > uint32(int32(INT_MAX)-int32(10)*i) {
+ if Uint32FromInt32(i) > Uint32FromInt32(INT_MAX)/Uint32FromUint32(10) || *(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(s))))-uint32('0') > Uint32FromInt32(int32(INT_MAX)-int32(10)*i) {
i = -int32(1)
} else {
- i = int32(uint32(int32(10)*i) + (*(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(s)))) - uint32('0')))
+ i = Int32FromUint32(Uint32FromInt32(int32(10)*i) + (*(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(s)))) - uint32('0')))
}
goto _1
_1:
@@ -142377,14 +142394,14 @@ func _wprintf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
}
l = int32((int64(z) - int64(a)) / 4)
if f != 0 {
- _out1(tls, f, a, uint64(l))
+ _out1(tls, f, a, Uint64FromInt32(l))
}
if l != 0 {
goto _1
}
if BoolInt32(*(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)) + 1*4))-uint32('0') < uint32(10)) != 0 && *(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)) + 2*4)) == uint32('$') {
l10n = uint32(1)
- argpos = int32(*(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)) + 1*4)) - uint32('0'))
+ argpos = Int32FromUint32(*(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)) + 1*4)) - uint32('0'))
*(*uintptr)(unsafe.Pointer(bp + 8)) += uintptr(3) * 4
} else {
argpos = -int32(1)
@@ -142407,7 +142424,7 @@ func _wprintf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
if BoolInt32(*(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)) + 1*4))-uint32('0') < uint32(10)) != 0 && *(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)) + 2*4)) == uint32('$') {
l10n = uint32(1)
*(*int32)(unsafe.Pointer(nl_type + uintptr(*(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)) + 1*4))-uint32('0'))*4)) = int32(_INT)
- w = int32(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(*(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)) + 1*4))-uint32('0'))*8)))
+ w = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(*(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)) + 1*4))-uint32('0'))*8)))
*(*uintptr)(unsafe.Pointer(bp + 8)) += uintptr(3) * 4
} else {
if !(l10n != 0) {
@@ -142437,7 +142454,7 @@ func _wprintf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
if *(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)))) == uint32('.') && *(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)) + 1*4)) == uint32('*') {
if BoolInt32(*(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)) + 2*4))-uint32('0') < uint32(10)) != 0 && *(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)) + 3*4)) == uint32('$') {
*(*int32)(unsafe.Pointer(nl_type + uintptr(*(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)) + 2*4))-uint32('0'))*4)) = int32(_INT)
- p = int32(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(*(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)) + 2*4))-uint32('0'))*8)))
+ p = Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(nl_arg + uintptr(*(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)) + 2*4))-uint32('0'))*8)))
*(*uintptr)(unsafe.Pointer(bp + 8)) += uintptr(4) * 4
} else {
if !(l10n != 0) {
@@ -142466,7 +142483,7 @@ func _wprintf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
/* Format specifier state machine */
st = uint32(0)
for cond := true; cond; cond = st-uint32(1) < uint32(_STOP) {
- if *(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8))))-uint32('A') > uint32(Int32FromUint8('z')-Int32FromUint8('A')) {
+ if *(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8))))-uint32('A') > Uint32FromInt32(Int32FromUint8('z')-Int32FromUint8('A')) {
goto inval
}
ps = st
@@ -142484,11 +142501,11 @@ func _wprintf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
}
} else {
if argpos >= 0 {
- *(*int32)(unsafe.Pointer(nl_type + uintptr(argpos)*4)) = int32(st)
+ *(*int32)(unsafe.Pointer(nl_type + uintptr(argpos)*4)) = Int32FromUint32(st)
*(*Targ)(unsafe.Pointer(bp + 16)) = *(*Targ)(unsafe.Pointer(nl_arg + uintptr(argpos)*8))
} else {
if f != 0 {
- _pop_arg1(tls, bp+16, int32(st), ap)
+ _pop_arg1(tls, bp+16, Int32FromUint32(st), ap)
} else {
return 0
}
@@ -142501,7 +142518,7 @@ func _wprintf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 {
return -int32(1)
}
- t = int32(*(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)) + uintptr(-Int32FromInt32(1))*4)))
+ t = Int32FromUint32(*(*Twchar_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8)) + uintptr(-Int32FromInt32(1))*4)))
if ps != 0 && t&int32(15) == int32(3) {
t &= ^Int32FromInt32(32)
}
@@ -142515,13 +142532,13 @@ func _wprintf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
case uint32(_LLPRE):
*(*int64)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 16)))) = int64(cnt)
case uint32(_HPRE):
- *(*uint16)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 16)))) = uint16(cnt)
+ *(*uint16)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint16FromInt32(cnt)
case uint32(_HHPRE):
- *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 16)))) = uint8(cnt)
+ *(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint8FromInt32(cnt)
case uint32(_ZTPRE):
- *(*Tsize_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 16)))) = uint64(cnt)
+ *(*Tsize_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint64FromInt32(cnt)
case uint32(_JPRE):
- *(*Tuintmax_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 16)))) = uint64(cnt)
+ *(*Tuintmax_t)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 16)))) = Uint64FromInt32(cnt)
break
}
goto _1
@@ -142531,15 +142548,15 @@ func _wprintf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
if w < int32(1) {
w = int32(1)
}
- _pad4(tls, f, w-int32(1), int32(fl))
+ _pad4(tls, f, w-int32(1), Int32FromUint32(fl))
if t == int32('C') {
v9 = *(*Tuintmax_t)(unsafe.Pointer(bp + 16))
} else {
- v9 = uint64(Xbtowc(tls, int32(*(*Tuintmax_t)(unsafe.Pointer(bp + 16)))))
+ v9 = uint64(Xbtowc(tls, Int32FromUint64(*(*Tuintmax_t)(unsafe.Pointer(bp + 16)))))
}
*(*Twchar_t)(unsafe.Pointer(bp)) = uint32(v9)
_out1(tls, f, bp, uint64(1))
- _pad4(tls, f, w-int32(1), int32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))))
+ _pad4(tls, f, w-int32(1), Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))))
l = w
goto _1
case int32('S'):
@@ -142549,7 +142566,7 @@ func _wprintf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
} else {
v10 = p
}
- z = a + uintptr(Xwcsnlen(tls, a, uint64(v10)))*4
+ z = a + uintptr(Xwcsnlen(tls, a, Uint64FromInt32(v10)))*4
if p < 0 && *(*Twchar_t)(unsafe.Pointer(z)) != 0 {
goto overflow
}
@@ -142557,9 +142574,9 @@ func _wprintf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
if w < p {
w = p
}
- _pad4(tls, f, w-p, int32(fl))
- _out1(tls, f, a, uint64(p))
- _pad4(tls, f, w-p, int32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))))
+ _pad4(tls, f, w-p, Int32FromUint32(fl))
+ _out1(tls, f, a, Uint64FromInt32(p))
+ _pad4(tls, f, w-p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))))
l = w
goto _1
case int32('m'):
@@ -142602,7 +142619,7 @@ func _wprintf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
if w < p {
w = p
}
- _pad4(tls, f, w-p, int32(fl))
+ _pad4(tls, f, w-p, Int32FromUint32(fl))
bs = *(*uintptr)(unsafe.Pointer(bp + 16))
for {
v16 = l
@@ -142614,14 +142631,14 @@ func _wprintf_core(tls *TLS, f uintptr, fmt uintptr, ap uintptr, nl_arg uintptr,
bs += uintptr(i)
_out1(tls, f, bp+40, uint64(1))
}
- _pad4(tls, f, w-p, int32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))))
+ _pad4(tls, f, w-p, Int32FromUint32(fl^Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))))
l = w
goto _1
}
if xp != 0 && p < 0 {
goto overflow
}
- Xsnprintf(tls, bp+24, uint64(16), __ccgo_ts+1638, VaList(bp+56, __ccgo_ts+1658+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1660+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1662+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0)), __ccgo_ts+672+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1664+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))) != 0)), int32(_sizeprefix[t|int32(32)-int32('a')]), t))
+ Xsnprintf(tls, bp+24, uint64(16), __ccgo_ts+1638, VaList(bp+56, __ccgo_ts+1658+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('#')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1660+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('+')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1662+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('-')-Int32FromUint8(' '))) != 0)), __ccgo_ts+672+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8(' ')-Int32FromUint8(' '))) != 0)), __ccgo_ts+1664+BoolUintptr(!(fl&(Uint32FromUint32(1)<<(Int32FromUint8('0')-Int32FromUint8(' '))) != 0)), Int32FromUint8(_sizeprefix[t|int32(32)-int32('a')]), t))
switch t | Int32FromInt32(32) {
case int32('a'):
fallthrough
@@ -142716,13 +142733,13 @@ func Xvfwprintf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
}
__need_unlock = v1
Xfwide(tls, f, int32(1))
- olderr = int32((*TFILE)(unsafe.Pointer(f)).Fflags & uint32(F_ERR))
- *(*uint32)(unsafe.Pointer(f)) &= uint32(^Int32FromInt32(F_ERR))
+ olderr = Int32FromUint32((*TFILE)(unsafe.Pointer(f)).Fflags & uint32(F_ERR))
+ *(*uint32)(unsafe.Pointer(f)) &= Uint32FromInt32(^Int32FromInt32(F_ERR))
ret = _wprintf_core(tls, f, fmt, bp, bp+48, bp+8)
if (*TFILE)(unsafe.Pointer(f)).Fflags&uint32(F_ERR) != 0 {
ret = -int32(1)
}
- *(*uint32)(unsafe.Pointer(f)) |= uint32(olderr)
+ *(*uint32)(unsafe.Pointer(f)) |= Uint32FromInt32(olderr)
if __need_unlock != 0 {
___unlockfile(tls, f)
}
@@ -142738,13 +142755,13 @@ func _store_int1(tls *TLS, dest uintptr, size int32, i uint64) {
case -int32(2):
*(*uint8)(unsafe.Pointer(dest)) = uint8(i)
case -int32(1):
- *(*int16)(unsafe.Pointer(dest)) = int16(i)
+ *(*int16)(unsafe.Pointer(dest)) = Int16FromUint64(i)
case SIZE_def:
- *(*int32)(unsafe.Pointer(dest)) = int32(i)
+ *(*int32)(unsafe.Pointer(dest)) = Int32FromUint64(i)
case int32(SIZE_l):
- *(*int64)(unsafe.Pointer(dest)) = int64(i)
+ *(*int64)(unsafe.Pointer(dest)) = Int64FromUint64(i)
case int32(SIZE_ll):
- *(*int64)(unsafe.Pointer(dest)) = int64(i)
+ *(*int64)(unsafe.Pointer(dest)) = Int64FromUint64(i)
break
}
}
@@ -142796,9 +142813,9 @@ func _in_set(tls *TLS, set uintptr, c int32) (r int32) {
if *(*Twchar_t)(unsafe.Pointer(p)) == uint32('-') && *(*Twchar_t)(unsafe.Pointer(p + 1*4)) != 0 && *(*Twchar_t)(unsafe.Pointer(p + 1*4)) != uint32(']') {
v3 = p
p += 4
- j = int32(*(*Twchar_t)(unsafe.Pointer(v3 + uintptr(-Int32FromInt32(1))*4)))
+ j = Int32FromUint32(*(*Twchar_t)(unsafe.Pointer(v3 + uintptr(-Int32FromInt32(1))*4)))
for {
- if !(uint32(j) < *(*Twchar_t)(unsafe.Pointer(p))) {
+ if !(Uint32FromInt32(j) < *(*Twchar_t)(unsafe.Pointer(p))) {
break
}
if c == j {
@@ -142810,7 +142827,7 @@ func _in_set(tls *TLS, set uintptr, c int32) (r int32) {
j++
}
}
- if uint32(c) == *(*Twchar_t)(unsafe.Pointer(p)) {
+ if Uint32FromInt32(c) == *(*Twchar_t)(unsafe.Pointer(p)) {
return int32(1)
}
goto _1
@@ -142857,7 +142874,7 @@ func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
p += 4
}
for {
- if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && int32(*(*uint8)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) {
+ if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(*(*uint8)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) {
v6 = f + 8
v5 = *(*uintptr)(unsafe.Pointer(v6))
*(*uintptr)(unsafe.Pointer(v6))++
@@ -142865,20 +142882,20 @@ func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
} else {
v4 = Xgetwc(tls, f)
}
- v3 = int32(v4)
+ v3 = Int32FromUint32(v4)
c = v3
- if !(Xiswspace(tls, uint32(v3)) != 0) {
+ if !(Xiswspace(tls, Uint32FromInt32(v3)) != 0) {
break
}
pos++
}
- if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && uint32(c) < uint32(128) {
+ if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) {
v9 = f + 8
*(*uintptr)(unsafe.Pointer(v9))--
v8 = *(*uintptr)(unsafe.Pointer(v9))
_ = *(*uint8)(unsafe.Pointer(v8))
} else {
- Xungetwc(tls, uint32(c), f)
+ Xungetwc(tls, Uint32FromInt32(c), f)
}
goto _2
}
@@ -142886,7 +142903,7 @@ func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
if *(*Twchar_t)(unsafe.Pointer(p)) == uint32('%') {
p += 4
for {
- if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && int32(*(*uint8)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) {
+ if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(*(*uint8)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) {
v13 = f + 8
v12 = *(*uintptr)(unsafe.Pointer(v13))
*(*uintptr)(unsafe.Pointer(v13))++
@@ -142894,15 +142911,15 @@ func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
} else {
v11 = Xgetwc(tls, f)
}
- v10 = int32(v11)
+ v10 = Int32FromUint32(v11)
c = v10
- if !(Xiswspace(tls, uint32(v10)) != 0) {
+ if !(Xiswspace(tls, Uint32FromInt32(v10)) != 0) {
break
}
pos++
}
} else {
- if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && int32(*(*uint8)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) {
+ if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(*(*uint8)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) {
v16 = f + 8
v15 = *(*uintptr)(unsafe.Pointer(v16))
*(*uintptr)(unsafe.Pointer(v16))++
@@ -142910,16 +142927,16 @@ func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
} else {
v14 = Xgetwc(tls, f)
}
- c = int32(v14)
+ c = Int32FromUint32(v14)
}
- if uint32(c) != *(*Twchar_t)(unsafe.Pointer(p)) {
- if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && uint32(c) < uint32(128) {
+ if Uint32FromInt32(c) != *(*Twchar_t)(unsafe.Pointer(p)) {
+ if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) {
v19 = f + 8
*(*uintptr)(unsafe.Pointer(v19))--
v18 = *(*uintptr)(unsafe.Pointer(v19))
_ = *(*uint8)(unsafe.Pointer(v18))
} else {
- Xungetwc(tls, uint32(c), f)
+ Xungetwc(tls, Uint32FromInt32(c), f)
}
if c < 0 {
goto input_fail
@@ -142946,7 +142963,7 @@ func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
if !(BoolInt32(*(*Twchar_t)(unsafe.Pointer(p))-uint32('0') < uint32(10)) != 0) {
break
}
- width = int32(uint32(int32(10)*width) + *(*Twchar_t)(unsafe.Pointer(p)) - uint32('0'))
+ width = Int32FromUint32(Uint32FromInt32(int32(10)*width) + *(*Twchar_t)(unsafe.Pointer(p)) - uint32('0'))
goto _20
_20:
;
@@ -143031,7 +143048,7 @@ func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
default:
goto fmt_fail
}
- t = int32(*(*Twchar_t)(unsafe.Pointer(p)))
+ t = Int32FromUint32(*(*Twchar_t)(unsafe.Pointer(p)))
/* Transform S,C -> ls,lc */
if t&int32(0x2f) == int32(3) {
size = int32(SIZE_l)
@@ -143040,7 +143057,7 @@ func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
if t != int32('n') {
if t != int32('[') && t|int32(32) != int32('c') {
for {
- if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && int32(*(*uint8)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) {
+ if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(*(*uint8)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) {
v25 = f + 8
v24 = *(*uintptr)(unsafe.Pointer(v25))
*(*uintptr)(unsafe.Pointer(v25))++
@@ -143048,15 +143065,15 @@ func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
} else {
v23 = Xgetwc(tls, f)
}
- v22 = int32(v23)
+ v22 = Int32FromUint32(v23)
c = v22
- if !(Xiswspace(tls, uint32(v22)) != 0) {
+ if !(Xiswspace(tls, Uint32FromInt32(v22)) != 0) {
break
}
pos++
}
} else {
- if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && int32(*(*uint8)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) {
+ if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(*(*uint8)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) {
v28 = f + 8
v27 = *(*uintptr)(unsafe.Pointer(v28))
*(*uintptr)(unsafe.Pointer(v28))++
@@ -143064,23 +143081,23 @@ func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
} else {
v26 = Xgetwc(tls, f)
}
- c = int32(v26)
+ c = Int32FromUint32(v26)
}
if c < 0 {
goto input_fail
}
- if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && uint32(c) < uint32(128) {
+ if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) {
v31 = f + 8
*(*uintptr)(unsafe.Pointer(v31))--
v30 = *(*uintptr)(unsafe.Pointer(v31))
_ = *(*uint8)(unsafe.Pointer(v30))
} else {
- Xungetwc(tls, uint32(c), f)
+ Xungetwc(tls, Uint32FromInt32(c), f)
}
}
switch t {
case int32('n'):
- _store_int1(tls, dest, size, uint64(pos))
+ _store_int1(tls, dest, size, Uint64FromInt64(pos))
/* do not increment match count, etc! */
goto _2
case int32('s'):
@@ -143138,7 +143155,7 @@ func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
i = uint64(0)
if alloc != 0 {
if t == int32('c') {
- v35 = uint32(width) + uint32(1)
+ v35 = Uint32FromInt32(width) + uint32(1)
} else {
v35 = uint32(31)
}
@@ -143156,7 +143173,7 @@ func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
}
}
for width != 0 {
- if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && int32(*(*uint8)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) {
+ if (*TFILE)(unsafe.Pointer(f)).Frpos != (*TFILE)(unsafe.Pointer(f)).Frend && Int32FromUint8(*(*uint8)(unsafe.Pointer((*TFILE)(unsafe.Pointer(f)).Frpos))) < int32(128) {
v39 = f + 8
v38 = *(*uintptr)(unsafe.Pointer(v39))
*(*uintptr)(unsafe.Pointer(v39))++
@@ -143164,7 +143181,7 @@ func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
} else {
v37 = Xgetwc(tls, f)
}
- v36 = int32(v37)
+ v36 = Int32FromUint32(v37)
c = v36
if v36 < 0 {
break
@@ -143175,7 +143192,7 @@ func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
if wcs != 0 {
v40 = i
i++
- *(*Twchar_t)(unsafe.Pointer(wcs + uintptr(v40)*4)) = uint32(c)
+ *(*Twchar_t)(unsafe.Pointer(wcs + uintptr(v40)*4)) = Uint32FromInt32(c)
if alloc != 0 && i == k {
k += k + uint64(1)
tmp1 = Xrealloc(tls, wcs, k*uint64(4))
@@ -143191,11 +143208,11 @@ func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
} else {
v41 = bp + 8
}
- l = Xwctomb(tls, v41, uint32(c))
+ l = Xwctomb(tls, v41, Uint32FromInt32(c))
if l < 0 {
goto input_fail
}
- i += uint64(l)
+ i += Uint64FromInt32(l)
if alloc != 0 && i > k-uint64(4) {
k += k + uint64(1)
tmp2 = Xrealloc(tls, s, k)
@@ -143211,13 +143228,13 @@ func Xvfwscanf(tls *TLS, f uintptr, fmt uintptr, ap Tva_list) (r int32) {
gotmatch = int32(1)
}
if width != 0 {
- if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && uint32(c) < uint32(128) {
+ if (*TFILE)(unsafe.Pointer(f)).Frend != 0 && Uint32FromInt32(c) < uint32(128) {
v44 = f + 8
*(*uintptr)(unsafe.Pointer(v44))--
v43 = *(*uintptr)(unsafe.Pointer(v44))
_ = *(*uint8)(unsafe.Pointer(v43))
} else {
- Xungetwc(tls, uint32(c), f)
+ Xungetwc(tls, Uint32FromInt32(c), f)
}
if t == int32('c') || !(gotmatch != 0) {
goto match_fail
@@ -143402,10 +143419,10 @@ func _sn_write(tls *TLS, f uintptr, s uintptr, l Tsize_t) (r Tsize_t) {
var v1, v2 uint64
_, _, _, _, _ = c, k, v1, v2, v3
c = (*TFILE)(unsafe.Pointer(f)).Fcookie
- if (*Tcookie3)(unsafe.Pointer(c)).Fn < uint64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos)-int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) {
+ if (*Tcookie3)(unsafe.Pointer(c)).Fn < Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos)-int64((*TFILE)(unsafe.Pointer(f)).Fwbase)) {
v1 = (*Tcookie3)(unsafe.Pointer(c)).Fn
} else {
- v1 = uint64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase))
+ v1 = Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos) - int64((*TFILE)(unsafe.Pointer(f)).Fwbase))
}
k = v1
if k != 0 {
@@ -143496,7 +143513,7 @@ func _string_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) {
k = len1 + uint64(256)
end = Xmemchr(tls, src, 0, k)
if end != 0 {
- k = uint64(int64(end) - int64(src))
+ k = Uint64FromInt64(int64(end) - int64(src))
}
if k < len1 {
len1 = k
@@ -143547,8 +143564,8 @@ func _sw_write(tls *TLS, f uintptr, s uintptr, l Tsize_t) (r Tsize_t) {
l0 = l
i = 0
c = (*TFILE)(unsafe.Pointer(f)).Fcookie
- if s != (*TFILE)(unsafe.Pointer(f)).Fwbase && _sw_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, uint64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos)-int64((*TFILE)(unsafe.Pointer(f)).Fwbase))) == uint64(-Int32FromInt32(1)) {
- return uint64(-Int32FromInt32(1))
+ if s != (*TFILE)(unsafe.Pointer(f)).Fwbase && _sw_write(tls, f, (*TFILE)(unsafe.Pointer(f)).Fwbase, Uint64FromInt64(int64((*TFILE)(unsafe.Pointer(f)).Fwpos)-int64((*TFILE)(unsafe.Pointer(f)).Fwbase))) == Uint64FromInt32(-Int32FromInt32(1)) {
+ return Uint64FromInt32(-Int32FromInt32(1))
}
for {
if v2 = (*Tcookie4)(unsafe.Pointer(c)).Fl != 0 && l != 0; v2 {
@@ -143562,7 +143579,7 @@ func _sw_write(tls *TLS, f uintptr, s uintptr, l Tsize_t) (r Tsize_t) {
i = int32(1)
}
s += uintptr(i)
- l -= uint64(i)
+ l -= Uint64FromInt32(i)
(*Tcookie4)(unsafe.Pointer(c)).Fl--
(*Tcookie4)(unsafe.Pointer(c)).Fws += 4
}
@@ -143574,7 +143591,7 @@ func _sw_write(tls *TLS, f uintptr, s uintptr, l Tsize_t) (r Tsize_t) {
(*TFILE)(unsafe.Pointer(f)).Fwbase = v3
(*TFILE)(unsafe.Pointer(f)).Fwpos = v3
*(*uint32)(unsafe.Pointer(f)) |= uint32(F_ERR)
- return uint64(i)
+ return Uint64FromInt32(i)
}
(*TFILE)(unsafe.Pointer(f)).Fwend = (*TFILE)(unsafe.Pointer(f)).Fbuf + uintptr((*TFILE)(unsafe.Pointer(f)).Fbuf_size)
v5 = (*TFILE)(unsafe.Pointer(f)).Fbuf
@@ -143612,7 +143629,7 @@ func Xvswprintf(tls *TLS, s uintptr, n Tsize_t, fmt uintptr, ap Tva_list) (r1 in
}
r = Xvfwprintf(tls, bp+272, fmt, ap)
_sw_write(tls, bp+272, uintptr(0), uint64(0))
- if uint64(r) >= n {
+ if Uint64FromInt32(r) >= n {
v1 = -int32(1)
} else {
v1 = r
@@ -143632,7 +143649,7 @@ func _wstring_read(tls *TLS, f uintptr, buf uintptr, len1 Tsize_t) (r Tsize_t) {
return uint64(0)
}
k = Xwcsrtombs(tls, (*TFILE)(unsafe.Pointer(f)).Fbuf, bp, (*TFILE)(unsafe.Pointer(f)).Fbuf_size, uintptr(0))
- if k == uint64(-Int32FromInt32(1)) {
+ if k == Uint64FromInt32(-Int32FromInt32(1)) {
v1 = UintptrFromInt32(0)
(*TFILE)(unsafe.Pointer(f)).Frend = v1
(*TFILE)(unsafe.Pointer(f)).Frpos = v1
@@ -143772,8 +143789,8 @@ func Xatoi(tls *TLS, s uintptr) (r int32) {
n = 0
neg = 0
for {
- v1 = int32(*(*uint8)(unsafe.Pointer(s)))
- v2 = BoolInt32(v1 == int32(' ') || uint32(v1)-uint32('\t') < uint32(5))
+ v1 = Int32FromUint8(*(*uint8)(unsafe.Pointer(s)))
+ v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5))
goto _3
_3:
if !(v2 != 0) {
@@ -143781,7 +143798,7 @@ func Xatoi(tls *TLS, s uintptr) (r int32) {
}
s++
}
- switch int32(*(*uint8)(unsafe.Pointer(s))) {
+ switch Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) {
case int32('-'):
neg = int32(1)
fallthrough
@@ -143792,7 +143809,7 @@ func Xatoi(tls *TLS, s uintptr) (r int32) {
for BoolInt32(uint32(*(*uint8)(unsafe.Pointer(s)))-uint32('0') < uint32(10)) != 0 {
v4 = s
s++
- n = int32(10)*n - (int32(*(*uint8)(unsafe.Pointer(v4))) - int32('0'))
+ n = int32(10)*n - (Int32FromUint8(*(*uint8)(unsafe.Pointer(v4))) - int32('0'))
}
if neg != 0 {
v5 = n
@@ -143814,8 +143831,8 @@ func Xatol(tls *TLS, s uintptr) (r int64) {
n = 0
neg = 0
for {
- v1 = int32(*(*uint8)(unsafe.Pointer(s)))
- v2 = BoolInt32(v1 == int32(' ') || uint32(v1)-uint32('\t') < uint32(5))
+ v1 = Int32FromUint8(*(*uint8)(unsafe.Pointer(s)))
+ v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5))
goto _3
_3:
if !(v2 != 0) {
@@ -143823,7 +143840,7 @@ func Xatol(tls *TLS, s uintptr) (r int64) {
}
s++
}
- switch int32(*(*uint8)(unsafe.Pointer(s))) {
+ switch Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) {
case int32('-'):
neg = int32(1)
fallthrough
@@ -143834,7 +143851,7 @@ func Xatol(tls *TLS, s uintptr) (r int64) {
for BoolInt32(uint32(*(*uint8)(unsafe.Pointer(s)))-uint32('0') < uint32(10)) != 0 {
v4 = s
s++
- n = int64(10)*n - int64(int32(*(*uint8)(unsafe.Pointer(v4)))-Int32FromUint8('0'))
+ n = int64(10)*n - int64(Int32FromUint8(*(*uint8)(unsafe.Pointer(v4)))-Int32FromUint8('0'))
}
if neg != 0 {
v5 = n
@@ -143856,8 +143873,8 @@ func Xatoll(tls *TLS, s uintptr) (r int64) {
n = 0
neg = 0
for {
- v1 = int32(*(*uint8)(unsafe.Pointer(s)))
- v2 = BoolInt32(v1 == int32(' ') || uint32(v1)-uint32('\t') < uint32(5))
+ v1 = Int32FromUint8(*(*uint8)(unsafe.Pointer(s)))
+ v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5))
goto _3
_3:
if !(v2 != 0) {
@@ -143865,7 +143882,7 @@ func Xatoll(tls *TLS, s uintptr) (r int64) {
}
s++
}
- switch int32(*(*uint8)(unsafe.Pointer(s))) {
+ switch Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) {
case int32('-'):
neg = int32(1)
fallthrough
@@ -143876,7 +143893,7 @@ func Xatoll(tls *TLS, s uintptr) (r int64) {
for BoolInt32(uint32(*(*uint8)(unsafe.Pointer(s)))-uint32('0') < uint32(10)) != 0 {
v4 = s
s++
- n = int64(10)*n - int64(int32(*(*uint8)(unsafe.Pointer(v4)))-Int32FromUint8('0'))
+ n = int64(10)*n - int64(Int32FromUint8(*(*uint8)(unsafe.Pointer(v4)))-Int32FromUint8('0'))
}
if neg != 0 {
v5 = n
@@ -143932,16 +143949,16 @@ func Xecvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) {
var i, j, v1, v3 int32
var _ /* tmp at bp+0 */ [32]uint8
_, _, _, _ = i, j, v1, v3
- if uint32(n)-uint32(1) > uint32(15) {
+ if Uint32FromInt32(n)-uint32(1) > uint32(15) {
n = int32(15)
}
Xsprintf(tls, bp, __ccgo_ts+1691, VaList(bp+40, n-int32(1), x))
- v1 = BoolInt32(int32((*(*[32]uint8)(unsafe.Pointer(bp)))[0]) == Int32FromUint8('-'))
+ v1 = BoolInt32(Int32FromUint8((*(*[32]uint8)(unsafe.Pointer(bp)))[0]) == Int32FromUint8('-'))
*(*int32)(unsafe.Pointer(sign)) = v1
i = v1
j = 0
for {
- if !(int32((*(*[32]uint8)(unsafe.Pointer(bp)))[i]) != int32('e')) {
+ if !(Int32FromUint8((*(*[32]uint8)(unsafe.Pointer(bp)))[i]) != int32('e')) {
break
}
_buf8[j] = (*(*[32]uint8)(unsafe.Pointer(bp)))[i]
@@ -143950,7 +143967,7 @@ func Xecvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) {
;
v3 = i
i++
- j += BoolInt32(int32((*(*[32]uint8)(unsafe.Pointer(bp)))[v3]) != int32('.'))
+ j += BoolInt32(Int32FromUint8((*(*[32]uint8)(unsafe.Pointer(bp)))[v3]) != int32('.'))
}
_buf8[j] = uint8(0)
*(*int32)(unsafe.Pointer(dp)) = Xatoi(tls, bp+uintptr(i)+uintptr(1)) + int32(1)
@@ -143969,20 +143986,20 @@ func Xfcvt(tls *TLS, x float64, n int32, dp uintptr, sign uintptr) (r uintptr) {
var i, lz int32
var _ /* tmp at bp+0 */ [1500]uint8
_, _ = i, lz
- if uint32(n) > uint32(1400) {
+ if Uint32FromInt32(n) > uint32(1400) {
n = int32(1400)
}
Xsprintf(tls, bp, __ccgo_ts+1696, VaList(bp+1512, n, x))
- i = BoolInt32(int32((*(*[1500]uint8)(unsafe.Pointer(bp)))[0]) == int32('-'))
- if int32((*(*[1500]uint8)(unsafe.Pointer(bp)))[i]) == int32('0') {
- lz = int32(Xstrspn(tls, bp+uintptr(i)+uintptr(2), __ccgo_ts+1664))
+ i = BoolInt32(Int32FromUint8((*(*[1500]uint8)(unsafe.Pointer(bp)))[0]) == int32('-'))
+ if Int32FromUint8((*(*[1500]uint8)(unsafe.Pointer(bp)))[i]) == int32('0') {
+ lz = Int32FromUint64(Xstrspn(tls, bp+uintptr(i)+uintptr(2), __ccgo_ts+1664))
} else {
- lz = -int32(Xstrcspn(tls, bp+uintptr(i), __ccgo_ts+558))
+ lz = -Int32FromUint64(Xstrcspn(tls, bp+uintptr(i), __ccgo_ts+558))
}
if n <= lz {
*(*int32)(unsafe.Pointer(sign)) = i
*(*int32)(unsafe.Pointer(dp)) = int32(1)
- if uint32(n) > uint32(14) {
+ if Uint32FromInt32(n) > uint32(14) {
n = int32(14)
}
return __ccgo_ts + 1701 + UintptrFromInt32(14) - uintptr(n)
@@ -144087,10 +144104,10 @@ func _pntz(tls *TLS, p uintptr) (r1 int32) {
_, _, _ = r, v1, v2
r = _a_ctz_l(tls, *(*Tsize_t)(unsafe.Pointer(p))-uint64(1))
if v2 = r != 0; !v2 {
- v1 = int32(Uint64FromInt32(8)*Uint64FromInt64(8) + uint64(_a_ctz_l(tls, *(*Tsize_t)(unsafe.Pointer(p + 1*8)))))
+ v1 = Int32FromUint64(Uint64FromInt32(8)*Uint64FromInt64(8) + Uint64FromInt32(_a_ctz_l(tls, *(*Tsize_t)(unsafe.Pointer(p + 1*8)))))
r = v1
}
- if v2 || uint64(v1) != Uint64FromInt32(8)*Uint64FromInt64(8) {
+ if v2 || Uint64FromInt32(v1) != Uint64FromInt32(8)*Uint64FromInt64(8) {
return r
}
return 0
@@ -144136,25 +144153,25 @@ func _cycle(tls *TLS, width Tsize_t, ar uintptr, n int32) {
//
// /* shl() and shr() need n > 0 */
func _shl(tls *TLS, p uintptr, n int32) {
- if uint64(n) >= Uint64FromInt32(8)*Uint64FromInt64(8) {
+ if Uint64FromInt32(n) >= Uint64FromInt32(8)*Uint64FromInt64(8) {
n = int32(uint64(n) - Uint64FromInt32(8)*Uint64FromInt64(8))
*(*Tsize_t)(unsafe.Pointer(p + 1*8)) = *(*Tsize_t)(unsafe.Pointer(p))
*(*Tsize_t)(unsafe.Pointer(p)) = uint64(0)
}
- *(*Tsize_t)(unsafe.Pointer(p + 1*8)) <<= uint64(n)
- *(*Tsize_t)(unsafe.Pointer(p + 1*8)) |= *(*Tsize_t)(unsafe.Pointer(p)) >> (Uint64FromInt64(8)*Uint64FromInt32(8) - uint64(n))
- *(*Tsize_t)(unsafe.Pointer(p)) <<= uint64(n)
+ *(*Tsize_t)(unsafe.Pointer(p + 1*8)) <<= Uint64FromInt32(n)
+ *(*Tsize_t)(unsafe.Pointer(p + 1*8)) |= *(*Tsize_t)(unsafe.Pointer(p)) >> (Uint64FromInt64(8)*Uint64FromInt32(8) - Uint64FromInt32(n))
+ *(*Tsize_t)(unsafe.Pointer(p)) <<= Uint64FromInt32(n)
}
func _shr(tls *TLS, p uintptr, n int32) {
- if uint64(n) >= Uint64FromInt32(8)*Uint64FromInt64(8) {
+ if Uint64FromInt32(n) >= Uint64FromInt32(8)*Uint64FromInt64(8) {
n = int32(uint64(n) - Uint64FromInt32(8)*Uint64FromInt64(8))
*(*Tsize_t)(unsafe.Pointer(p)) = *(*Tsize_t)(unsafe.Pointer(p + 1*8))
*(*Tsize_t)(unsafe.Pointer(p + 1*8)) = uint64(0)
}
- *(*Tsize_t)(unsafe.Pointer(p)) >>= uint64(n)
- *(*Tsize_t)(unsafe.Pointer(p)) |= *(*Tsize_t)(unsafe.Pointer(p + 1*8)) << (Uint64FromInt64(8)*Uint64FromInt32(8) - uint64(n))
- *(*Tsize_t)(unsafe.Pointer(p + 1*8)) >>= uint64(n)
+ *(*Tsize_t)(unsafe.Pointer(p)) >>= Uint64FromInt32(n)
+ *(*Tsize_t)(unsafe.Pointer(p)) |= *(*Tsize_t)(unsafe.Pointer(p + 1*8)) << (Uint64FromInt64(8)*Uint64FromInt32(8) - Uint64FromInt32(n))
+ *(*Tsize_t)(unsafe.Pointer(p + 1*8)) >>= Uint64FromInt32(n)
}
func _sift(tls *TLS, head uintptr, width Tsize_t, cmp Tcmpfun, arg uintptr, pshift int32, lp uintptr) {
@@ -144272,7 +144289,7 @@ func X__qsort_r(tls *TLS, base uintptr, nel Tsize_t, width Tsize_t, cmp Tcmpfun,
_shr(tls, bp+768, int32(2))
pshift += int32(2)
} else {
- if (*(*[96]Tsize_t)(unsafe.Pointer(bp)))[pshift-int32(1)] >= uint64(int64(high)-int64(head)) {
+ if (*(*[96]Tsize_t)(unsafe.Pointer(bp)))[pshift-int32(1)] >= Uint64FromInt64(int64(high)-int64(head)) {
_trinkle(tls, head, width, cmp, arg, bp+768, pshift, 0, bp)
} else {
_sift(tls, head, width, cmp, arg, pshift, bp)
@@ -144389,9 +144406,9 @@ func _strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) (r uint64)
(*TFILE)(unsafe.Pointer(bp)).Fbuf = v1
(*TFILE)(unsafe.Pointer(bp)).Frend = uintptr(-Int32FromInt32(1))
X__shlim(tls, bp, int64(Int32FromInt32(0)))
- y = X__intscan(tls, bp, uint32(base), int32(1), lim)
+ y = X__intscan(tls, bp, Uint32FromInt32(base), int32(1), lim)
if p != 0 {
- cnt = uint64((*TFILE)(unsafe.Pointer(bp)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp)).Fbuf)))
+ cnt = Uint64FromInt64((*TFILE)(unsafe.Pointer(bp)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp)).Fbuf)))
*(*uintptr)(unsafe.Pointer(p)) = s + uintptr(cnt)
}
return y
@@ -144410,7 +144427,7 @@ func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) (r int64) {
trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int64(_strtox1(tls, s, p, base, uint64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1))))
+ return Int64FromUint64(_strtox1(tls, s, p, base, Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1))))
}
func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) {
@@ -144426,7 +144443,7 @@ func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) (r int64) {
trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int64(_strtox1(tls, s, p, base, Uint64FromUint64(0)+uint64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1))))
+ return Int64FromUint64(_strtox1(tls, s, p, base, Uint64FromUint64(0)+Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1))))
}
func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) {
@@ -144562,7 +144579,7 @@ func _wcstox(tls *TLS, s uintptr, p uintptr, prec int32) (r float64) {
X__shlim(tls, bp+64, int64(Int32FromInt32(0)))
y = X__floatscan(tls, bp+64, prec, int32(1))
if p != 0 {
- cnt = uint64((*TFILE)(unsafe.Pointer(bp+64)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp+64)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp+64)).Fbuf)))
+ cnt = Uint64FromInt64((*TFILE)(unsafe.Pointer(bp+64)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp+64)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp+64)).Fbuf)))
if cnt != 0 {
v3 = t + uintptr(cnt)*4
} else {
@@ -144664,9 +144681,9 @@ func _wcstox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) (r uint64)
}
(*(*TFILE)(unsafe.Pointer(bp + 64))).Fcookie = t
X__shlim(tls, bp+64, int64(Int32FromInt32(0)))
- y = X__intscan(tls, bp+64, uint32(base), int32(1), lim)
+ y = X__intscan(tls, bp+64, Uint32FromInt32(base), int32(1), lim)
if p != 0 {
- cnt = uint64((*TFILE)(unsafe.Pointer(bp+64)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp+64)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp+64)).Fbuf)))
+ cnt = Uint64FromInt64((*TFILE)(unsafe.Pointer(bp+64)).Fshcnt + (int64((*TFILE)(unsafe.Pointer(bp+64)).Frpos) - int64((*TFILE)(unsafe.Pointer(bp+64)).Fbuf)))
if cnt != 0 {
v3 = t + uintptr(cnt)*4
} else {
@@ -144690,7 +144707,7 @@ func Xwcstoll(tls *TLS, s uintptr, p uintptr, base int32) (r int64) {
trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int64(_wcstox1(tls, s, p, base, uint64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1))))
+ return Int64FromUint64(_wcstox1(tls, s, p, base, Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1))))
}
func Xwcstoul(tls *TLS, s uintptr, p uintptr, base int32) (r uint64) {
@@ -144706,7 +144723,7 @@ func Xwcstol(tls *TLS, s uintptr, p uintptr, base int32) (r int64) {
trc("tls=%v s=%v p=%v base=%v, (%v:)", tls, s, p, base, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int64(_wcstox1(tls, s, p, base, Uint64FromUint64(0)+uint64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1))))
+ return Int64FromUint64(_wcstox1(tls, s, p, base, Uint64FromUint64(0)+Uint64FromInt64(-Int64FromInt64(0x7fffffffffffffff)-Int64FromInt32(1))))
}
func Xwcstoimax(tls *TLS, s uintptr, p uintptr, base int32) (r Tintmax_t) {
@@ -144787,14 +144804,14 @@ func Xmemccpy(tls *TLS, dest uintptr, src uintptr, c int32, n Tsize_t) (r uintpt
_, _, _, _, _, _, _, _, _ = d, k, s, wd, ws, v2, v3, v6, v7
d = dest
s = src
- c = int32(uint8(c))
+ c = Int32FromUint8(Uint8FromInt32(c))
if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) == uint64(d)&(Uint64FromInt64(8)-Uint64FromInt32(1)) {
for {
if v3 = uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0; v3 {
v2 = *(*uint8)(unsafe.Pointer(s))
*(*uint8)(unsafe.Pointer(d)) = v2
}
- if !(v3 && int32(v2) != c) {
+ if !(v3 && Int32FromUint8(v2) != c) {
break
}
goto _1
@@ -144807,11 +144824,11 @@ func Xmemccpy(tls *TLS, dest uintptr, src uintptr, c int32, n Tsize_t) (r uintpt
if uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 {
goto tail
}
- k = uint64(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * uint64(c)
+ k = Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * Uint64FromInt32(c)
wd = d
ws = s
for {
- if !(n >= uint64(8) && !((*(*uint64)(unsafe.Pointer(ws))^k-uint64(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(*(*uint64)(unsafe.Pointer(ws))^k) & (uint64(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*uint64(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) {
+ if !(n >= uint64(8) && !((*(*uint64)(unsafe.Pointer(ws))^k-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(*(*uint64)(unsafe.Pointer(ws))^k) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) {
break
}
*(*uint64)(unsafe.Pointer(wd)) = *(*uint64)(unsafe.Pointer(ws))
@@ -144830,7 +144847,7 @@ func Xmemccpy(tls *TLS, dest uintptr, src uintptr, c int32, n Tsize_t) (r uintpt
v6 = *(*uint8)(unsafe.Pointer(s))
*(*uint8)(unsafe.Pointer(d)) = v6
}
- if !(v7 && int32(v6) != c) {
+ if !(v7 && Int32FromUint8(v6) != c) {
break
}
goto _5
@@ -144869,9 +144886,9 @@ func Xmemchr(tls *TLS, src uintptr, c int32, n Tsize_t) (r uintptr) {
var s, w, v4 uintptr
_, _, _, _ = k, s, w, v4
s = src
- c = int32(uint8(c))
+ c = Int32FromUint8(Uint8FromInt32(c))
for {
- if !(uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0 && int32(*(*uint8)(unsafe.Pointer(s))) != c) {
+ if !(uint64(s)&(Uint64FromInt64(8)-Uint64FromInt32(1)) != 0 && n != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) != c) {
break
}
goto _1
@@ -144880,11 +144897,11 @@ func Xmemchr(tls *TLS, src uintptr, c int32, n Tsize_t) (r uintptr) {
s++
n--
}
- if n != 0 && int32(*(*uint8)(unsafe.Pointer(s))) != c {
- k = uint64(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * uint64(c)
+ if n != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) != c {
+ k = Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * Uint64FromInt32(c)
w = s
for {
- if !(n >= Uint64FromInt64(8) && !((*(*uint64)(unsafe.Pointer(w))^k-uint64(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(*(*uint64)(unsafe.Pointer(w))^k) & (uint64(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*uint64(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) {
+ if !(n >= Uint64FromInt64(8) && !((*(*uint64)(unsafe.Pointer(w))^k-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(*(*uint64)(unsafe.Pointer(w))^k) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) {
break
}
goto _2
@@ -144896,7 +144913,7 @@ func Xmemchr(tls *TLS, src uintptr, c int32, n Tsize_t) (r uintptr) {
s = w
}
for {
- if !(n != 0 && int32(*(*uint8)(unsafe.Pointer(s))) != c) {
+ if !(n != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) != c) {
break
}
goto _3
@@ -144924,7 +144941,7 @@ func Xmemcmp(tls *TLS, vl uintptr, vr uintptr, n Tsize_t) (r1 int32) {
l = vl
r = vr
for {
- if !(n != 0 && int32(*(*uint8)(unsafe.Pointer(l))) == int32(*(*uint8)(unsafe.Pointer(r)))) {
+ if !(n != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(l))) == Int32FromUint8(*(*uint8)(unsafe.Pointer(r)))) {
break
}
goto _1
@@ -144935,7 +144952,7 @@ func Xmemcmp(tls *TLS, vl uintptr, vr uintptr, n Tsize_t) (r1 int32) {
r++
}
if n != 0 {
- v2 = int32(*(*uint8)(unsafe.Pointer(l))) - int32(*(*uint8)(unsafe.Pointer(r)))
+ v2 = Int32FromUint8(*(*uint8)(unsafe.Pointer(l))) - Int32FromUint8(*(*uint8)(unsafe.Pointer(r)))
} else {
v2 = 0
}
@@ -145297,15 +145314,15 @@ func _twobyte_memmem(tls *TLS, h uintptr, k Tsize_t, n uintptr) (r uintptr) {
var hw, nw Tuint16_t
var v2, v3 uintptr
_, _, _, _ = hw, nw, v2, v3
- nw = uint16(int32(*(*uint8)(unsafe.Pointer(n)))<<int32(8) | int32(*(*uint8)(unsafe.Pointer(n + 1))))
- hw = uint16(int32(*(*uint8)(unsafe.Pointer(h)))<<int32(8) | int32(*(*uint8)(unsafe.Pointer(h + 1))))
+ nw = Uint16FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(n)))<<int32(8) | Int32FromUint8(*(*uint8)(unsafe.Pointer(n + 1))))
+ hw = Uint16FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(h)))<<int32(8) | Int32FromUint8(*(*uint8)(unsafe.Pointer(h + 1))))
h += uintptr(2)
k -= uint64(2)
for {
if !(k != 0) {
break
}
- if int32(hw) == int32(nw) {
+ if Int32FromUint16(hw) == Int32FromUint16(nw) {
return h - uintptr(2)
}
goto _1
@@ -145314,9 +145331,9 @@ func _twobyte_memmem(tls *TLS, h uintptr, k Tsize_t, n uintptr) (r uintptr) {
k--
v2 = h
h++
- hw = uint16(int32(hw)<<Int32FromInt32(8) | int32(*(*uint8)(unsafe.Pointer(v2))))
+ hw = Uint16FromInt32(Int32FromUint16(hw)<<Int32FromInt32(8) | Int32FromUint8(*(*uint8)(unsafe.Pointer(v2))))
}
- if int32(hw) == int32(nw) {
+ if Int32FromUint16(hw) == Int32FromUint16(nw) {
v3 = h - uintptr(2)
} else {
v3 = uintptr(0)
@@ -145328,8 +145345,8 @@ func _threebyte_memmem(tls *TLS, h uintptr, k Tsize_t, n uintptr) (r uintptr) {
var hw, nw Tuint32_t
var v2, v3 uintptr
_, _, _, _ = hw, nw, v2, v3
- nw = uint32(*(*uint8)(unsafe.Pointer(n)))<<int32(24) | uint32(int32(*(*uint8)(unsafe.Pointer(n + 1)))<<int32(16)) | uint32(int32(*(*uint8)(unsafe.Pointer(n + 2)))<<int32(8))
- hw = uint32(*(*uint8)(unsafe.Pointer(h)))<<int32(24) | uint32(int32(*(*uint8)(unsafe.Pointer(h + 1)))<<int32(16)) | uint32(int32(*(*uint8)(unsafe.Pointer(h + 2)))<<int32(8))
+ nw = uint32(*(*uint8)(unsafe.Pointer(n)))<<int32(24) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(n + 1)))<<int32(16)) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(n + 2)))<<int32(8))
+ hw = uint32(*(*uint8)(unsafe.Pointer(h)))<<int32(24) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(h + 1)))<<int32(16)) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(h + 2)))<<int32(8))
h += uintptr(3)
k -= uint64(3)
for {
@@ -145359,8 +145376,8 @@ func _fourbyte_memmem(tls *TLS, h uintptr, k Tsize_t, n uintptr) (r uintptr) {
var hw, nw Tuint32_t
var v2, v3 uintptr
_, _, _, _ = hw, nw, v2, v3
- nw = uint32(*(*uint8)(unsafe.Pointer(n)))<<int32(24) | uint32(int32(*(*uint8)(unsafe.Pointer(n + 1)))<<int32(16)) | uint32(int32(*(*uint8)(unsafe.Pointer(n + 2)))<<int32(8)) | uint32(*(*uint8)(unsafe.Pointer(n + 3)))
- hw = uint32(*(*uint8)(unsafe.Pointer(h)))<<int32(24) | uint32(int32(*(*uint8)(unsafe.Pointer(h + 1)))<<int32(16)) | uint32(int32(*(*uint8)(unsafe.Pointer(h + 2)))<<int32(8)) | uint32(*(*uint8)(unsafe.Pointer(h + 3)))
+ nw = uint32(*(*uint8)(unsafe.Pointer(n)))<<int32(24) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(n + 1)))<<int32(16)) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(n + 2)))<<int32(8)) | uint32(*(*uint8)(unsafe.Pointer(n + 3)))
+ hw = uint32(*(*uint8)(unsafe.Pointer(h)))<<int32(24) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(h + 1)))<<int32(16)) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(h + 2)))<<int32(8)) | uint32(*(*uint8)(unsafe.Pointer(h + 3)))
h += uintptr(4)
k -= uint64(4)
for {
@@ -145409,13 +145426,13 @@ func _twoway_memmem(tls *TLS, h uintptr, z uintptr, n uintptr, l Tsize_t) (r uin
i++
}
/* Compute maximal suffix */
- ip = uint64(-Int32FromInt32(1))
+ ip = Uint64FromInt32(-Int32FromInt32(1))
jp = uint64(0)
v2 = Uint64FromInt32(1)
p = v2
k = v2
for jp+k < l {
- if int32(*(*uint8)(unsafe.Pointer(n + uintptr(ip+k)))) == int32(*(*uint8)(unsafe.Pointer(n + uintptr(jp+k)))) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(n + uintptr(ip+k)))) == Int32FromUint8(*(*uint8)(unsafe.Pointer(n + uintptr(jp+k)))) {
if k == p {
jp += p
k = uint64(1)
@@ -145423,7 +145440,7 @@ func _twoway_memmem(tls *TLS, h uintptr, z uintptr, n uintptr, l Tsize_t) (r uin
k++
}
} else {
- if int32(*(*uint8)(unsafe.Pointer(n + uintptr(ip+k)))) > int32(*(*uint8)(unsafe.Pointer(n + uintptr(jp+k)))) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(n + uintptr(ip+k)))) > Int32FromUint8(*(*uint8)(unsafe.Pointer(n + uintptr(jp+k)))) {
jp += k
k = uint64(1)
p = jp - ip
@@ -145440,13 +145457,13 @@ func _twoway_memmem(tls *TLS, h uintptr, z uintptr, n uintptr, l Tsize_t) (r uin
ms = ip
p0 = p
/* And with the opposite comparison */
- ip = uint64(-Int32FromInt32(1))
+ ip = Uint64FromInt32(-Int32FromInt32(1))
jp = uint64(0)
v5 = Uint64FromInt32(1)
p = v5
k = v5
for jp+k < l {
- if int32(*(*uint8)(unsafe.Pointer(n + uintptr(ip+k)))) == int32(*(*uint8)(unsafe.Pointer(n + uintptr(jp+k)))) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(n + uintptr(ip+k)))) == Int32FromUint8(*(*uint8)(unsafe.Pointer(n + uintptr(jp+k)))) {
if k == p {
jp += p
k = uint64(1)
@@ -145454,7 +145471,7 @@ func _twoway_memmem(tls *TLS, h uintptr, z uintptr, n uintptr, l Tsize_t) (r uin
k++
}
} else {
- if int32(*(*uint8)(unsafe.Pointer(n + uintptr(ip+k)))) < int32(*(*uint8)(unsafe.Pointer(n + uintptr(jp+k)))) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(n + uintptr(ip+k)))) < Int32FromUint8(*(*uint8)(unsafe.Pointer(n + uintptr(jp+k)))) {
jp += k
k = uint64(1)
p = jp - ip
@@ -145489,7 +145506,7 @@ func _twoway_memmem(tls *TLS, h uintptr, z uintptr, n uintptr, l Tsize_t) (r uin
/* Search loop */
for {
/* If remainder of haystack is shorter than needle, done */
- if uint64(int64(z)-int64(h)) < l {
+ if Uint64FromInt64(int64(z)-int64(h)) < l {
return uintptr(0)
}
/* Check last byte first; advance by shift on mismatch */
@@ -145516,7 +145533,7 @@ func _twoway_memmem(tls *TLS, h uintptr, z uintptr, n uintptr, l Tsize_t) (r uin
}
k = v11
for {
- if !(k < l && int32(*(*uint8)(unsafe.Pointer(n + uintptr(k)))) == int32(*(*uint8)(unsafe.Pointer(h + uintptr(k))))) {
+ if !(k < l && Int32FromUint8(*(*uint8)(unsafe.Pointer(n + uintptr(k)))) == Int32FromUint8(*(*uint8)(unsafe.Pointer(h + uintptr(k))))) {
break
}
goto _10
@@ -145532,7 +145549,7 @@ func _twoway_memmem(tls *TLS, h uintptr, z uintptr, n uintptr, l Tsize_t) (r uin
/* Compare left half */
k = ms + uint64(1)
for {
- if !(k > mem && int32(*(*uint8)(unsafe.Pointer(n + uintptr(k-uint64(1))))) == int32(*(*uint8)(unsafe.Pointer(h + uintptr(k-uint64(1)))))) {
+ if !(k > mem && Int32FromUint8(*(*uint8)(unsafe.Pointer(n + uintptr(k-uint64(1))))) == Int32FromUint8(*(*uint8)(unsafe.Pointer(h + uintptr(k-uint64(1)))))) {
break
}
goto _12
@@ -145569,11 +145586,11 @@ func Xmemmem(tls *TLS, h0 uintptr, k Tsize_t, n0 uintptr, l Tsize_t) (r uintptr)
return uintptr(0)
}
/* Use faster algorithms for short needles */
- h = Xmemchr(tls, h0, int32(*(*uint8)(unsafe.Pointer(n))), k)
+ h = Xmemchr(tls, h0, Int32FromUint8(*(*uint8)(unsafe.Pointer(n))), k)
if !(h != 0) || l == uint64(1) {
return h
}
- k -= uint64(int64(h) - int64(h0))
+ k -= Uint64FromInt64(int64(h) - int64(h0))
if k < l {
return uintptr(0)
}
@@ -145606,7 +145623,7 @@ func Xmemmove(tls *TLS, dest uintptr, src uintptr, n Tsize_t) (r uintptr) {
if d == s {
return d
}
- if uint64(s)-uint64(d)-n <= uint64(-Int32FromInt32(2))*n {
+ if uint64(s)-uint64(d)-n <= Uint64FromInt32(-Int32FromInt32(2))*n {
return Xmemcpy(tls, d, s, n)
}
if d < s {
@@ -145690,14 +145707,14 @@ func X__memrchr(tls *TLS, m uintptr, c int32, n Tsize_t) (r uintptr) {
var v1 Tsize_t
_, _ = s, v1
s = m
- c = int32(uint8(c))
+ c = Int32FromUint8(Uint8FromInt32(c))
for {
v1 = n
n--
if !(v1 != 0) {
break
}
- if int32(*(*uint8)(unsafe.Pointer(s + uintptr(n)))) == c {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s + uintptr(n)))) == c {
return s + uintptr(n)
}
}
@@ -145729,20 +145746,20 @@ func Xmemset(tls *TLS, dest uintptr, c int32, n Tsize_t) (r uintptr) {
if !(n != 0) {
return dest
}
- *(*uint8)(unsafe.Pointer(s)) = uint8(c)
- *(*uint8)(unsafe.Pointer(s + uintptr(n-uint64(1)))) = uint8(c)
+ *(*uint8)(unsafe.Pointer(s)) = Uint8FromInt32(c)
+ *(*uint8)(unsafe.Pointer(s + uintptr(n-uint64(1)))) = Uint8FromInt32(c)
if n <= uint64(2) {
return dest
}
- *(*uint8)(unsafe.Pointer(s + 1)) = uint8(c)
- *(*uint8)(unsafe.Pointer(s + 2)) = uint8(c)
- *(*uint8)(unsafe.Pointer(s + uintptr(n-uint64(2)))) = uint8(c)
- *(*uint8)(unsafe.Pointer(s + uintptr(n-uint64(3)))) = uint8(c)
+ *(*uint8)(unsafe.Pointer(s + 1)) = Uint8FromInt32(c)
+ *(*uint8)(unsafe.Pointer(s + 2)) = Uint8FromInt32(c)
+ *(*uint8)(unsafe.Pointer(s + uintptr(n-uint64(2)))) = Uint8FromInt32(c)
+ *(*uint8)(unsafe.Pointer(s + uintptr(n-uint64(3)))) = Uint8FromInt32(c)
if n <= uint64(6) {
return dest
}
- *(*uint8)(unsafe.Pointer(s + 3)) = uint8(c)
- *(*uint8)(unsafe.Pointer(s + uintptr(n-uint64(4)))) = uint8(c)
+ *(*uint8)(unsafe.Pointer(s + 3)) = Uint8FromInt32(c)
+ *(*uint8)(unsafe.Pointer(s + uintptr(n-uint64(4)))) = Uint8FromInt32(c)
if n <= uint64(8) {
return dest
}
@@ -145753,8 +145770,8 @@ func Xmemset(tls *TLS, dest uintptr, c int32, n Tsize_t) (r uintptr) {
k = -uint64(s) & uint64(3)
s += uintptr(k)
n -= k
- n &= uint64(-Int32FromInt32(4))
- c32 = uint32(-Int32FromInt32(1)) / Uint32FromInt32(255) * uint32(uint8(c))
+ n &= Uint64FromInt32(-Int32FromInt32(4))
+ c32 = Uint32FromInt32(-Int32FromInt32(1)) / Uint32FromInt32(255) * uint32(Uint8FromInt32(c))
/* In preparation to copy 32 bytes at a time, aligned on
* an 8-byte bounary, fill head/tail up to 28 bytes each.
* As in the initial byte-based head/tail fill, each
@@ -145853,7 +145870,7 @@ func X__stpcpy(tls *TLS, d uintptr, s uintptr) (r uintptr) {
wd = d
ws = s
for {
- if !!((*(*uint64)(unsafe.Pointer(ws))-uint64(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^*(*uint64)(unsafe.Pointer(ws)) & (uint64(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*uint64(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) {
+ if !!((*(*uint64)(unsafe.Pointer(ws))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^*(*uint64)(unsafe.Pointer(ws)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) {
break
}
goto _3
@@ -145942,7 +145959,7 @@ func X__stpncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) {
wd = d
ws = s
for {
- if !(n >= uint64(8) && !((*(*uint64)(unsafe.Pointer(ws))-uint64(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^*(*uint64)(unsafe.Pointer(ws)) & (uint64(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*uint64(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) {
+ if !(n >= uint64(8) && !((*(*uint64)(unsafe.Pointer(ws))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^*(*uint64)(unsafe.Pointer(ws)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) {
break
}
*(*uint64)(unsafe.Pointer(wd)) = *(*uint64)(unsafe.Pointer(ws))
@@ -146005,7 +146022,7 @@ func Xstrcasecmp(tls *TLS, _l uintptr, _r uintptr) (r1 int32) {
l = _l
r = _r
for {
- if !(*(*uint8)(unsafe.Pointer(l)) != 0 && *(*uint8)(unsafe.Pointer(r)) != 0 && (int32(*(*uint8)(unsafe.Pointer(l))) == int32(*(*uint8)(unsafe.Pointer(r))) || Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(l)))) == Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(r)))))) {
+ if !(*(*uint8)(unsafe.Pointer(l)) != 0 && *(*uint8)(unsafe.Pointer(r)) != 0 && (Int32FromUint8(*(*uint8)(unsafe.Pointer(l))) == Int32FromUint8(*(*uint8)(unsafe.Pointer(r))) || Xtolower(tls, Int32FromUint8(*(*uint8)(unsafe.Pointer(l)))) == Xtolower(tls, Int32FromUint8(*(*uint8)(unsafe.Pointer(r)))))) {
break
}
goto _1
@@ -146014,7 +146031,7 @@ func Xstrcasecmp(tls *TLS, _l uintptr, _r uintptr) (r1 int32) {
l++
r++
}
- return Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(l)))) - Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(r))))
+ return Xtolower(tls, Int32FromUint8(*(*uint8)(unsafe.Pointer(l)))) - Xtolower(tls, Int32FromUint8(*(*uint8)(unsafe.Pointer(r))))
}
func X__strcasecmp_l(tls *TLS, l uintptr, r uintptr, loc Tlocale_t) (r1 int32) {
@@ -146073,7 +146090,7 @@ func Xstrchr(tls *TLS, s uintptr, c int32) (r1 uintptr) {
var r, v1 uintptr
_, _ = r, v1
r = X__strchrnul(tls, s, c)
- if int32(*(*uint8)(unsafe.Pointer(r))) == int32(uint8(c)) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(r))) == Int32FromUint8(Uint8FromInt32(c)) {
v1 = r
} else {
v1 = uintptr(0)
@@ -146100,7 +146117,7 @@ func X__strchrnul(tls *TLS, s uintptr, c int32) (r uintptr) {
var k Tsize_t
var w uintptr
_, _ = k, w
- c = int32(uint8(c))
+ c = Int32FromUint8(Uint8FromInt32(c))
if !(c != 0) {
return s + uintptr(Xstrlen(tls, s))
}
@@ -146108,7 +146125,7 @@ func X__strchrnul(tls *TLS, s uintptr, c int32) (r uintptr) {
if !(uint64(s)%Uint64FromInt64(8) != 0) {
break
}
- if !(*(*uint8)(unsafe.Pointer(s)) != 0) || int32(*(*uint8)(unsafe.Pointer(s))) == c {
+ if !(*(*uint8)(unsafe.Pointer(s)) != 0) || Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == c {
return s
}
goto _1
@@ -146116,10 +146133,10 @@ func X__strchrnul(tls *TLS, s uintptr, c int32) (r uintptr) {
;
s++
}
- k = uint64(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * uint64(c)
+ k = Uint64FromInt32(-Int32FromInt32(1)) / Uint64FromInt32(UCHAR_MAX) * Uint64FromInt32(c)
w = s
for {
- if !(!((*(*uint64)(unsafe.Pointer(w))-uint64(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^*(*uint64)(unsafe.Pointer(w)) & (uint64(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*uint64(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) && !((*(*uint64)(unsafe.Pointer(w))^k-uint64(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(*(*uint64)(unsafe.Pointer(w))^k) & (uint64(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*uint64(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) {
+ if !(!((*(*uint64)(unsafe.Pointer(w))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^*(*uint64)(unsafe.Pointer(w)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) && !((*(*uint64)(unsafe.Pointer(w))^k-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^(*(*uint64)(unsafe.Pointer(w))^k) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) {
break
}
goto _2
@@ -146129,7 +146146,7 @@ func X__strchrnul(tls *TLS, s uintptr, c int32) (r uintptr) {
}
s = w
for {
- if !(*(*uint8)(unsafe.Pointer(s)) != 0 && int32(*(*uint8)(unsafe.Pointer(s))) != c) {
+ if !(*(*uint8)(unsafe.Pointer(s)) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) != c) {
break
}
goto _3
@@ -146163,7 +146180,7 @@ func Xstrcmp(tls *TLS, l uintptr, r uintptr) (r1 int32) {
defer func() { trc("-> %v", r1) }()
}
for {
- if !(int32(*(*uint8)(unsafe.Pointer(l))) == int32(*(*uint8)(unsafe.Pointer(r))) && *(*uint8)(unsafe.Pointer(l)) != 0) {
+ if !(Int32FromUint8(*(*uint8)(unsafe.Pointer(l))) == Int32FromUint8(*(*uint8)(unsafe.Pointer(r))) && *(*uint8)(unsafe.Pointer(l)) != 0) {
break
}
goto _1
@@ -146172,7 +146189,7 @@ func Xstrcmp(tls *TLS, l uintptr, r uintptr) (r1 int32) {
l++
r++
}
- return int32(*(*uint8)(unsafe.Pointer(l))) - int32(*(*uint8)(unsafe.Pointer(r)))
+ return Int32FromUint8(*(*uint8)(unsafe.Pointer(l))) - Int32FromUint8(*(*uint8)(unsafe.Pointer(r)))
}
func Xstrcpy(tls *TLS, dest uintptr, src uintptr) (r uintptr) {
@@ -146197,7 +146214,7 @@ func Xstrcspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) {
_, _, _ = a, v3, p2
a = s
if !(*(*uint8)(unsafe.Pointer(c)) != 0) || !(*(*uint8)(unsafe.Pointer(c + 1)) != 0) {
- return uint64(int64(X__strchrnul(tls, s, int32(*(*uint8)(unsafe.Pointer(c))))) - int64(a))
+ return Uint64FromInt64(int64(X__strchrnul(tls, s, Int32FromUint8(*(*uint8)(unsafe.Pointer(c))))) - int64(a))
}
Xmemset(tls, bp, 0, uint64(32))
for {
@@ -146222,7 +146239,7 @@ func Xstrcspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) {
;
s++
}
- return uint64(int64(s) - int64(a))
+ return Uint64FromInt64(int64(s) - int64(a))
}
func Xstrdup(tls *TLS, s uintptr) (r uintptr) {
@@ -146331,7 +146348,7 @@ func Xstrlcpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r Tsize_t) {
wd = d
ws = s
for {
- if !(n >= uint64(8) && !((*(*uint64)(unsafe.Pointer(ws))-uint64(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^*(*uint64)(unsafe.Pointer(ws)) & (uint64(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*uint64(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) {
+ if !(n >= uint64(8) && !((*(*uint64)(unsafe.Pointer(ws))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^*(*uint64)(unsafe.Pointer(ws)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0)) {
break
}
*(*Tsize_t)(unsafe.Pointer(wd)) = *(*uint64)(unsafe.Pointer(ws))
@@ -146365,7 +146382,7 @@ func Xstrlcpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r Tsize_t) {
goto finish
finish:
;
- return uint64(int64(d)-int64(d0)) + Xstrlen(tls, s)
+ return Uint64FromInt64(int64(d)-int64(d0)) + Xstrlen(tls, s)
return r
}
@@ -146393,7 +146410,7 @@ func Xstrlen(tls *TLS, s uintptr) (r Tsize_t) {
break
}
if !(*(*uint8)(unsafe.Pointer(s)) != 0) {
- return uint64(int64(s) - int64(a))
+ return Uint64FromInt64(int64(s) - int64(a))
}
goto _1
_1:
@@ -146402,7 +146419,7 @@ func Xstrlen(tls *TLS, s uintptr) (r Tsize_t) {
}
w = s
for {
- if !!((*(*uint64)(unsafe.Pointer(w))-uint64(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^*(*uint64)(unsafe.Pointer(w)) & (uint64(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*uint64(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) {
+ if !!((*(*uint64)(unsafe.Pointer(w))-Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)) & ^*(*uint64)(unsafe.Pointer(w)) & (Uint64FromInt32(-Int32FromInt32(1))/Uint64FromInt32(UCHAR_MAX)*Uint64FromInt32(Int32FromInt32(UCHAR_MAX)/Int32FromInt32(2)+Int32FromInt32(1))) != 0) {
break
}
goto _2
@@ -146420,7 +146437,7 @@ func Xstrlen(tls *TLS, s uintptr) (r Tsize_t) {
;
s++
}
- return uint64(int64(s) - int64(a))
+ return Uint64FromInt64(int64(s) - int64(a))
}
func Xstrncasecmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) {
@@ -146439,7 +146456,7 @@ func Xstrncasecmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) {
return 0
}
for {
- if !(*(*uint8)(unsafe.Pointer(l)) != 0 && *(*uint8)(unsafe.Pointer(r)) != 0 && n != 0 && (int32(*(*uint8)(unsafe.Pointer(l))) == int32(*(*uint8)(unsafe.Pointer(r))) || Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(l)))) == Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(r)))))) {
+ if !(*(*uint8)(unsafe.Pointer(l)) != 0 && *(*uint8)(unsafe.Pointer(r)) != 0 && n != 0 && (Int32FromUint8(*(*uint8)(unsafe.Pointer(l))) == Int32FromUint8(*(*uint8)(unsafe.Pointer(r))) || Xtolower(tls, Int32FromUint8(*(*uint8)(unsafe.Pointer(l)))) == Xtolower(tls, Int32FromUint8(*(*uint8)(unsafe.Pointer(r)))))) {
break
}
goto _2
@@ -146449,7 +146466,7 @@ func Xstrncasecmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) {
r++
n--
}
- return Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(l)))) - Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(r))))
+ return Xtolower(tls, Int32FromUint8(*(*uint8)(unsafe.Pointer(l)))) - Xtolower(tls, Int32FromUint8(*(*uint8)(unsafe.Pointer(r))))
}
func X__strncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, loc Tlocale_t) (r1 int32) {
@@ -146507,7 +146524,7 @@ func Xstrncmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) {
return 0
}
for {
- if !(*(*uint8)(unsafe.Pointer(l)) != 0 && *(*uint8)(unsafe.Pointer(r)) != 0 && n != 0 && int32(*(*uint8)(unsafe.Pointer(l))) == int32(*(*uint8)(unsafe.Pointer(r)))) {
+ if !(*(*uint8)(unsafe.Pointer(l)) != 0 && *(*uint8)(unsafe.Pointer(r)) != 0 && n != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(l))) == Int32FromUint8(*(*uint8)(unsafe.Pointer(r)))) {
break
}
goto _2
@@ -146517,7 +146534,7 @@ func Xstrncmp(tls *TLS, _l uintptr, _r uintptr, n Tsize_t) (r1 int32) {
r++
n--
}
- return int32(*(*uint8)(unsafe.Pointer(l))) - int32(*(*uint8)(unsafe.Pointer(r)))
+ return Int32FromUint8(*(*uint8)(unsafe.Pointer(l))) - Int32FromUint8(*(*uint8)(unsafe.Pointer(r)))
}
func Xstrncpy(tls *TLS, d uintptr, s uintptr, n Tsize_t) (r uintptr) {
@@ -146557,7 +146574,7 @@ func Xstrnlen(tls *TLS, s uintptr, n Tsize_t) (r Tsize_t) {
_, _ = p, v1
p = Xmemchr(tls, s, 0, n)
if p != 0 {
- v1 = uint64(int64(p) - int64(s))
+ v1 = Uint64FromInt64(int64(p) - int64(s))
} else {
v1 = n
}
@@ -146623,7 +146640,7 @@ func Xstrsignal(tls *TLS, signum int32) (r uintptr) {
_, _ = s, v2
s = uintptr(unsafe.Pointer(&_strings))
signum = signum
- if uint32(signum)-uint32(1) >= uint32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) {
+ if Uint32FromInt32(signum)-uint32(1) >= Uint32FromInt32(Int32FromInt32(_NSIG)-Int32FromInt32(1)) {
signum = 0
}
for {
@@ -146667,7 +146684,7 @@ func Xstrspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) {
}
if !(*(*uint8)(unsafe.Pointer(c + 1)) != 0) {
for {
- if !(int32(*(*uint8)(unsafe.Pointer(s))) == int32(*(*uint8)(unsafe.Pointer(c)))) {
+ if !(Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == Int32FromUint8(*(*uint8)(unsafe.Pointer(c)))) {
break
}
goto _1
@@ -146675,7 +146692,7 @@ func Xstrspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) {
;
s++
}
- return uint64(int64(s) - int64(a))
+ return Uint64FromInt64(int64(s) - int64(a))
}
for {
if v4 = *(*uint8)(unsafe.Pointer(c)) != 0; v4 {
@@ -146699,18 +146716,18 @@ func Xstrspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) {
;
s++
}
- return uint64(int64(s) - int64(a))
+ return Uint64FromInt64(int64(s) - int64(a))
}
func _twobyte_strstr(tls *TLS, h uintptr, n uintptr) (r uintptr) {
var hw, nw Tuint16_t
var v2, v3 uintptr
_, _, _, _ = hw, nw, v2, v3
- nw = uint16(int32(*(*uint8)(unsafe.Pointer(n)))<<int32(8) | int32(*(*uint8)(unsafe.Pointer(n + 1))))
- hw = uint16(int32(*(*uint8)(unsafe.Pointer(h)))<<int32(8) | int32(*(*uint8)(unsafe.Pointer(h + 1))))
+ nw = Uint16FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(n)))<<int32(8) | Int32FromUint8(*(*uint8)(unsafe.Pointer(n + 1))))
+ hw = Uint16FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(h)))<<int32(8) | Int32FromUint8(*(*uint8)(unsafe.Pointer(h + 1))))
h++
for {
- if !(*(*uint8)(unsafe.Pointer(h)) != 0 && int32(hw) != int32(nw)) {
+ if !(*(*uint8)(unsafe.Pointer(h)) != 0 && Int32FromUint16(hw) != Int32FromUint16(nw)) {
break
}
goto _1
@@ -146718,7 +146735,7 @@ func _twobyte_strstr(tls *TLS, h uintptr, n uintptr) (r uintptr) {
;
h++
v2 = h
- hw = uint16(int32(hw)<<int32(8) | int32(*(*uint8)(unsafe.Pointer(v2))))
+ hw = Uint16FromInt32(Int32FromUint16(hw)<<int32(8) | Int32FromUint8(*(*uint8)(unsafe.Pointer(v2))))
}
if *(*uint8)(unsafe.Pointer(h)) != 0 {
v3 = h - uintptr(1)
@@ -146732,8 +146749,8 @@ func _threebyte_strstr(tls *TLS, h uintptr, n uintptr) (r uintptr) {
var hw, nw Tuint32_t
var v2, v3 uintptr
_, _, _, _ = hw, nw, v2, v3
- nw = uint32(*(*uint8)(unsafe.Pointer(n)))<<int32(24) | uint32(int32(*(*uint8)(unsafe.Pointer(n + 1)))<<int32(16)) | uint32(int32(*(*uint8)(unsafe.Pointer(n + 2)))<<int32(8))
- hw = uint32(*(*uint8)(unsafe.Pointer(h)))<<int32(24) | uint32(int32(*(*uint8)(unsafe.Pointer(h + 1)))<<int32(16)) | uint32(int32(*(*uint8)(unsafe.Pointer(h + 2)))<<int32(8))
+ nw = uint32(*(*uint8)(unsafe.Pointer(n)))<<int32(24) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(n + 1)))<<int32(16)) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(n + 2)))<<int32(8))
+ hw = uint32(*(*uint8)(unsafe.Pointer(h)))<<int32(24) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(h + 1)))<<int32(16)) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(h + 2)))<<int32(8))
h += uintptr(2)
for {
if !(*(*uint8)(unsafe.Pointer(h)) != 0 && hw != nw) {
@@ -146758,8 +146775,8 @@ func _fourbyte_strstr(tls *TLS, h uintptr, n uintptr) (r uintptr) {
var hw, nw Tuint32_t
var v2, v3 uintptr
_, _, _, _ = hw, nw, v2, v3
- nw = uint32(*(*uint8)(unsafe.Pointer(n)))<<int32(24) | uint32(int32(*(*uint8)(unsafe.Pointer(n + 1)))<<int32(16)) | uint32(int32(*(*uint8)(unsafe.Pointer(n + 2)))<<int32(8)) | uint32(*(*uint8)(unsafe.Pointer(n + 3)))
- hw = uint32(*(*uint8)(unsafe.Pointer(h)))<<int32(24) | uint32(int32(*(*uint8)(unsafe.Pointer(h + 1)))<<int32(16)) | uint32(int32(*(*uint8)(unsafe.Pointer(h + 2)))<<int32(8)) | uint32(*(*uint8)(unsafe.Pointer(h + 3)))
+ nw = uint32(*(*uint8)(unsafe.Pointer(n)))<<int32(24) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(n + 1)))<<int32(16)) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(n + 2)))<<int32(8)) | uint32(*(*uint8)(unsafe.Pointer(n + 3)))
+ hw = uint32(*(*uint8)(unsafe.Pointer(h)))<<int32(24) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(h + 1)))<<int32(16)) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(h + 2)))<<int32(8)) | uint32(*(*uint8)(unsafe.Pointer(h + 3)))
h += uintptr(3)
for {
if !(*(*uint8)(unsafe.Pointer(h)) != 0 && hw != nw) {
@@ -146807,13 +146824,13 @@ func _twoway_strstr(tls *TLS, h uintptr, n uintptr) (r uintptr) {
return uintptr(0)
} /* hit the end of h */
/* Compute maximal suffix */
- ip = uint64(-Int32FromInt32(1))
+ ip = Uint64FromInt32(-Int32FromInt32(1))
jp = uint64(0)
v2 = Uint64FromInt32(1)
p = v2
k = v2
for jp+k < l {
- if int32(*(*uint8)(unsafe.Pointer(n + uintptr(ip+k)))) == int32(*(*uint8)(unsafe.Pointer(n + uintptr(jp+k)))) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(n + uintptr(ip+k)))) == Int32FromUint8(*(*uint8)(unsafe.Pointer(n + uintptr(jp+k)))) {
if k == p {
jp += p
k = uint64(1)
@@ -146821,7 +146838,7 @@ func _twoway_strstr(tls *TLS, h uintptr, n uintptr) (r uintptr) {
k++
}
} else {
- if int32(*(*uint8)(unsafe.Pointer(n + uintptr(ip+k)))) > int32(*(*uint8)(unsafe.Pointer(n + uintptr(jp+k)))) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(n + uintptr(ip+k)))) > Int32FromUint8(*(*uint8)(unsafe.Pointer(n + uintptr(jp+k)))) {
jp += k
k = uint64(1)
p = jp - ip
@@ -146838,13 +146855,13 @@ func _twoway_strstr(tls *TLS, h uintptr, n uintptr) (r uintptr) {
ms = ip
p0 = p
/* And with the opposite comparison */
- ip = uint64(-Int32FromInt32(1))
+ ip = Uint64FromInt32(-Int32FromInt32(1))
jp = uint64(0)
v5 = Uint64FromInt32(1)
p = v5
k = v5
for jp+k < l {
- if int32(*(*uint8)(unsafe.Pointer(n + uintptr(ip+k)))) == int32(*(*uint8)(unsafe.Pointer(n + uintptr(jp+k)))) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(n + uintptr(ip+k)))) == Int32FromUint8(*(*uint8)(unsafe.Pointer(n + uintptr(jp+k)))) {
if k == p {
jp += p
k = uint64(1)
@@ -146852,7 +146869,7 @@ func _twoway_strstr(tls *TLS, h uintptr, n uintptr) (r uintptr) {
k++
}
} else {
- if int32(*(*uint8)(unsafe.Pointer(n + uintptr(ip+k)))) < int32(*(*uint8)(unsafe.Pointer(n + uintptr(jp+k)))) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(n + uintptr(ip+k)))) < Int32FromUint8(*(*uint8)(unsafe.Pointer(n + uintptr(jp+k)))) {
jp += k
k = uint64(1)
p = jp - ip
@@ -146889,13 +146906,13 @@ func _twoway_strstr(tls *TLS, h uintptr, n uintptr) (r uintptr) {
/* Search loop */
for {
/* Update incremental end-of-haystack pointer */
- if uint64(int64(z)-int64(h)) < l {
+ if Uint64FromInt64(int64(z)-int64(h)) < l {
/* Fast estimate for MAX(l,63) */
grow = l | uint64(63)
z2 = Xmemchr(tls, z, 0, grow)
if z2 != 0 {
z = z2
- if uint64(int64(z)-int64(h)) < l {
+ if Uint64FromInt64(int64(z)-int64(h)) < l {
return uintptr(0)
}
} else {
@@ -146926,7 +146943,7 @@ func _twoway_strstr(tls *TLS, h uintptr, n uintptr) (r uintptr) {
}
k = v11
for {
- if !(*(*uint8)(unsafe.Pointer(n + uintptr(k))) != 0 && int32(*(*uint8)(unsafe.Pointer(n + uintptr(k)))) == int32(*(*uint8)(unsafe.Pointer(h + uintptr(k))))) {
+ if !(*(*uint8)(unsafe.Pointer(n + uintptr(k))) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(n + uintptr(k)))) == Int32FromUint8(*(*uint8)(unsafe.Pointer(h + uintptr(k))))) {
break
}
goto _10
@@ -146942,7 +146959,7 @@ func _twoway_strstr(tls *TLS, h uintptr, n uintptr) (r uintptr) {
/* Compare left half */
k = ms + uint64(1)
for {
- if !(k > mem && int32(*(*uint8)(unsafe.Pointer(n + uintptr(k-uint64(1))))) == int32(*(*uint8)(unsafe.Pointer(h + uintptr(k-uint64(1)))))) {
+ if !(k > mem && Int32FromUint8(*(*uint8)(unsafe.Pointer(n + uintptr(k-uint64(1))))) == Int32FromUint8(*(*uint8)(unsafe.Pointer(h + uintptr(k-uint64(1)))))) {
break
}
goto _12
@@ -146971,7 +146988,7 @@ func Xstrstr(tls *TLS, h uintptr, n uintptr) (r uintptr) {
return h
}
/* Use faster algorithms for short needles */
- h = Xstrchr(tls, h, int32(*(*uint8)(unsafe.Pointer(n))))
+ h = Xstrchr(tls, h, Int32FromUint8(*(*uint8)(unsafe.Pointer(n))))
if !(h != 0) || !(*(*uint8)(unsafe.Pointer(n + 1)) != 0) {
return h
}
@@ -147081,14 +147098,14 @@ func Xstrverscmp(tls *TLS, l0 uintptr, r0 uintptr) (r1 int32) {
i = v2
dp = v2
for {
- if !(int32(*(*uint8)(unsafe.Pointer(l + uintptr(i)))) == int32(*(*uint8)(unsafe.Pointer(r + uintptr(i))))) {
+ if !(Int32FromUint8(*(*uint8)(unsafe.Pointer(l + uintptr(i)))) == Int32FromUint8(*(*uint8)(unsafe.Pointer(r + uintptr(i))))) {
break
}
- c = int32(*(*uint8)(unsafe.Pointer(l + uintptr(i))))
+ c = Int32FromUint8(*(*uint8)(unsafe.Pointer(l + uintptr(i))))
if !(c != 0) {
return 0
}
- if !(BoolInt32(uint32(c)-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) {
+ if !(BoolInt32(Uint32FromInt32(c)-Uint32FromUint8('0') < Uint32FromInt32(10)) != 0) {
dp = i + uint64(1)
z = Int32FromInt32(1)
} else {
@@ -147101,7 +147118,7 @@ func Xstrverscmp(tls *TLS, l0 uintptr, r0 uintptr) (r1 int32) {
;
i++
}
- if uint32(int32(*(*uint8)(unsafe.Pointer(l + uintptr(dp))))-int32('1')) < uint32(9) && uint32(int32(*(*uint8)(unsafe.Pointer(r + uintptr(dp))))-int32('1')) < uint32(9) {
+ if Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(l + uintptr(dp))))-int32('1')) < uint32(9) && Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(r + uintptr(dp))))-int32('1')) < uint32(9) {
/* If we're looking at non-degenerate digit sequences starting
* with nonzero digits, longest digit string is greater. */
j = i
@@ -147124,10 +147141,10 @@ func Xstrverscmp(tls *TLS, l0 uintptr, r0 uintptr) (r1 int32) {
if z != 0 && dp < i && (BoolInt32(uint32(*(*uint8)(unsafe.Pointer(l + uintptr(i))))-uint32('0') < uint32(10)) != 0 || BoolInt32(uint32(*(*uint8)(unsafe.Pointer(r + uintptr(i))))-uint32('0') < uint32(10)) != 0) {
/* Otherwise, if common prefix of digit sequence is
* all zeros, digits order less than non-digits. */
- return int32(uint8(int32(*(*uint8)(unsafe.Pointer(l + uintptr(i))))-Int32FromUint8('0'))) - int32(uint8(int32(*(*uint8)(unsafe.Pointer(r + uintptr(i))))-Int32FromUint8('0')))
+ return Int32FromUint8(Uint8FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(l + uintptr(i))))-Int32FromUint8('0'))) - Int32FromUint8(Uint8FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(r + uintptr(i))))-Int32FromUint8('0')))
}
}
- return int32(*(*uint8)(unsafe.Pointer(l + uintptr(i)))) - int32(*(*uint8)(unsafe.Pointer(r + uintptr(i))))
+ return Int32FromUint8(*(*uint8)(unsafe.Pointer(l + uintptr(i)))) - Int32FromUint8(*(*uint8)(unsafe.Pointer(r + uintptr(i))))
}
func Xswab(tls *TLS, _src uintptr, _dest uintptr, n Tssize_t) {
@@ -147174,7 +147191,7 @@ func Xwcscasecmp(tls *TLS, l uintptr, r uintptr) (r1 int32) {
trc("tls=%v l=%v r=%v, (%v:)", tls, l, r, origin(2))
defer func() { trc("-> %v", r1) }()
}
- return Xwcsncasecmp(tls, l, r, uint64(-Int32FromInt32(1)))
+ return Xwcsncasecmp(tls, l, r, Uint64FromInt32(-Int32FromInt32(1)))
}
func Xwcscasecmp_l(tls *TLS, l uintptr, r uintptr, locale Tlocale_t) (r1 int32) {
@@ -147286,7 +147303,7 @@ func Xwcscspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) {
v2 = Xwcschr(tls, v3, *(*Twchar_t)(unsafe.Pointer(c)))
s = v2
if v2 != 0 {
- v1 = uint64((int64(s) - int64(a)) / 4)
+ v1 = Uint64FromInt64((int64(s) - int64(a)) / 4)
} else {
v1 = Xwcslen(tls, a)
}
@@ -147302,7 +147319,7 @@ func Xwcscspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) {
;
s += 4
}
- return uint64((int64(s) - int64(a)) / 4)
+ return Uint64FromInt64((int64(s) - int64(a)) / 4)
}
func Xwcsdup(tls *TLS, s uintptr) (r uintptr) {
@@ -147338,7 +147355,7 @@ func Xwcslen(tls *TLS, s uintptr) (r Tsize_t) {
;
s += 4
}
- return uint64((int64(s) - int64(a)) / 4)
+ return Uint64FromInt64((int64(s) - int64(a)) / 4)
}
func Xwcsncasecmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) {
@@ -147364,7 +147381,7 @@ func Xwcsncasecmp(tls *TLS, l uintptr, r uintptr, n Tsize_t) (r1 int32) {
r += 4
n--
}
- return int32(Xtowlower(tls, *(*Twchar_t)(unsafe.Pointer(l))) - Xtowlower(tls, *(*Twchar_t)(unsafe.Pointer(r))))
+ return Int32FromUint32(Xtowlower(tls, *(*Twchar_t)(unsafe.Pointer(l))) - Xtowlower(tls, *(*Twchar_t)(unsafe.Pointer(r))))
}
func Xwcsncasecmp_l(tls *TLS, l uintptr, r uintptr, n Tsize_t, locale Tlocale_t) (r1 int32) {
@@ -147458,7 +147475,7 @@ func Xwcsnlen(tls *TLS, s uintptr, n Tsize_t) (r Tsize_t) {
_ = z
z = Xwmemchr(tls, s, uint32(0), n)
if z != 0 {
- n = uint64((int64(z) - int64(s)) / 4)
+ n = Uint64FromInt64((int64(z) - int64(s)) / 4)
}
return n
}
@@ -147521,7 +147538,7 @@ func Xwcsspn(tls *TLS, s uintptr, c uintptr) (r Tsize_t) {
;
s += 4
}
- return uint64((int64(s) - int64(a)) / 4)
+ return Uint64FromInt64((int64(s) - int64(a)) / 4)
}
func _twoway_wcsstr(tls *TLS, h uintptr, n uintptr) (r uintptr) {
@@ -147544,7 +147561,7 @@ func _twoway_wcsstr(tls *TLS, h uintptr, n uintptr) (r uintptr) {
return uintptr(0)
} /* hit the end of h */
/* Compute maximal suffix */
- ip = uint64(-Int32FromInt32(1))
+ ip = Uint64FromInt32(-Int32FromInt32(1))
jp = uint64(0)
v2 = Uint64FromInt32(1)
p = v2
@@ -147575,7 +147592,7 @@ func _twoway_wcsstr(tls *TLS, h uintptr, n uintptr) (r uintptr) {
ms = ip
p0 = p
/* And with the opposite comparison */
- ip = uint64(-Int32FromInt32(1))
+ ip = Uint64FromInt32(-Int32FromInt32(1))
jp = uint64(0)
v5 = Uint64FromInt32(1)
p = v5
@@ -147626,13 +147643,13 @@ func _twoway_wcsstr(tls *TLS, h uintptr, n uintptr) (r uintptr) {
/* Search loop */
for {
/* Update incremental end-of-haystack pointer */
- if uint64((int64(z)-int64(h))/4) < l {
+ if Uint64FromInt64((int64(z)-int64(h))/4) < l {
/* Fast estimate for MIN(l,63) */
grow = l | uint64(63)
z2 = Xwmemchr(tls, z, uint32(0), grow)
if z2 != 0 {
z = z2
- if uint64((int64(z)-int64(h))/4) < l {
+ if Uint64FromInt64((int64(z)-int64(h))/4) < l {
return uintptr(0)
}
} else {
@@ -147937,7 +147954,7 @@ func X__mkostemps(tls *TLS, template uintptr, len1 int32, flags int32) (r int32)
var l Tsize_t
_, _, _, _, _ = fd, l, retries, v1, v3
l = Xstrlen(tls, template)
- if l < uint64(6) || uint64(len1) > l-uint64(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(len1)-uintptr(6), __ccgo_ts+1730, uint64(6)) != 0 {
+ if l < uint64(6) || Uint64FromInt32(len1) > l-uint64(6) || Xmemcmp(tls, template+uintptr(l)-uintptr(len1)-uintptr(6), __ccgo_ts+1730, uint64(6)) != 0 {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EINVAL)
return -int32(1)
}
@@ -148047,10 +148064,10 @@ func Xcfmakeraw(tls *TLS, t uintptr) {
if __ccgo_strace {
trc("tls=%v t=%v, (%v:)", tls, t, origin(2))
}
- *(*Ttcflag_t)(unsafe.Pointer(t)) &= uint32(^(Int32FromInt32(IGNBRK) | Int32FromInt32(BRKINT) | Int32FromInt32(PARMRK) | Int32FromInt32(ISTRIP) | Int32FromInt32(INLCR) | Int32FromInt32(IGNCR) | Int32FromInt32(ICRNL) | Int32FromInt32(IXON)))
- *(*Ttcflag_t)(unsafe.Pointer(t + 4)) &= uint32(^Int32FromInt32(OPOST))
- *(*Ttcflag_t)(unsafe.Pointer(t + 12)) &= uint32(^(Int32FromInt32(ECHO) | Int32FromInt32(ECHONL) | Int32FromInt32(ICANON) | Int32FromInt32(ISIG) | Int32FromInt32(IEXTEN)))
- *(*Ttcflag_t)(unsafe.Pointer(t + 8)) &= uint32(^(Int32FromInt32(CSIZE) | Int32FromInt32(PARENB)))
+ *(*Ttcflag_t)(unsafe.Pointer(t)) &= Uint32FromInt32(^(Int32FromInt32(IGNBRK) | Int32FromInt32(BRKINT) | Int32FromInt32(PARMRK) | Int32FromInt32(ISTRIP) | Int32FromInt32(INLCR) | Int32FromInt32(IGNCR) | Int32FromInt32(ICRNL) | Int32FromInt32(IXON)))
+ *(*Ttcflag_t)(unsafe.Pointer(t + 4)) &= Uint32FromInt32(^Int32FromInt32(OPOST))
+ *(*Ttcflag_t)(unsafe.Pointer(t + 12)) &= Uint32FromInt32(^(Int32FromInt32(ECHO) | Int32FromInt32(ECHONL) | Int32FromInt32(ICANON) | Int32FromInt32(ISIG) | Int32FromInt32(IEXTEN)))
+ *(*Ttcflag_t)(unsafe.Pointer(t + 8)) &= Uint32FromInt32(^(Int32FromInt32(CSIZE) | Int32FromInt32(PARENB)))
*(*Ttcflag_t)(unsafe.Pointer(t + 8)) |= uint32(CS8)
*(*Tcc_t)(unsafe.Pointer(t + 17 + 6)) = uint8(1)
*(*Tcc_t)(unsafe.Pointer(t + 17 + 5)) = uint8(0)
@@ -148061,11 +148078,11 @@ func Xcfsetospeed(tls *TLS, tio uintptr, speed Tspeed_t) (r int32) {
trc("tls=%v tio=%v speed=%v, (%v:)", tls, tio, speed, origin(2))
defer func() { trc("-> %v", r) }()
}
- if speed&uint32(^Int32FromInt32(CBAUD)) != 0 {
+ if speed&Uint32FromInt32(^Int32FromInt32(CBAUD)) != 0 {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(EINVAL)
return -int32(1)
}
- *(*Ttcflag_t)(unsafe.Pointer(tio + 8)) &= uint32(^Int32FromInt32(CBAUD))
+ *(*Ttcflag_t)(unsafe.Pointer(tio + 8)) &= Uint32FromInt32(^Int32FromInt32(CBAUD))
*(*Ttcflag_t)(unsafe.Pointer(tio + 8)) |= speed
return 0
}
@@ -148098,7 +148115,7 @@ func Xtcdrain(tls *TLS, fd int32) (r int32) {
trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TCSBRK)), int64(Int32FromInt32(1)), 0, 0, 0))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TCSBRK)), int64(Int32FromInt32(1)), 0, 0, 0))))
}
func Xtcflow(tls *TLS, fd int32, action int32) (r int32) {
@@ -148153,7 +148170,7 @@ func Xtcgetwinsize(tls *TLS, fd int32, wsz uintptr) (r int32) {
trc("tls=%v fd=%v wsz=%v, (%v:)", tls, fd, wsz, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCGWINSZ)), int64(wsz)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCGWINSZ)), int64(wsz)))))
}
func Xtcsendbreak(tls *TLS, fd int32, dur int32) (r int32) {
@@ -148186,7 +148203,7 @@ func Xtcsetwinsize(tls *TLS, fd int32, wsz uintptr) (r int32) {
trc("tls=%v fd=%v wsz=%v, (%v:)", tls, fd, wsz, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCSWINSZ)), int64(wsz)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCSWINSZ)), int64(wsz)))))
}
func X__map_file(tls *TLS, pathname uintptr, size uintptr) (r uintptr) {
@@ -148201,13 +148218,13 @@ func X__map_file(tls *TLS, pathname uintptr, size uintptr) (r uintptr) {
var _ /* st at bp+0 */ Tstat
_, _, _ = fd, map1, v1
map1 = uintptr(-Int32FromInt32(1))
- fd = int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(pathname), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_NONBLOCK)|Int32FromInt32(O_LARGEFILE))))))
+ fd = int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_openat), int64(-Int32FromInt32(100)), int64(pathname), int64(Int32FromInt32(O_RDONLY)|Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_NONBLOCK)|Int32FromInt32(O_LARGEFILE))))))
if fd < 0 {
return uintptr(0)
}
if !(X__fstat(tls, fd, bp) != 0) {
- map1 = X__mmap(tls, uintptr(0), uint64((*(*Tstat)(unsafe.Pointer(bp))).Fst_size), int32(PROT_READ), int32(MAP_SHARED), fd, 0)
- *(*Tsize_t)(unsafe.Pointer(size)) = uint64((*(*Tstat)(unsafe.Pointer(bp))).Fst_size)
+ map1 = X__mmap(tls, uintptr(0), Uint64FromInt64((*(*Tstat)(unsafe.Pointer(bp))).Fst_size), int32(PROT_READ), int32(MAP_SHARED), fd, 0)
+ *(*Tsize_t)(unsafe.Pointer(size)) = Uint64FromInt64((*(*Tstat)(unsafe.Pointer(bp))).Fst_size)
}
X__syscall1(tls, int64(SYS_close), int64(fd))
if map1 == uintptr(-Int32FromInt32(1)) {
@@ -148314,10 +148331,10 @@ func X__secs_to_tm(tls *TLS, t int64, tm uintptr) (r int32) {
years = int64(remyears+int32(4)*q_cycles+int32(100)*c_cycles) + int64(400)*int64(qc_cycles)
months = 0
for {
- if !(int32(_days_in_month[months]) <= remdays) {
+ if !(Int32FromUint8(_days_in_month[months]) <= remdays) {
break
}
- remdays -= int32(_days_in_month[months])
+ remdays -= Int32FromUint8(_days_in_month[months])
goto _1
_1:
;
@@ -148413,35 +148430,35 @@ func _getint2(tls *TLS, p uintptr) (r int32) {
_ = x
x = uint32(0)
for {
- if !(uint32(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p)))))-int32('0')) < uint32(10)) {
+ if !(Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p)))))-int32('0')) < uint32(10)) {
break
}
- x = uint32(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p)))))-int32('0')) + uint32(10)*x
+ x = Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p)))))-int32('0')) + uint32(10)*x
goto _1
_1:
;
*(*uintptr)(unsafe.Pointer(p))++
}
- return int32(x)
+ return Int32FromUint32(x)
}
func _getoff(tls *TLS, p uintptr) (r int32) {
var neg, off, v1 int32
_, _, _ = neg, off, v1
neg = 0
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p))))) == int32('-') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p))))) == int32('-') {
*(*uintptr)(unsafe.Pointer(p))++
neg = int32(1)
} else {
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p))))) == int32('+') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p))))) == int32('+') {
*(*uintptr)(unsafe.Pointer(p))++
}
}
off = int32(3600) * _getint2(tls, p)
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p))))) == int32(':') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p))))) == int32(':') {
*(*uintptr)(unsafe.Pointer(p))++
off += int32(60) * _getint2(tls, p)
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p))))) == int32(':') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p))))) == int32(':') {
*(*uintptr)(unsafe.Pointer(p))++
off += _getint2(tls, p)
}
@@ -148457,7 +148474,7 @@ func _getoff(tls *TLS, p uintptr) (r int32) {
func _getrule(tls *TLS, p uintptr, rule uintptr) {
var r, v1 int32
_, _ = r, v1
- v1 = int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p)))))
+ v1 = Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p)))))
*(*int32)(unsafe.Pointer(rule)) = v1
r = v1
if r != int32('M') {
@@ -148475,7 +148492,7 @@ func _getrule(tls *TLS, p uintptr, rule uintptr) {
*(*uintptr)(unsafe.Pointer(p))++
*(*int32)(unsafe.Pointer(rule + 3*4)) = _getint2(tls, p)
}
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p))))) == int32('/') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p))))) == int32('/') {
*(*uintptr)(unsafe.Pointer(p))++
*(*int32)(unsafe.Pointer(rule + 4*4)) = _getoff(tls, p)
} else {
@@ -148486,11 +148503,11 @@ func _getrule(tls *TLS, p uintptr, rule uintptr) {
func _getname(tls *TLS, d uintptr, p uintptr) {
var i, v3 int32
_, _ = i, v3
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p))))) == int32('<') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p))))) == int32('<') {
*(*uintptr)(unsafe.Pointer(p))++
i = 0
for {
- if !(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p)) + uintptr(i))) != 0 && int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p)) + uintptr(i)))) != int32('>')) {
+ if !(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p)) + uintptr(i))) != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p)) + uintptr(i)))) != int32('>')) {
break
}
if i < int32(TZNAME_MAX) {
@@ -148507,7 +148524,7 @@ func _getname(tls *TLS, d uintptr, p uintptr) {
} else {
i = 0
for {
- if !(uint32(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p)) + uintptr(i))))|int32(32)-int32('a')) < uint32(26)) {
+ if !(Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p)) + uintptr(i))))|int32(32)-int32('a')) < uint32(26)) {
break
}
if i < int32(TZNAME_MAX) {
@@ -148529,7 +148546,7 @@ func _getname(tls *TLS, d uintptr, p uintptr) {
}
func _zi_read32(tls *TLS, z uintptr) (r Tuint32_t) {
- return uint32(*(*uint8)(unsafe.Pointer(z)))<<int32(24) | uint32(int32(*(*uint8)(unsafe.Pointer(z + 1)))<<int32(16)) | uint32(int32(*(*uint8)(unsafe.Pointer(z + 2)))<<int32(8)) | uint32(*(*uint8)(unsafe.Pointer(z + 3)))
+ return uint32(*(*uint8)(unsafe.Pointer(z)))<<int32(24) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(z + 1)))<<int32(16)) | Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(z + 2)))<<int32(8)) | uint32(*(*uint8)(unsafe.Pointer(z + 3)))
}
func _zi_dotprod(tls *TLS, z uintptr, v uintptr, n Tsize_t) (r Tsize_t) {
@@ -148597,7 +148614,7 @@ func _do_tzset(tls *TLS) {
* free so as not to pull it into static programs. Growth
* strategy makes it so free would have minimal benefit anyway. */
i = Xstrlen(tls, *(*uintptr)(unsafe.Pointer(bp + 288)))
- if i > uint64(Int32FromInt32(PATH_MAX)+Int32FromInt32(1)) {
+ if i > Uint64FromInt32(Int32FromInt32(PATH_MAX)+Int32FromInt32(1)) {
*(*uintptr)(unsafe.Pointer(bp + 288)) = uintptr(unsafe.Pointer(&X__utc))
i = Uint64FromInt32(3)
}
@@ -148606,8 +148623,8 @@ func _do_tzset(tls *TLS) {
if i >= _old_tz_size {
_old_tz_size = i + uint64(1)
}
- if _old_tz_size > uint64(Int32FromInt32(PATH_MAX)+Int32FromInt32(2)) {
- _old_tz_size = uint64(Int32FromInt32(PATH_MAX) + Int32FromInt32(2))
+ if _old_tz_size > Uint64FromInt32(Int32FromInt32(PATH_MAX)+Int32FromInt32(2)) {
+ _old_tz_size = Uint64FromInt32(Int32FromInt32(PATH_MAX) + Int32FromInt32(2))
}
_old_tz = Xmalloc(tls, _old_tz_size)
}
@@ -148615,10 +148632,10 @@ func _do_tzset(tls *TLS) {
Xmemcpy(tls, _old_tz, *(*uintptr)(unsafe.Pointer(bp + 288)), i+uint64(1))
}
posix_form = 0
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 288))))) != int32(':') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 288))))) != int32(':') {
*(*uintptr)(unsafe.Pointer(bp + 296)) = *(*uintptr)(unsafe.Pointer(bp + 288))
_getname(tls, bp+308, bp+296)
- if *(*uintptr)(unsafe.Pointer(bp + 296)) != *(*uintptr)(unsafe.Pointer(bp + 288)) && (int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 296))))) == int32('+') || int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 296))))) == int32('-') || BoolInt32(uint32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 296)))))-uint32('0') < uint32(10)) != 0 || !(Xstrcmp(tls, bp+308, __ccgo_ts+1755) != 0) || !(Xstrcmp(tls, bp+308, __ccgo_ts+1759) != 0)) {
+ if *(*uintptr)(unsafe.Pointer(bp + 296)) != *(*uintptr)(unsafe.Pointer(bp + 288)) && (Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 296))))) == int32('+') || Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 296))))) == int32('-') || BoolInt32(uint32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 296)))))-uint32('0') < uint32(10)) != 0 || !(Xstrcmp(tls, bp+308, __ccgo_ts+1755) != 0) || !(Xstrcmp(tls, bp+308, __ccgo_ts+1759) != 0)) {
posix_form = int32(1)
}
}
@@ -148626,10 +148643,10 @@ func _do_tzset(tls *TLS) {
* pathame beginning with "."; in secure mode, only the
* standard path will be searched. */
if !(posix_form != 0) {
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 288))))) == int32(':') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 288))))) == int32(':') {
*(*uintptr)(unsafe.Pointer(bp + 288))++
}
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 288))))) == int32('/') || int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 288))))) == int32('.') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 288))))) == int32('/') || Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 288))))) == int32('.') {
if !(X__libc.Fsecure != 0) || !(Xstrcmp(tls, *(*uintptr)(unsafe.Pointer(bp + 288)), __ccgo_ts+1740) != 0) {
map1 = X__map_file(tls, *(*uintptr)(unsafe.Pointer(bp + 288)), uintptr(unsafe.Pointer(&_map_size)))
}
@@ -148665,7 +148682,7 @@ func _do_tzset(tls *TLS) {
_zi = map1
if map1 != 0 {
scale = int32(2)
- if int32(*(*uint8)(unsafe.Pointer(map1 + 4))) != int32('1') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(map1 + 4))) != int32('1') {
*(*[6]uint8)(unsafe.Pointer(bp)) = [6]uint8{
0: uint8(1),
1: uint8(1),
@@ -148684,10 +148701,10 @@ func _do_tzset(tls *TLS) {
_types = _index + uintptr(_zi_read32(tls, _trans-uintptr(12)))
_abbrevs = _types + uintptr(uint32(6)*_zi_read32(tls, _trans-uintptr(8)))
_abbrevs_end = _abbrevs + uintptr(_zi_read32(tls, _trans-uintptr(4)))
- if int32(*(*uint8)(unsafe.Pointer(_zi + uintptr(_map_size-uint64(1))))) == int32('\n') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(_zi + uintptr(_map_size-uint64(1))))) == int32('\n') {
*(*uintptr)(unsafe.Pointer(bp + 288)) = _zi + uintptr(_map_size) - uintptr(2)
for {
- if !(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 288))))) != int32('\n')) {
+ if !(Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 288))))) != int32('\n')) {
break
}
goto _4
@@ -148712,11 +148729,11 @@ func _do_tzset(tls *TLS) {
}
if !(*(*uint8)(unsafe.Pointer(p1 + 4)) != 0) && !(Xtzname[0] != 0) {
Xtzname[0] = _abbrevs + uintptr(*(*uint8)(unsafe.Pointer(p1 + 5)))
- Xtimezone = int64(-_zi_read32(tls, p1))
+ Xtimezone = Int64FromUint32(-_zi_read32(tls, p1))
}
if *(*uint8)(unsafe.Pointer(p1 + 4)) != 0 && !(Xtzname[int32(1)] != 0) {
Xtzname[int32(1)] = _abbrevs + uintptr(*(*uint8)(unsafe.Pointer(p1 + 5)))
- _dst_off = int32(-_zi_read32(tls, p1))
+ _dst_off = Int32FromUint32(-_zi_read32(tls, p1))
Xdaylight = int32(1)
}
goto _8
@@ -148747,7 +148764,7 @@ func _do_tzset(tls *TLS) {
Xtzname[int32(1)] = uintptr(unsafe.Pointer(&_dst_name))
if _dst_name[0] != 0 {
Xdaylight = int32(1)
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 288))))) == int32('+') || int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 288))))) == int32('-') || uint32(int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 288)))))-int32('0')) < uint32(10) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 288))))) == int32('+') || Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 288))))) == int32('-') || Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 288)))))-int32('0')) < uint32(10) {
_dst_off = _getoff(tls, bp+288)
} else {
_dst_off = int32(Xtimezone - int64(3600))
@@ -148756,11 +148773,11 @@ func _do_tzset(tls *TLS) {
Xdaylight = 0
_dst_off = int32(Xtimezone)
}
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 288))))) == int32(',') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 288))))) == int32(',') {
*(*uintptr)(unsafe.Pointer(bp + 288))++
_getrule(tls, bp+288, uintptr(unsafe.Pointer(&_r0)))
}
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 288))))) == int32(',') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 288))))) == int32(',') {
*(*uintptr)(unsafe.Pointer(bp + 288))++
_getrule(tls, bp+288, uintptr(unsafe.Pointer(&_r12)))
}
@@ -148779,7 +148796,7 @@ func _scan_trans(tls *TLS, t int64, local int32, alt uintptr) (r Tsize_t) {
scale = int32(3) - BoolInt32(_trans == _zi+uintptr(44))
off = 0
a = uint64(0)
- n = uint64((int64(_index) - int64(_trans)) >> scale)
+ n = Uint64FromInt64((int64(_index) - int64(_trans)) >> scale)
if !(n != 0) {
if alt != 0 {
*(*Tsize_t)(unsafe.Pointer(alt)) = uint64(0)
@@ -148793,12 +148810,12 @@ func _scan_trans(tls *TLS, t int64, local int32, alt uintptr) (r Tsize_t) {
if scale == int32(3) {
x = x<<int32(32) | uint64(_zi_read32(tls, _trans+uintptr(m<<scale)+uintptr(4)))
} else {
- x = uint64(int32(x))
+ x = Uint64FromInt32(Int32FromUint64(x))
}
if local != 0 {
- off = int32(_zi_read32(tls, _types+uintptr(int32(6)*int32(*(*uint8)(unsafe.Pointer(_index + uintptr(m-uint64(1))))))))
+ off = Int32FromUint32(_zi_read32(tls, _types+uintptr(int32(6)*Int32FromUint8(*(*uint8)(unsafe.Pointer(_index + uintptr(m-uint64(1))))))))
}
- if t-int64(off) < int64(x) {
+ if t-int64(off) < Int64FromUint64(x) {
n /= uint64(2)
} else {
a = m
@@ -148807,20 +148824,20 @@ func _scan_trans(tls *TLS, t int64, local int32, alt uintptr) (r Tsize_t) {
}
/* First and last entry are special. First means to use lowest-index
* non-DST type. Last means to apply POSIX-style rule if available. */
- n = uint64((int64(_index) - int64(_trans)) >> scale)
+ n = Uint64FromInt64((int64(_index) - int64(_trans)) >> scale)
if a == n-uint64(1) {
- return uint64(-Int32FromInt32(1))
+ return Uint64FromInt32(-Int32FromInt32(1))
}
if a == uint64(0) {
x = uint64(_zi_read32(tls, _trans))
if scale == int32(3) {
x = x<<int32(32) | uint64(_zi_read32(tls, _trans+uintptr(4)))
} else {
- x = uint64(int32(x))
+ x = Uint64FromInt32(Int32FromUint64(x))
}
/* Find the lowest non-DST type, or 0 if none. */
j = uint64(0)
- i = uint64(int64(_abbrevs) - int64(_types))
+ i = Uint64FromInt64(int64(_abbrevs) - int64(_types))
for {
if !(i != 0) {
break
@@ -148834,11 +148851,11 @@ func _scan_trans(tls *TLS, t int64, local int32, alt uintptr) (r Tsize_t) {
i -= uint64(6)
}
if local != 0 {
- off = int32(_zi_read32(tls, _types+uintptr(j)))
+ off = Int32FromUint32(_zi_read32(tls, _types+uintptr(j)))
}
/* If t is before first transition, use the above-found type
* and the index-zero (after transition) type as the alt. */
- if t-int64(off) < int64(x) {
+ if t-int64(off) < Int64FromUint64(x) {
if alt != 0 {
*(*Tsize_t)(unsafe.Pointer(alt)) = uint64(*(*uint8)(unsafe.Pointer(_index)))
}
@@ -148847,10 +148864,10 @@ func _scan_trans(tls *TLS, t int64, local int32, alt uintptr) (r Tsize_t) {
}
/* Try to find a neighboring opposite-DST-status rule. */
if alt != 0 {
- if a != 0 && int32(*(*uint8)(unsafe.Pointer(_types + uintptr(int32(6)*int32(*(*uint8)(unsafe.Pointer(_index + uintptr(a-uint64(1)))))+int32(4))))) != int32(*(*uint8)(unsafe.Pointer(_types + uintptr(int32(6)*int32(*(*uint8)(unsafe.Pointer(_index + uintptr(a))))+int32(4))))) {
+ if a != 0 && Int32FromUint8(*(*uint8)(unsafe.Pointer(_types + uintptr(int32(6)*Int32FromUint8(*(*uint8)(unsafe.Pointer(_index + uintptr(a-uint64(1)))))+int32(4))))) != Int32FromUint8(*(*uint8)(unsafe.Pointer(_types + uintptr(int32(6)*Int32FromUint8(*(*uint8)(unsafe.Pointer(_index + uintptr(a))))+int32(4))))) {
*(*Tsize_t)(unsafe.Pointer(alt)) = uint64(*(*uint8)(unsafe.Pointer(_index + uintptr(a-uint64(1)))))
} else {
- if a+uint64(1) < n && int32(*(*uint8)(unsafe.Pointer(_types + uintptr(int32(6)*int32(*(*uint8)(unsafe.Pointer(_index + uintptr(a+uint64(1)))))+int32(4))))) != int32(*(*uint8)(unsafe.Pointer(_types + uintptr(int32(6)*int32(*(*uint8)(unsafe.Pointer(_index + uintptr(a))))+int32(4))))) {
+ if a+uint64(1) < n && Int32FromUint8(*(*uint8)(unsafe.Pointer(_types + uintptr(int32(6)*Int32FromUint8(*(*uint8)(unsafe.Pointer(_index + uintptr(a+uint64(1)))))+int32(4))))) != Int32FromUint8(*(*uint8)(unsafe.Pointer(_types + uintptr(int32(6)*Int32FromUint8(*(*uint8)(unsafe.Pointer(_index + uintptr(a))))+int32(4))))) {
*(*Tsize_t)(unsafe.Pointer(alt)) = uint64(*(*uint8)(unsafe.Pointer(_index + uintptr(a+uint64(1)))))
} else {
*(*Tsize_t)(unsafe.Pointer(alt)) = uint64(*(*uint8)(unsafe.Pointer(_index + uintptr(a))))
@@ -148925,12 +148942,12 @@ func X__secs_to_zone(tls *TLS, t int64, local int32, isdst uintptr, offset uintp
_do_tzset(tls)
if _zi != 0 {
i = _scan_trans(tls, t, local, bp)
- if i != uint64(-Int32FromInt32(1)) {
- *(*int32)(unsafe.Pointer(isdst)) = int32(*(*uint8)(unsafe.Pointer(_types + uintptr(uint64(6)*i+uint64(4)))))
- *(*int64)(unsafe.Pointer(offset)) = int64(int32(_zi_read32(tls, _types+uintptr(uint64(6)*i))))
+ if i != Uint64FromInt32(-Int32FromInt32(1)) {
+ *(*int32)(unsafe.Pointer(isdst)) = Int32FromUint8(*(*uint8)(unsafe.Pointer(_types + uintptr(uint64(6)*i+uint64(4)))))
+ *(*int64)(unsafe.Pointer(offset)) = int64(Int32FromUint32(_zi_read32(tls, _types+uintptr(uint64(6)*i))))
*(*uintptr)(unsafe.Pointer(zonename)) = _abbrevs + uintptr(*(*uint8)(unsafe.Pointer(_types + uintptr(uint64(6)*i+uint64(5)))))
if oppoff != 0 {
- *(*int64)(unsafe.Pointer(oppoff)) = int64(int32(_zi_read32(tls, _types+uintptr(uint64(6)**(*Tsize_t)(unsafe.Pointer(bp))))))
+ *(*int64)(unsafe.Pointer(oppoff)) = int64(Int32FromUint32(_zi_read32(tls, _types+uintptr(uint64(6)**(*Tsize_t)(unsafe.Pointer(bp))))))
}
___unlock(tls, uintptr(unsafe.Pointer(&_lock4)))
return
@@ -149004,7 +149021,7 @@ func X__tm_to_tzname(tls *TLS, tm uintptr) (r uintptr) {
p = (*Ttm)(unsafe.Pointer(tm)).F__tm_zone
___lock(tls, uintptr(unsafe.Pointer(&_lock4)))
_do_tzset(tls)
- if p != uintptr(unsafe.Pointer(&X__utc)) && p != Xtzname[0] && p != Xtzname[int32(1)] && (!(_zi != 0) || uint64(p)-uint64(_abbrevs) >= uint64(int64(_abbrevs_end)-int64(_abbrevs))) {
+ if p != uintptr(unsafe.Pointer(&X__utc)) && p != Xtzname[0] && p != Xtzname[int32(1)] && (!(_zi != 0) || uint64(p)-uint64(_abbrevs) >= Uint64FromInt64(int64(_abbrevs_end)-int64(_abbrevs))) {
p = __ccgo_ts
}
___unlock(tls, uintptr(unsafe.Pointer(&_lock4)))
@@ -149021,7 +149038,7 @@ func X__year_to_secs(tls *TLS, year int64, is_leap uintptr) (r int64) {
var centuries, cycles, leaps, leaps1, rem, y int32
var _ /* dummy at bp+0 */ int32
_, _, _, _, _, _ = centuries, cycles, leaps, leaps1, rem, y
- if uint64(year)-uint64(2) <= uint64(136) {
+ if Uint64FromInt64(year)-uint64(2) <= uint64(136) {
y = int32(year)
leaps = (y - int32(68)) >> int32(2)
if !((y-Int32FromInt32(68))&Int32FromInt32(3) != 0) {
@@ -149070,7 +149087,7 @@ func X__year_to_secs(tls *TLS, year int64, is_leap uintptr) (r int64) {
*(*int32)(unsafe.Pointer(is_leap)) = 0
leaps1 = 0
} else {
- leaps1 = int32(uint32(rem) / uint32(4))
+ leaps1 = Int32FromUint32(Uint32FromInt32(rem) / uint32(4))
rem = int32(uint32(rem) % Uint32FromUint32(4))
*(*int32)(unsafe.Pointer(is_leap)) = BoolInt32(!(rem != 0))
}
@@ -149154,7 +149171,7 @@ func Xclock_getcpuclockid(tls *TLS, pid Tpid_t, clk uintptr) (r int32) {
var ret int32
var _ /* ts at bp+0 */ Ttimespec
_, _ = id, ret
- id = int32(uint32(-pid-Int32FromInt32(1))*uint32(8) + uint32(2))
+ id = Int32FromUint32(Uint32FromInt32(-pid-Int32FromInt32(1))*uint32(8) + uint32(2))
ret = int32(X__syscall2(tls, int64(SYS_clock_getres), int64(id), int64(bp)))
if ret == -int32(EINVAL) {
ret = -int32(ESRCH)
@@ -149173,7 +149190,7 @@ func Xclock_getres(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) {
}
/* If reaching this point, it's a 64-bit arch or time64-only
* 32-bit arch and we can get result directly into timespec. */
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_clock_getres), int64(clk), int64(ts)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clock_getres), int64(clk), int64(ts)))))
}
func X__clock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r1 int32) {
@@ -149192,7 +149209,7 @@ func X__clock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r1 int32) {
}
r = -int32(EINVAL)
}
- return int32(X__syscall_ret(tls, uint64(r)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r)))
}
func Xclock_gettime(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) {
@@ -149230,7 +149247,7 @@ func Xclock_settime(tls *TLS, clk Tclockid_t, ts uintptr) (r int32) {
trc("tls=%v clk=%v ts=%v, (%v:)", tls, clk, ts, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_clock_settime), int64(clk), int64(ts)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_clock_settime), int64(clk), int64(ts)))))
}
func Xctime(tls *TLS, t uintptr) (r uintptr) {
@@ -149293,7 +149310,7 @@ func Xftime(tls *TLS, tp uintptr) (r int32) {
_ = v1
Xclock_gettime(tls, CLOCK_REALTIME, bp)
(*Ttimeb)(unsafe.Pointer(tp)).Ftime = (*(*Ttimespec)(unsafe.Pointer(bp))).Ftv_sec
- (*Ttimeb)(unsafe.Pointer(tp)).Fmillitm = uint16((*(*Ttimespec)(unsafe.Pointer(bp))).Ftv_nsec / int64(1000000))
+ (*Ttimeb)(unsafe.Pointer(tp)).Fmillitm = Uint16FromInt64((*(*Ttimespec)(unsafe.Pointer(bp))).Ftv_nsec / int64(1000000))
v1 = Int16FromInt32(0)
(*Ttimeb)(unsafe.Pointer(tp)).Fdstflag = v1
(*Ttimeb)(unsafe.Pointer(tp)).Ftimezone = v1
@@ -149495,7 +149512,7 @@ func Xnanosleep(tls *TLS, req uintptr, rem uintptr) (r int32) {
trc("tls=%v req=%v rem=%v, (%v:)", tls, req, rem, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(-X__clock_nanosleep(tls, CLOCK_REALTIME, 0, req, rem))))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(-X__clock_nanosleep(tls, CLOCK_REALTIME, 0, req, rem))))
}
func _is_leap(tls *TLS, y int32) (r int32) {
@@ -149510,10 +149527,10 @@ func _is_leap(tls *TLS, y int32) (r int32) {
func _week_num(tls *TLS, tm uintptr) (r int32) {
var dec31, jan1, val int32
_, _, _ = dec31, jan1, val
- val = int32((uint32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - (uint32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(6))%uint32(7)) / uint32(7))
+ val = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(6))%uint32(7)) / uint32(7))
/* If 1 Jan is just 1-3 days past Monday,
* the previous week is also in this year. */
- if (uint32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(371)-uint32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday)-uint32(2))%uint32(7) <= uint32(2) {
+ if (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(371)-Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday)-uint32(2))%uint32(7) <= uint32(2) {
val++
}
if !(val != 0) {
@@ -149521,7 +149538,7 @@ func _week_num(tls *TLS, tm uintptr) (r int32) {
/* If 31 December of prev year a Thursday,
* or Friday of a leap year, then the
* prev year has 53 weeks. */
- dec31 = int32((uint32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + uint32(7) - uint32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) - uint32(1)) % uint32(7))
+ dec31 = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + uint32(7) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) - uint32(1)) % uint32(7))
if dec31 == int32(4) || dec31 == int32(5) && _is_leap(tls, (*Ttm)(unsafe.Pointer(tm)).Ftm_year%int32(400)-int32(1)) != 0 {
val++
}
@@ -149530,7 +149547,7 @@ func _week_num(tls *TLS, tm uintptr) (r int32) {
/* If 1 January is not a Thursday, and not
* a Wednesday of a leap year, then this
* year has only 52 weeks. */
- jan1 = int32((uint32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + uint32(371) - uint32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday)) % uint32(7))
+ jan1 = Int32FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) + uint32(371) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday)) % uint32(7))
if jan1 != int32(4) && (jan1 != int32(3) || !(_is_leap(tls, (*Ttm)(unsafe.Pointer(tm)).Ftm_year) != 0)) {
val = int32(1)
}
@@ -149556,13 +149573,13 @@ func X__strftime_fmt_1(tls *TLS, s uintptr, l uintptr, f int32, tm uintptr, loc
def_pad = int32('0')
switch f {
case int32('a'):
- if uint32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) > uint32(6) {
+ if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) > uint32(6) {
goto string
}
item = int32(ABDAY_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday
goto nl_strcat
case int32('A'):
- if uint32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) > uint32(6) {
+ if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday) > uint32(6) {
goto string
}
item = int32(DAY_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_wday
@@ -149570,13 +149587,13 @@ func X__strftime_fmt_1(tls *TLS, s uintptr, l uintptr, f int32, tm uintptr, loc
case int32('h'):
fallthrough
case int32('b'):
- if uint32((*Ttm)(unsafe.Pointer(tm)).Ftm_mon) > uint32(11) {
+ if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_mon) > uint32(11) {
goto string
}
item = int32(ABMON_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon
goto nl_strcat
case int32('B'):
- if uint32((*Ttm)(unsafe.Pointer(tm)).Ftm_mon) > uint32(11) {
+ if Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_mon) > uint32(11) {
goto string
}
item = int32(MON_1) + (*Ttm)(unsafe.Pointer(tm)).Ftm_mon
@@ -149675,7 +149692,7 @@ func X__strftime_fmt_1(tls *TLS, s uintptr, l uintptr, f int32, tm uintptr, loc
d++
v5 = fmt
fmt++
- *(*uint8)(unsafe.Pointer(v4)) = uint8(Xtolower(tls, int32(*(*uint8)(unsafe.Pointer(v5)))))
+ *(*uint8)(unsafe.Pointer(v4)) = Uint8FromInt32(Xtolower(tls, Int32FromUint8(*(*uint8)(unsafe.Pointer(v5)))))
goto _3
_3:
;
@@ -149711,10 +149728,10 @@ func X__strftime_fmt_1(tls *TLS, s uintptr, l uintptr, f int32, tm uintptr, loc
width = int32(1)
goto number
case int32('U'):
- val = int64((uint32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - uint32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)) / uint32(7))
+ val = Int64FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)) / uint32(7))
goto number
case int32('W'):
- val = int64((uint32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - (uint32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(6))%uint32(7)) / uint32(7))
+ val = Int64FromUint32((Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_yday) + uint32(7) - (Uint32FromInt32((*Ttm)(unsafe.Pointer(tm)).Ftm_wday)+uint32(6))%uint32(7)) / uint32(7))
goto number
case int32('V'):
val = int64(_week_num(tls, tm))
@@ -149738,7 +149755,7 @@ func X__strftime_fmt_1(tls *TLS, s uintptr, l uintptr, f int32, tm uintptr, loc
case int32('Y'):
val = int64((*Ttm)(unsafe.Pointer(tm)).Ftm_year) + int64(1900)
if val >= int64(10000) {
- *(*Tsize_t)(unsafe.Pointer(l)) = uint64(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1841, VaList(bp+8, val)))
+ *(*Tsize_t)(unsafe.Pointer(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1841, VaList(bp+8, val)))
return s
}
width = int32(4)
@@ -149748,7 +149765,7 @@ func X__strftime_fmt_1(tls *TLS, s uintptr, l uintptr, f int32, tm uintptr, loc
*(*Tsize_t)(unsafe.Pointer(l)) = uint64(0)
return __ccgo_ts
}
- *(*Tsize_t)(unsafe.Pointer(l)) = uint64(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1847, VaList(bp+8, (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff/int64(3600)*int64(100)+(*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff%int64(3600)/int64(60))))
+ *(*Tsize_t)(unsafe.Pointer(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1847, VaList(bp+8, (*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff/int64(3600)*int64(100)+(*Ttm)(unsafe.Pointer(tm)).F__tm_gmtoff%int64(3600)/int64(60))))
return s
case int32('Z'):
if (*Ttm)(unsafe.Pointer(tm)).Ftm_isdst < 0 {
@@ -149773,13 +149790,13 @@ number:
}
switch v7 {
case int32('-'):
- *(*Tsize_t)(unsafe.Pointer(l)) = uint64(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1854, VaList(bp+8, val)))
+ *(*Tsize_t)(unsafe.Pointer(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1854, VaList(bp+8, val)))
case int32('_'):
- *(*Tsize_t)(unsafe.Pointer(l)) = uint64(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1859, VaList(bp+8, width, val)))
+ *(*Tsize_t)(unsafe.Pointer(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1859, VaList(bp+8, width, val)))
case int32('0'):
fallthrough
default:
- *(*Tsize_t)(unsafe.Pointer(l)) = uint64(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1865, VaList(bp+8, width, val)))
+ *(*Tsize_t)(unsafe.Pointer(l)) = Uint64FromInt32(Xsnprintf(tls, s, uint64(100), __ccgo_ts+1865, VaList(bp+8, width, val)))
break
}
return s
@@ -149831,7 +149848,7 @@ func X__strftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tl
*(*uint8)(unsafe.Pointer(s + uintptr(l))) = uint8(0)
return l
}
- if int32(*(*uint8)(unsafe.Pointer(f))) != int32('%') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(f))) != int32('%') {
v2 = l
l++
*(*uint8)(unsafe.Pointer(s + uintptr(v2))) = *(*uint8)(unsafe.Pointer(f))
@@ -149839,12 +149856,12 @@ func X__strftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tl
}
f++
pad = 0
- if int32(*(*uint8)(unsafe.Pointer(f))) == int32('-') || int32(*(*uint8)(unsafe.Pointer(f))) == int32('_') || int32(*(*uint8)(unsafe.Pointer(f))) == int32('0') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(f))) == int32('-') || Int32FromUint8(*(*uint8)(unsafe.Pointer(f))) == int32('_') || Int32FromUint8(*(*uint8)(unsafe.Pointer(f))) == int32('0') {
v3 = f
f++
- pad = int32(*(*uint8)(unsafe.Pointer(v3)))
+ pad = Int32FromUint8(*(*uint8)(unsafe.Pointer(v3)))
}
- v4 = BoolInt32(int32(*(*uint8)(unsafe.Pointer(f))) == Int32FromUint8('+'))
+ v4 = BoolInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(f))) == Int32FromUint8('+'))
plus = v4
if v4 != 0 {
f++
@@ -149855,7 +149872,7 @@ func X__strftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tl
width = uint64(0)
*(*uintptr)(unsafe.Pointer(bp + 112)) = f
}
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 112))))) == int32('C') || int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 112))))) == int32('F') || int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 112))))) == int32('G') || int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 112))))) == int32('Y') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 112))))) == int32('C') || Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 112))))) == int32('F') || Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 112))))) == int32('G') || Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 112))))) == int32('Y') {
if !(width != 0) && *(*uintptr)(unsafe.Pointer(bp + 112)) != f {
width = uint64(1)
}
@@ -149863,10 +149880,10 @@ func X__strftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tl
width = uint64(0)
}
f = *(*uintptr)(unsafe.Pointer(bp + 112))
- if int32(*(*uint8)(unsafe.Pointer(f))) == int32('E') || int32(*(*uint8)(unsafe.Pointer(f))) == int32('O') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(f))) == int32('E') || Int32FromUint8(*(*uint8)(unsafe.Pointer(f))) == int32('O') {
f++
}
- t = X__strftime_fmt_1(tls, bp+8, bp, int32(*(*uint8)(unsafe.Pointer(f))), tm, loc, pad)
+ t = X__strftime_fmt_1(tls, bp+8, bp, Int32FromUint8(*(*uint8)(unsafe.Pointer(f))), tm, loc, pad)
if !(t != 0) {
break
}
@@ -149874,12 +149891,12 @@ func X__strftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tl
/* Trim off any sign and leading zeros, then
* count remaining digits to determine behavior
* for the + flag. */
- if int32(*(*uint8)(unsafe.Pointer(t))) == int32('+') || int32(*(*uint8)(unsafe.Pointer(t))) == int32('-') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(t))) == int32('+') || Int32FromUint8(*(*uint8)(unsafe.Pointer(t))) == int32('-') {
t++
*(*Tsize_t)(unsafe.Pointer(bp))--
}
for {
- if !(int32(*(*uint8)(unsafe.Pointer(t))) == int32('0') && uint32(int32(*(*uint8)(unsafe.Pointer(t + 1)))-int32('0')) < uint32(10)) {
+ if !(Int32FromUint8(*(*uint8)(unsafe.Pointer(t))) == int32('0') && Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(t + 1)))-int32('0')) < uint32(10)) {
break
}
goto _5
@@ -149893,7 +149910,7 @@ func X__strftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tl
}
d = uint64(0)
for {
- if !(uint32(int32(*(*uint8)(unsafe.Pointer(t + uintptr(d))))-int32('0')) < uint32(10)) {
+ if !(Uint32FromInt32(Int32FromUint8(*(*uint8)(unsafe.Pointer(t + uintptr(d))))-int32('0')) < uint32(10)) {
break
}
goto _6
@@ -149908,13 +149925,13 @@ func X__strftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tl
width--
} else {
if v9 = plus != 0; v9 {
- if int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 112))))) == int32('C') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 112))))) == int32('C') {
v8 = int32(3)
} else {
v8 = int32(5)
}
}
- if v9 && d+(width-*(*Tsize_t)(unsafe.Pointer(bp))) >= uint64(v8) {
+ if v9 && d+(width-*(*Tsize_t)(unsafe.Pointer(bp))) >= Uint64FromInt32(v8) {
v10 = l
l++
*(*uint8)(unsafe.Pointer(s + uintptr(v10))) = uint8('+')
@@ -149989,16 +150006,16 @@ func Xstrptime(tls *TLS, s uintptr, f uintptr, tm uintptr) (r uintptr) {
*(*int32)(unsafe.Pointer(bp + 4)) = 0
*(*int32)(unsafe.Pointer(bp + 8)) = 0
for *(*uint8)(unsafe.Pointer(f)) != 0 {
- if int32(*(*uint8)(unsafe.Pointer(f))) != int32('%') {
- v1 = int32(*(*uint8)(unsafe.Pointer(f)))
- v2 = BoolInt32(v1 == int32(' ') || uint32(v1)-uint32('\t') < uint32(5))
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(f))) != int32('%') {
+ v1 = Int32FromUint8(*(*uint8)(unsafe.Pointer(f)))
+ v2 = BoolInt32(v1 == int32(' ') || Uint32FromInt32(v1)-uint32('\t') < uint32(5))
goto _3
_3:
if v2 != 0 {
for {
if v8 = *(*uint8)(unsafe.Pointer(s)) != 0; v8 {
- v5 = int32(*(*uint8)(unsafe.Pointer(s)))
- v6 = BoolInt32(v5 == int32(' ') || uint32(v5)-uint32('\t') < uint32(5))
+ v5 = Int32FromUint8(*(*uint8)(unsafe.Pointer(s)))
+ v6 = BoolInt32(v5 == int32(' ') || Uint32FromInt32(v5)-uint32('\t') < uint32(5))
goto _7
_7:
}
@@ -150011,7 +150028,7 @@ func Xstrptime(tls *TLS, s uintptr, f uintptr, tm uintptr) (r uintptr) {
s++
}
} else {
- if int32(*(*uint8)(unsafe.Pointer(s))) != int32(*(*uint8)(unsafe.Pointer(f))) {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) != Int32FromUint8(*(*uint8)(unsafe.Pointer(f))) {
return uintptr(0)
} else {
s++
@@ -150021,11 +150038,11 @@ func Xstrptime(tls *TLS, s uintptr, f uintptr, tm uintptr) (r uintptr) {
continue
}
f++
- if int32(*(*uint8)(unsafe.Pointer(f))) == int32('+') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(f))) == int32('+') {
f++
}
if BoolInt32(uint32(*(*uint8)(unsafe.Pointer(f)))-uint32('0') < uint32(10)) != 0 {
- w = int32(Xstrtoul(tls, f, bp+16, int32(10)))
+ w = Int32FromUint64(Xstrtoul(tls, f, bp+16, int32(10)))
f = *(*uintptr)(unsafe.Pointer(bp + 16))
} else {
w = -int32(1)
@@ -150033,7 +150050,7 @@ func Xstrptime(tls *TLS, s uintptr, f uintptr, tm uintptr) (r uintptr) {
adj = 0
v9 = f
f++
- switch int32(*(*uint8)(unsafe.Pointer(v9))) {
+ switch Int32FromUint8(*(*uint8)(unsafe.Pointer(v9))) {
case int32('A'):
goto _10
case int32('a'):
@@ -150185,8 +150202,8 @@ func Xstrptime(tls *TLS, s uintptr, f uintptr, tm uintptr) (r uintptr) {
_44:
;
if v48 = *(*uint8)(unsafe.Pointer(s)) != 0; v48 {
- v45 = int32(*(*uint8)(unsafe.Pointer(s)))
- v46 = BoolInt32(v45 == int32(' ') || uint32(v45)-uint32('\t') < uint32(5))
+ v45 = Int32FromUint8(*(*uint8)(unsafe.Pointer(s)))
+ v46 = BoolInt32(v45 == int32(' ') || Uint32FromInt32(v45)-uint32('\t') < uint32(5))
goto _47
_47:
}
@@ -150295,7 +150312,7 @@ func Xstrptime(tls *TLS, s uintptr, f uintptr, tm uintptr) (r uintptr) {
;
v49 = s
s++
- if int32(*(*uint8)(unsafe.Pointer(v49))) != int32('%') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(v49))) != int32('%') {
return uintptr(0)
}
goto _41
@@ -150316,28 +150333,28 @@ func Xstrptime(tls *TLS, s uintptr, f uintptr, tm uintptr) (r uintptr) {
}
v51 = s
s++
- *(*int32)(unsafe.Pointer(dest)) = *(*int32)(unsafe.Pointer(dest))*int32(10) + int32(*(*uint8)(unsafe.Pointer(v51))) - int32('0')
+ *(*int32)(unsafe.Pointer(dest)) = *(*int32)(unsafe.Pointer(dest))*int32(10) + Int32FromUint8(*(*uint8)(unsafe.Pointer(v51))) - int32('0')
goto _50
_50:
;
i *= int32(10)
}
- if uint32(*(*int32)(unsafe.Pointer(dest))-min) >= uint32(range1) {
+ if Uint32FromInt32(*(*int32)(unsafe.Pointer(dest))-min) >= Uint32FromInt32(range1) {
return uintptr(0)
}
*(*int32)(unsafe.Pointer(dest)) -= adj
switch int64(dest) - int64(tm) {
- case int64(uint64(UintptrFromInt32(0) + 28)):
+ case Int64FromUint64(uint64(UintptrFromInt32(0) + 28)):
}
goto update
goto numeric_digits
numeric_digits:
;
neg = 0
- if int32(*(*uint8)(unsafe.Pointer(s))) == int32('+') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('+') {
s++
} else {
- if int32(*(*uint8)(unsafe.Pointer(s))) == int32('-') {
+ if Int32FromUint8(*(*uint8)(unsafe.Pointer(s))) == int32('-') {
neg = int32(1)
s++
}
@@ -150354,7 +150371,7 @@ func Xstrptime(tls *TLS, s uintptr, f uintptr, tm uintptr) (r uintptr) {
}
v54 = s
s++
- *(*int32)(unsafe.Pointer(dest)) = *(*int32)(unsafe.Pointer(dest))*int32(10) + int32(*(*uint8)(unsafe.Pointer(v54))) - int32('0')
+ *(*int32)(unsafe.Pointer(dest)) = *(*int32)(unsafe.Pointer(dest))*int32(10) + Int32FromUint8(*(*uint8)(unsafe.Pointer(v54))) - int32('0')
goto _52
_52:
;
@@ -150475,9 +150492,9 @@ func Xtimer_getoverrun(tls *TLS, t Ttimer_t) (r int32) {
_ = td
if int64(t) < 0 {
td = uintptr(uint64(t) << Int32FromInt32(1))
- t = uintptr(uint64(AtomicLoadPInt32(td+148) & Int32FromInt32(INT_MAX)))
+ t = uintptr(Uint64FromInt32(AtomicLoadPInt32(td+148) & Int32FromInt32(INT_MAX)))
}
- return int32(X__syscall_ret(tls, uint64(X__syscall1(tls, int64(SYS_timer_getoverrun), int64(t)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_timer_getoverrun), int64(t)))))
}
func Xtimer_gettime(tls *TLS, t Ttimer_t, val uintptr) (r int32) {
@@ -150489,9 +150506,9 @@ func Xtimer_gettime(tls *TLS, t Ttimer_t, val uintptr) (r int32) {
_ = td
if int64(t) < 0 {
td = uintptr(uint64(t) << Int32FromInt32(1))
- t = uintptr(uint64(AtomicLoadPInt32(td+148) & Int32FromInt32(INT_MAX)))
+ t = uintptr(Uint64FromInt32(AtomicLoadPInt32(td+148) & Int32FromInt32(INT_MAX)))
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_timer_gettime), int64(t), int64(val)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_timer_gettime), int64(t), int64(val)))))
}
func Xtimer_settime(tls *TLS, t Ttimer_t, flags int32, val uintptr, old uintptr) (r int32) {
@@ -150503,9 +150520,9 @@ func Xtimer_settime(tls *TLS, t Ttimer_t, flags int32, val uintptr, old uintptr)
_ = td
if int64(t) < 0 {
td = uintptr(uint64(t) << Int32FromInt32(1))
- t = uintptr(uint64(AtomicLoadPInt32(td+148) & Int32FromInt32(INT_MAX)))
+ t = uintptr(Uint64FromInt32(AtomicLoadPInt32(td+148) & Int32FromInt32(INT_MAX)))
}
- return int32(X__syscall_ret(tls, uint64(X__syscall4(tls, int64(SYS_timer_settime), int64(t), int64(flags), int64(val), int64(old)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_timer_settime), int64(t), int64(flags), int64(val), int64(old)))))
}
type Ttms = struct {
@@ -150612,7 +150629,7 @@ func X__wcsftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tl
if *(*Twchar_t)(unsafe.Pointer(f)) == uint32('-') || *(*Twchar_t)(unsafe.Pointer(f)) == uint32('_') || *(*Twchar_t)(unsafe.Pointer(f)) == uint32('0') {
v3 = f
f += 4
- pad = int32(*(*Twchar_t)(unsafe.Pointer(v3)))
+ pad = Int32FromUint32(*(*Twchar_t)(unsafe.Pointer(v3)))
}
v4 = BoolInt32(*(*Twchar_t)(unsafe.Pointer(f)) == Uint32FromUint8('+'))
plus = v4
@@ -150631,12 +150648,12 @@ func X__wcsftime_l(tls *TLS, s uintptr, n Tsize_t, f uintptr, tm uintptr, loc Tl
if *(*Twchar_t)(unsafe.Pointer(f)) == uint32('E') || *(*Twchar_t)(unsafe.Pointer(f)) == uint32('O') {
f += 4
}
- t_mb = X__strftime_fmt_1(tls, bp+8, bp, int32(*(*Twchar_t)(unsafe.Pointer(f))), tm, loc, pad)
+ t_mb = X__strftime_fmt_1(tls, bp+8, bp, Int32FromUint32(*(*Twchar_t)(unsafe.Pointer(f))), tm, loc, pad)
if !(t_mb != 0) {
break
}
*(*Tsize_t)(unsafe.Pointer(bp)) = Xmbstowcs(tls, bp+108, t_mb, Uint64FromInt64(400)/Uint64FromInt64(4))
- if *(*Tsize_t)(unsafe.Pointer(bp)) == uint64(-Int32FromInt32(1)) {
+ if *(*Tsize_t)(unsafe.Pointer(bp)) == Uint64FromInt32(-Int32FromInt32(1)) {
return uint64(0)
}
t = bp + 108
@@ -150725,7 +150742,7 @@ func Xaccess(tls *TLS, filename uintptr, amode int32) (r int32) {
trc("tls=%v filename=%v amode=%v, (%v:)", tls, filename, amode, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall4(tls, int64(SYS_faccessat), int64(-Int32FromInt32(100)), int64(filename), int64(amode), int64(Int32FromInt32(0))))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_faccessat), int64(-Int32FromInt32(100)), int64(filename), int64(amode), int64(Int32FromInt32(0))))))
}
func Xacct(tls *TLS, filename uintptr) (r int32) {
@@ -150733,7 +150750,7 @@ func Xacct(tls *TLS, filename uintptr) (r int32) {
trc("tls=%v filename=%v, (%v:)", tls, filename, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall1(tls, int64(SYS_acct), int64(filename)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_acct), int64(filename)))))
}
func Xalarm(tls *TLS, seconds uint32) (r uint32) {
@@ -150747,12 +150764,12 @@ func Xalarm(tls *TLS, seconds uint32) (r uint32) {
var _ /* old at bp+32 */ Titimerval
*(*Titimerval)(unsafe.Pointer(bp)) = Titimerval{
Fit_value: Ttimeval{
- Ftv_sec: int64(seconds),
+ Ftv_sec: Int64FromUint32(seconds),
},
}
*(*Titimerval)(unsafe.Pointer(bp + 32)) = Titimerval{}
Xsetitimer(tls, ITIMER_REAL, bp, bp+32)
- return uint32((*(*Titimerval)(unsafe.Pointer(bp + 32))).Fit_value.Ftv_sec + BoolInt64(!!((*(*Titimerval)(unsafe.Pointer(bp + 32))).Fit_value.Ftv_usec != 0)))
+ return Uint32FromInt64((*(*Titimerval)(unsafe.Pointer(bp + 32))).Fit_value.Ftv_sec + BoolInt64(!!((*(*Titimerval)(unsafe.Pointer(bp + 32))).Fit_value.Ftv_usec != 0)))
}
func Xchdir(tls *TLS, path uintptr) (r int32) {
@@ -150760,7 +150777,7 @@ func Xchdir(tls *TLS, path uintptr) (r int32) {
trc("tls=%v path=%v, (%v:)", tls, path, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall1(tls, int64(SYS_chdir), int64(path)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_chdir), int64(path)))))
}
func Xchown(tls *TLS, path uintptr, uid Tuid_t, gid Tgid_t) (r int32) {
@@ -150768,7 +150785,7 @@ func Xchown(tls *TLS, path uintptr, uid Tuid_t, gid Tgid_t) (r int32) {
trc("tls=%v path=%v uid=%v gid=%v, (%v:)", tls, path, uid, gid, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall5(tls, int64(SYS_fchownat), int64(-Int32FromInt32(100)), int64(path), int64(uid), int64(gid), int64(Int32FromInt32(0))))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fchownat), int64(-Int32FromInt32(100)), int64(path), Int64FromUint32(uid), Int64FromUint32(gid), int64(Int32FromInt32(0))))))
}
func _dummy12(tls *TLS, fd int32) (r int32) {
@@ -150787,7 +150804,7 @@ func Xclose(tls *TLS, fd int32) (r1 int32) {
if r == -int32(EINTR) {
r = 0
}
- return int32(X__syscall_ret(tls, uint64(r)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r)))
}
func Xctermid(tls *TLS, s uintptr) (r uintptr) {
@@ -150810,7 +150827,7 @@ func Xdup(tls *TLS, fd int32) (r int32) {
trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall1(tls, int64(SYS_dup), int64(fd)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_dup), int64(fd)))))
}
func Xdup2(tls *TLS, old int32, new1 int32) (r1 int32) {
@@ -150834,7 +150851,7 @@ func Xdup2(tls *TLS, old int32, new1 int32) (r1 int32) {
}
}
}
- return int32(X__syscall_ret(tls, uint64(r)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r)))
}
func X__dup3(tls *TLS, old int32, new1 int32, flags int32) (r1 int32) {
@@ -150851,7 +150868,7 @@ func X__dup3(tls *TLS, old int32, new1 int32, flags int32) (r1 int32) {
break
}
}
- return int32(X__syscall_ret(tls, uint64(r)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(r)))
}
func Xdup3(tls *TLS, old int32, new1 int32, flags int32) (r int32) {
@@ -150880,7 +150897,7 @@ func _checker(tls *TLS, p uintptr) (r int32) {
X__syscall1(tls, int64(SYS_exit), int64(Int32FromInt32(1)))
}
*(*int32)(unsafe.Pointer(bp)) = int32(X__syscall4(tls, int64(SYS_faccessat), int64((*Tctx1)(unsafe.Pointer(c)).Ffd), int64((*Tctx1)(unsafe.Pointer(c)).Ffilename), int64((*Tctx1)(unsafe.Pointer(c)).Famode), int64(Int32FromInt32(0))))
- X__syscall3(tls, int64(SYS_write), int64((*Tctx1)(unsafe.Pointer(c)).Fp), int64(bp), int64(Uint64FromInt64(4)))
+ X__syscall3(tls, int64(SYS_write), int64((*Tctx1)(unsafe.Pointer(c)).Fp), int64(bp), Int64FromUint64(Uint64FromInt64(4)))
return 0
}
@@ -150894,13 +150911,13 @@ func Xfaccessat(tls *TLS, fd int32, filename uintptr, amode int32, flag int32) (
if flag != 0 {
ret = int32(X__syscall4(tls, int64(SYS_faccessat2), int64(fd), int64(filename), int64(amode), int64(flag)))
if ret != -int32(ENOSYS) {
- return int32(X__syscall_ret(tls, uint64(ret)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(ret)))
}
}
if flag & ^Int32FromInt32(AT_EACCESS) != 0 {
- return int32(X__syscall_ret(tls, uint64(-Int32FromInt32(EINVAL))))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL))))
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_faccessat), int64(fd), int64(filename), int64(amode)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_faccessat), int64(fd), int64(filename), int64(amode)))))
}
func Xfchdir(tls *TLS, fd int32) (r int32) {
@@ -150915,10 +150932,10 @@ func Xfchdir(tls *TLS, fd int32) (r int32) {
_ = ret
ret = int32(X__syscall1(tls, int64(SYS_fchdir), int64(fd)))
if ret != -int32(EBADF) || X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) < 0 {
- return int32(X__syscall_ret(tls, uint64(ret)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(ret)))
}
- X__procfdname(tls, bp, uint32(fd))
- return int32(X__syscall_ret(tls, uint64(X__syscall1(tls, int64(SYS_chdir), int64(bp)))))
+ X__procfdname(tls, bp, Uint32FromInt32(fd))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_chdir), int64(bp)))))
}
func Xfchown(tls *TLS, fd int32, uid Tuid_t, gid Tgid_t) (r int32) {
@@ -150931,12 +150948,12 @@ func Xfchown(tls *TLS, fd int32, uid Tuid_t, gid Tgid_t) (r int32) {
var ret int32
var _ /* buf at bp+0 */ [27]uint8
_ = ret
- ret = int32(X__syscall3(tls, int64(SYS_fchown), int64(fd), int64(uid), int64(gid)))
+ ret = int32(X__syscall3(tls, int64(SYS_fchown), int64(fd), Int64FromUint32(uid), Int64FromUint32(gid)))
if ret != -int32(EBADF) || X__syscall2(tls, int64(SYS_fcntl), int64(fd), int64(Int32FromInt32(F_GETFD))) < 0 {
- return int32(X__syscall_ret(tls, uint64(ret)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(ret)))
}
- X__procfdname(tls, bp, uint32(fd))
- return int32(X__syscall_ret(tls, uint64(X__syscall5(tls, int64(SYS_fchownat), int64(-Int32FromInt32(100)), int64(bp), int64(uid), int64(gid), int64(Int32FromInt32(0))))))
+ X__procfdname(tls, bp, Uint32FromInt32(fd))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fchownat), int64(-Int32FromInt32(100)), int64(bp), Int64FromUint32(uid), Int64FromUint32(gid), int64(Int32FromInt32(0))))))
}
func Xfchownat(tls *TLS, fd int32, path uintptr, uid Tuid_t, gid Tgid_t, flag int32) (r int32) {
@@ -150944,7 +150961,7 @@ func Xfchownat(tls *TLS, fd int32, path uintptr, uid Tuid_t, gid Tgid_t, flag in
trc("tls=%v fd=%v path=%v uid=%v gid=%v flag=%v, (%v:)", tls, fd, path, uid, gid, flag, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall5(tls, int64(SYS_fchownat), int64(fd), int64(path), int64(uid), int64(gid), int64(flag)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fchownat), int64(fd), int64(path), Int64FromUint32(uid), Int64FromUint32(gid), int64(flag)))))
}
func Xfdatasync(tls *TLS, fd int32) (r int32) {
@@ -150952,7 +150969,7 @@ func Xfdatasync(tls *TLS, fd int32) (r int32) {
trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_fdatasync), int64(fd), 0, 0, 0, 0, 0))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_fdatasync), int64(fd), 0, 0, 0, 0, 0))))
}
func Xfsync(tls *TLS, fd int32) (r int32) {
@@ -150960,7 +150977,7 @@ func Xfsync(tls *TLS, fd int32) (r int32) {
trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_fsync), int64(fd), 0, 0, 0, 0, 0))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_fsync), int64(fd), 0, 0, 0, 0, 0))))
}
func Xftruncate(tls *TLS, fd int32, length Toff_t) (r int32) {
@@ -150968,7 +150985,7 @@ func Xftruncate(tls *TLS, fd int32, length Toff_t) (r int32) {
trc("tls=%v fd=%v length=%v, (%v:)", tls, fd, length, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_ftruncate), int64(fd), length))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_ftruncate), int64(fd), length))))
}
func Xgetcwd(tls *TLS, buf uintptr, size Tsize_t) (r uintptr) {
@@ -150987,7 +151004,7 @@ func Xgetcwd(tls *TLS, buf uintptr, size Tsize_t) (r uintptr) {
} else {
v2 = int32(PATH_MAX)
}
- v1 = uint64(v2)
+ v1 = Uint64FromInt32(v2)
tmp = Xrealloc(tls, tmp, v1)
if !(buf != 0) {
buf = tmp
@@ -150998,11 +151015,11 @@ func Xgetcwd(tls *TLS, buf uintptr, size Tsize_t) (r uintptr) {
return uintptr(0)
}
}
- ret = X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_getcwd), int64(buf), int64(size))))
+ ret = X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getcwd), int64(buf), Int64FromUint64(size))))
if ret < 0 {
return uintptr(0)
}
- if ret == 0 || int32(*(*uint8)(unsafe.Pointer(buf))) != int32('/') {
+ if ret == 0 || Int32FromUint8(*(*uint8)(unsafe.Pointer(buf))) != int32('/') {
*(*int32)(unsafe.Pointer(X__errno_location(tls))) = int32(ENOENT)
return uintptr(0)
}
@@ -151019,7 +151036,7 @@ func Xgetegid(tls *TLS) (r Tgid_t) {
trc("tls=%v, (%v:)", tls, origin(2))
defer func() { trc("-> %v", r) }()
}
- return uint32(X__syscall0(tls, int64(SYS_getegid)))
+ return Uint32FromInt64(X__syscall0(tls, int64(SYS_getegid)))
}
func Xgeteuid(tls *TLS) (r Tuid_t) {
@@ -151027,7 +151044,7 @@ func Xgeteuid(tls *TLS) (r Tuid_t) {
trc("tls=%v, (%v:)", tls, origin(2))
defer func() { trc("-> %v", r) }()
}
- return uint32(X__syscall0(tls, int64(SYS_geteuid)))
+ return Uint32FromInt64(X__syscall0(tls, int64(SYS_geteuid)))
}
func Xgetgid(tls *TLS) (r Tgid_t) {
@@ -151035,7 +151052,7 @@ func Xgetgid(tls *TLS) (r Tgid_t) {
trc("tls=%v, (%v:)", tls, origin(2))
defer func() { trc("-> %v", r) }()
}
- return uint32(X__syscall0(tls, int64(SYS_getgid)))
+ return Uint32FromInt64(X__syscall0(tls, int64(SYS_getgid)))
}
func Xgetgroups(tls *TLS, count int32, list uintptr) (r int32) {
@@ -151043,7 +151060,7 @@ func Xgetgroups(tls *TLS, count int32, list uintptr) (r int32) {
trc("tls=%v count=%v list=%v, (%v:)", tls, count, list, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_getgroups), int64(count), int64(list)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_getgroups), int64(count), int64(list)))))
}
func Xgethostname(tls *TLS, name uintptr, len1 Tsize_t) (r int32) {
@@ -151115,7 +151132,7 @@ func Xgetpgid(tls *TLS, pid Tpid_t) (r Tpid_t) {
trc("tls=%v pid=%v, (%v:)", tls, pid, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall1(tls, int64(SYS_getpgid), int64(pid)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_getpgid), int64(pid)))))
}
func Xgetpgrp(tls *TLS) (r Tpid_t) {
@@ -151147,7 +151164,7 @@ func Xgetsid(tls *TLS, pid Tpid_t) (r Tpid_t) {
trc("tls=%v pid=%v, (%v:)", tls, pid, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall1(tls, int64(SYS_getsid), int64(pid)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall1(tls, int64(SYS_getsid), int64(pid)))))
}
func Xgetuid(tls *TLS) (r Tuid_t) {
@@ -151155,7 +151172,7 @@ func Xgetuid(tls *TLS) (r Tuid_t) {
trc("tls=%v, (%v:)", tls, origin(2))
defer func() { trc("-> %v", r) }()
}
- return uint32(X__syscall0(tls, int64(SYS_getuid)))
+ return Uint32FromInt64(X__syscall0(tls, int64(SYS_getuid)))
}
func Xisatty(tls *TLS, fd int32) (r1 int32) {
@@ -151168,7 +151185,7 @@ func Xisatty(tls *TLS, fd int32) (r1 int32) {
var r uint64
var _ /* wsz at bp+0 */ Twinsize
_ = r
- r = uint64(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCGWINSZ)), int64(bp)))))
+ r = Uint64FromInt64(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_ioctl), int64(fd), int64(Int32FromInt32(TIOCGWINSZ)), int64(bp)))))
if r == uint64(0) {
return int32(1)
}
@@ -151183,7 +151200,7 @@ func Xlchown(tls *TLS, path uintptr, uid Tuid_t, gid Tgid_t) (r int32) {
trc("tls=%v path=%v uid=%v gid=%v, (%v:)", tls, path, uid, gid, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall5(tls, int64(SYS_fchownat), int64(-Int32FromInt32(100)), int64(path), int64(uid), int64(gid), int64(Int32FromInt32(AT_SYMLINK_NOFOLLOW))))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_fchownat), int64(-Int32FromInt32(100)), int64(path), Int64FromUint32(uid), Int64FromUint32(gid), int64(Int32FromInt32(AT_SYMLINK_NOFOLLOW))))))
}
func Xlink(tls *TLS, existing uintptr, new1 uintptr) (r int32) {
@@ -151191,7 +151208,7 @@ func Xlink(tls *TLS, existing uintptr, new1 uintptr) (r int32) {
trc("tls=%v existing=%v new1=%v, (%v:)", tls, existing, new1, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall5(tls, int64(SYS_linkat), int64(-Int32FromInt32(100)), int64(existing), int64(-Int32FromInt32(100)), int64(new1), int64(Int32FromInt32(0))))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_linkat), int64(-Int32FromInt32(100)), int64(existing), int64(-Int32FromInt32(100)), int64(new1), int64(Int32FromInt32(0))))))
}
func Xlinkat(tls *TLS, fd1 int32, existing uintptr, fd2 int32, new1 uintptr, flag int32) (r int32) {
@@ -151199,7 +151216,7 @@ func Xlinkat(tls *TLS, fd1 int32, existing uintptr, fd2 int32, new1 uintptr, fla
trc("tls=%v fd1=%v existing=%v fd2=%v new1=%v flag=%v, (%v:)", tls, fd1, existing, fd2, new1, flag, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall5(tls, int64(SYS_linkat), int64(fd1), int64(existing), int64(fd2), int64(new1), int64(flag)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall5(tls, int64(SYS_linkat), int64(fd1), int64(existing), int64(fd2), int64(new1), int64(flag)))))
}
func X__lseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) {
@@ -151207,7 +151224,7 @@ func X__lseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) {
trc("tls=%v fd=%v offset=%v whence=%v, (%v:)", tls, fd, offset, whence, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_lseek), int64(fd), offset, int64(whence))))
+ return X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_lseek), int64(fd), offset, int64(whence))))
}
func Xlseek(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) {
@@ -151253,7 +151270,7 @@ func Xpause(tls *TLS) (r int32) {
trc("tls=%v, (%v:)", tls, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_ppoll), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)), 0, 0))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_ppoll), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)), int64(Int32FromInt32(0)), 0, 0))))
}
func Xpipe(tls *TLS, fd uintptr) (r int32) {
@@ -151261,7 +151278,7 @@ func Xpipe(tls *TLS, fd uintptr) (r int32) {
trc("tls=%v fd=%v, (%v:)", tls, fd, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_pipe2), int64(fd), int64(Int32FromInt32(0))))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_pipe2), int64(fd), int64(Int32FromInt32(0))))))
}
func Xpipe2(tls *TLS, fd uintptr, flag int32) (r int32) {
@@ -151276,10 +151293,10 @@ func Xpipe2(tls *TLS, fd uintptr, flag int32) (r int32) {
}
ret = int32(X__syscall2(tls, int64(SYS_pipe2), int64(fd), int64(flag)))
if ret != -int32(ENOSYS) {
- return int32(X__syscall_ret(tls, uint64(ret)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(ret)))
}
if flag & ^(Int32FromInt32(O_CLOEXEC)|Int32FromInt32(O_NONBLOCK)) != 0 {
- return int32(X__syscall_ret(tls, uint64(-Int32FromInt32(EINVAL))))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(-Int32FromInt32(EINVAL))))
}
ret = Xpipe(tls, fd)
if ret != 0 {
@@ -151309,7 +151326,7 @@ func Xpread(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssize
trc("tls=%v fd=%v buf=%v size=%v ofs=%v, (%v:)", tls, fd, buf, size, ofs, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_pread64), int64(fd), int64(buf), int64(size), ofs, 0, 0)))
+ return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pread64), int64(fd), int64(buf), Int64FromUint64(size), ofs, 0, 0)))
}
func Xpreadv(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize_t) {
@@ -151317,7 +151334,7 @@ func Xpreadv(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize
trc("tls=%v fd=%v iov=%v count=%v ofs=%v, (%v:)", tls, fd, iov, count, ofs, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_preadv), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0)))
+ return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_preadv), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0)))
}
func Xpwrite(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssize_t) {
@@ -151325,7 +151342,7 @@ func Xpwrite(tls *TLS, fd int32, buf uintptr, size Tsize_t, ofs Toff_t) (r Tssiz
trc("tls=%v fd=%v buf=%v size=%v ofs=%v, (%v:)", tls, fd, buf, size, ofs, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_pwrite64), int64(fd), int64(buf), int64(size), ofs, 0, 0)))
+ return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwrite64), int64(fd), int64(buf), Int64FromUint64(size), ofs, 0, 0)))
}
func Xpwritev(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssize_t) {
@@ -151333,7 +151350,7 @@ func Xpwritev(tls *TLS, fd int32, iov uintptr, count int32, ofs Toff_t) (r Tssiz
trc("tls=%v fd=%v iov=%v count=%v ofs=%v, (%v:)", tls, fd, iov, count, ofs, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_pwritev), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0)))
+ return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_pwritev), int64(fd), int64(iov), int64(count), ofs, ofs>>Int32FromInt32(32), 0)))
}
func Xread(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) {
@@ -151341,7 +151358,7 @@ func Xread(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) {
trc("tls=%v fd=%v buf=%v count=%v, (%v:)", tls, fd, buf, count, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_read), int64(fd), int64(buf), int64(count), 0, 0, 0)))
+ return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_read), int64(fd), int64(buf), Int64FromUint64(count), 0, 0, 0)))
}
func Xreadlink(tls *TLS, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_t) {
@@ -151358,11 +151375,11 @@ func Xreadlink(tls *TLS, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_
buf = bp
bufsize = uint64(1)
}
- r = int32(X__syscall4(tls, int64(SYS_readlinkat), int64(-Int32FromInt32(100)), int64(path), int64(buf), int64(bufsize)))
+ r = int32(X__syscall4(tls, int64(SYS_readlinkat), int64(-Int32FromInt32(100)), int64(path), int64(buf), Int64FromUint64(bufsize)))
if buf == bp && r > 0 {
r = 0
}
- return X__syscall_ret(tls, uint64(r))
+ return X__syscall_ret(tls, Uint64FromInt32(r))
}
func Xreadlinkat(tls *TLS, fd int32, path uintptr, buf uintptr, bufsize Tsize_t) (r1 Tssize_t) {
@@ -151379,11 +151396,11 @@ func Xreadlinkat(tls *TLS, fd int32, path uintptr, buf uintptr, bufsize Tsize_t)
buf = bp
bufsize = uint64(1)
}
- r = int32(X__syscall4(tls, int64(SYS_readlinkat), int64(fd), int64(path), int64(buf), int64(bufsize)))
+ r = int32(X__syscall4(tls, int64(SYS_readlinkat), int64(fd), int64(path), int64(buf), Int64FromUint64(bufsize)))
if buf == bp && r > 0 {
r = 0
}
- return X__syscall_ret(tls, uint64(r))
+ return X__syscall_ret(tls, Uint64FromInt32(r))
}
func Xreadv(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) {
@@ -151391,7 +151408,7 @@ func Xreadv(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) {
trc("tls=%v fd=%v iov=%v count=%v, (%v:)", tls, fd, iov, count, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_readv), int64(fd), int64(iov), int64(count), 0, 0, 0)))
+ return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_readv), int64(fd), int64(iov), int64(count), 0, 0, 0)))
}
func Xrenameat(tls *TLS, oldfd int32, old uintptr, newfd int32, new1 uintptr) (r int32) {
@@ -151399,7 +151416,7 @@ func Xrenameat(tls *TLS, oldfd int32, old uintptr, newfd int32, new1 uintptr) (r
trc("tls=%v oldfd=%v old=%v newfd=%v new1=%v, (%v:)", tls, oldfd, old, newfd, new1, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall4(tls, int64(SYS_renameat), int64(oldfd), int64(old), int64(newfd), int64(new1)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall4(tls, int64(SYS_renameat), int64(oldfd), int64(old), int64(newfd), int64(new1)))))
}
func Xrmdir(tls *TLS, path uintptr) (r int32) {
@@ -151407,7 +151424,7 @@ func Xrmdir(tls *TLS, path uintptr) (r int32) {
trc("tls=%v path=%v, (%v:)", tls, path, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_unlinkat), int64(-Int32FromInt32(100)), int64(path), int64(Int32FromInt32(AT_REMOVEDIR))))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_unlinkat), int64(-Int32FromInt32(100)), int64(path), int64(Int32FromInt32(AT_REMOVEDIR))))))
}
func Xsetgid(tls *TLS, gid Tgid_t) (r int32) {
@@ -151415,7 +151432,7 @@ func Xsetgid(tls *TLS, gid Tgid_t) (r int32) {
trc("tls=%v gid=%v, (%v:)", tls, gid, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__setxid(tls, int32(SYS_setgid), int32(gid), 0, 0)
+ return X__setxid(tls, int32(SYS_setgid), Int32FromUint32(gid), 0, 0)
}
func Xsetpgid(tls *TLS, pid Tpid_t, pgid Tpid_t) (r int32) {
@@ -151423,7 +151440,7 @@ func Xsetpgid(tls *TLS, pid Tpid_t, pgid Tpid_t) (r int32) {
trc("tls=%v pid=%v pgid=%v, (%v:)", tls, pid, pgid, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_setpgid), int64(pid), int64(pgid)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_setpgid), int64(pid), int64(pgid)))))
}
func Xsetpgrp(tls *TLS) (r Tpid_t) {
@@ -151439,7 +151456,7 @@ func Xsetsid(tls *TLS) (r Tpid_t) {
trc("tls=%v, (%v:)", tls, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall0(tls, int64(SYS_setsid)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall0(tls, int64(SYS_setsid)))))
}
func Xsetuid(tls *TLS, uid Tuid_t) (r int32) {
@@ -151447,7 +151464,7 @@ func Xsetuid(tls *TLS, uid Tuid_t) (r int32) {
trc("tls=%v uid=%v, (%v:)", tls, uid, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__setxid(tls, int32(SYS_setuid), int32(uid), 0, 0)
+ return X__setxid(tls, int32(SYS_setuid), Int32FromUint32(uid), 0, 0)
}
type Tctx2 = struct {
@@ -151503,7 +151520,7 @@ func X__setxid(tls *TLS, nr int32, id int32, eid int32, sid int32) (r int32) {
} else {
v1 = (*(*Tctx2)(unsafe.Pointer(bp))).Fret
}
- return int32(X__syscall_ret(tls, uint64(v1)))
+ return int32(X__syscall_ret(tls, Uint64FromInt32(v1)))
}
func Xsleep(tls *TLS, seconds uint32) (r uint32) {
@@ -151515,10 +151532,10 @@ func Xsleep(tls *TLS, seconds uint32) (r uint32) {
defer tls.Free(16)
var _ /* tv at bp+0 */ Ttimespec
*(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{
- Ftv_sec: int64(seconds),
+ Ftv_sec: Int64FromUint32(seconds),
}
if Xnanosleep(tls, bp, bp) != 0 {
- return uint32((*(*Ttimespec)(unsafe.Pointer(bp))).Ftv_sec)
+ return Uint32FromInt64((*(*Ttimespec)(unsafe.Pointer(bp))).Ftv_sec)
}
return uint32(0)
}
@@ -151528,7 +151545,7 @@ func Xsymlink(tls *TLS, existing uintptr, new1 uintptr) (r int32) {
trc("tls=%v existing=%v new1=%v, (%v:)", tls, existing, new1, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_symlinkat), int64(existing), int64(-Int32FromInt32(100)), int64(new1)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_symlinkat), int64(existing), int64(-Int32FromInt32(100)), int64(new1)))))
}
func Xsymlinkat(tls *TLS, existing uintptr, fd int32, new1 uintptr) (r int32) {
@@ -151536,7 +151553,7 @@ func Xsymlinkat(tls *TLS, existing uintptr, fd int32, new1 uintptr) (r int32) {
trc("tls=%v existing=%v fd=%v new1=%v, (%v:)", tls, existing, fd, new1, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_symlinkat), int64(existing), int64(fd), int64(new1)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_symlinkat), int64(existing), int64(fd), int64(new1)))))
}
func Xsync(tls *TLS) {
@@ -151577,7 +151594,7 @@ func Xtruncate(tls *TLS, path uintptr, length Toff_t) (r int32) {
trc("tls=%v path=%v length=%v, (%v:)", tls, path, length, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall2(tls, int64(SYS_truncate), int64(path), length))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall2(tls, int64(SYS_truncate), int64(path), length))))
}
/* Support signed or unsigned plain-char */
@@ -151622,12 +151639,12 @@ func Xttyname_r(tls *TLS, fd int32, name uintptr, size Tsize_t) (r int32) {
if !(Xisatty(tls, fd) != 0) {
return *(*int32)(unsafe.Pointer(X__errno_location(tls)))
}
- X__procfdname(tls, bp+256, uint32(fd))
+ X__procfdname(tls, bp+256, Uint32FromInt32(fd))
l = Xreadlink(tls, bp+256, name, size)
if l < 0 {
return *(*int32)(unsafe.Pointer(X__errno_location(tls)))
} else {
- if uint64(l) == size {
+ if Uint64FromInt64(l) == size {
return int32(ERANGE)
}
}
@@ -151652,14 +151669,14 @@ func Xualarm(tls *TLS, value uint32, interval uint32) (r uint32) {
var _ /* it_old at bp+32 */ Titimerval
*(*Titimerval)(unsafe.Pointer(bp)) = Titimerval{
Fit_interval: Ttimeval{
- Ftv_usec: int64(interval),
+ Ftv_usec: Int64FromUint32(interval),
},
Fit_value: Ttimeval{
- Ftv_usec: int64(value),
+ Ftv_usec: Int64FromUint32(value),
},
}
Xsetitimer(tls, ITIMER_REAL, bp, bp+32)
- return uint32((*(*Titimerval)(unsafe.Pointer(bp + 32))).Fit_value.Ftv_sec*int64(1000000) + (*(*Titimerval)(unsafe.Pointer(bp + 32))).Fit_value.Ftv_usec)
+ return Uint32FromInt64((*(*Titimerval)(unsafe.Pointer(bp + 32))).Fit_value.Ftv_sec*int64(1000000) + (*(*Titimerval)(unsafe.Pointer(bp + 32))).Fit_value.Ftv_usec)
}
func Xunlink(tls *TLS, path uintptr) (r int32) {
@@ -151667,7 +151684,7 @@ func Xunlink(tls *TLS, path uintptr) (r int32) {
trc("tls=%v path=%v, (%v:)", tls, path, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_unlinkat), int64(-Int32FromInt32(100)), int64(path), int64(Int32FromInt32(0))))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_unlinkat), int64(-Int32FromInt32(100)), int64(path), int64(Int32FromInt32(0))))))
}
func Xunlinkat(tls *TLS, fd int32, path uintptr, flag int32) (r int32) {
@@ -151675,7 +151692,7 @@ func Xunlinkat(tls *TLS, fd int32, path uintptr, flag int32) (r int32) {
trc("tls=%v fd=%v path=%v flag=%v, (%v:)", tls, fd, path, flag, origin(2))
defer func() { trc("-> %v", r) }()
}
- return int32(X__syscall_ret(tls, uint64(X__syscall3(tls, int64(SYS_unlinkat), int64(fd), int64(path), int64(flag)))))
+ return int32(X__syscall_ret(tls, Uint64FromInt64(X__syscall3(tls, int64(SYS_unlinkat), int64(fd), int64(path), int64(flag)))))
}
func Xusleep(tls *TLS, useconds uint32) (r int32) {
@@ -151687,8 +151704,8 @@ func Xusleep(tls *TLS, useconds uint32) (r int32) {
defer tls.Free(16)
var _ /* tv at bp+0 */ Ttimespec
*(*Ttimespec)(unsafe.Pointer(bp)) = Ttimespec{
- Ftv_sec: int64(useconds / uint32(1000000)),
- Ftv_nsec: int64(useconds % uint32(1000000) * uint32(1000)),
+ Ftv_sec: Int64FromUint32(useconds / uint32(1000000)),
+ Ftv_nsec: Int64FromUint32(useconds % uint32(1000000) * uint32(1000)),
}
return Xnanosleep(tls, bp, bp)
}
@@ -151698,7 +151715,7 @@ func Xwrite(tls *TLS, fd int32, buf uintptr, count Tsize_t) (r Tssize_t) {
trc("tls=%v fd=%v buf=%v count=%v, (%v:)", tls, fd, buf, count, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_write), int64(fd), int64(buf), int64(count), 0, 0, 0)))
+ return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_write), int64(fd), int64(buf), Int64FromUint64(count), 0, 0, 0)))
}
func Xwritev(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) {
@@ -151706,7 +151723,7 @@ func Xwritev(tls *TLS, fd int32, iov uintptr, count int32) (r Tssize_t) {
trc("tls=%v fd=%v iov=%v count=%v, (%v:)", tls, fd, iov, count, origin(2))
defer func() { trc("-> %v", r) }()
}
- return X__syscall_ret(tls, uint64(___syscall_cp(tls, int64(SYS_writev), int64(fd), int64(iov), int64(count), 0, 0, 0)))
+ return X__syscall_ret(tls, Uint64FromInt64(___syscall_cp(tls, int64(SYS_writev), int64(fd), int64(iov), int64(count), 0, 0, 0)))
}
func __ccgo_fp(f interface{}) uintptr {
@@ -152081,22 +152098,22 @@ var X__fsmu8 = [51]Tuint32_t{
11: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | Uint32FromInt32(0xd),
12: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | Uint32FromInt32(0xe),
13: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | Uint32FromInt32(0xf),
- 14: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | uint32(Int32FromInt32(0x0)+Int32FromInt32(16)),
- 15: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | uint32(Int32FromInt32(0x1)+Int32FromInt32(16)),
- 16: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | uint32(Int32FromInt32(0x2)+Int32FromInt32(16)),
- 17: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | uint32(Int32FromInt32(0x3)+Int32FromInt32(16)),
- 18: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | uint32(Int32FromInt32(0x4)+Int32FromInt32(16)),
- 19: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | uint32(Int32FromInt32(0x5)+Int32FromInt32(16)),
- 20: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | uint32(Int32FromInt32(0x6)+Int32FromInt32(16)),
- 21: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | uint32(Int32FromInt32(0x7)+Int32FromInt32(16)),
- 22: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | uint32(Int32FromInt32(0x8)+Int32FromInt32(16)),
- 23: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | uint32(Int32FromInt32(0x9)+Int32FromInt32(16)),
- 24: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | uint32(Int32FromInt32(0xa)+Int32FromInt32(16)),
- 25: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | uint32(Int32FromInt32(0xb)+Int32FromInt32(16)),
- 26: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | uint32(Int32FromInt32(0xc)+Int32FromInt32(16)),
- 27: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | uint32(Int32FromInt32(0xd)+Int32FromInt32(16)),
- 28: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | uint32(Int32FromInt32(0xe)+Int32FromInt32(16)),
- 29: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | uint32(Int32FromInt32(0xf)+Int32FromInt32(16)),
+ 14: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | Uint32FromInt32(Int32FromInt32(0x0)+Int32FromInt32(16)),
+ 15: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | Uint32FromInt32(Int32FromInt32(0x1)+Int32FromInt32(16)),
+ 16: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | Uint32FromInt32(Int32FromInt32(0x2)+Int32FromInt32(16)),
+ 17: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | Uint32FromInt32(Int32FromInt32(0x3)+Int32FromInt32(16)),
+ 18: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | Uint32FromInt32(Int32FromInt32(0x4)+Int32FromInt32(16)),
+ 19: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | Uint32FromInt32(Int32FromInt32(0x5)+Int32FromInt32(16)),
+ 20: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | Uint32FromInt32(Int32FromInt32(0x6)+Int32FromInt32(16)),
+ 21: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | Uint32FromInt32(Int32FromInt32(0x7)+Int32FromInt32(16)),
+ 22: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | Uint32FromInt32(Int32FromInt32(0x8)+Int32FromInt32(16)),
+ 23: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | Uint32FromInt32(Int32FromInt32(0x9)+Int32FromInt32(16)),
+ 24: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | Uint32FromInt32(Int32FromInt32(0xa)+Int32FromInt32(16)),
+ 25: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | Uint32FromInt32(Int32FromInt32(0xb)+Int32FromInt32(16)),
+ 26: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | Uint32FromInt32(Int32FromInt32(0xc)+Int32FromInt32(16)),
+ 27: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | Uint32FromInt32(Int32FromInt32(0xd)+Int32FromInt32(16)),
+ 28: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | Uint32FromInt32(Int32FromInt32(0xe)+Int32FromInt32(16)),
+ 29: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | Uint32FromInt32(Int32FromInt32(0xf)+Int32FromInt32(16)),
30: (Uint32FromUint32(0)-Uint32FromInt32(0xa0))<<Int32FromInt32(23) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23)>>Int32FromInt32(6) | Uint32FromInt32(0x0),
31: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23)>>Int32FromInt32(6) | Uint32FromInt32(0x1),
32: (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23) | (Uint32FromUint32(0x40)-Uint32FromInt32(0xc0))<<Int32FromInt32(23)>>Int32FromInt32(6) | Uint32FromInt32(0x2),
@@ -154003,7 +154020,7 @@ var Xsigngam int32
var X__stack_chk_guard Tuintptr_t
var X__stderr_FILE = TFILE{
- Fflags: uint32(Int32FromInt32(F_PERM) | Int32FromInt32(F_NORD)),
+ Fflags: Uint32FromInt32(Int32FromInt32(F_PERM) | Int32FromInt32(F_NORD)),
Fbuf: uintptr(unsafe.Pointer(&_buf5)) + uintptr(UNGET),
Ffd: int32(2),
Flock: -int32(1),
@@ -154013,7 +154030,7 @@ var X__stderr_FILE = TFILE{
var X__stderr_used = uintptr(unsafe.Pointer(&X__stderr_FILE))
var X__stdin_FILE = TFILE{
- Fflags: uint32(Int32FromInt32(F_PERM) | Int32FromInt32(F_NOWR)),
+ Fflags: Uint32FromInt32(Int32FromInt32(F_PERM) | Int32FromInt32(F_NOWR)),
Fbuf: uintptr(unsafe.Pointer(&_buf6)) + uintptr(UNGET),
Fbuf_size: Uint64FromInt64(1032) - Uint64FromInt32(UNGET),
Flock: -int32(1),
@@ -154024,7 +154041,7 @@ var X__stdin_used = uintptr(unsafe.Pointer(&X__stdin_FILE))
var X__stdio_ofl_lockptr = uintptr(unsafe.Pointer(&_ofl_lock))
var X__stdout_FILE = TFILE{
- Fflags: uint32(Int32FromInt32(F_PERM) | Int32FromInt32(F_NORD)),
+ Fflags: Uint32FromInt32(Int32FromInt32(F_PERM) | Int32FromInt32(F_NORD)),
Fbuf: uintptr(unsafe.Pointer(&_buf7)) + uintptr(UNGET),
Fbuf_size: Uint64FromInt64(1032) - Uint64FromInt32(UNGET),
Ffd: int32(1),