We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52d934e commit 19d2434Copy full SHA for 19d2434
src/coreclr/runtime/amd64/AllocFast.S
@@ -233,8 +233,11 @@ LEAF_END RhpNewArrayFast, _TEXT
233
LEAF_ENTRY RhpNewPtrArrayFast, _TEXT
234
235
// Delegate overflow handling to the generic helper conservatively
236
+ // The constant 0x8000000 is (0x40000000 / sizeof(void*))
237
+ // Some assemblers don't like an expression here, so the
238
+ // constant expression is reduced to it's simple form.
239
- cmp rsi, (0x40000000 / 8) // sizeof(void*)
240
+ cmp rsi, 0x8000000 // (0x40000000 / 8)
241
jae C_FUNC(RhpNewArrayFast)
242
243
// In this case we know the element size is sizeof(void *), or 8 for x64
0 commit comments