You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tree:
9ee475f731
3096/hle/bufferc
3096/qcom/clamp
3096/spirv/warp
3096/vk/drain_pending_build
3096/vk/pipeline_compilation
Kernel
Update-some-barriers-test
android6
atomicops-mxwell
bcn-ternary-soft
bufferbatching
bundle-qt
camille/bufferc
chore/NamespaceIndentation
chore/chore
civa
descriptor
descriptor_pool_opt
descriptor_set
disable-vap
discfix
display-modified-settings-first
dmnt2
dynarm7345
dynarmic-coproc
dynarmic-ppc64
eden-orbis-ps4
eds-true-adreno-fixes
eds-true-adreno-fixes-pre-0.1.0
ffmpeg-cross-compile
fix-fsr-crash-linux-waw
fix/cyrillic_paths
fix/discord-rpc
fix/gbh_test
flatopsfixes23485
freebsd-cubeb
fs-try
fs_external_dlcupdates
install-vulkan-ps1-fix-windows-on-arm
interval-zero
lanobu
liz-crash-dumps-solaris
liz-dynarmic-backport-waitpkg
liz-dynarmic-macos-fbsd-port
liz-get-rid-of-mcl-intrusive-list
liz-heaptrack-fix
liz-no-rtti-allowance
lizzie/core-inline-optional-ptr
lizzie/fix-ender-magnolia-mmx
lizzie/fix-vic-msvc-attempt-2
lizzie/openbsd-78-fix
lizzie/spinlock-to-cpp
lizzie/stack-fibers-vector
lizzie/test-evil-0
lizzie/vic-test-revert1
lm3-regression/1-of-3
lm3-regression/2-of-3
lm3-regression/shader-to-common
lock-term-1
macos-sqbuild
macroify-surface-stuffs
master
memsetopsyscallavoid
mmap-fixews
msvc-debug
msvc_fix-debug-build
mutliplayer-filter-better1
n64
nce-strx
nce_cpp
netgate1
netusejthreadstuff
no-d24
pagetable-clustering
pintocputhing
pipelinederivative
port/lr
qcom-weird-vk-ftz
quick-fix
refactoreds2
release/0.0.3
release/0.0.4
release/0.1.0
rem-dup-applet-launch
remove-unused-fastmem-fallback
reorder-menu-game-per-config
revert-1240cd43d70a502508115c9abb12f7ef27e1ca4e
revert-2695
revert-4758e126b863da560bf30a00deda3bb44e26b7fa
revert-7eb5710f353798b05b8860187e2728f7795717a0
revert-eed703bc81214a47a5fc7bd3abf22152cbd5c40b
scmfix-worktree
selfhost0
shaderwipe15
showcase
showcase2
simp-word-man1
sjkdbsdfjkbsdf-2834
smartqueryreset
spookymansionreducecpuusage
static-linux
stuffmadeforfun
sured-revert
techno48473719
tegrabottleneck
test-revert-gpu-optim
test2
teto-territory
true-eds
true-eds-graphics
true-eds-pre-0.0.1
vk-fix-oom-force-maller-buffers
vk-surface-andpc
vulkan-thingy
woa-turnip-expr
worekrs467584
xbzk-debug-knobs-from-kotlin
xbzk-dynarmic-x64-regalloc-dup-args
xbzk-mci-bare-minimum-boot-fix
xbzk-saf-recursive-write-with-permission-request
0.0.0
0.0.1-pre-alpha
0.0.2-pre-alpha
test-tag1
test-tag2
v0.0.3
v0.0.3-rc1
v0.0.3-rc2
v0.0.3-rc3
v0.0.3.git
v0.0.4
v0.0.4-rc1
v0.0.4-rc2
v0.0.4-rc2.test
v0.0.4-rc2.test2
v0.0.4-rc3
v0.0.4-rc3.test1
v0.0.4-rc3.test2
v0.0.4.test
v0.1.0-rc1
${ noResults }
The reason this would never be true is that ideal_processor is a u8 and THREADPROCESSORID_DEFAULT is an s32. In this case, it boils down to how arithmetic conversions are performed before performing the comparison. If an unsigned value has a lesser conversion rank (aka smaller size) than the signed type being compared, then the unsigned value is promoted to the signed value (i.e. u8 -> s32 happens before the comparison). No sign-extension occurs here either. An alternative phrasing: Say we have a variable named core and it's given a value of -2. u8 core = -2; This becomes 254 due to the lack of sign. During integral promotion to the signed type, this still remains as 254, and therefore the condition will always be true, because no matter what value the u8 is given it will never be -2 in terms of 32 bits. Now, if one type was a s32 and one was a u32, this would be entirely different, since they have the same bit width (and the signed type would be converted to unsigned instead of the other way around) but would still have its representation preserved in terms of bits, allowing the comparison to be false in some cases, as opposed to being true all the time. --- We also get rid of two signed/unsigned comparison warnings while we're at it. |
8 years ago | |
|---|---|---|
| .. | ||
| post-upload.sh | travis: Split build scripts for different platforms | 8 years ago |
| pre-upload.sh | travis: Split build scripts for different platforms | 8 years ago |