@@ -309,7 +309,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urUSMHostAlloc(
309
309
// L0 supports alignment up to 64KB and silently ignores higher values.
310
310
// We flag alignment > 64KB as an invalid value.
311
311
// L0 spec says that alignment values that are not powers of 2 are invalid.
312
- if (Align > 65536 || Align & (Align - 1 ) != 0 )
312
+ if (Align > 65536 || ( Align & (Align - 1 ) ) != 0 )
313
313
return UR_RESULT_ERROR_INVALID_VALUE;
314
314
315
315
ur_platform_handle_t Plt = Context->getPlatform ();
@@ -379,7 +379,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urUSMDeviceAlloc(
379
379
// L0 supports alignment up to 64KB and silently ignores higher values.
380
380
// We flag alignment > 64KB as an invalid value.
381
381
// L0 spec says that alignment values that are not powers of 2 are invalid.
382
- if (Alignment > 65536 || Alignment & (Alignment - 1 ) != 0 )
382
+ if (Alignment > 65536 || ( Alignment & (Alignment - 1 ) ) != 0 )
383
383
return UR_RESULT_ERROR_INVALID_VALUE;
384
384
385
385
ur_platform_handle_t Plt = Device->Platform ;
@@ -480,7 +480,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urUSMSharedAlloc(
480
480
// L0 supports alignment up to 64KB and silently ignores higher values.
481
481
// We flag alignment > 64KB as an invalid value.
482
482
// L0 spec says that alignment values that are not powers of 2 are invalid.
483
- if (Alignment > 65536 || Alignment & (Alignment - 1 ) != 0 )
483
+ if (Alignment > 65536 || ( Alignment & (Alignment - 1 ) ) != 0 )
484
484
return UR_RESULT_ERROR_INVALID_VALUE;
485
485
486
486
ur_platform_handle_t Plt = Device->Platform ;
0 commit comments