File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// deno-lint-ignore-file camelcase
2+
3+ import type { int , uint } from '../../libc/c.ts' ;
24import {
35 vm_page_mask_arm ,
46 vm_page_mask_arm64 ,
@@ -59,16 +61,15 @@ export const VM_PAGE_SIZE_ARM64 = vm_page_size_arm64;
5961 * @param x Pages.
6062 * @returns Bytes.
6163 */
62- export const machine_ptob_arm = ( x : number ) : number =>
63- ( x << PAGE_SHIFT_ARM ) >>> 0 ;
64+ export const machine_ptob_arm = ( x : int ) : uint => ( x << PAGE_SHIFT_ARM ) >>> 0 ;
6465
6566/**
6667 * Machine pages to bytes: ARM64.
6768 *
6869 * @param x Pages.
6970 * @returns Bytes.
7071 */
71- export const machine_ptob_arm64 = ( x : number ) : number =>
72+ export const machine_ptob_arm64 = ( x : int ) : uint =>
7273 ( x << PAGE_SHIFT_ARM64 ) >>> 0 ;
7374
7475/**
Original file line number Diff line number Diff line change 11// deno-lint-ignore-file camelcase
22
3+ import type { int , uint } from '../libc/c.ts' ;
4+
35/**
46 * CPU type.
57 */
@@ -289,8 +291,7 @@ export const CPU_SUBTYPE_MC68030_ONLY = 3;
289291 * @param m Model.
290292 * @returns CPU subtype.
291293 */
292- export const CPU_SUBTYPE_INTEL = ( f : number , m : number ) : number =>
293- ( f + ( m << 4 ) ) >>> 0 ;
294+ export const CPU_SUBTYPE_INTEL = ( f : int , m : int ) : uint => ( f + ( m << 4 ) ) >>> 0 ;
294295
295296/**
296297 * CPU subtype: Intel all.
You can’t perform that action at this time.
0 commit comments